NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
which home team brought the greatest number of attendance ? | CREATE TABLE table_204_846 (
id number,
"tie no" number,
"home team" text,
"score" text,
"away team" text,
"attendance" number
) | SELECT "home team" FROM table_204_846 ORDER BY "attendance" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
927,
4448,
41,
3,
23,
26,
381,
6,
96,
17,
23,
15,
150,
121,
381,
6,
96,
5515,
372,
121,
1499,
6,
96,
7,
9022,
121,
1499,
6,
96,
8006,
372,
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,
5515,
372,
121,
21680,
953,
834,
26363,
834,
927,
4448,
4674,
11300,
272,
476,
96,
15116,
663,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the COSPAR ID of Ariel 4, which was launched with a Scout carrier rocket? | CREATE TABLE table_12783 (
"Satellite" text,
"Launch date" text,
"Carrier rocket" text,
"Launch site" text,
"COSPAR ID" text
) | SELECT "COSPAR ID" FROM table_12783 WHERE "Carrier rocket" = 'scout' AND "Satellite" = 'ariel 4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22367,
4591,
41,
96,
134,
9,
1625,
6311,
121,
1499,
6,
96,
3612,
202,
524,
833,
121,
1499,
6,
96,
6936,
6711,
15721,
121,
1499,
6,
96,
3612,
202,
524,
353,
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,
5911,
21215,
448,
4699,
121,
21680,
953,
834,
22367,
4591,
549,
17444,
427,
96,
6936,
6711,
15721,
121,
3274,
3,
31,
7,
3422,
17,
31,
3430,
96,
134,
9,
1625,
6311,
121,
3274,
3,
31,
9,
14018,
314,
31,
1,
-10... |
give me the gender and discharge time of subject id 2560. | 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 procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | SELECT demographic.gender, demographic.dischtime FROM demographic WHERE demographic.subject_id = "2560" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
122,
3868,
6,
14798,
5,
26,
2499,
715,
21680,
14798,
549,
17444,
427,
14798,
5,
7304,
11827,
834,
23,
26,
3274,
96,
1828,
3328,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is every value for Under-13 when value for Under-15 is Maria Elena Ubina? | CREATE TABLE table_28619 (
"Year" real,
"Under-11" text,
"Under-13" text,
"Under-15" text,
"Under-17" text,
"Under-19" text
) | SELECT "Under-13" FROM table_28619 WHERE "Under-15" = 'Maria Elena Ubina' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3840,
2294,
41,
96,
476,
2741,
121,
490,
6,
96,
5110,
588,
9169,
121,
1499,
6,
96,
5110,
588,
13056,
121,
1499,
6,
96,
5110,
588,
10106,
121,
1499,
6,
96,
5110,
588,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5110,
588,
13056,
121,
21680,
953,
834,
357,
3840,
2294,
549,
17444,
427,
96,
5110,
588,
10106,
121,
3274,
3,
31,
329,
6286,
22539,
412,
4517,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many draws were there in played games? | CREATE TABLE table_17941032_2 (drawn VARCHAR) | SELECT drawn FROM table_17941032_2 WHERE "played" = "played" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26593,
24175,
2668,
834,
357,
41,
19489,
29,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
14924,
130,
132,
16,
1944,
1031,
58,
1,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6796,
21680,
953,
834,
26593,
24175,
2668,
834,
357,
549,
17444,
427,
96,
4895,
15,
26,
121,
3274,
96,
4895,
15,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the section for position of 8th and season of 2003 | CREATE TABLE table_name_29 (section VARCHAR, position VARCHAR, season VARCHAR) | SELECT section FROM table_name_29 WHERE position = "8th" AND season = "2003" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
14309,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
1375,
21,
1102,
13,
505,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1375,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
1102,
3274,
96,
927,
189,
121,
3430,
774,
3274,
96,
23948,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the City, when the Prize is 880,000? | CREATE TABLE table_67351 (
"Date" text,
"City" text,
"Event" text,
"Winner" text,
"Prize" text
) | SELECT "City" FROM table_67351 WHERE "Prize" = '€880,000' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
2469,
536,
41,
96,
308,
342,
121,
1499,
6,
96,
254,
485,
121,
1499,
6,
96,
427,
2169,
121,
1499,
6,
96,
18455,
687,
121,
1499,
6,
96,
7855,
776,
121,
1499,
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,
0... | [
3,
23143,
14196,
96,
254,
485,
121,
21680,
953,
834,
3708,
2469,
536,
549,
17444,
427,
96,
7855,
776,
121,
3274,
3,
31,
3378,
927,
26720,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
provide the number of patients whose discharge location is snf and days of hospital stay is greater than 17? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "SNF" AND demographic.days_stay > "17" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
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,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
26,
159,
7993,
834,
14836,
3274,
96,
134,
12619,
121,
3430,
14798,
5,
1135,
7,
834,
21545,
2490,
... |
What does full house have as a 5 credits? | CREATE TABLE table_52383 (
"Hand" text,
"1 credit" text,
"2 credits" text,
"3 credits" text,
"4 credits" text,
"5 credits" text
) | SELECT "5 credits" FROM table_52383 WHERE "Hand" = 'full house' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2773,
4591,
41,
96,
566,
232,
121,
1499,
6,
96,
536,
998,
121,
1499,
6,
96,
357,
11893,
121,
1499,
6,
96,
519,
11893,
121,
1499,
6,
96,
591,
11893,
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,
755,
11893,
121,
21680,
953,
834,
755,
2773,
4591,
549,
17444,
427,
96,
566,
232,
121,
3274,
3,
31,
1329,
40,
629,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which firm conducted a poll in August 2006? | CREATE TABLE table_name_42 (polling_firm VARCHAR, dates VARCHAR) | SELECT polling_firm FROM table_name_42 WHERE dates = "august 2006" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
3233,
697,
834,
7001,
584,
4280,
28027,
6,
5128,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1669,
4468,
3,
9,
5492,
16,
1660,
3581,
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,
5492,
53,
834,
7001,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
5128,
3274,
96,
402,
17198,
3581,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
find the number of patients who are below the age of 41 and lab test category is blood gas. | 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 procedures (
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 lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "41" AND lab."CATEGORY" = "Blood Gas" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
how many students are advised by each rank of faculty? List the rank and the number of students, I want to order in asc by the bar. | CREATE TABLE Faculty (
FacID INTEGER,
Lname VARCHAR(15),
Fname VARCHAR(15),
Rank VARCHAR(15),
Sex VARCHAR(1),
Phone INTEGER,
Room VARCHAR(5),
Building VARCHAR(13)
)
CREATE TABLE Participates_in (
stuid INTEGER,
actid INTEGER
)
CREATE TABLE Activity (
actid INTEGER,
acti... | SELECT Rank, COUNT(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.Advisor GROUP BY T1.Rank ORDER BY Rank | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
16896,
41,
1699,
75,
4309,
3,
21342,
17966,
6,
301,
4350,
584,
4280,
28027,
599,
1808,
201,
377,
4350,
584,
4280,
28027,
599,
1808,
201,
3,
22557,
584,
4280,
28027,
599,
1808,
201,
679... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22557,
6,
2847,
17161,
599,
1935,
61,
21680,
16896,
6157,
332,
536,
3,
15355,
3162,
6341,
6157,
332,
357,
9191,
332,
5411,
371,
9,
75,
4309,
3274,
332,
4416,
188,
26,
24680,
350,
4630,
6880,
272,
476,
332,
5411,
... |
What are the Points after 1991? | CREATE TABLE table_35240 (
"Year" real,
"Class" text,
"Team" text,
"Machine" text,
"Points" real,
"Wins" real
) | SELECT COUNT("Points") FROM table_35240 WHERE "Year" > '1991' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
11944,
41,
96,
476,
2741,
121,
490,
6,
96,
21486,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
329,
1836,
630,
121,
1499,
6,
96,
22512,
7,
121,
490,
6,
96,
18455,
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,
0... | [
3,
23143,
14196,
2847,
17161,
599,
121,
22512,
7,
8512,
21680,
953,
834,
2469,
11944,
549,
17444,
427,
96,
476,
2741,
121,
2490,
3,
31,
2294,
4729,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
WHich Usual translation is on sep 23? | CREATE TABLE table_75546 (
"Longi- tude" text,
"Usual translation" text,
"Chinese name \u00b9" text,
"Japanese name" text,
"Korean name \u00b2" text,
"Vietnamese name" text,
"Date \u00b3" text
) | SELECT "Usual translation" FROM table_75546 WHERE "Date \u00b3" = 'sep 23' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
755,
4448,
41,
96,
434,
2444,
23,
18,
3,
19835,
121,
1499,
6,
96,
1265,
7,
3471,
7314,
121,
1499,
6,
96,
3541,
4477,
15,
564,
3,
2,
76,
1206,
115,
1298,
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,
1265,
7,
3471,
7314,
121,
21680,
953,
834,
3072,
755,
4448,
549,
17444,
427,
96,
308,
342,
3,
2,
76,
1206,
115,
519,
121,
3274,
3,
31,
7,
15,
102,
1902,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the reserved for (ST/ST/None) when it was Uklana? | CREATE TABLE table_name_40 (reserved_for___sc___st__none_ VARCHAR, name VARCHAR) | SELECT reserved_for___sc___st__none_ FROM table_name_40 WHERE name = "uklana" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
60,
3473,
15,
26,
834,
1161,
834,
834,
834,
7,
75,
834,
834,
834,
7,
17,
834,
834,
29,
782,
834,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
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,
14040,
834,
1161,
834,
834,
834,
7,
75,
834,
834,
834,
7,
17,
834,
834,
29,
782,
834,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
564,
3274,
96,
1598,
1618,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the torque of the engine is d5244 t5 | CREATE TABLE table_16825 (
"Model name" text,
"Power (ps)" real,
"Torque (Nm@rpm)" text,
"Displacement (cm\u00b3)" real,
"Engine code" text,
"Comment" text
) | SELECT "Torque (Nm@rpm)" FROM table_16825 WHERE "Engine code" = 'D5244 T5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24274,
1828,
41,
96,
24663,
564,
121,
1499,
6,
96,
23553,
41,
102,
7,
61,
121,
490,
6,
96,
382,
127,
835,
41,
567,
51,
1741,
52,
2028,
61,
121,
1499,
6,
96,
23664,
1170... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
382,
127,
835,
41,
567,
51,
1741,
52,
2028,
61,
121,
21680,
953,
834,
24274,
1828,
549,
17444,
427,
96,
31477,
1081,
121,
3274,
3,
31,
308,
5373,
3628,
332,
755,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
provide the number of patients whose diagnoses short title is b12 defic anemia nec and drug type is main? | 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 lab (
subject_id text,
hadm_id 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 = "B12 defic anemia NEC" AND prescriptions.drug_type = "MAIN" | [
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,
3... |
Which episodes had production code 217? | CREATE TABLE table_18424435_3 (title VARCHAR, production_code VARCHAR) | SELECT title FROM table_18424435_3 WHERE production_code = 217 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
4165,
3628,
2469,
834,
519,
41,
21869,
584,
4280,
28027,
6,
999,
834,
4978,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
13562,
141,
999,
1081,
204,
2517,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2233,
21680,
953,
834,
2606,
4165,
3628,
2469,
834,
519,
549,
17444,
427,
999,
834,
4978,
3274,
204,
2517,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the largest laps led with the lotus-ford 34/3 chassis? | CREATE TABLE table_181892_4 (laps_led INTEGER, chassis VARCHAR) | SELECT MAX(laps_led) FROM table_181892_4 WHERE chassis = "Lotus-Ford 34/3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
2606,
4508,
834,
591,
41,
8478,
7,
834,
1361,
3,
21342,
17966,
6,
22836,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2015,
14941,
7,
2237,
28,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
8478,
7,
834,
1361,
61,
21680,
953,
834,
2606,
2606,
4508,
834,
591,
549,
17444,
427,
22836,
3274,
96,
434,
32,
17,
302,
18,
3809,
26,
6154,
14207,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the crowd size when Essendon was the away team? | CREATE TABLE table_name_79 (
crowd VARCHAR,
away_team VARCHAR
) | SELECT COUNT(crowd) FROM table_name_79 WHERE away_team = "essendon" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
4374,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
4374,
812,
116,
11722,
2029,
47,
8,
550... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
75,
3623,
26,
61,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
550,
834,
11650,
3274,
96,
8185,
2029,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the result when Dundee was the opponent? | CREATE TABLE table_37904 (
"Date" text,
"Opponent" text,
"Venue" text,
"Result" text,
"Attendance" real,
"Scorers" text
) | SELECT "Result" FROM table_37904 WHERE "Opponent" = 'dundee' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4118,
2394,
591,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
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,
20119,
121,
21680,
953,
834,
4118,
2394,
591,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
26,
1106,
15,
15,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What year did the team from City of Aurora join? | CREATE TABLE table_63668 (
"School" text,
"City" text,
"Team Name" text,
"Enrollment 08-09" real,
"IHSAA Class" text,
"IHSAA Class Football" text,
"County" text,
"Year Joined (Or Joining)" real,
"Previous Conference" text
) | SELECT AVG("Year Joined (Or Joining)") FROM table_63668 WHERE "City" = 'aurora' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
3420,
3651,
41,
96,
29364,
121,
1499,
6,
96,
254,
485,
121,
1499,
6,
96,
18699,
5570,
121,
1499,
6,
96,
8532,
4046,
297,
12046,
18,
4198,
121,
490,
6,
96,
196,
4950,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
121,
476,
2741,
5279,
15,
26,
41,
7395,
5279,
53,
61,
8512,
21680,
953,
834,
948,
3420,
3651,
549,
17444,
427,
96,
254,
485,
121,
3274,
3,
31,
402,
22215,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
What's the to par for the score of 68-74-71-77=290? | CREATE TABLE table_62653 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" text
) | SELECT "To par" FROM table_62653 WHERE "Score" = '68-74-71-77=290' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4056,
4122,
519,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
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,
3696,
260,
121,
21680,
953,
834,
4056,
4122,
519,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
3651,
18,
4581,
18,
4450,
18,
4013,
2423,
23838,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who earned third place when the winner was Paul Haarhuis? | CREATE TABLE table_name_68 (third_place VARCHAR, winner VARCHAR) | SELECT third_place FROM table_name_68 WHERE winner = "paul haarhuis" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
14965,
834,
4687,
584,
4280,
28027,
6,
4668,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
4964,
1025,
286,
116,
8,
4668,
47,
1838,
14262,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1025,
834,
4687,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
4668,
3274,
96,
102,
9,
83,
4244,
291,
3464,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What class had a score of 95.1? | CREATE TABLE table_name_33 (class VARCHAR, score VARCHAR) | SELECT class FROM table_name_33 WHERE score = 95.1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
4057,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
853,
141,
3,
9,
2604,
13,
668,
20519,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
853,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
2604,
3274,
668,
20519,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who is the Driver with the Team of P & L Mechanical Services? | CREATE TABLE table_38378 (
"Team" text,
"Manufacturer" text,
"Car model" text,
"Engine" text,
"Driver" text
) | SELECT "Driver" FROM table_38378 WHERE "Team" = 'p & l mechanical services' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3747,
519,
3940,
41,
96,
18699,
121,
1499,
6,
96,
7296,
76,
8717,
450,
49,
121,
1499,
6,
96,
6936,
825,
121,
1499,
6,
96,
31477,
121,
1499,
6,
96,
20982,
52,
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,
20982,
52,
121,
21680,
953,
834,
3747,
519,
3940,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
102,
3,
184,
3,
40,
8168,
364,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Bar chart of school_id from each all games, display total number from low to high order. | CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
Scho... | SELECT All_Games, School_ID FROM basketball_match ORDER BY School_ID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8498,
834,
19515,
41,
2271,
834,
4309,
16,
17,
6,
1121,
834,
4309,
16,
17,
6,
2271,
834,
23954,
1499,
6,
3,
14775,
834,
17748,
4885,
834,
134,
15,
9,
739,
1499,
6,
3,
14775,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
432,
834,
23055,
7,
6,
1121,
834,
4309,
21680,
8498,
834,
19515,
4674,
11300,
272,
476,
1121,
834,
4309,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
which driver did not score less than 7 points ? | CREATE TABLE table_204_788 (
id number,
"pos" text,
"no" number,
"driver" text,
"constructor" text,
"laps" number,
"time/retired" text,
"grid" number,
"points" number
) | SELECT "driver" FROM table_204_788 WHERE "points" >= 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3940,
927,
41,
3,
23,
26,
381,
6,
96,
2748,
121,
1499,
6,
96,
29,
32,
121,
381,
6,
96,
13739,
52,
121,
1499,
6,
96,
15982,
5317,
121,
1499,
6,
96,
8478,
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,
13739,
52,
121,
21680,
953,
834,
26363,
834,
3940,
927,
549,
17444,
427,
96,
2700,
7,
121,
2490,
2423,
489,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many 20-39% are in pont-de-vivaux? | CREATE TABLE table_29615165_5 (
_percentage_20_39_years VARCHAR,
quartier VARCHAR
) | SELECT COUNT(_percentage_20_39_years) FROM table_29615165_5 WHERE quartier = "Pont-de-Vivaux" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4314,
1808,
22823,
834,
755,
41,
3,
834,
883,
3728,
545,
834,
1755,
834,
3288,
834,
1201,
7,
584,
4280,
28027,
6,
15492,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
834,
883,
3728,
545,
834,
1755,
834,
3288,
834,
1201,
7,
61,
21680,
953,
834,
357,
4314,
1808,
22823,
834,
755,
549,
17444,
427,
15492,
3274,
96,
345,
1770,
18,
221,
18,
19600,
1724,
121,
1,
-100,
... |
What is the highest Week, when Date is 'November 8, 1970'? | CREATE TABLE table_name_66 (
week INTEGER,
date VARCHAR
) | SELECT MAX(week) FROM table_name_66 WHERE date = "november 8, 1970" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
471,
3,
21342,
17966,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
6551,
6,
116,
7678,
19,
3,
31,
28635,
9478,
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,
8041,
61,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
833,
3274,
96,
5326,
18247,
9478,
7434,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
top paid year ? | CREATE TABLE table_203_203 (
id number,
"year" number,
"majors" number,
"atp wins" number,
"total wins" number,
"earnings (us$)" number,
"money list rank" number
) | SELECT "year" FROM table_203_203 ORDER BY "earnings (us$)" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
23330,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
16547,
127,
7,
121,
381,
6,
96,
144,
102,
9204,
121,
381,
6,
96,
235,
1947,
9204,
121,
381,
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,
1201,
121,
21680,
953,
834,
23330,
834,
23330,
4674,
11300,
272,
476,
96,
2741,
29,
53,
7,
41,
302,
3229,
61,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What season has a runner-up of waseda, and a title of 47th? | CREATE TABLE table_34612 (
"Title" text,
"Season" text,
"Winner" text,
"Score" text,
"Runner-up" text,
"Venue" text,
"Attendance" text
) | SELECT "Season" FROM table_34612 WHERE "Runner-up" = 'waseda' AND "Title" = '47th' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
4448,
2122,
41,
96,
382,
155,
109,
121,
1499,
6,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
18455,
687,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
23572,
18,
413,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
519,
4448,
2122,
549,
17444,
427,
96,
23572,
18,
413,
121,
3274,
3,
31,
9491,
15,
26,
9,
31,
3430,
96,
382,
155,
109,
121,
3274,
3,
31,
4177,
189,
31,
1,
-100,
-100,
... |
What is the latest year a ride opened that was manufactured by Zamperla, was a convoy ride, and had a name of Tiny Truckers? | CREATE TABLE table_15464 (
"Ride Name" text,
"Type" text,
"Opened in" real,
"Themed Land" text,
"Manufacture" text
) | SELECT MAX("Opened in") FROM table_15464 WHERE "Manufacture" = 'zamperla' AND "Type" = 'convoy ride' AND "Ride Name" = 'tiny truckers' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27308,
4389,
41,
96,
448,
1599,
5570,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
22696,
15,
26,
16,
121,
490,
6,
96,
634,
2726,
2216,
121,
1499,
6,
96,
7296,
76,
8717,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22696,
15,
26,
16,
8512,
21680,
953,
834,
27308,
4389,
549,
17444,
427,
96,
7296,
76,
8717,
1462,
121,
3274,
3,
31,
19271,
883,
521,
31,
3430,
96,
25160,
121,
3274,
3,
31,
1018,
9845,
2564,
31,
... |
What is the lowest Weight when the height is 196, and the date of birth is 24.07.1977? | CREATE TABLE table_name_28 (
weight INTEGER,
height VARCHAR,
date_of_birth VARCHAR
) | SELECT MIN(weight) FROM table_name_28 WHERE height = 196 AND date_of_birth = "24.07.1977" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
1293,
3,
21342,
17966,
6,
3902,
584,
4280,
28027,
6,
833,
834,
858,
834,
20663,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
740... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
9378,
61,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
3902,
3274,
3,
26937,
3430,
833,
834,
858,
834,
20663,
3274,
96,
2266,
5,
14681,
2294,
4013,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many winning teams are there on LMP2 if Gabriele Gardel Patrice Goueslard Fernando Rees was the GT1 Winning Team on the Algarve circuit? | CREATE TABLE table_24865763_2 (
lmp2_winning_team VARCHAR,
gt1_winning_team VARCHAR,
circuit VARCHAR
) | SELECT COUNT(lmp2_winning_team) FROM table_24865763_2 WHERE gt1_winning_team = "Gabriele Gardel Patrice Goueslard Fernando Rees" AND circuit = "Algarve" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
3840,
3436,
3891,
834,
357,
41,
3,
40,
1167,
357,
834,
8163,
834,
11650,
584,
4280,
28027,
6,
3,
122,
17,
536,
834,
8163,
834,
11650,
584,
4280,
28027,
6,
4558,
584,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
40,
1167,
357,
834,
8163,
834,
11650,
61,
21680,
953,
834,
2266,
3840,
3436,
3891,
834,
357,
549,
17444,
427,
3,
122,
17,
536,
834,
8163,
834,
11650,
3274,
96,
517,
17639,
400,
3121,
221,
40,
276,
... |
Which Played is the highest one that has a Lost smaller than 1, and a Difference of 6, and an Against larger than 2? | CREATE TABLE table_name_66 (
played INTEGER,
against VARCHAR,
lost VARCHAR,
difference VARCHAR
) | SELECT MAX(played) FROM table_name_66 WHERE lost < 1 AND difference = "6" AND against > 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
1944,
3,
21342,
17966,
6,
581,
584,
4280,
28027,
6,
1513,
584,
4280,
28027,
6,
1750,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2911,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4895,
15,
26,
61,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
1513,
3,
2,
209,
3430,
1750,
3274,
96,
948,
121,
3430,
581,
2490,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the total of laps with grid of 2 | CREATE TABLE table_name_5 (laps INTEGER, grid VARCHAR) | SELECT SUM(laps) FROM table_name_5 WHERE grid = 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
755,
41,
8478,
7,
3,
21342,
17966,
6,
8634,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
13,
14941,
7,
28,
8634,
13,
204,
1,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8478,
7,
61,
21680,
953,
834,
4350,
834,
755,
549,
17444,
427,
8634,
3274,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
If the floor number is 14.200, what is the number for the parallel bars? | CREATE TABLE table_73040 (
"Position" real,
"Gymnast" text,
"Floor" text,
"Pommel Horse" text,
"Rings" text,
"Vault" text,
"Parallel Bars" text,
"Horizontal Bar" text,
"Total" text
) | SELECT "Parallel Bars" FROM table_73040 WHERE "Floor" = '14.200' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
1458,
2445,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
517,
63,
51,
29,
9,
7,
17,
121,
1499,
6,
96,
11251,
127,
121,
1499,
6,
96,
345,
7649,
40,
13538,
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,
13212,
13701,
40,
1386,
7,
121,
21680,
953,
834,
940,
1458,
2445,
549,
17444,
427,
96,
11251,
127,
121,
3274,
3,
31,
2534,
5,
3632,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the high assists for l 98 103 (ot) | CREATE TABLE table_17323529_5 (
high_assists VARCHAR,
score VARCHAR
) | SELECT high_assists FROM table_17323529_5 WHERE score = "L 98–103 (OT)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
2668,
2469,
3166,
834,
755,
41,
306,
834,
6500,
7,
17,
7,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
306,
13041,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
306,
834,
6500,
7,
17,
7,
21680,
953,
834,
2517,
2668,
2469,
3166,
834,
755,
549,
17444,
427,
2604,
3274,
96,
434,
3,
3916,
104,
17864,
41,
6951,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the class a for carthage | CREATE TABLE table_19459 (
"School Year" text,
"Class A" text,
"Class AA" text,
"Class AAA" text,
"Class AAAA" text,
"Class AAAAA" text
) | SELECT "Class A" FROM table_19459 WHERE "Class AAAA" = 'Carthage' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
591,
3390,
41,
96,
29364,
2929,
121,
1499,
6,
96,
21486,
71,
121,
1499,
6,
96,
21486,
3,
5498,
121,
1499,
6,
96,
21486,
22656,
121,
1499,
6,
96,
21486,
22656,
188,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21486,
71,
121,
21680,
953,
834,
2294,
591,
3390,
549,
17444,
427,
96,
21486,
22656,
188,
121,
3274,
3,
31,
6936,
189,
545,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Visualize a scatter chart about the correlation between People_ID and Clean_Jerk . | CREATE TABLE people (
People_ID int,
Name text,
Height real,
Weight real,
Birth_Date text,
Birth_Place text
)
CREATE TABLE body_builder (
Body_Builder_ID int,
People_ID int,
Snatch real,
Clean_Jerk real,
Total real
) | SELECT People_ID, Clean_Jerk FROM body_builder | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
151,
41,
2449,
834,
4309,
16,
17,
6,
5570,
1499,
6,
24231,
490,
6,
14230,
490,
6,
26337,
834,
308,
342,
1499,
6,
26337,
834,
345,
11706,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
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,
2449,
834,
4309,
6,
7433,
834,
683,
49,
157,
21680,
643,
834,
16422,
49,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What Superlative had a record set of 12 nominations? | CREATE TABLE table_name_23 (
superlative VARCHAR,
record_set VARCHAR
) | SELECT superlative FROM table_name_23 WHERE record_set = "12 nominations" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
1355,
40,
1528,
584,
4280,
28027,
6,
1368,
834,
2244,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
2011,
40,
1528,
141,
3,
9,
1368,
356... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1355,
40,
1528,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
1368,
834,
2244,
3274,
96,
2122,
13588,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
patients must have fasting plasma glucose ( fpg ) concentrations between 7.8 mm ( 140 mg / dl ) and 15 mm ( 270 mg / dl ) on day _ 2 | CREATE TABLE table_train_272 (
"id" int,
"fasting_plasma_glucose_fpg" float,
"creatinine_clearance_cl" float,
"baseline_hemoglobin_hgb" float,
"sensitization_on_pra" bool,
"age" float,
"NOUSE" float
) | SELECT * FROM table_train_272 WHERE fasting_plasma_glucose_fpg >= 7.8 AND fasting_plasma_glucose_fpg <= 15 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
2555,
357,
41,
96,
23,
26,
121,
16,
17,
6,
96,
11584,
53,
834,
21178,
9,
834,
13492,
509,
7,
15,
834,
89,
102,
122,
121,
3,
12660,
6,
96,
5045,
144,
77,
63... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9719,
834,
2555,
357,
549,
17444,
427,
1006,
53,
834,
21178,
9,
834,
13492,
509,
7,
15,
834,
89,
102,
122,
2490,
2423,
4306,
927,
3430,
1006,
53,
834,
21178,
9,
834,
13492,
509,
7,
15,
834,
... |
What is the scale of sv_health with a word number smaller than 4? | CREATE TABLE table_53617 (
"Subframe #" real,
"Page #" text,
"Name" text,
"Word #" real,
"Bits" text,
"Scale" text,
"Signed" text
) | SELECT "Scale" FROM table_53617 WHERE "Word #" < '4' AND "Name" = 'sv_health' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3420,
2517,
41,
96,
25252,
11415,
1713,
121,
490,
6,
96,
345,
545,
1713,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
518,
127,
26,
1713,
121,
490,
6,
96,
279,
7085,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1489,
15,
121,
21680,
953,
834,
755,
3420,
2517,
549,
17444,
427,
96,
518,
127,
26,
1713,
121,
3,
2,
3,
31,
591,
31,
3430,
96,
23954,
121,
3274,
3,
31,
7,
208,
834,
15878,
31,
1,
-100,
-100,
-100,
-10... |
What is the Score of the game against the boston celtics? | CREATE TABLE table_name_58 (
score VARCHAR,
opponent VARCHAR
) | SELECT score FROM table_name_58 WHERE opponent = "boston celtics" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
2604,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
17763,
13,
8,
467,
581,
8,
3005,
4411,
1503,
7636... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
15264,
3274,
96,
115,
32,
4411,
1503,
7636,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Year has a Category of best original song (รอเธอหันมา – โฟกัส จิระกุล)? | CREATE TABLE table_name_58 (year INTEGER, category VARCHAR) | SELECT MAX(year) FROM table_name_58 WHERE category = "best original song (รอเธอหันมา – โฟกัส จิระกุล)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
1201,
3,
21342,
17966,
6,
3295,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
2929,
65,
3,
9,
17459,
13,
200,
926,
2324,
41,
2,
3,
104,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
1201,
61,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
3295,
3274,
96,
9606,
926,
2324,
41,
2,
3,
104,
3,
2,
3,
2,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
how many movies did 20th century fox create that were in the top 10 grossing films of 1965 ? | CREATE TABLE table_201_19 (
id number,
"rank" number,
"title" text,
"studio" text,
"director" text,
"actors" text,
"gross" text
) | SELECT COUNT("title") FROM table_201_19 WHERE "title" IN (SELECT "title" FROM table_201_19 ORDER BY "gross" DESC LIMIT 10) AND "studio" = '20th century fox' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22772,
834,
2294,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
21869,
121,
1499,
6,
96,
22991,
121,
1499,
6,
96,
25982,
121,
1499,
6,
96,
9,
5317,
7,
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,
121,
21869,
8512,
21680,
953,
834,
22772,
834,
2294,
549,
17444,
427,
96,
21869,
121,
3388,
41,
23143,
14196,
96,
21869,
121,
21680,
953,
834,
22772,
834,
2294,
4674,
11300,
272,
476,
96,
3844,
7,
7,... |
Which Opposing Team has a Venue of rectory ground, devonport? | CREATE TABLE table_name_14 (opposing_team VARCHAR, venue VARCHAR) | SELECT opposing_team FROM table_name_14 WHERE venue = "rectory ground, devonport" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
28236,
7,
53,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
4495,
2748,
53,
2271,
65,
3,
9,
29940,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
3,
23143,
14196,
10720,
53,
834,
11650,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
5669,
3274,
96,
60,
5317,
63,
1591,
6,
20,
5951,
1493,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the wickets when overs bowled is 9 | CREATE TABLE table_15700367_4 (wickets VARCHAR, overs_bowled VARCHAR) | SELECT wickets FROM table_15700367_4 WHERE overs_bowled = "9" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
9295,
519,
3708,
834,
591,
41,
5981,
15,
17,
7,
584,
4280,
28027,
6,
147,
7,
834,
17710,
1361,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
29719,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
29719,
7,
21680,
953,
834,
1808,
9295,
519,
3708,
834,
591,
549,
17444,
427,
147,
7,
834,
17710,
1361,
3274,
96,
1298,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which leagues is the Galena school in? | CREATE TABLE table_11044765_1 (
league VARCHAR,
school VARCHAR
) | SELECT league FROM table_11044765_1 WHERE school = "Galena" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
536,
15442,
4177,
4122,
834,
536,
41,
5533,
584,
4280,
28027,
6,
496,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
5533,
7,
19,
8,
6084,
35,
9,
496,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5533,
21680,
953,
834,
536,
15442,
4177,
4122,
834,
536,
549,
17444,
427,
496,
3274,
96,
517,
138,
35,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the record when the TKO (elbows) method was used? | CREATE TABLE table_name_12 (
record VARCHAR,
method VARCHAR
) | SELECT record FROM table_name_12 WHERE method = "tko (elbows)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
1368,
584,
4280,
28027,
6,
1573,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1368,
116,
8,
332,
12725,
41,
15,
40,
17710,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
1573,
3274,
96,
17,
157,
32,
41,
15,
40,
17710,
7,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Bar chart of mean price from each name, and order mean price in descending order. | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT Name, AVG(Price) FROM Products GROUP BY Name ORDER BY AVG(Price) 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,
5570,
6,
71,
17217,
599,
345,
4920,
61,
21680,
7554,
350,
4630,
6880,
272,
476,
5570,
4674,
11300,
272,
476,
71,
17217,
599,
345,
4920,
61,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is age and insurance of subject name jerry deberry? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
... | SELECT demographic.age, demographic.insurance FROM demographic WHERE demographic.name = "Jerry Deberry" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
545,
6,
14798,
5,
29441,
21680,
14798,
549,
17444,
427,
14798,
5,
4350,
3274,
96,
683,
49,
651,
374,
7418,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What label does Germany have? | CREATE TABLE table_name_24 (
label VARCHAR,
region VARCHAR
) | SELECT label FROM table_name_24 WHERE region = "germany" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
3783,
584,
4280,
28027,
6,
1719,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
3783,
405,
3434,
43,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3783,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
1719,
3274,
96,
1304,
348,
63,
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 date of appointment 11 june 2010? | CREATE TABLE table_26914854_3 (
team VARCHAR,
date_of_appointment VARCHAR
) | SELECT team FROM table_26914854_3 WHERE date_of_appointment = "11 June 2010" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
4729,
3707,
5062,
834,
519,
41,
372,
584,
4280,
28027,
6,
833,
834,
858,
834,
9,
102,
2700,
297,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
21680,
953,
834,
2688,
4729,
3707,
5062,
834,
519,
549,
17444,
427,
833,
834,
858,
834,
9,
102,
2700,
297,
3274,
96,
2596,
1515,
2735,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the highest localities? | CREATE TABLE table_26007767_1 (
localities INTEGER
) | SELECT MAX(localities) FROM table_26007767_1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
6007,
4013,
3708,
834,
536,
41,
415,
2197,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
415,
2197,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
16882,
2197,
61,
21680,
953,
834,
357,
6007,
4013,
3708,
834,
536,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who wrote the episode with 8.61 million U.S. viewers? | CREATE TABLE table_24648983_1 (
written_by VARCHAR,
us_viewers__million_ VARCHAR
) | SELECT written_by FROM table_24648983_1 WHERE us_viewers__million_ = "8.61" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
4389,
3914,
4591,
834,
536,
41,
1545,
834,
969,
584,
4280,
28027,
6,
178,
834,
4576,
277,
834,
834,
17030,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1545,
834,
969,
21680,
953,
834,
2266,
4389,
3914,
4591,
834,
536,
549,
17444,
427,
178,
834,
4576,
277,
834,
834,
17030,
834,
3274,
96,
927,
5,
4241,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is the number of patients whose insurance is medicaid and procedure icd9 code is 5459? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = "Medicaid" AND procedures.icd9_code = "5459" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
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,
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 sum of the place that has less than 2 losses? | CREATE TABLE table_name_60 (
place INTEGER,
lost INTEGER
) | SELECT SUM(place) FROM table_name_60 WHERE lost < 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
286,
3,
21342,
17966,
6,
1513,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
13,
8,
286,
24,
65,
705,
145,
204,
8467,
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,
1,
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,
4687,
61,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
1513,
3,
2,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What round had a time of 0:39? | CREATE TABLE table_13728 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
) | SELECT MIN("Round") FROM table_13728 WHERE "Time" = '0:39' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24636,
2577,
41,
96,
1649,
7,
535,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
23351,
107,
32,
26,
121,
1499,
6,
96,
427,
2169,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
448,
32,
1106,
8512,
21680,
953,
834,
24636,
2577,
549,
17444,
427,
96,
13368,
121,
3274,
3,
31,
632,
10,
3288,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many number of lakes are there in the Valdez-Cordova (CA) area? | CREATE TABLE table_22052 (
"# s Dam and GNIS query Link" real,
"# s Lake and GNIS query Link" real,
"# s Reservoir and GNIS query Link" real,
"Borough or Census area" text,
"Comment" text
) | SELECT MIN("# s Lake and GNIS query Link") FROM table_22052 WHERE "Borough or Census area" = 'Valdez-Cordova (CA)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
3076,
357,
41,
96,
4663,
3,
7,
10939,
11,
3,
13738,
4555,
11417,
7505,
121,
490,
6,
96,
4663,
3,
7,
2154,
11,
3,
13738,
4555,
11417,
7505,
121,
490,
6,
96,
4663,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
4663,
3,
7,
2154,
11,
3,
13738,
4555,
11417,
7505,
8512,
21680,
953,
834,
2884,
3076,
357,
549,
17444,
427,
96,
279,
32,
13245,
42,
23086,
616,
121,
3274,
3,
31,
18392,
26,
457,
18,
13026,
26,
... |
A bar chart about what is the project id and detail for the project with at least two documents?, and show by the Y-axis in ascending. | CREATE TABLE Ref_Document_Types (
Document_Type_Code CHAR(15),
Document_Type_Name VARCHAR(255),
Document_Type_Description VARCHAR(255)
)
CREATE TABLE Ref_Budget_Codes (
Budget_Type_Code CHAR(15),
Budget_Type_Description VARCHAR(255)
)
CREATE TABLE Projects (
Project_ID INTEGER,
Project_Det... | SELECT T1.Project_Details, T1.Project_ID FROM Projects AS T1 JOIN Documents AS T2 ON T1.Project_ID = T2.Project_ID ORDER BY T1.Project_ID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
419,
89,
834,
4135,
1071,
297,
834,
25160,
7,
41,
11167,
834,
25160,
834,
22737,
3,
28027,
599,
1808,
201,
11167,
834,
25160,
834,
23954,
584,
4280,
28027,
599,
25502,
201,
11167,
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,
332,
5411,
3174,
11827,
834,
2962,
5756,
7,
6,
332,
5411,
3174,
11827,
834,
4309,
21680,
2786,
7,
6157,
332,
536,
3,
15355,
3162,
11167,
7,
6157,
332,
357,
9191,
332,
5411,
3174,
11827,
834,
4309,
3274,
332,
4416,
3... |
What is the 2010 Lukoil oil prodroduction when in 2009 oil production 21.662 million tonnes? | CREATE TABLE table_name_25 (
Id VARCHAR
) | SELECT 2010 FROM table_name_25 WHERE 2009 = "21.662" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2735,
2318,
157,
32,
173,
1043,
813,
26,
52,
32,
8291,
116,
16,
2464,
104... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
3,
23143,
14196,
2735,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
2464,
3274,
96,
357,
15062,
4056,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Females Rank is the highest one that has Females (%) larger than 53, and an HIV awareness (males%) smaller than 89, and a State of odisha? | CREATE TABLE table_name_2 (females_rank INTEGER, state VARCHAR, females___percentage_ VARCHAR, hiv_awareness__males_percentage_ VARCHAR) | SELECT MAX(females_rank) FROM table_name_2 WHERE females___percentage_ > 53 AND hiv_awareness__males_percentage_ < 89 AND state = "odisha" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
89,
15,
13513,
7,
834,
6254,
3,
21342,
17966,
6,
538,
584,
4280,
28027,
6,
3955,
7,
834,
834,
834,
883,
3728,
545,
834,
584,
4280,
28027,
6,
7102,
208... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
89,
15,
13513,
7,
834,
6254,
61,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
3955,
7,
834,
834,
834,
883,
3728,
545,
834,
2490,
12210,
3430,
7102,
208,
834,
9,
3404,
655,
834,
834,
13513,
7,
... |
What is the emissions CO2 with a max speed of km/h (mph) of the car model Panamera 4s? | CREATE TABLE table_name_76 (
emissions_co2 VARCHAR,
max_speed VARCHAR,
car_model VARCHAR
) | SELECT emissions_co2 FROM table_name_76 WHERE max_speed = "km/h (mph)" AND car_model = "panamera 4s" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
9830,
834,
509,
357,
584,
4280,
28027,
6,
9858,
834,
9993,
584,
4280,
28027,
6,
443,
834,
21770,
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,
9830,
834,
509,
357,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
9858,
834,
9993,
3274,
96,
5848,
87,
107,
41,
7656,
61,
121,
3430,
443,
834,
21770,
3274,
96,
2837,
9,
935,
9,
314,
7,
121,
1,
-100,
-100,
... |
Which Losses have a Goal Difference of -16, and less than 8 wins? | CREATE TABLE table_name_83 (losses INTEGER, goal_difference VARCHAR, wins VARCHAR) | SELECT MIN(losses) FROM table_name_83 WHERE goal_difference = -16 AND wins < 8 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
2298,
2260,
3,
21342,
17966,
6,
1288,
834,
26,
99,
11788,
584,
4280,
28027,
6,
9204,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
3144,
226... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
2298,
2260,
61,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
1288,
834,
26,
99,
11788,
3274,
3,
10892,
3430,
9204,
3,
2,
505,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who is the home captain of the match that resulted [[|]] by 151 runs? | CREATE TABLE table_name_70 (home_captain VARCHAR, result VARCHAR) | SELECT home_captain FROM table_name_70 WHERE result = "[[|]] by 151 runs" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
5515,
834,
4010,
17,
9,
77,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
234,
14268,
13,
8,
1588,
24,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
4010,
17,
9,
77,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
741,
3274,
96,
6306,
6306,
9175,
908,
908,
57,
3,
26578,
3154,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How yes votes were there for measure 4? | CREATE TABLE table_256286_60 (yes_votes INTEGER, meas_num VARCHAR) | SELECT MAX(yes_votes) FROM table_256286_60 WHERE meas_num = 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
4056,
3840,
834,
3328,
41,
10070,
834,
1621,
1422,
3,
21342,
17966,
6,
140,
9,
7,
834,
5525,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
4273,
11839,
130,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
10070,
834,
1621,
1422,
61,
21680,
953,
834,
1828,
4056,
3840,
834,
3328,
549,
17444,
427,
140,
9,
7,
834,
5525,
3274,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What most recent year had North Melbourne as a team and Hamish Mcintosh as a player? | CREATE TABLE table_name_63 (
year INTEGER,
team VARCHAR,
player VARCHAR
) | SELECT MAX(year) FROM table_name_63 WHERE team = "north melbourne" AND player = "hamish mcintosh" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
215,
3,
21342,
17966,
6,
372,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
167,
1100,
215,
141,
1117,
9396,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
1201,
61,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
372,
3274,
96,
29,
127,
189,
3,
2341,
26255,
121,
3430,
1959,
3274,
96,
1483,
1273,
3,
51,
75,
77,
235,
7,
107,
121,
1,
-100,
-100,
-100... |
Return a pie chart showing the minimum room count of apartments in different type. | CREATE TABLE Apartment_Bookings (
apt_booking_id INTEGER,
apt_id INTEGER,
guest_id INTEGER,
booking_status_code CHAR(15),
booking_start_date DATETIME,
booking_end_date DATETIME
)
CREATE TABLE View_Unit_Status (
apt_id INTEGER,
apt_booking_id INTEGER,
status_date DATETIME,
availa... | SELECT apt_type_code, MIN(room_count) FROM Apartments GROUP BY apt_type_code | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15970,
834,
13355,
53,
7,
41,
3,
6789,
834,
2567,
53,
834,
23,
26,
3,
21342,
17966,
6,
3,
6789,
834,
23,
26,
3,
21342,
17966,
6,
3886,
834,
23,
26,
3,
21342,
17966,
6,
5038,
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,
6789,
834,
6137,
834,
4978,
6,
3,
17684,
599,
3082,
834,
13362,
61,
21680,
15970,
7,
350,
4630,
6880,
272,
476,
3,
6789,
834,
6137,
834,
4978,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
provide the number of patients whose diagnosis short title is atrial fibrillation and lab test name is prostate specific antigen. | 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
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.short_title = "Atrial fibrillation" AND lab.label = "Prostate Specific Antigen" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
What is the average lane with Netherlands Antilles Nationality? | CREATE TABLE table_name_37 (lane INTEGER, nationality VARCHAR) | SELECT AVG(lane) FROM table_name_37 WHERE nationality = "netherlands antilles" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
8102,
3,
21342,
17966,
6,
1157,
485,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
3,
8102,
28,
12023,
9141,
11348,
868,
485,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
8102,
61,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
1157,
485,
3274,
96,
29,
16764,
6347,
3,
288,
11348,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Game has a Record of 4–2–1, and Points larger than 9? | CREATE TABLE table_name_19 (game INTEGER, record VARCHAR, points VARCHAR) | SELECT SUM(game) FROM table_name_19 WHERE record = "4–2–1" AND points > 9 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
7261,
3,
21342,
17966,
6,
1368,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
4435,
65,
3,
9,
11392,
13,
314,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
7261,
61,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
1368,
3274,
96,
591,
104,
357,
104,
536,
121,
3430,
979,
2490,
668,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is every candidate for the Cardiff Central constituency? | CREATE TABLE table_25818630_1 (
candidate VARCHAR,
constituency VARCHAR
) | SELECT candidate FROM table_25818630_1 WHERE constituency = "Cardiff Central" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
4959,
3840,
1458,
834,
536,
41,
4775,
584,
4280,
28027,
6,
6439,
4392,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
334,
4775,
21,
8,
26911,
2808,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4775,
21680,
953,
834,
1828,
4959,
3840,
1458,
834,
536,
549,
17444,
427,
6439,
4392,
3274,
96,
6936,
26,
5982,
2808,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
A bar chart for listing the number of the name of technicians whose team is not 'NYY', show x-axis in descending order please. | CREATE TABLE machine (
Machine_ID int,
Making_Year int,
Class text,
Team text,
Machine_series text,
value_points real,
quality_rank int
)
CREATE TABLE repair (
repair_ID int,
name text,
Launch_Date text,
Notes text
)
CREATE TABLE repair_assignment (
technician_id int,
... | SELECT Name, COUNT(Name) FROM technician WHERE Team <> "NYY" GROUP BY Name ORDER BY Name DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1437,
41,
5879,
834,
4309,
16,
17,
6,
9918,
834,
476,
2741,
16,
17,
6,
4501,
1499,
6,
2271,
1499,
6,
5879,
834,
10833,
7,
1499,
6,
701,
834,
2700,
7,
490,
6,
463,
834,
6254,
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,
5570,
6,
2847,
17161,
599,
23954,
61,
21680,
17730,
549,
17444,
427,
2271,
3,
2,
3155,
96,
12056,
476,
121,
350,
4630,
6880,
272,
476,
5570,
4674,
11300,
272,
476,
5570,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
... |
Who was the broadcaster in 2003? | CREATE TABLE table_14643 (
"Year" text,
"Title" text,
"Role" text,
"Episodes" text,
"Broadcaster" text
) | SELECT "Broadcaster" FROM table_14643 WHERE "Year" = '2003' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24300,
4906,
41,
96,
476,
2741,
121,
1499,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
448,
32,
109,
121,
1499,
6,
96,
427,
102,
159,
32,
1395,
121,
1499,
6,
96,
279,
8635,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
279,
8635,
25327,
121,
21680,
953,
834,
24300,
4906,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
23948,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the player from the United States, with a total larger than 145? | CREATE TABLE table_13576 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" real
) | SELECT "Player" FROM table_13576 WHERE "Country" = 'united states' AND "Total" > '145' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
536,
2469,
3959,
41,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
476,
2741,
599,
7,
61,
751,
121,
1499,
6,
96,
3696,
1947,
121,
490,
6,
96,
3696,
260... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15800,
49,
121,
21680,
953,
834,
536,
2469,
3959,
549,
17444,
427,
96,
10628,
651,
121,
3274,
3,
31,
15129,
15,
26,
2315,
31,
3430,
96,
3696,
1947,
121,
2490,
3,
31,
20987,
31,
1,
-100,
-100,
-100,
-100,
-100,... |
How many viewers did Episode 5 have? | CREATE TABLE table_17872 (
"No." real,
"Episode" text,
"Writer" text,
"Director" text,
"Viewers(millions)" text,
"Original airdate" text
) | SELECT "Viewers(millions)" FROM table_17872 WHERE "Episode" = 'Episode 5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27640,
5865,
41,
96,
4168,
535,
490,
6,
96,
427,
102,
159,
32,
221,
121,
1499,
6,
96,
24965,
49,
121,
1499,
6,
96,
23620,
127,
121,
1499,
6,
96,
15270,
277,
599,
17030,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15270,
277,
599,
17030,
7,
61,
121,
21680,
953,
834,
27640,
5865,
549,
17444,
427,
96,
427,
102,
159,
32,
221,
121,
3274,
3,
31,
427,
102,
159,
32,
221,
305,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the opponent in the final of the tournament on May 22, 2006? | CREATE TABLE table_name_88 (opponent_in_final VARCHAR, date VARCHAR) | SELECT opponent_in_final FROM table_name_88 WHERE date = "may 22, 2006" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
32,
102,
9977,
834,
77,
834,
12406,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
15264,
16,
8,
804,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15264,
834,
77,
834,
12406,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
833,
3274,
96,
13726,
12889,
3581,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What player is from Fiji? | CREATE TABLE table_43219 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" text,
"Finish" text
) | SELECT "Player" FROM table_43219 WHERE "Country" = 'fiji' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2668,
2294,
41,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
476,
2741,
599,
7,
61,
751,
121,
1499,
6,
96,
3696,
1947,
121,
490,
6,
96,
3696,
260... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15800,
49,
121,
21680,
953,
834,
591,
2668,
2294,
549,
17444,
427,
96,
10628,
651,
121,
3274,
3,
31,
89,
17279,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Show the number of documents created in each day and bin document date by year interval and group by document type description with a group line chart, I want to rank x axis in descending order. | CREATE TABLE Documents (
Document_ID INTEGER,
Document_Type_Code CHAR(15),
Project_ID INTEGER,
Document_Date DATETIME,
Document_Name VARCHAR(255),
Document_Description VARCHAR(255),
Other_Details VARCHAR(255)
)
CREATE TABLE Ref_Budget_Codes (
Budget_Type_Code CHAR(15),
Budget_Type_D... | SELECT Document_Date, COUNT(Document_Date) FROM Ref_Document_Types AS T1 JOIN Documents AS T2 ON T1.Document_Type_Code = T2.Document_Type_Code GROUP BY Document_Type_Description ORDER BY Document_Date DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11167,
7,
41,
11167,
834,
4309,
3,
21342,
17966,
6,
11167,
834,
25160,
834,
22737,
3,
28027,
599,
1808,
201,
2786,
834,
4309,
3,
21342,
17966,
6,
11167,
834,
308,
342,
309,
6048,
382,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11167,
834,
308,
342,
6,
2847,
17161,
599,
4135,
1071,
297,
834,
308,
342,
61,
21680,
419,
89,
834,
4135,
1071,
297,
834,
25160,
7,
6157,
332,
536,
3,
15355,
3162,
11167,
7,
6157,
332,
357,
9191,
332,
5411,
4135,
... |
What is every entry for Scott when the date is (15.12)? | CREATE TABLE table_1818471_1 (scott VARCHAR, date VARCHAR) | SELECT scott FROM table_1818471_1 WHERE date = "(15.12)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
25987,
4450,
834,
536,
41,
7,
10405,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
334,
1764,
21,
4972,
116,
8,
833,
19,
172... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
7,
10405,
21680,
953,
834,
2606,
25987,
4450,
834,
536,
549,
17444,
427,
833,
3274,
96,
599,
1808,
5,
2122,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the opponent on May 25, 2007? | CREATE TABLE table_8166 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Record" text,
"Game site" text
) | SELECT "Opponent" FROM table_8166 WHERE "Date" = 'may 25, 2007' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4959,
3539,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
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,
96,
667,
102,
9977,
121,
21680,
953,
834,
4959,
3539,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
13726,
14105,
4101,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which type of record has result/games of 9 games (57,144 avg.) | CREATE TABLE table_21436373_6 (type_of_record VARCHAR, result_games VARCHAR) | SELECT type_of_record FROM table_21436373_6 WHERE result_games = "9 games (57,144 avg.)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
4906,
3891,
4552,
834,
948,
41,
6137,
834,
858,
834,
60,
7621,
584,
4280,
28027,
6,
741,
834,
7261,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
686,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
686,
834,
858,
834,
60,
7621,
21680,
953,
834,
2658,
4906,
3891,
4552,
834,
948,
549,
17444,
427,
741,
834,
7261,
7,
3274,
96,
1298,
1031,
41,
3436,
6,
20885,
3,
9,
208,
122,
5,
61,
121,
1,
-100,
-100,
-100,
-10... |
what is the number of patients whose ethnicity is american indian/alaska native and year of birth is less than 1879? | 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,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "AMERICAN INDIAN/ALASKA NATIVE" AND demographic.dob_year < "1879" | [
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,
549,
17444,
427,
14798,
5,
15,
189,
2532,
485,
3274,
96,
17683,
5593,
11425,
3,
13885,
21758,
87,
23634,
134,
12048,
3,
25271... |
Draw a pie chart about the proportion of Sex and the sum of Weight. | CREATE TABLE candidate (
Candidate_ID int,
People_ID int,
Poll_Source text,
Date text,
Support_rate real,
Consider_rate real,
Oppose_rate real,
Unsure_rate real
)
CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height real,
Weight re... | SELECT Sex, SUM(Weight) FROM people GROUP BY Sex | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4775,
41,
25833,
17,
15,
834,
4309,
16,
17,
6,
2449,
834,
4309,
16,
17,
6,
14457,
834,
23799,
1499,
6,
7678,
1499,
6,
4224,
834,
2206,
490,
6,
9151,
834,
2206,
490,
6,
4495,
2748,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
679,
226,
6,
180,
6122,
599,
1326,
2632,
61,
21680,
151,
350,
4630,
6880,
272,
476,
679,
226,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest rank for nations with more than 3 bronze medals and more than 36 total medals? | CREATE TABLE table_name_21 (
rank INTEGER,
bronze VARCHAR,
total VARCHAR
) | SELECT MIN(rank) FROM table_name_21 WHERE bronze > 3 AND total > 36 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
11003,
3,
21342,
17966,
6,
13467,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
11003,
21,
9352,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
6254,
61,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
13467,
2490,
220,
3430,
792,
2490,
4475,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the y = 2011 when the expression is month = floor ((d + e + 114) / 31)? | CREATE TABLE table_214479_8 (
y_ VARCHAR,
_2011 VARCHAR,
expression VARCHAR,
month VARCHAR,
d VARCHAR,
e VARCHAR
) | SELECT y_ = _2011 FROM table_214479_8 WHERE expression = month = FLOOR((d + e + 114) / 31) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
20885,
4440,
834,
927,
41,
3,
63,
834,
584,
4280,
28027,
6,
3,
834,
13907,
584,
4280,
28027,
6,
3893,
584,
4280,
28027,
6,
847,
584,
4280,
28027,
6,
3,
26,
584,
4280... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
63,
834,
3274,
3,
834,
13907,
21680,
953,
834,
357,
20885,
4440,
834,
927,
549,
17444,
427,
3893,
3274,
847,
3274,
377,
5017,
2990,
599,
599,
26,
1768,
3,
15,
1768,
850,
7256,
3,
87,
2664,
61,
1,
-100,
-100,
... |
What percentage of voters voted for a third party in the county that had 802 third party voters? | CREATE TABLE table_23639 (
"County" text,
"Obama %" text,
"Obama #" real,
"McCain %" text,
"McCain #" real,
"Others %" text,
"Others #" real
) | SELECT "Others %" FROM table_23639 WHERE "Others #" = '802' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3420,
3288,
41,
96,
10628,
63,
121,
1499,
6,
96,
667,
115,
265,
9,
3,
1454,
121,
1499,
6,
96,
667,
115,
265,
9,
1713,
121,
490,
6,
96,
329,
75,
254,
9,
77,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
189,
277,
3,
1454,
121,
21680,
953,
834,
357,
3420,
3288,
549,
17444,
427,
96,
667,
189,
277,
1713,
121,
3274,
3,
31,
2079,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the Wheelbase for Model 97300? | CREATE TABLE table_20866024_4 (wheelbase__mm_inch_ VARCHAR, model_designation VARCHAR) | SELECT wheelbase__mm_inch_ FROM table_20866024_4 WHERE model_designation = "97300" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23946,
27720,
2266,
834,
591,
41,
14074,
10925,
834,
834,
635,
834,
4976,
834,
584,
4280,
28027,
6,
825,
834,
9124,
257,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5094,
10925,
834,
834,
635,
834,
4976,
834,
21680,
953,
834,
23946,
27720,
2266,
834,
591,
549,
17444,
427,
825,
834,
9124,
257,
3274,
96,
4327,
5426,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the smith with a 16 ashmolean? | CREATE TABLE table_name_62 (smith VARCHAR, ashmolean VARCHAR) | SELECT smith FROM table_name_62 WHERE ashmolean = 16 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
16331,
584,
4280,
28027,
6,
3,
3198,
4641,
15,
152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
16331,
28,
3,
9,
898,
3,
3198... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
16331,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
3,
3198,
4641,
15,
152,
3274,
898,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What match number has a ground of H and the opponent Chelsea under 18s? | CREATE TABLE table_name_37 (match INTEGER, ground VARCHAR, opponent VARCHAR) | SELECT AVG(match) FROM table_name_37 WHERE ground = "h" AND opponent = "chelsea under 18s" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
19515,
3,
21342,
17966,
6,
1591,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1588,
381,
65,
3,
9,
1591,
13,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
19515,
61,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
1591,
3274,
96,
107,
121,
3430,
15264,
3274,
96,
8738,
7,
15,
9,
365,
507,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
count the number of patients whose admission type is emergency and diagnoses long title is awaiting organ transplant status? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND diagnoses.long_title = "Awaiting organ transplant status" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
papers about WordNet and Dbpedia | CREATE TABLE paperkeyphrase (
paperid int,
keyphraseid int
)
CREATE TABLE paperfield (
fieldid int,
paperid int
)
CREATE TABLE venue (
venueid int,
venuename varchar
)
CREATE TABLE journal (
journalid int,
journalname varchar
)
CREATE TABLE cite (
citingpaperid int,
citedpape... | SELECT DISTINCT paper.paperid FROM dataset, paper, paperdataset WHERE dataset.datasetname IN ('WordNet', 'Dbpedia') AND paperdataset.datasetid = dataset.datasetid AND paper.paperid = paperdataset.paperid GROUP BY paper.paperid | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1040,
4397,
27111,
41,
1040,
23,
26,
16,
17,
6,
843,
27111,
23,
26,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1040,
1846,
41,
1057,
23,
26,
16,
17,
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,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
1040,
5,
19587,
23,
26,
21680,
17953,
6,
1040,
6,
1040,
6757,
2244,
549,
17444,
427,
17953,
5,
6757,
2244,
4350,
3388,
41,
31,
518,
127,
26,
9688,
31,
6,
3,
31,
308,
115,
24477,
31,
61,
34... |
Which date has a Goal of deacon 4/4, withers 1 dg? | CREATE TABLE table_name_32 (date VARCHAR, goals VARCHAR) | SELECT date FROM table_name_32 WHERE goals = "deacon 4/4, withers 1 dg" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
5522,
584,
4280,
28027,
6,
1766,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
833,
65,
3,
9,
17916,
13,
20,
9,
1018,
314,
13572,
6,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
1766,
3274,
96,
221,
9,
1018,
314,
13572,
6,
28,
277,
209,
3,
26,
122,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the venue where 153 runs were scored? | CREATE TABLE table_name_40 (venue VARCHAR, runs VARCHAR) | SELECT venue FROM table_name_40 WHERE runs = "153" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
15098,
584,
4280,
28027,
6,
3154,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
5669,
213,
3,
27025,
3154,
130,
5799,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5669,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
3154,
3274,
96,
27025,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What's the model designation of the model with GVW of 2828/2.78 kg/ton and axle ratio of 9/47? | CREATE TABLE table_23978 (
"Model Type" text,
"Model Designation" text,
"Engine" text,
"Wheelbase (mm/inch)" text,
"GVW (kg/ton)" text,
"Axle Ratio" text
) | SELECT "Model Designation" FROM table_23978 WHERE "GVW (kg/ton)" = '2828/2.78' AND "Axle Ratio" = '9/47' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
21441,
41,
96,
24663,
6632,
121,
1499,
6,
96,
24663,
1642,
257,
121,
1499,
6,
96,
31477,
121,
1499,
6,
96,
518,
88,
15,
40,
10925,
41,
635,
87,
4976,
61,
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,
24663,
1642,
257,
121,
21680,
953,
834,
2773,
21441,
549,
17444,
427,
96,
24403,
518,
41,
8711,
87,
17,
106,
61,
121,
3274,
3,
31,
2577,
2577,
13311,
5,
3940,
31,
3430,
96,
188,
226,
109,
6455,
23,
32,
121,
... |
number of games in the match against dominika cibulkova ? | CREATE TABLE table_204_194 (
id number,
"outcome" text,
"edition" number,
"round" text,
"opponent team" text,
"surface" text,
"opponent" text,
"score" text
) | SELECT "score" FROM table_204_194 WHERE "opponent" = 'dominika cibulkova' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
2294,
591,
41,
3,
23,
26,
381,
6,
96,
670,
287,
15,
121,
1499,
6,
96,
15,
10569,
121,
381,
6,
96,
7775,
121,
1499,
6,
96,
32,
102,
9977,
372,
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,
7,
9022,
121,
21680,
953,
834,
26363,
834,
2294,
591,
549,
17444,
427,
96,
32,
102,
9977,
121,
3274,
3,
31,
5012,
77,
5561,
3,
75,
23,
6724,
9789,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
tell me the number of horses with a 10-0 handicap . | CREATE TABLE table_204_561 (
id number,
"fence" number,
"name" text,
"jockey" text,
"age" number,
"handicap (st-lb)" text,
"starting price" text,
"fate" text
) | SELECT COUNT(*) FROM table_204_561 WHERE "handicap (st-lb)" = '10-0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4834,
536,
41,
3,
23,
26,
381,
6,
96,
89,
1433,
121,
381,
6,
96,
4350,
121,
1499,
6,
96,
1927,
75,
4397,
121,
1499,
6,
96,
545,
121,
381,
6,
96,
2894,
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,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
26363,
834,
4834,
536,
549,
17444,
427,
96,
2894,
23,
4010,
41,
7,
17,
18,
40,
115,
61,
121,
3274,
3,
31,
536,
18629,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the start date with party of pd | CREATE TABLE table_name_28 (start_date VARCHAR, party VARCHAR) | SELECT start_date FROM table_name_28 WHERE party = "pd" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
10208,
834,
5522,
584,
4280,
28027,
6,
1088,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
456,
833,
28,
1088,
13,
3,
102,
26,
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,
456,
834,
5522,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
1088,
3274,
96,
102,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.