NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
How many storms occured in each region Visualize by bar chart, and show bars from low to high order. | CREATE TABLE region (
Region_id int,
Region_code text,
Region_name text
)
CREATE TABLE storm (
Storm_ID int,
Name text,
Dates_active text,
Max_speed int,
Damage_millions_USD real,
Number_Deaths int
)
CREATE TABLE affected_region (
Region_id int,
Storm_ID int,
Number_cit... | SELECT Region_name, COUNT(*) FROM region AS T1 JOIN affected_region AS T2 ON T1.Region_id = T2.Region_id GROUP BY T1.Region_id ORDER BY Region_name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1719,
41,
6163,
834,
23,
26,
16,
17,
6,
6163,
834,
4978,
1499,
6,
6163,
834,
4350,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
5536,
41,
16133,
834,
4309,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
6163,
834,
4350,
6,
2847,
17161,
599,
1935,
61,
21680,
1719,
6157,
332,
536,
3,
15355,
3162,
4161,
834,
18145,
6157,
332,
357,
9191,
332,
5411,
17748,
23,
106,
834,
23,
26,
3274,
332,
4416,
17748,
23,
106,
834,
23,
... |
What was the score when Calgary was visiting team and Niittymaki had the decision? | CREATE TABLE table_name_78 (
score VARCHAR,
decision VARCHAR,
visitor VARCHAR
) | SELECT score FROM table_name_78 WHERE decision = "niittymaki" AND visitor = "calgary" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
2604,
584,
4280,
28027,
6,
1357,
584,
4280,
28027,
6,
7019,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
116,
20948,
47,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
1357,
3274,
96,
29,
23,
17132,
51,
11259,
121,
3430,
7019,
3274,
96,
1489,
1478,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many games were played at the prudential center ? | CREATE TABLE table_203_410 (
id number,
"game" number,
"date" text,
"opponent" text,
"location" text,
"score" text,
"attendance" number,
"record" text
) | SELECT COUNT("game") FROM table_203_410 WHERE "location" = 'prudential center' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
24175,
41,
3,
23,
26,
381,
6,
96,
7261,
121,
381,
6,
96,
5522,
121,
1499,
6,
96,
32,
102,
9977,
121,
1499,
6,
96,
14836,
121,
1499,
6,
96,
7,
9022,
121,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
7261,
8512,
21680,
953,
834,
23330,
834,
24175,
549,
17444,
427,
96,
14836,
121,
3274,
3,
31,
12129,
26,
7220,
1530,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the highest goals for youth system and ita | CREATE TABLE table_name_7 (goals INTEGER, nat VARCHAR, transfer_fee VARCHAR) | SELECT MAX(goals) FROM table_name_7 WHERE nat = "ita" AND transfer_fee = "youth system" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
839,
5405,
3,
21342,
17966,
6,
3,
29,
144,
584,
4280,
28027,
6,
2025,
834,
89,
15,
15,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
839,
5405,
61,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
3,
29,
144,
3274,
96,
155,
9,
121,
3430,
2025,
834,
89,
15,
15,
3274,
96,
4188,
189,
358,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the surface for 20 march 2007 | CREATE TABLE table_71976 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent in the final" text,
"Score" text
) | SELECT "Surface" FROM table_71976 WHERE "Date" = '20 march 2007' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2294,
3959,
41,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
667,
102,
9977,
16,
8,
804,
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,
134,
450,
4861,
121,
21680,
953,
834,
940,
2294,
3959,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
1755,
10556,
4101,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
how many patients whose diagnoses icd9 code is 2767 and drug route is pr? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
C... | SELECT 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.icd9_code = "2767" AND prescriptions.route = "PR" | [
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,
3... |
What is Score, when Player is 'Vijay Singh'? | CREATE TABLE table_name_81 (
score VARCHAR,
player VARCHAR
) | SELECT score FROM table_name_81 WHERE player = "vijay singh" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4959,
41,
2604,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
17763,
6,
116,
12387,
19,
3,
31,
553,
23,
1191,
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,
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,
4959,
549,
17444,
427,
1959,
3274,
96,
2099,
1191,
63,
10159,
107,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many entrepreneurs correspond to each investor?, show from high to low by the bars please. | CREATE TABLE entrepreneur (
Entrepreneur_ID int,
People_ID int,
Company text,
Money_Requested real,
Investor text
)
CREATE TABLE people (
People_ID int,
Name text,
Height real,
Weight real,
Date_of_Birth text
) | SELECT Investor, COUNT(*) FROM entrepreneur GROUP BY Investor ORDER BY Investor DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
12290,
41,
26696,
834,
4309,
16,
17,
6,
2449,
834,
4309,
16,
17,
6,
1958,
1499,
6,
8833,
834,
1649,
835,
6265,
490,
6,
16873,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
604... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
16873,
6,
2847,
17161,
599,
1935,
61,
21680,
3,
12290,
350,
4630,
6880,
272,
476,
16873,
4674,
11300,
272,
476,
16873,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the maximum age of patients that survived in or above the age 72? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,... | SELECT MAX(demographic.age) FROM demographic WHERE demographic.expire_flag = "0" AND demographic.age >= "72" | [
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,
4800,
4,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
994,
2388,
15,
834,
89,
5430,
3274,
96,
632,
121,
3430,
14798,
5,
545,
2490,
2423,
96,
5865,
121,
1,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the total number of air dates for 05 cycle | CREATE TABLE table_21176 (
"Cycle no." text,
"Air dates" text,
"Reward" text,
"Immunity" text,
"Eliminated" text,
"Vote" text,
"Finish" text
) | SELECT COUNT("Air dates") FROM table_21176 WHERE "Cycle no." = '05' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
26782,
41,
96,
254,
63,
2482,
150,
535,
1499,
6,
96,
20162,
5128,
121,
1499,
6,
96,
1649,
2239,
121,
1499,
6,
96,
196,
635,
202,
485,
121,
1499,
6,
96,
427,
4941,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20162,
5128,
8512,
21680,
953,
834,
2658,
26782,
549,
17444,
427,
96,
254,
63,
2482,
150,
535,
3274,
3,
31,
3076,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which competition features the 1st round of Club Union Luxembourg? | CREATE TABLE table_name_58 (competition VARCHAR, round VARCHAR, club VARCHAR) | SELECT competition FROM table_name_58 WHERE round = "1st round" AND club = "union luxembourg" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
287,
4995,
4749,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
6,
1886,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
2259,
753,
8,
209,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2259,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
1751,
3274,
96,
536,
7,
17,
1751,
121,
3430,
1886,
3274,
96,
16598,
21558,
51,
21054,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
provide the number of patients whose insurance is government and lab test name is thyroid stimulating hormone? | 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 lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.insurance = "Government" AND lab.label = "Thyroid Stimulating Hormone" | [
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,... |
What rank did actor Aaron Pedersen's character have? | CREATE TABLE table_4556 (
"Actor/actress" text,
"Character" text,
"Rank" text,
"Tenure" text,
"Episodes" text
) | SELECT "Rank" FROM table_4556 WHERE "Actor/actress" = 'aaron pedersen' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
4834,
41,
96,
188,
5317,
87,
2708,
9377,
121,
1499,
6,
96,
18947,
2708,
49,
121,
1499,
6,
96,
22557,
121,
1499,
6,
96,
382,
35,
1462,
121,
1499,
6,
96,
427,
102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22557,
121,
21680,
953,
834,
2128,
4834,
549,
17444,
427,
96,
188,
5317,
87,
2708,
9377,
121,
3274,
3,
31,
9,
291,
106,
158,
588,
7,
35,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many patients are with white Russian ethnicity and admission year before 2154? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "WHITE - RUSSIAN" AND demographic.admityear < "2154" | [
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,
549,
17444,
427,
14798,
5,
15,
189,
2532,
485,
3274,
96,
15313,
14871,
3,
18,
3,
8503,
4256,
21758,
121,
3430,
14798,
5,
20... |
For a total of 1 and the sport of softball what were the years? | CREATE TABLE table_name_93 (years VARCHAR, total VARCHAR, sport VARCHAR) | SELECT years FROM table_name_93 WHERE total = "1" AND sport = "softball" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
1201,
7,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
6,
2600,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
242,
3,
9,
792,
13,
209,
11,
8,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
203,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
792,
3274,
96,
536,
121,
3430,
2600,
3274,
96,
12369,
3184,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Return a bar chart about the distribution of Time and meter_100 , and I want to rank in asc by the x axis. | CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_40... | SELECT Time, meter_100 FROM swimmer ORDER BY Time | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1368,
41,
4699,
16,
17,
6,
3,
20119,
1499,
6,
27813,
935,
834,
4309,
16,
17,
6,
8042,
834,
4309,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
605,
41,
4699,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2900,
6,
3,
4401,
834,
2915,
21680,
27424,
4674,
11300,
272,
476,
2900,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the point average for the game that has FGM-FGA of 11-28 and a number smaller than 7? | CREATE TABLE table_name_48 (points INTEGER, fgm___fga VARCHAR, number VARCHAR) | SELECT AVG(points) FROM table_name_48 WHERE fgm___fga = "11-28" AND number < 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
2700,
7,
3,
21342,
17966,
6,
3,
89,
122,
51,
834,
834,
834,
89,
122,
9,
584,
4280,
28027,
6,
381,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
3,
89,
122,
51,
834,
834,
834,
89,
122,
9,
3274,
96,
2596,
18,
2577,
121,
3430,
381,
3,
2,
489,
1,
-100,
-100,
-100,
-100,
-100,
... |
Compare the number of items in each color scheme using a bar chart, could you rank Y-axis from low to high order? | CREATE TABLE photos (
id int,
camera_lens_id int,
mountain_id int,
color text,
name text
)
CREATE TABLE camera_lens (
id int,
brand text,
name text,
focal_length_mm real,
max_aperture real
)
CREATE TABLE mountain (
id int,
name text,
Height real,
Prominence real... | SELECT color, COUNT(color) FROM photos GROUP BY color ORDER BY COUNT(color) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1302,
41,
3,
23,
26,
16,
17,
6,
1861,
834,
40,
35,
7,
834,
23,
26,
16,
17,
6,
4180,
834,
23,
26,
16,
17,
6,
945,
1499,
6,
564,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
945,
6,
2847,
17161,
599,
9910,
61,
21680,
1302,
350,
4630,
6880,
272,
476,
945,
4674,
11300,
272,
476,
2847,
17161,
599,
9910,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Tell me the sum of interview for evening gown more than 8.37 and average of 8.363 | CREATE TABLE table_name_57 (interview INTEGER, average VARCHAR, evening_gown VARCHAR) | SELECT SUM(interview) FROM table_name_57 WHERE average = 8.363 AND evening_gown > 8.37 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
3870,
4576,
3,
21342,
17966,
6,
1348,
584,
4280,
28027,
6,
2272,
834,
122,
9197,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
4505,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
3870,
4576,
61,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
1348,
3274,
4848,
3420,
519,
3430,
2272,
834,
122,
9197,
2490,
4848,
4118,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
If the place is smaller than 8 and they played more than 18, what is the total number of goals conceded? | CREATE TABLE table_name_54 (goals_conceded VARCHAR, place VARCHAR, played VARCHAR) | SELECT COUNT(goals_conceded) FROM table_name_54 WHERE place < 8 AND played > 18 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
839,
5405,
834,
11620,
221,
26,
584,
4280,
28027,
6,
286,
584,
4280,
28027,
6,
1944,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
156,
8,
286,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
839,
5405,
834,
11620,
221,
26,
61,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
286,
3,
2,
505,
3430,
1944,
2490,
507,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What date is the Portuguese Grand Prix? | CREATE TABLE table_name_30 (
date VARCHAR,
grand_prix VARCHAR
) | SELECT date FROM table_name_30 WHERE grand_prix = "portuguese grand prix" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
833,
584,
4280,
28027,
6,
1907,
834,
2246,
226,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
833,
19,
8,
21076,
2698,
12942,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
1907,
834,
2246,
226,
3274,
96,
1493,
76,
15991,
15,
1907,
3407,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Give the number of patients whose primary disease is overdose and died in or before year 2168. | 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.diagnosis = "OVERDOSE" AND demographic.dod_year <= "2168.0" | [
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,
25930,
4844,
159,
3274,
96,
23288,
308,
22177,
121,
3430,
14798,
5,
26,
32,
26,
834,
1201,
3,
2,... |
count the number of patients whose death status is 1 and diagnoses icd9 code is 2864. | 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 WHERE demographic.expire_flag = "1" AND diagnoses.icd9_code = "2864" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
Name the least track with song of little sister | CREATE TABLE table_name_67 (track INTEGER, song_title VARCHAR) | SELECT MIN(track) FROM table_name_67 WHERE song_title = "little sister" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
11991,
3,
21342,
17966,
6,
2324,
834,
21869,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
709,
1463,
28,
2324,
13,
385,
4806,
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,
3,
17684,
599,
11991,
61,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
2324,
834,
21869,
3274,
96,
26192,
4806,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which date did South Melbourne play as the away team? | CREATE TABLE table_name_74 (
date VARCHAR,
away_team VARCHAR
) | SELECT date FROM table_name_74 WHERE away_team = "south melbourne" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
833,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
833,
410,
1013,
9396,
577,
38,
8,
550,
372,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
550,
834,
11650,
3274,
96,
7,
670,
107,
3,
2341,
26255,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the score for Spain? | CREATE TABLE table_name_28 (
score VARCHAR,
country VARCHAR
) | SELECT score FROM table_name_28 WHERE country = "spain" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
2604,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
21,
6436,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
684,
3274,
96,
14147,
77,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the minimum total with kerry % being 16.71% | CREATE TABLE table_829 (
"County" text,
"Bush #" real,
"Bush %" text,
"Kerry #" real,
"Kerry %" text,
"Others #" real,
"Others %" text,
"Total" real
) | SELECT MIN("Total") FROM table_829 WHERE "Kerry %" = '16.71%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
927,
3166,
41,
96,
10628,
63,
121,
1499,
6,
96,
279,
8489,
1713,
121,
490,
6,
96,
279,
8489,
3,
1454,
121,
1499,
6,
96,
439,
49,
651,
1713,
121,
490,
6,
96,
439,
49,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
3696,
1947,
8512,
21680,
953,
834,
927,
3166,
549,
17444,
427,
96,
439,
49,
651,
3,
1454,
121,
3274,
3,
31,
536,
29045,
4704,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
give me the number of patients whose gender is m and item id is 51146? | 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 lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.gender = "M" AND lab.itemid = "51146" | [
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 patients whose year of birth is less than 2074 and drug name is oxycodone-acetaminophen? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.dob_year < "2074" AND prescriptions.drug = "Oxycodone-Acetaminophen" | [
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,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
List roles that have more than one employee. List the role description and number of employees. | CREATE TABLE Employees (
Id VARCHAR
)
CREATE TABLE ROLES (
Id VARCHAR
) | SELECT ROLES.role_description, COUNT(Employees.employee_id) FROM ROLES JOIN Employees ON Employees.role_code = ROLES.role_code GROUP BY Employees.role_code HAVING COUNT(Employees.employee_id) > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15871,
7,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
10264,
12335,
41,
27,
26,
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,
0,
0,
0... | [
3,
23143,
14196,
10264,
12335,
5,
3491,
15,
834,
221,
11830,
6,
2847,
17161,
599,
427,
51,
7379,
63,
15,
15,
7,
5,
15,
51,
7379,
63,
15,
15,
834,
23,
26,
61,
21680,
10264,
12335,
3,
15355,
3162,
15871,
7,
9191,
15871,
7,
5,
34... |
Tell me the total number of top 25 for wins less than 1 and cuts made of 22 | CREATE TABLE table_74502 (
"Tournament" text,
"Wins" real,
"Top-5" real,
"Top-10" real,
"Top-25" real,
"Events" real,
"Cuts made" real
) | SELECT COUNT("Top-25") FROM table_74502 WHERE "Cuts made" = '22' AND "Wins" < '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
1752,
357,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
18455,
7,
121,
490,
6,
96,
22481,
18,
17395,
490,
6,
96,
22481,
4536,
121,
490,
6,
96,
22481,
14855,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
22481,
14855,
8512,
21680,
953,
834,
4581,
1752,
357,
549,
17444,
427,
96,
15784,
17,
7,
263,
121,
3274,
3,
31,
2884,
31,
3430,
96,
18455,
7,
121,
3,
2,
3,
31,
536,
31,
1,
-100,
-100,
-100... |
Bar graph to show minimal room count from different apt type code, and sort X in asc order. | 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 Guests (
guest_id INTEGER,
gender_code CHAR(1),
guest_first_name VARCHAR(80),
guest_las... | SELECT apt_type_code, MIN(room_count) FROM Apartments GROUP BY apt_type_code ORDER 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,
4674,
11300,
272,
476,
3,
6789,
834,
6137,
834,
4978,
1,
-100,
-100... |
What kind of chassis did a winning car with a Foyt engine have in 1979? | CREATE TABLE table_1405704_1 (chassis VARCHAR, season VARCHAR, engine VARCHAR) | SELECT chassis FROM table_1405704_1 WHERE season = 1979 AND engine = "Foyt" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22012,
3436,
6348,
834,
536,
41,
524,
6500,
7,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
6,
1948,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
773,
13,
22836,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22836,
21680,
953,
834,
22012,
3436,
6348,
834,
536,
549,
17444,
427,
774,
3274,
15393,
3430,
1948,
3274,
96,
371,
32,
63,
17,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the chassis after 1991? | CREATE TABLE table_name_64 (
chassis VARCHAR,
year INTEGER
) | SELECT chassis FROM table_name_64 WHERE year > 1991 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
22836,
584,
4280,
28027,
6,
215,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
22836,
227,
9957,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
22836,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
215,
2490,
9957,
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... |
which region has the most population ? | CREATE TABLE table_201_11 (
id number,
"region" text,
"population" number,
"area" text,
"density" text
) | SELECT "region" FROM table_201_11 ORDER BY "population" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22772,
834,
2596,
41,
3,
23,
26,
381,
6,
96,
18145,
121,
1499,
6,
96,
9791,
7830,
121,
381,
6,
96,
498,
121,
1499,
6,
96,
537,
7,
485,
121,
1499,
3,
61,
3,
32102,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
18145,
121,
21680,
953,
834,
22772,
834,
2596,
4674,
11300,
272,
476,
96,
9791,
7830,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which class has a power output larger than 700 and a class of 48? | CREATE TABLE table_name_75 (class VARCHAR, power_output__kw_ VARCHAR, number_in_class VARCHAR) | SELECT class FROM table_name_75 WHERE power_output__kw_ > 700 AND number_in_class = 48 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
4057,
584,
4280,
28027,
6,
579,
834,
670,
2562,
834,
834,
157,
210,
834,
584,
4280,
28027,
6,
381,
834,
77,
834,
4057,
584,
4280,
28027,
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,
853,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
579,
834,
670,
2562,
834,
834,
157,
210,
834,
2490,
12283,
3430,
381,
834,
77,
834,
4057,
3274,
4678,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the penalty for the gymnast with average above 9.662 and total is more than 9.706? | CREATE TABLE table_name_13 (penalty VARCHAR, average VARCHAR, total VARCHAR) | SELECT penalty FROM table_name_13 WHERE average > 9.662 AND total > 9.706 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
3208,
2920,
63,
584,
4280,
28027,
6,
1348,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
10736,
21,
8,
233... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10736,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
1348,
2490,
5835,
3539,
357,
3430,
792,
2490,
5835,
2518,
948,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the sum of cuts with wins less than 2, top-25 more than 7 and top-10 less than 2 | CREATE TABLE table_name_80 (cuts_made INTEGER, top_10 VARCHAR, wins VARCHAR, top_25 VARCHAR) | SELECT SUM(cuts_made) FROM table_name_80 WHERE wins < 2 AND top_25 > 7 AND top_10 < 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
3044,
7,
834,
4725,
3,
21342,
17966,
6,
420,
834,
1714,
584,
4280,
28027,
6,
9204,
584,
4280,
28027,
6,
420,
834,
1828,
584,
4280,
28027,
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,
180,
6122,
599,
3044,
7,
834,
4725,
61,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
9204,
3,
2,
204,
3430,
420,
834,
1828,
2490,
489,
3430,
420,
834,
1714,
3,
2,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Constituency Number of Total:? | CREATE TABLE table_name_73 (constituency_number VARCHAR, name VARCHAR) | SELECT constituency_number FROM table_name_73 WHERE name = "total:" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
8056,
17,
155,
76,
4392,
834,
5525,
1152,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
22636,
4392,
7720,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6439,
4392,
834,
5525,
1152,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
564,
3274,
96,
235,
1947,
10,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what is the total number of games lost during the month of april ? | CREATE TABLE table_203_534 (
id number,
"week" number,
"date" text,
"opponent" text,
"home/away" text,
"result" text,
"bye" text
) | SELECT COUNT(*) FROM table_203_534 WHERE "result" = 'l' AND "date" = 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
755,
3710,
41,
3,
23,
26,
381,
6,
96,
8041,
121,
381,
6,
96,
5522,
121,
1499,
6,
96,
32,
102,
9977,
121,
1499,
6,
96,
5515,
87,
8006,
121,
1499,
6,
96,
60... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23330,
834,
755,
3710,
549,
17444,
427,
96,
60,
7,
83,
17,
121,
3274,
3,
31,
40,
31,
3430,
96,
5522,
121,
3274,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name who drected the episode written by george tibbles | CREATE TABLE table_26057 (
"Episode #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original airdate" text,
"Production code #" real
) | SELECT "Directed by" FROM table_26057 WHERE "Written by" = 'George Tibbles' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
18365,
3436,
41,
96,
427,
102,
159,
32,
221,
1713,
121,
490,
6,
96,
134,
15,
9,
739,
1713,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23620,
15,
26,
57,
121,
21680,
953,
834,
18365,
3436,
549,
17444,
427,
96,
24965,
324,
57,
121,
3274,
3,
31,
31317,
2262,
7310,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What opponent has a loss of McCaskill (9-11)? | CREATE TABLE table_name_10 (opponent VARCHAR, loss VARCHAR) | SELECT opponent FROM table_name_10 WHERE loss = "mccaskill (9-11)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
32,
102,
9977,
584,
4280,
28027,
6,
1453,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
15264,
65,
3,
9,
1453,
13,
7040,
9,
7,
10824,
14156... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15264,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
1453,
3274,
96,
51,
12464,
7,
10824,
14156,
9169,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
On songs with track numbers smaller than number 17 and catalogues of LSP 2231, who are the writer(s)? | CREATE TABLE table_name_27 (writer_s_ VARCHAR, catalogue VARCHAR, track VARCHAR) | SELECT writer_s_ FROM table_name_27 WHERE catalogue = "lsp 2231" AND track < 17 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
12756,
834,
7,
834,
584,
4280,
28027,
6,
14978,
584,
4280,
28027,
6,
1463,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
461,
3605,
28,
1463,
2302... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4346,
834,
7,
834,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
14978,
3274,
96,
40,
7,
102,
1630,
3341,
121,
3430,
1463,
3,
2,
1003,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the circuit when the date is 16 april? | CREATE TABLE table_45416 (
"Race Title" text,
"Circuit" text,
"City / State" text,
"Date" text,
"Winner" text,
"Team" text
) | SELECT "Circuit" FROM table_45416 WHERE "Date" = '16 april' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
591,
2938,
41,
96,
448,
3302,
11029,
121,
1499,
6,
96,
254,
23,
52,
21560,
121,
1499,
6,
96,
254,
485,
3,
87,
1015,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
254,
23,
52,
21560,
121,
21680,
953,
834,
2128,
591,
2938,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
2938,
3,
9,
2246,
40,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Ethernet port count of the whr-hp-g300n model? | CREATE TABLE table_name_72 (
ethernet_port_count VARCHAR,
model VARCHAR
) | SELECT ethernet_port_count FROM table_name_72 WHERE model = "whr-hp-g300n" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
3,
16764,
1582,
834,
1493,
834,
13362,
584,
4280,
28027,
6,
825,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
21427,
2147,
3476,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
16764,
1582,
834,
1493,
834,
13362,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
825,
3274,
96,
210,
107,
52,
18,
107,
102,
18,
122,
5426,
29,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who many votes did E. Greenberg receive in Morris County? | CREATE TABLE table_17820556_4 (
e_greenberg VARCHAR,
county VARCHAR
) | SELECT COUNT(e_greenberg) FROM table_17820556_4 WHERE county = "Morris" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27640,
23201,
4834,
834,
591,
41,
3,
15,
834,
9423,
2235,
584,
4280,
28027,
6,
5435,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
186,
11839,
410,
262,
5,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
15,
834,
9423,
2235,
61,
21680,
953,
834,
27640,
23201,
4834,
834,
591,
549,
17444,
427,
5435,
3274,
96,
329,
127,
52,
159,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which operating system has a storage (flash) of 128MB? | CREATE TABLE table_name_18 (operating_system_version VARCHAR, storage___flash__ VARCHAR) | SELECT operating_system_version FROM table_name_18 WHERE storage___flash__ = "128mb" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
18140,
1222,
834,
3734,
834,
8674,
584,
4280,
28027,
6,
1606,
834,
834,
834,
89,
8058,
834,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
407... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2699,
834,
3734,
834,
8674,
21680,
953,
834,
4350,
834,
2606,
549,
17444,
427,
1606,
834,
834,
834,
89,
8058,
834,
834,
3274,
96,
536,
2577,
51,
115,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which school was Lawrence Roberts from ? | CREATE TABLE table_name_13 (school_club_team VARCHAR, player VARCHAR) | SELECT school_club_team FROM table_name_13 WHERE player = "lawrence roberts" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
6646,
834,
13442,
834,
11650,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
496,
47,
16617,
2715,
7,
45,
3,
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,
496,
834,
13442,
834,
11650,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
1959,
3274,
96,
4207,
52,
1433,
3,
5840,
49,
17,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many forced fumbles for jim laney with under 2 solo tackles? | CREATE TABLE table_72058 (
"Player" text,
"Solo" real,
"Total" real,
"Sacks" text,
"Fumble force" real,
"Fumble rec" real
) | SELECT COUNT("Fumble force") FROM table_72058 WHERE "Solo" < '2' AND "Player" = 'jim laney' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
18517,
3449,
41,
96,
15800,
49,
121,
1499,
6,
96,
5231,
40,
32,
121,
490,
6,
96,
3696,
1947,
121,
490,
6,
96,
134,
4365,
7,
121,
1499,
6,
96,
371,
13514,
2054,
121,
490... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
371,
13514,
2054,
8512,
21680,
953,
834,
18517,
3449,
549,
17444,
427,
96,
5231,
40,
32,
121,
3,
2,
3,
31,
357,
31,
3430,
96,
15800,
49,
121,
3274,
3,
31,
354,
603,
50,
3186,
31,
1,
-100,
... |
Tell me the lost with tie of 0 and drawn of 47 | CREATE TABLE table_name_20 (
lost VARCHAR,
tied VARCHAR,
drawn VARCHAR
) | SELECT lost FROM table_name_20 WHERE tied = "0" AND drawn = "47" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1755,
41,
1513,
584,
4280,
28027,
6,
10422,
584,
4280,
28027,
6,
6796,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
1513,
28,
6177,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1513,
21680,
953,
834,
4350,
834,
1755,
549,
17444,
427,
10422,
3274,
96,
632,
121,
3430,
6796,
3274,
96,
4177,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the date of the game attended by 45,122? | CREATE TABLE table_name_39 (
date VARCHAR,
attendance VARCHAR
) | SELECT date FROM table_name_39 WHERE attendance = "45,122" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
833,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
833,
13,
8,
467,
5526,
57,
3479,
6,
20889,
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,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
11364,
3274,
96,
2128,
6,
20889,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What team drafted steve scifres? | CREATE TABLE table_13758243_1 (nfl_team VARCHAR, player VARCHAR) | SELECT nfl_team FROM table_13758243_1 WHERE player = "Steve Scifres" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24636,
3449,
27730,
834,
536,
41,
29,
89,
40,
834,
11650,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
372,
3,
23505,
3,
849,
162,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29,
89,
40,
834,
11650,
21680,
953,
834,
24636,
3449,
27730,
834,
536,
549,
17444,
427,
1959,
3274,
96,
14337,
162,
4712,
99,
60,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what lake is listed directly below the one that is in both denzili and afyonkarahisar ? | CREATE TABLE table_204_341 (
id number,
"name in english" text,
"name in turkish" text,
"area (km2)" text,
"depth" text,
"location (districts and/or provinces)" text
) | SELECT "name in english" FROM table_204_341 WHERE id = (SELECT id FROM table_204_341 WHERE "location (districts and/or provinces)" = 'denizli, afyonkarahisar') + 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3710,
536,
41,
3,
23,
26,
381,
6,
96,
4350,
16,
22269,
121,
1499,
6,
96,
4350,
16,
3,
2905,
157,
1273,
121,
1499,
6,
96,
498,
41,
5848,
7318,
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,
4350,
16,
22269,
121,
21680,
953,
834,
26363,
834,
3710,
536,
549,
17444,
427,
3,
23,
26,
3274,
41,
23143,
14196,
3,
23,
26,
21680,
953,
834,
26363,
834,
3710,
536,
549,
17444,
427,
96,
14836,
41,
26,
23,
2006... |
What year was the main role a character named Guan Yu ( )? | CREATE TABLE table_64303 (
"Year" real,
"Chinese Title" text,
"English" text,
"Role" text,
"Character" text
) | SELECT MIN("Year") FROM table_64303 WHERE "Role" = 'main' AND "Character" = 'guan yu (關羽)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4389,
23335,
41,
96,
476,
2741,
121,
490,
6,
96,
3541,
4477,
15,
11029,
121,
1499,
6,
96,
26749,
121,
1499,
6,
96,
448,
32,
109,
121,
1499,
6,
96,
18947,
2708,
49,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
476,
2741,
8512,
21680,
953,
834,
4389,
23335,
549,
17444,
427,
96,
448,
32,
109,
121,
3274,
3,
31,
7484,
31,
3430,
96,
18947,
2708,
49,
121,
3274,
3,
31,
1744,
152,
3,
63,
76,
41,
2,
61,
3... |
What was the highest vote number for Bush? | CREATE TABLE table_21807 (
"County" text,
"Kerry%" text,
"Kerry#" real,
"Bush%" text,
"Bush#" real,
"Others%" text,
"Others#" real,
"2000 result" text
) | SELECT MAX("Bush#") FROM table_21807 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2606,
4560,
41,
96,
10628,
63,
121,
1499,
6,
96,
439,
49,
651,
1454,
121,
1499,
6,
96,
439,
49,
651,
4663,
121,
490,
6,
96,
279,
8489,
1454,
121,
1499,
6,
96,
279,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
279,
8489,
4663,
8512,
21680,
953,
834,
357,
2606,
4560,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which one took place on December 3, 1995? | CREATE TABLE table_name_60 (result VARCHAR, date VARCHAR) | SELECT result FROM table_name_60 WHERE date = "december 3, 1995" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
80,
808,
286,
30,
1882,
6180,
7273,
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,
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,
741,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
833,
3274,
96,
221,
75,
18247,
6180,
7273,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who was the GTO winning team in round 5 when the GTU winning team was #59 Brumos Porsche - Audi? | CREATE TABLE table_13642023_2 (gto_winning_team VARCHAR, rnd VARCHAR, gtu_winning_team VARCHAR) | SELECT gto_winning_team FROM table_13642023_2 WHERE rnd = 5 AND gtu_winning_team = "#59 Brumos Porsche - Audi" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23459,
21899,
2773,
834,
357,
41,
122,
235,
834,
8163,
834,
11650,
584,
4280,
28027,
6,
3,
52,
727,
584,
4280,
28027,
6,
3,
122,
17,
76,
834,
8163,
834,
11650,
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,
122,
235,
834,
8163,
834,
11650,
21680,
953,
834,
23459,
21899,
2773,
834,
357,
549,
17444,
427,
3,
52,
727,
3274,
305,
3430,
3,
122,
17,
76,
834,
8163,
834,
11650,
3274,
96,
4663,
3390,
3,
9465,
3972,
19763,
3... |
Which season has Zach Jacobson in third? | CREATE TABLE table_77323 (
"Season" text,
"Skip" text,
"Third" text,
"Second" text,
"Lead" text
) | SELECT "Season" FROM table_77323 WHERE "Third" = 'zach jacobson' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
2668,
519,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
134,
2168,
102,
121,
1499,
6,
96,
382,
9288,
26,
121,
1499,
6,
96,
134,
15,
1018,
26,
121,
1499,
6,
96,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4013,
2668,
519,
549,
17444,
427,
96,
382,
9288,
26,
121,
3274,
3,
31,
172,
1836,
2662,
509,
115,
739,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Alexandr Elke's Weight? | CREATE TABLE table_59871 (
"Name" text,
"Pos." text,
"Height" text,
"Weight" text,
"Date of Birth" text,
"Club" text
) | SELECT "Weight" FROM table_59871 WHERE "Name" = 'alexandr elke' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
4225,
536,
41,
96,
23954,
121,
1499,
6,
96,
345,
32,
7,
535,
1499,
6,
96,
3845,
2632,
121,
1499,
6,
96,
1326,
2632,
121,
1499,
6,
96,
308,
342,
13,
26337,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1326,
2632,
121,
21680,
953,
834,
3390,
4225,
536,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
138,
994,
232,
52,
3,
15,
40,
1050,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who is the away team that played home team Hawthorn? | CREATE TABLE table_name_13 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team FROM table_name_13 WHERE home_team = "hawthorn" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
8006,
834,
11650,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
550,
372,
24,
1944,
234,
372,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
550,
834,
11650,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
234,
834,
11650,
3274,
96,
1024,
210,
17,
6293,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
provide the number of patients whose days of hospital stay is greater than 15 and item id is 50904? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "15" AND lab.itemid = "50904" | [
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,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Name the number of panelists for oat of cash wearing celebrity being matt di angelo | CREATE TABLE table_72737 (
"Episode Number" real,
"Air Date" text,
"Guest Host" text,
"Musical Guest (Song performed)" text,
"Who knows the most about the guest host? Panelists" text,
"Coat Of Cash Wearing Celebrity" text
) | SELECT COUNT("Who knows the most about the guest host? Panelists") FROM table_72737 WHERE "Coat Of Cash Wearing Celebrity" = 'Matt Di Angelo' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5865,
27931,
41,
96,
427,
102,
159,
32,
221,
7720,
121,
490,
6,
96,
20162,
7678,
121,
1499,
6,
96,
9105,
222,
1546,
7,
17,
121,
1499,
6,
96,
29035,
138,
14252,
41,
134,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20754,
4054,
8,
167,
81,
8,
3886,
2290,
58,
9871,
343,
7,
8512,
21680,
953,
834,
5865,
27931,
549,
17444,
427,
96,
3881,
144,
1129,
8835,
16883,
53,
26071,
485,
121,
3274,
3,
31,
329,
144,
1... |
What is HDTV, when Television service is cartello promozionale sky hd? | CREATE TABLE table_7181 (
"Television service" text,
"Country" text,
"Language" text,
"Content" text,
"HDTV" text,
"Package/Option" text
) | SELECT "HDTV" FROM table_7181 WHERE "Television service" = 'cartello promozionale sky hd' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4450,
4959,
41,
96,
382,
400,
6610,
313,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
434,
1468,
76,
545,
121,
1499,
6,
96,
4302,
4669,
121,
1499,
6,
96,
11083,
4562,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11083,
4562,
121,
21680,
953,
834,
4450,
4959,
549,
17444,
427,
96,
382,
400,
6610,
313,
121,
3274,
3,
31,
1720,
17,
7126,
5585,
172,
6318,
15,
5796,
3,
107,
26,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the highest pick number for the Hamilton tiger-cats? | CREATE TABLE table_name_13 (pick__number INTEGER, cfl_team VARCHAR) | SELECT MAX(pick__number) FROM table_name_13 WHERE cfl_team = "hamilton tiger-cats" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
17967,
834,
834,
5525,
1152,
3,
21342,
17966,
6,
3,
75,
89,
40,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2030,
1432... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
17967,
834,
834,
5525,
1152,
61,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
3,
75,
89,
40,
834,
11650,
3274,
96,
1483,
23,
7377,
3,
17,
4424,
18,
2138,
7,
121,
1,
-100,
-100,
-100,
-100,
-1... |
Can you tell me the Opponent that has the Time of 0:20? | CREATE TABLE table_name_72 (
opponent VARCHAR,
time VARCHAR
) | SELECT opponent FROM table_name_72 WHERE time = "0:20" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
15264,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
1072,
25,
817,
140,
8,
4495,
9977,
24,
65,
8,
2900,
13,
3,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
97,
3274,
96,
632,
10,
1755,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
List the problem id and log id which are assigned to the staff named Rylan Homenick. Plot them as scatter chart. | CREATE TABLE Staff (
staff_id INTEGER,
staff_first_name VARCHAR(80),
staff_last_name VARCHAR(80),
other_staff_details VARCHAR(255)
)
CREATE TABLE Problem_Category_Codes (
problem_category_code VARCHAR(20),
problem_category_description VARCHAR(80)
)
CREATE TABLE Product (
product_id INTEGER... | SELECT problem_id, problem_log_id FROM Staff AS T1 JOIN Problem_Log AS T2 ON T1.staff_id = T2.assigned_to_staff_id WHERE T1.staff_first_name = "Rylan" AND T1.staff_last_name = "Homenick" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10071,
41,
871,
834,
23,
26,
3,
21342,
17966,
6,
871,
834,
14672,
834,
4350,
584,
4280,
28027,
599,
2079,
201,
871,
834,
5064,
834,
4350,
584,
4280,
28027,
599,
2079,
201,
119,
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,
682,
834,
23,
26,
6,
682,
834,
2152,
834,
23,
26,
21680,
10071,
6157,
332,
536,
3,
15355,
3162,
5289,
834,
22084,
6157,
332,
357,
9191,
332,
5411,
26416,
834,
23,
26,
3274,
332,
4416,
9,
7,
15532,
834,
235,
834,
... |
What's listed as the lowest Appearances with a Win % of 0.706? | CREATE TABLE table_name_30 (appearances INTEGER, win__percentage VARCHAR) | SELECT MIN(appearances) FROM table_name_30 WHERE win__percentage = 0.706 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
3096,
2741,
663,
7,
3,
21342,
17966,
6,
1369,
834,
834,
883,
3728,
545,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
2616,
38,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
3096,
2741,
663,
7,
61,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
1369,
834,
834,
883,
3728,
545,
3274,
3,
22426,
5176,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
count the number of patients whose procedure icd9 code is 4105 and drug type is additive? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE procedures.icd9_code = "4105" AND prescriptions.drug_type = "ADDITIVE" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
3388,
18206... |
Bob Love Category:Articles with hCards is from where? | CREATE TABLE table_77013 (
"Player" text,
"Nationality" text,
"Jersey Number(s)" text,
"Position" text,
"Years" text,
"From" text
) | SELECT "From" FROM table_77013 WHERE "Player" = 'bob love category:articles with hcards' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26920,
2368,
41,
96,
15800,
49,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
683,
277,
15,
63,
7720,
599,
7,
61,
121,
1499,
6,
96,
345,
32,
7,
4749,
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,
22674,
121,
21680,
953,
834,
26920,
2368,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
17396,
333,
3295,
10,
8372,
7,
28,
3,
107,
6043,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the date that Fabrizio Giovanardi Christian Abt won? | CREATE TABLE table_name_12 (date VARCHAR, winning_driver VARCHAR) | SELECT date FROM table_name_12 WHERE winning_driver = "fabrizio giovanardi christian abt" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
5522,
584,
4280,
28027,
6,
3447,
834,
13739,
52,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
833,
24,
1699,
2160,
702,
32,
3156,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
3447,
834,
13739,
52,
3274,
96,
89,
17639,
702,
32,
3,
10253,
2132,
986,
23,
3,
15294,
23,
152,
703,
17,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What are the unique names of races that held after 2000 and the circuits were in Spain? | CREATE TABLE constructorstandings (
constructorstandingsid number,
raceid number,
constructorid number,
points number,
position number,
positiontext text,
wins number
)
CREATE TABLE qualifying (
qualifyid number,
raceid number,
driverid number,
constructorid number,
numb... | SELECT DISTINCT T1.name FROM races AS T1 JOIN circuits AS T2 ON T1.circuitid = T2.circuitid WHERE T2.country = "Spain" AND T1.year > 2000 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6774,
127,
11018,
7,
41,
6774,
127,
11018,
7,
23,
26,
381,
6,
1964,
23,
26,
381,
6,
6774,
2057,
26,
381,
6,
979,
381,
6,
1102,
381,
6,
1102,
6327,
1499,
6,
9204,
381,
3,
61,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
332,
5411,
4350,
21680,
10879,
6157,
332,
536,
3,
15355,
3162,
4558,
7,
6157,
332,
357,
9191,
332,
5411,
15357,
21560,
23,
26,
3274,
332,
4416,
15357,
21560,
23,
26,
549,
17444,
427,
332,
4416,
... |
What is the number of bonus points for the team with 2 drawn games and 475 points? | CREATE TABLE table_65103 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Bonus points" text,
"Points" text
) | SELECT "Bonus points" FROM table_65103 WHERE "Drawn" = '2' AND "Points for" = '475' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
17864,
41,
96,
254,
11158,
121,
1499,
6,
96,
15800,
15,
26,
121,
1499,
6,
96,
308,
10936,
29,
121,
1499,
6,
96,
434,
3481,
121,
1499,
6,
96,
22512,
7,
21,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
279,
106,
302,
979,
121,
21680,
953,
834,
4122,
17864,
549,
17444,
427,
96,
308,
10936,
29,
121,
3274,
3,
31,
357,
31,
3430,
96,
22512,
7,
21,
121,
3274,
3,
31,
591,
3072,
31,
1,
-100,
-100,
-100,
-100,
-100... |
Name the score for howard (8) high rebounds | CREATE TABLE table_name_44 (score VARCHAR, high_rebounds VARCHAR) | SELECT score FROM table_name_44 WHERE high_rebounds = "howard (8)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
7,
9022,
584,
4280,
28027,
6,
306,
834,
23768,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
2604,
21,
149,
986,
3,
28007,
306,
3,
2376... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
306,
834,
23768,
3274,
96,
4067,
986,
3,
28007,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the Pick number of the Player from Syracuse? | CREATE TABLE table_name_76 (pick VARCHAR, college VARCHAR) | SELECT pick FROM table_name_76 WHERE college = "syracuse" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
17967,
584,
4280,
28027,
6,
1900,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
8356,
381,
13,
8,
12387,
45,
30482,
58,
1,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1432,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
1900,
3274,
96,
7,
63,
3738,
1074,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who was the opponent with a score of 4-6, 7-5, 4-6? | CREATE TABLE table_77065 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
) | SELECT "Opponent" FROM table_77065 WHERE "Score" = '4-6, 7-5, 4-6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26920,
4122,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
667,
102,
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,
667,
102,
9977,
121,
21680,
953,
834,
26920,
4122,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
20445,
6,
489,
4525,
6,
3,
20445,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who is the driver of the chassis that is tg183b tg184? | CREATE TABLE table_name_79 (driver VARCHAR, chassis VARCHAR) | SELECT driver FROM table_name_79 WHERE chassis = "tg183b tg184" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
13739,
52,
584,
4280,
28027,
6,
22836,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
2535,
13,
8,
22836,
24,
19,
3,
17,
122,
24361,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2535,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
22836,
3274,
96,
17,
122,
24361,
115,
3,
17,
122,
25987,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is the number of patients whose admission location is phys referral/normal deli and admission year is less than 2184? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "PHYS REFERRAL/NORMAL DELI" AND demographic.admityear < "2184" | [
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,
9,
26,
5451,
834,
14836,
3274,
96,
8023,
476,
134,
4083,
20805,
21415,
87,
24833,
329,
4090,
309,
... |
Name the height for the player born in 1981 | CREATE TABLE table_23670057_6 (
height__m_ VARCHAR,
year_born VARCHAR
) | SELECT height__m_ FROM table_23670057_6 WHERE year_born = 1981 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3420,
9295,
3436,
834,
948,
41,
3902,
834,
834,
51,
834,
584,
4280,
28027,
6,
215,
834,
7473,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
3902,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3902,
834,
834,
51,
834,
21680,
953,
834,
357,
3420,
9295,
3436,
834,
948,
549,
17444,
427,
215,
834,
7473,
3274,
15465,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the Termination of Mission date for Marsha E. Barnes, the Ambassador Extraordinary and Plenipotentiary? | CREATE TABLE table_name_34 (
termination_of_mission VARCHAR,
title VARCHAR,
representative VARCHAR
) | SELECT termination_of_mission FROM table_name_34 WHERE title = "ambassador extraordinary and plenipotentiary" AND representative = "marsha e. barnes" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
18739,
834,
858,
834,
5451,
584,
4280,
28027,
6,
2233,
584,
4280,
28027,
6,
6978,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
18739,
834,
858,
834,
5451,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
2233,
3274,
96,
14303,
7,
7,
7923,
9468,
11,
3,
102,
26532,
3013,
295,
23,
1208,
121,
3430,
6978,
3274,
96,
1635,
7,
1024,
3,
15,
5,
... |
What was the final rank of the Brewers in 1980? | CREATE TABLE table_52509 (
"MLB season" text,
"Team season" text,
"League" text,
"Division" text,
"Finish" text,
"Wins" text,
"Losses" text,
"Win %" text
) | SELECT "Finish" FROM table_52509 WHERE "Team season" = '1980' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
1828,
4198,
41,
96,
6858,
279,
774,
121,
1499,
6,
96,
18699,
774,
121,
1499,
6,
96,
2796,
9,
5398,
121,
1499,
6,
96,
308,
23,
6610,
121,
1499,
6,
96,
371,
77,
1273... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
371,
77,
1273,
121,
21680,
953,
834,
755,
1828,
4198,
549,
17444,
427,
96,
18699,
774,
121,
3274,
3,
31,
2294,
2079,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Return a pie chart on what are all the different product names, and how many complains has each received? | CREATE TABLE Complaints (
complaint_id INTEGER,
product_id INTEGER,
customer_id INTEGER,
complaint_outcome_code VARCHAR(20),
complaint_status_code VARCHAR(20),
complaint_type_code VARCHAR(20),
date_complaint_raised DATETIME,
date_complaint_closed DATETIME,
staff_id INTEGER
)
CREATE ... | SELECT product_name, COUNT(*) FROM Products AS t1 JOIN Complaints AS t2 ON t1.product_id = t2.product_id GROUP BY t1.product_name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2570,
18689,
17,
7,
41,
10394,
834,
23,
26,
3,
21342,
17966,
6,
556,
834,
23,
26,
3,
21342,
17966,
6,
884,
834,
23,
26,
3,
21342,
17966,
6,
10394,
834,
670,
287,
15,
834,
4978,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
556,
834,
4350,
6,
2847,
17161,
599,
1935,
61,
21680,
7554,
6157,
3,
17,
536,
3,
15355,
3162,
2570,
18689,
17,
7,
6157,
3,
17,
357,
9191,
3,
17,
5411,
15892,
834,
23,
26,
3274,
3,
17,
4416,
15892,
834,
23,
26,
... |
Find users whose average review rating is below 3 | CREATE TABLE category (
id int,
business_id varchar,
category_name varchar
)
CREATE TABLE user (
uid int,
user_id varchar,
name varchar
)
CREATE TABLE business (
bid int,
business_id varchar,
name varchar,
full_address varchar,
city varchar,
latitude varchar,
longit... | SELECT user.name FROM review, user WHERE user.user_id = review.user_id GROUP BY user.name HAVING AVG(review.rating) < 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3295,
41,
3,
23,
26,
16,
17,
6,
268,
834,
23,
26,
3,
4331,
4059,
6,
3295,
834,
4350,
3,
4331,
4059,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1139,
41,
3,
76,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1139,
5,
4350,
21680,
1132,
6,
1139,
549,
17444,
427,
1139,
5,
10041,
834,
23,
26,
3274,
1132,
5,
10041,
834,
23,
26,
350,
4630,
6880,
272,
476,
1139,
5,
4350,
454,
6968,
2365,
71,
17217,
599,
60,
4576,
5,
52,
1... |
What year were the Grizzlies in Providence? | CREATE TABLE table_name_19 (years_for_grizzlies VARCHAR, school_club_team VARCHAR) | SELECT years_for_grizzlies FROM table_name_19 WHERE school_club_team = "providence" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
1201,
7,
834,
1161,
834,
3496,
5271,
4664,
584,
4280,
28027,
6,
496,
834,
13442,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
203,
834,
1161,
834,
3496,
5271,
4664,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
496,
834,
13442,
834,
11650,
3274,
96,
29189,
3772,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
how many patients whose diagnoses short title is adv eff benzodiaz tranq and lab test fluid is pleural? | 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 diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.short_title = "Adv eff benzodiaz tranq" AND lab.fluid = "Pleural" | [
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,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
When the score was 76-73-67-69=285 what was the To par? | CREATE TABLE table_46727 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" real
) | SELECT "To par" FROM table_46727 WHERE "Score" = '76-73-67-69=285' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3708,
2555,
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,
591,
3708,
2555,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
3959,
18,
4552,
18,
3708,
18,
3951,
2423,
357,
4433,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Week has a Opponent of tennessee titans? | CREATE TABLE table_50206 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
) | SELECT "Week" FROM table_50206 WHERE "Opponent" = 'tennessee titans' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
24643,
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,
188,
17,
324,
26,
663,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
518,
10266,
121,
21680,
953,
834,
1752,
24643,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
324,
655,
15,
15,
29243,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those records from the products and each product's manufacturer, give me the comparison about the sum of manufacturer over the name , and group by attribute name by a bar chart, show in asc by the total number. | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT T1.Name, T1.Manufacturer FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Manufacturer | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
5312,
3396,
254,
26330,
434,
6,
15248,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
23954,
6,
332,
5411,
7296,
76,
8717,
450,
49,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,... |
What is the sum of the 2010 population with a latitude greater than 47.710905, a longitude of -101.79876, and less than 35.695 sq mi of land? | CREATE TABLE table_65268 (
"Township" text,
"County" text,
"Pop. (2010)" real,
"Land ( sqmi )" real,
"Water (sqmi)" real,
"Latitude" real,
"Longitude" real,
"GEO ID" real,
"ANSI code" real
) | SELECT SUM("Pop. (2010)") FROM table_65268 WHERE "Latitude" > '47.710905' AND "Longitude" = '-101.79876' AND "Land ( sqmi )" < '35.695' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
357,
3651,
41,
96,
382,
9197,
2009,
121,
1499,
6,
96,
10628,
63,
121,
1499,
6,
96,
27773,
5,
26118,
121,
490,
6,
96,
434,
232,
41,
11820,
51,
23,
3,
61,
121,
490,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
27773,
5,
26118,
8512,
21680,
953,
834,
4122,
357,
3651,
549,
17444,
427,
96,
3612,
6592,
121,
2490,
3,
31,
4177,
5,
4450,
4198,
3076,
31,
3430,
96,
434,
2444,
20341,
121,
3274,
3,
31,
4536,
1... |
How many games played for team bangu with under 15 against, and over 9 points? | CREATE TABLE table_5058 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
) | SELECT MAX("Played") FROM table_5058 WHERE "Against" < '15' AND "Team" = 'bangu' AND "Points" > '9' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
3449,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
22512,
7,
121,
490,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
308,
10936,
29,
121,
490,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
15800,
15,
26,
8512,
21680,
953,
834,
1752,
3449,
549,
17444,
427,
96,
20749,
121,
3,
2,
3,
31,
1808,
31,
3430,
96,
18699,
121,
3274,
3,
31,
3478,
1744,
31,
3430,
96,
22512,
7,
121,
2490,
3,
... |
What is the to par for japan | CREATE TABLE table_name_49 (
to_par VARCHAR,
country VARCHAR
) | SELECT to_par FROM table_name_49 WHERE country = "japan" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
12,
834,
1893,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
12,
260,
21,
2662,
2837,
1,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
12,
834,
1893,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
684,
3274,
96,
1191,
2837,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the lowest number of points for an entrant with a Jordan 192 chassis? | CREATE TABLE table_name_20 (
pts INTEGER,
chassis VARCHAR
) | SELECT MIN(pts) FROM table_name_20 WHERE chassis = "jordan 192" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1755,
41,
3,
102,
17,
7,
3,
21342,
17966,
6,
22836,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
381,
13,
979,
21,
46,
3,
295,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
102,
17,
7,
61,
21680,
953,
834,
4350,
834,
1755,
549,
17444,
427,
22836,
3274,
96,
12775,
3768,
3,
19978,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who's the Centerfold model with a Pictorials of adrianne curry, girls of tuscany? | CREATE TABLE table_name_47 (centerfold_model VARCHAR, pictorials VARCHAR) | SELECT centerfold_model FROM table_name_47 WHERE pictorials = "adrianne curry, girls of tuscany" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
13866,
10533,
834,
21770,
584,
4280,
28027,
6,
6686,
17,
11929,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
31,
7,
8,
1166,
10533,
825,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1530,
10533,
834,
21770,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
6686,
17,
11929,
7,
3274,
96,
9,
26,
5288,
29,
15,
21501,
6,
3567,
13,
3,
17,
302,
1608,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which years did the Rockets number 6 play? | CREATE TABLE table_name_80 (years_for_rockets VARCHAR, no_s_ VARCHAR) | SELECT years_for_rockets FROM table_name_80 WHERE no_s_ = "6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
1201,
7,
834,
1161,
834,
6133,
15,
17,
7,
584,
4280,
28027,
6,
150,
834,
7,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
203,
410,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
203,
834,
1161,
834,
6133,
15,
17,
7,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
150,
834,
7,
834,
3274,
96,
948,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what's the naturalisation by marriage with numer of jamaicans granted british citizenship being 3165 | CREATE TABLE table_11214212_1 (naturalisation_by_marriage VARCHAR, numer_of_jamaicans_granted_british_citizenship VARCHAR) | SELECT naturalisation_by_marriage FROM table_11214212_1 WHERE numer_of_jamaicans_granted_british_citizenship = 3165 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
27357,
24837,
834,
536,
41,
14884,
2121,
834,
969,
834,
51,
10269,
545,
584,
4280,
28027,
6,
206,
935,
834,
858,
834,
1191,
6840,
1608,
7,
834,
7662,
1054,
834,
2160,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
793,
2121,
834,
969,
834,
51,
10269,
545,
21680,
953,
834,
2596,
27357,
24837,
834,
536,
549,
17444,
427,
206,
935,
834,
858,
834,
1191,
6840,
1608,
7,
834,
7662,
1054,
834,
2160,
17,
1273,
834,
75,
155,
23,
1847,
... |
Which Intelli Trace has a No Extension and Windows Phone development of no? | CREATE TABLE table_name_10 (intellitrace VARCHAR, extensions VARCHAR, windows_phone_development VARCHAR) | SELECT intellitrace FROM table_name_10 WHERE extensions = "no" AND windows_phone_development = "no" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
2429,
195,
155,
12614,
584,
4280,
28027,
6,
15176,
584,
4280,
28027,
6,
3196,
834,
6399,
834,
19677,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
16,
6714,
155,
12614,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
15176,
3274,
96,
29,
32,
121,
3430,
3196,
834,
6399,
834,
19677,
3274,
96,
29,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What venue had footscray play at it? | CREATE TABLE table_78021 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Venue" FROM table_78021 WHERE "Away team" = 'footscray' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2079,
2658,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
553,
35,
76,
15,
121,
21680,
953,
834,
940,
2079,
2658,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
6259,
7,
2935,
63,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest points for a match before 14? | CREATE TABLE table_name_88 (
points INTEGER,
match INTEGER
) | SELECT MIN(points) FROM table_name_88 WHERE match > 14 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
979,
3,
21342,
17966,
6,
1588,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
979,
21,
3,
9,
1588,
274,
968,
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,
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,
3,
17684,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
1588,
2490,
968,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the date of the game held at the Al-Rashid Stadium, Dubai? | CREATE TABLE table_40732 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Date" FROM table_40732 WHERE "Venue" = 'al-rashid stadium, dubai' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
4552,
357,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
2445,
4552,
357,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
138,
18,
12380,
23,
26,
14939,
6,
146,
9441,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many games lost associated with under 14 played? | CREATE TABLE table_name_66 (
lost VARCHAR,
played INTEGER
) | SELECT COUNT(lost) FROM table_name_66 WHERE played < 14 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
1513,
584,
4280,
28027,
6,
1944,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1031,
1513,
1968,
28,
365,
968,
1944,
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,
2847,
17161,
599,
2298,
17,
61,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
1944,
3,
2,
968,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the name of the customer that made the order with the largest quantity? | CREATE TABLE customer_addresses (
customer_id number,
address_id number,
date_address_from time,
address_type text,
date_address_to time
)
CREATE TABLE order_items (
order_id number,
product_id number,
order_quantity text
)
CREATE TABLE customer_orders (
order_id number,
custom... | SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id WHERE t3.order_quantity = (SELECT MAX(order_quantity) FROM order_items) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
884,
834,
9,
26,
12039,
15,
7,
41,
884,
834,
23,
26,
381,
6,
1115,
834,
23,
26,
381,
6,
833,
834,
9,
26,
12039,
834,
7152,
97,
6,
1115,
834,
6137,
1499,
6,
833,
834,
9,
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,
3,
17,
5411,
25697,
49,
834,
4350,
21680,
722,
6157,
3,
17,
536,
3,
15355,
3162,
884,
834,
9397,
7,
6157,
3,
17,
357,
9191,
3,
17,
5411,
25697,
49,
834,
23,
26,
3274,
3,
17,
4416,
25697,
49,
834,
23,
26,
3,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.