NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
2 ml : furosemide 10 mg/ml ij soln what is the price? | CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
... | SELECT DISTINCT cost.cost FROM cost WHERE cost.eventtype = 'medication' AND cost.eventid IN (SELECT medication.medicationid FROM medication WHERE medication.drugname = '2 ml : furosemide 10 mg/ml ij soln') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1868,
41,
775,
12417,
1499,
6,
1868,
15878,
3734,
21545,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
7285,
1499,
6,
1246,
1499,
6,
11655,
485,
1499,
6,
2833,
23,
26,
381,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
583,
5,
11290,
21680,
583,
549,
17444,
427,
583,
5,
15,
2169,
6137,
3274,
3,
31,
526,
17530,
31,
3430,
583,
5,
15,
2169,
23,
26,
3388,
41,
23143,
14196,
7757,
5,
526,
17530,
23,
26,
21680,
... |
Which Country has a Network of channel 1? | CREATE TABLE table_40037 (
"Country" text,
"Local name" text,
"Host" text,
"Network" text,
"Date premiered" text
) | SELECT "Country" FROM table_40037 WHERE "Network" = 'channel 1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5548,
4118,
41,
96,
10628,
651,
121,
1499,
6,
96,
434,
32,
1489,
564,
121,
1499,
6,
96,
566,
3481,
121,
1499,
6,
96,
9688,
1981,
121,
1499,
6,
96,
308,
342,
13539,
26,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
10628,
651,
121,
21680,
953,
834,
5548,
4118,
549,
17444,
427,
96,
9688,
1981,
121,
3274,
3,
31,
19778,
209,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What name has a spread of 69? | CREATE TABLE table_name_96 (name VARCHAR, spread VARCHAR) | SELECT name FROM table_name_96 WHERE spread = 69 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
4350,
584,
4280,
28027,
6,
3060,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
564,
65,
3,
9,
3060,
13,
3,
3951,
58,
1,
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,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
3060,
3274,
3,
3951,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
List the ids of the problems from the product "voluptatem" that are reported after 1995? | CREATE TABLE problems (problem_id VARCHAR, product_id VARCHAR, date_problem_reported VARCHAR); CREATE TABLE product (product_id VARCHAR, product_name VARCHAR) | SELECT T1.problem_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id WHERE T2.product_name = "voluptatem" AND T1.date_problem_reported > "1995" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
982,
41,
19307,
834,
23,
26,
584,
4280,
28027,
6,
556,
834,
23,
26,
584,
4280,
28027,
6,
833,
834,
19307,
834,
60,
16262,
584,
4280,
28027,
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,
332,
5411,
19307,
834,
23,
26,
21680,
982,
6157,
332,
536,
3,
15355,
3162,
556,
6157,
332,
357,
9191,
332,
5411,
15892,
834,
23,
26,
3274,
332,
4416,
15892,
834,
23,
26,
549,
17444,
427,
332,
4416,
15892,
834,
4350,... |
When was the Masters Tournament? | CREATE TABLE table_name_9 (date VARCHAR, tournament VARCHAR) | SELECT date FROM table_name_9 WHERE tournament = "masters tournament" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
5522,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
47,
8,
14119,
20502,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
5892,
3274,
96,
7429,
7,
5892,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which School has a #/ County of 85 wabash, and an IHSAA Football Class of A, and a Mascot of norsemen? | CREATE TABLE table_64856 (
"School" text,
"Location" text,
"Mascot" text,
"Enrollment" real,
"IHSAA Class" text,
"IHSAA Football Class" text,
"# / County" text
) | SELECT "School" FROM table_64856 WHERE "# / County" = '85 wabash' AND "IHSAA Football Class" = 'a' AND "Mascot" = 'norsemen' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
3707,
4834,
41,
96,
29364,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
329,
9,
7,
4310,
121,
1499,
6,
96,
8532,
4046,
297,
121,
490,
6,
96,
196,
4950,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
29364,
121,
21680,
953,
834,
948,
3707,
4834,
549,
17444,
427,
96,
4663,
3,
87,
1334,
121,
3274,
3,
31,
4433,
8036,
115,
3198,
31,
3430,
96,
196,
4950,
5498,
10929,
4501,
121,
3274,
3,
31,
9,
31,
3430,
96,
3... |
List all club names in descending alphabetical order. | CREATE TABLE club (
club_id number,
name text,
region text,
start_year text
)
CREATE TABLE player (
player_id number,
name text,
position text,
club_id number,
apps number,
tries number,
goals text,
points number
)
CREATE TABLE club_rank (
rank number,
club_id n... | SELECT name FROM club ORDER BY name DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1886,
41,
1886,
834,
23,
26,
381,
6,
564,
1499,
6,
1719,
1499,
6,
456,
834,
1201,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1959,
41,
1959,
834,
23,
26,
381... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
564,
21680,
1886,
4674,
11300,
272,
476,
564,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is every party with a winner of P. Chidambaram? | CREATE TABLE table_22753439_1 (
party VARCHAR,
winner VARCHAR
) | SELECT party AS a FROM table_22753439_1 WHERE winner = "P. Chidambaram" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
3072,
3710,
3288,
834,
536,
41,
1088,
584,
4280,
28027,
6,
4668,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
334,
1088,
28,
3,
9,
4668,
13,
276,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1088,
6157,
3,
9,
21680,
953,
834,
2884,
3072,
3710,
3288,
834,
536,
549,
17444,
427,
4668,
3274,
96,
345,
5,
2695,
26,
14303,
2375,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
calculate the number of patients staying in ward 822 in this year. | CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime... | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.wardid = 822 AND DATETIME(patient.unitadmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2179,
9339,
41,
2179,
521,
9824,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
1543,
3585,
1499,
6,
9329,
1499,
6,
1543,
4914,
29,
715,
97,
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,
2847,
17161,
599,
15438,
25424,
6227,
1868,
5,
202,
1495,
12417,
61,
21680,
1868,
549,
17444,
427,
1868,
5,
2239,
23,
26,
3274,
505,
2884,
3430,
309,
6048,
382,
15382,
599,
10061,
5,
15129,
20466,
17,
715,
6,
3,
31,... |
who were the writers in the episode whose production code was 411? | CREATE TABLE table_27622417_1 (written_by VARCHAR, prod_code VARCHAR) | SELECT written_by FROM table_27622417_1 WHERE prod_code = "411" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
4056,
2266,
2517,
834,
536,
41,
14973,
834,
969,
584,
4280,
28027,
6,
813,
26,
834,
4978,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
113,
130,
8,
5943,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1545,
834,
969,
21680,
953,
834,
2555,
4056,
2266,
2517,
834,
536,
549,
17444,
427,
813,
26,
834,
4978,
3274,
96,
591,
2596,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the year that saw a passenger change of +32,9%? | CREATE TABLE table_62558 (
"Year" real,
"Total passengers" text,
"Passenger Change" text,
"Domestic" text,
"International (total)" text,
"International (non-CIS)" text,
"Aircraft Landings" text,
"Cargo (tonnes)" text
) | SELECT COUNT("Year") FROM table_62558 WHERE "Passenger Change" = '+32,9%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
1828,
3449,
41,
96,
476,
2741,
121,
490,
6,
96,
3696,
1947,
9234,
121,
1499,
6,
96,
20192,
35,
1304,
5968,
121,
1499,
6,
96,
4135,
2687,
1225,
121,
1499,
6,
96,
2749... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
476,
2741,
8512,
21680,
953,
834,
948,
1828,
3449,
549,
17444,
427,
96,
20192,
35,
1304,
5968,
121,
3274,
3,
31,
1220,
2668,
6,
7561,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the winner for london tournament | CREATE TABLE table_name_93 (winner VARCHAR, tournament VARCHAR) | SELECT winner FROM table_name_93 WHERE tournament = "london" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
3757,
687,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
4668,
21,
3,
40,
106,
2029,
5892,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4668,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
5892,
3274,
96,
40,
106,
2029,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the score in Tie number 16? | CREATE TABLE table_name_16 (score VARCHAR, tie_no VARCHAR) | SELECT score FROM table_name_16 WHERE tie_no = "16" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
7,
9022,
584,
4280,
28027,
6,
6177,
834,
29,
32,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
16,
2262,
15,
381,
898,
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,
2604,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
6177,
834,
29,
32,
3274,
96,
2938,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the Main use of emley moor tower (mk.3)? | CREATE TABLE table_name_54 (
main_use VARCHAR,
name VARCHAR
) | SELECT main_use FROM table_name_54 WHERE name = "emley moor tower (mk.3)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
711,
834,
1074,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
5140,
169,
13,
3,
15,
51,
1306,
3,
2147... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
711,
834,
1074,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
564,
3274,
96,
15,
51,
1306,
3,
21477,
7293,
41,
51,
157,
5,
5268,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the smallest point amount for years prior to 1958 when the class is 350cc? | CREATE TABLE table_35460 (
"Year" real,
"Class" text,
"Team" text,
"Points" real,
"Wins" real
) | SELECT MIN("Points") FROM table_35460 WHERE "Year" < '1958' AND "Class" = '350cc' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
25991,
41,
96,
476,
2741,
121,
490,
6,
96,
21486,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
22512,
7,
121,
490,
6,
96,
18455,
7,
121,
490,
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,
3,
17684,
599,
121,
22512,
7,
8512,
21680,
953,
834,
2469,
25991,
549,
17444,
427,
96,
476,
2741,
121,
3,
2,
3,
31,
2294,
3449,
31,
3430,
96,
21486,
121,
3274,
3,
31,
16975,
75,
75,
31,
1,
-100,
-100,
-100,
-100... |
Return the names of singers who are from UK and released an English song. | CREATE TABLE artist (
artist_name VARCHAR
)
CREATE TABLE song (
artist_name VARCHAR,
languages VARCHAR
) | SELECT artist_name FROM artist WHERE country = "UK" INTERSECT SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.languages = "english" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2377,
41,
2377,
834,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2324,
41,
2377,
834,
4350,
584,
4280,
28027,
6,
8024,
584,
4280,
28027,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2377,
834,
4350,
21680,
2377,
549,
17444,
427,
684,
3274,
96,
15787,
121,
3,
21342,
5249,
14196,
3,
23143,
14196,
332,
5411,
1408,
343,
834,
4350,
21680,
2377,
6157,
332,
536,
3,
15355,
3162,
2324,
6157,
332,
357,
919... |
I want to know the stadium for tennessee titans visiting | CREATE TABLE table_name_32 (
stadium VARCHAR,
visiting_team VARCHAR
) | SELECT stadium FROM table_name_32 WHERE visiting_team = "tennessee titans" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
14939,
584,
4280,
28027,
6,
3644,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
27,
241,
12,
214,
8,
14939,
21,
3,
324,
655,
15,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
14939,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
3644,
834,
11650,
3274,
96,
324,
655,
15,
15,
29243,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the state class for iowa admitted to the union december 28, 1846 | CREATE TABLE table_225205_3 (state__class_ VARCHAR, reason_for_change VARCHAR) | SELECT state__class_ FROM table_225205_3 WHERE reason_for_change = "Iowa admitted to the Union December 28, 1846" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20489,
23201,
834,
519,
41,
5540,
834,
834,
4057,
834,
584,
4280,
28027,
6,
1053,
834,
1161,
834,
13073,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
538,
85... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
538,
834,
834,
4057,
834,
21680,
953,
834,
20489,
23201,
834,
519,
549,
17444,
427,
1053,
834,
1161,
834,
13073,
3274,
96,
196,
2381,
9,
10246,
12,
8,
3545,
1882,
13719,
507,
4448,
121,
1,
-100,
-100,
-100,
-100,
-1... |
What was the total time for the match that ocurred in Round 3 with opponent Keith Wisniewski? | CREATE TABLE table_39989 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Round" text,
"Time" text,
"Location" text
) | SELECT "Time" FROM table_39989 WHERE "Round" = '3' AND "Opponent" = 'keith wisniewski' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3264,
3914,
41,
96,
1649,
7,
535,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
23351,
107,
32,
26,
121,
1499,
6,
96,
448,
32,
1106,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
13368,
121,
21680,
953,
834,
519,
3264,
3914,
549,
17444,
427,
96,
448,
32,
1106,
121,
3274,
3,
31,
519,
31,
3430,
96,
667,
102,
9977,
121,
3274,
3,
31,
5754,
107,
11064,
7,
29,
23,
15,
210,
4009,
31,
1,
-... |
Which years have a displacement of 1816cc? | CREATE TABLE table_name_44 (years VARCHAR, displacement VARCHAR) | SELECT years FROM table_name_44 WHERE displacement = "1816cc" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
1201,
7,
584,
4280,
28027,
6,
27780,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
203,
43,
3,
9,
27780,
13,
507,
2938,
75,
75,
58,
1,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
203,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
27780,
3274,
96,
2606,
2938,
75,
75,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the record for l 90 100 (ot) | CREATE TABLE table_25491 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Record" FROM table_25491 WHERE "Score" = 'L 90–100 (OT)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
3647,
536,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
7621,
121,
21680,
953,
834,
1828,
3647,
536,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
434,
2777,
104,
2915,
41,
6951,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show all branch names with the number of members in each branch registered after 2015 with a bar chart, and could you show Name from high to low order? | CREATE TABLE member (
Member_ID int,
Card_Number text,
Name text,
Hometown text,
Level int
)
CREATE TABLE membership_register_branch (
Member_ID int,
Branch_ID text,
Register_Year text
)
CREATE TABLE purchase (
Member_ID int,
Branch_ID text,
Year text,
Total_pounds real... | SELECT Name, COUNT(*) FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.Branch_ID = T2.Branch_ID WHERE T1.Register_Year > 2015 GROUP BY T2.Branch_ID ORDER BY Name DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1144,
41,
8541,
834,
4309,
16,
17,
6,
4955,
834,
567,
5937,
49,
1499,
6,
5570,
1499,
6,
1210,
3540,
1499,
6,
7166,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
1709... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5570,
6,
2847,
17161,
599,
1935,
61,
21680,
4757,
834,
22149,
834,
1939,
5457,
6157,
332,
536,
3,
15355,
3162,
6421,
6157,
332,
357,
9191,
332,
5411,
18304,
5457,
834,
4309,
3274,
332,
4416,
18304,
5457,
834,
4309,
54... |
What position(s) does the player drafted #34 play? | CREATE TABLE table_14650373_1 (position VARCHAR, pick__number VARCHAR) | SELECT position FROM table_14650373_1 WHERE pick__number = 34 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
15348,
4118,
519,
834,
536,
41,
4718,
584,
4280,
28027,
6,
1432,
834,
834,
5525,
1152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1102,
599,
7,
61,
405,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1102,
21680,
953,
834,
2534,
15348,
4118,
519,
834,
536,
549,
17444,
427,
1432,
834,
834,
5525,
1152,
3274,
6154,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the opponent when the record was 31-24? | CREATE TABLE table_name_40 (
opponent VARCHAR,
record VARCHAR
) | SELECT opponent FROM table_name_40 WHERE record = "31-24" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
15264,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
15264,
116,
8,
1368,
47,
2664,
14962,
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,
15264,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
1368,
3274,
96,
3341,
14962,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Stations are in vancouver, bc? | CREATE TABLE table_14000 (
"City" text,
"System" text,
"Category" text,
"Daily ridership" real,
"As of" text,
"Opened" real,
"Stations" text
) | SELECT "Stations" FROM table_14000 WHERE "City" = 'vancouver, bc' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
2313,
41,
96,
254,
485,
121,
1499,
6,
96,
14342,
121,
1499,
6,
96,
18610,
6066,
651,
121,
1499,
6,
96,
308,
9,
9203,
14149,
10462,
121,
490,
6,
96,
188,
7,
13,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
17,
1628,
121,
21680,
953,
834,
2534,
2313,
549,
17444,
427,
96,
254,
485,
121,
3274,
3,
31,
2132,
3422,
624,
6,
3,
115,
75,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Population of Sargent County? | CREATE TABLE table_59022 (
"County" text,
"Per capita income" text,
"Median household income" text,
"Median family income" text,
"Population" real,
"Number of households" real
) | SELECT "Population" FROM table_59022 WHERE "County" = 'sargent' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
4305,
357,
41,
96,
10628,
63,
121,
1499,
6,
96,
12988,
23219,
2055,
121,
1499,
6,
96,
24607,
29,
5699,
2055,
121,
1499,
6,
96,
24607,
29,
384,
2055,
121,
1499,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
27773,
7830,
121,
21680,
953,
834,
3390,
4305,
357,
549,
17444,
427,
96,
10628,
63,
121,
3274,
3,
31,
7,
9917,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
which team has the most losses ? | CREATE TABLE table_204_905 (
id number,
"team" text,
"wins" number,
"losses" number,
"win %" number,
"gb" number
) | SELECT "team" FROM table_204_905 ORDER BY "losses" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
2394,
755,
41,
3,
23,
26,
381,
6,
96,
11650,
121,
1499,
6,
96,
3757,
7,
121,
381,
6,
96,
2298,
2260,
121,
381,
6,
96,
3757,
3,
1454,
121,
381,
6,
96,
122,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11650,
121,
21680,
953,
834,
26363,
834,
2394,
755,
4674,
11300,
272,
476,
96,
2298,
2260,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many OWGR pts have a Prize fund ( ) of 100,000,000, and a Tournament of tsuruya open? | CREATE TABLE table_47726 (
"Dates" text,
"Tournament" text,
"Prize fund ( \uffe5 )" real,
"Winner" text,
"OWGR pts" real
) | SELECT COUNT("OWGR pts") FROM table_47726 WHERE "Prize fund ( \uffe5 )" = '100,000,000' AND "Tournament" = 'tsuruya open' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4013,
2688,
41,
96,
308,
6203,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
7855,
776,
3069,
41,
3,
2,
2999,
15,
755,
3,
61,
121,
490,
6,
96,
18455,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15251,
8727,
3,
102,
17,
7,
8512,
21680,
953,
834,
591,
4013,
2688,
549,
17444,
427,
96,
7855,
776,
3069,
41,
3,
2,
2999,
15,
755,
3,
61,
121,
3274,
3,
31,
2915,
23916,
31,
3430,
96,
382,
... |
On April 18, which team was the visitor? | CREATE TABLE table_name_52 (
visitor VARCHAR,
date VARCHAR
) | SELECT visitor FROM table_name_52 WHERE date = "april 18" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
7019,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
461,
1186,
14985,
84,
372,
47,
8,
7019,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
7019,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
833,
3274,
96,
9,
2246,
40,
507,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which tourist attraction is associated with the photo 'game1'? Return its name. | CREATE TABLE locations (
location_id number,
location_name text,
address text,
other_details text
)
CREATE TABLE features (
feature_id number,
feature_details text
)
CREATE TABLE shops (
shop_id number,
shop_details text
)
CREATE TABLE ref_hotel_star_ratings (
star_rating_code tex... | SELECT T2.name FROM photos AS T1 JOIN tourist_attractions AS T2 ON T1.tourist_attraction_id = T2.tourist_attraction_id WHERE T1.name = "game1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3248,
41,
1128,
834,
23,
26,
381,
6,
1128,
834,
4350,
1499,
6,
1115,
1499,
6,
119,
834,
221,
5756,
7,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
753,
41,
145... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
4350,
21680,
1302,
6157,
332,
536,
3,
15355,
3162,
8548,
834,
144,
10559,
7,
6157,
332,
357,
9191,
332,
5411,
17,
1211,
343,
834,
144,
10559,
834,
23,
26,
3274,
332,
4416,
17,
1211,
343,
834,
144,
10559,
... |
how many premieres had the episode that had 12.68 millions of north american viewers? | CREATE TABLE table_3940 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real,
"U.S. viewers (millions)" text
) | SELECT COUNT("Original air date") FROM table_3940 WHERE "U.S. viewers (millions)" = '12.68' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3288,
2445,
41,
96,
4168,
5,
16,
939,
121,
490,
6,
96,
4168,
5,
16,
774,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
667,
3380,
10270,
799,
833,
8512,
21680,
953,
834,
3288,
2445,
549,
17444,
427,
96,
1265,
5,
134,
5,
13569,
41,
17030,
7,
61,
121,
3274,
3,
31,
9368,
3651,
31,
1,
-100,
-100,
-100,
-100,
-10... |
What's the result for the category of best actor in a supporting role? | CREATE TABLE table_name_34 (result VARCHAR, category VARCHAR) | SELECT result FROM table_name_34 WHERE category = "best actor in a supporting role" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
3295,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
741,
21,
8,
3295,
13,
200,
7556,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
3295,
3274,
96,
9606,
7556,
16,
3,
9,
3956,
1075,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find the number of different cities that employees live in. | CREATE TABLE playlist (
playlistid number,
name text
)
CREATE TABLE album (
albumid number,
title text,
artistid number
)
CREATE TABLE track (
trackid number,
name text,
albumid number,
mediatypeid number,
genreid number,
composer text,
milliseconds number,
bytes nu... | SELECT COUNT(DISTINCT city) FROM employee | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
23424,
41,
23424,
23,
26,
381,
6,
564,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2306,
41,
2306,
23,
26,
381,
6,
2233,
1499,
6,
2377,
23,
26,
381,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
690,
61,
21680,
3490,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average balance in checking accounts? | CREATE TABLE checking (
custid number,
balance number
)
CREATE TABLE savings (
custid number,
balance number
)
CREATE TABLE accounts (
custid number,
name text
) | SELECT AVG(balance) FROM checking | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6450,
41,
123,
2248,
26,
381,
6,
2109,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
5051,
41,
123,
2248,
26,
381,
6,
2109,
381,
3,
61,
3,
32102,
32103,
32102,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
3849,
663,
61,
21680,
6450,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the gtu winning team when the gto winning team was #48 greenwood racing? | CREATE TABLE table_13657883_2 (gtu_winning_team VARCHAR, gto_winning_team VARCHAR) | SELECT gtu_winning_team FROM table_13657883_2 WHERE gto_winning_team = "#48 Greenwood Racing" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
536,
10402,
3940,
4591,
834,
357,
41,
122,
17,
76,
834,
8163,
834,
11650,
584,
4280,
28027,
6,
3,
122,
235,
834,
8163,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17,
76,
834,
8163,
834,
11650,
21680,
953,
834,
536,
10402,
3940,
4591,
834,
357,
549,
17444,
427,
3,
122,
235,
834,
8163,
834,
11650,
3274,
96,
4663,
3707,
1862,
2037,
16046,
121,
1,
-100,
-100,
-100,
-100,... |
When bronze is more than 3, what is the rank? | CREATE TABLE table_name_19 (rank VARCHAR, bronze INTEGER) | SELECT rank FROM table_name_19 WHERE bronze > 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
6254,
584,
4280,
28027,
6,
13467,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
366,
13467,
19,
72,
145,
6180,
125,
19,
8,
11003,
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,
11003,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
13467,
2490,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is Tournament, when Result is 2nd, and when Year is 2009? | CREATE TABLE table_name_74 (
tournament VARCHAR,
result VARCHAR,
year VARCHAR
) | SELECT tournament FROM table_name_74 WHERE result = "2nd" AND year = 2009 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
5892,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
20502,
6,
116,
3,
20119,
19,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5892,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
741,
3274,
96,
357,
727,
121,
3430,
215,
3274,
2464,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What year was the movie ' The Imitation Game ' produced | CREATE TABLE actor (
aid int,
gender text,
name text,
nationality text,
birth_city text,
birth_year int
)
CREATE TABLE written_by (
id int,
msid int,
wid int
)
CREATE TABLE tv_series (
sid int,
title text,
release_year int,
num_of_seasons int,
num_of_episodes in... | SELECT release_year FROM movie WHERE title = 'The Imitation Game' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7556,
41,
3052,
16,
17,
6,
7285,
1499,
6,
564,
1499,
6,
1157,
485,
1499,
6,
3879,
834,
6726,
1499,
6,
3879,
834,
1201,
16,
17,
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,
1576,
834,
1201,
21680,
1974,
549,
17444,
427,
2233,
3274,
3,
31,
634,
27,
1538,
257,
4435,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What country did Gil play against on 21 23 september 2007? | CREATE TABLE table_18042031_16 (
against VARCHAR,
date VARCHAR
) | SELECT against FROM table_18042031_16 WHERE date = "21–23 September 2007" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20829,
21899,
3341,
834,
2938,
41,
581,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
684,
410,
12798,
577,
581,
30,
1401,
1902,
1602... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
581,
21680,
953,
834,
20829,
21899,
3341,
834,
2938,
549,
17444,
427,
833,
3274,
96,
2658,
104,
2773,
1600,
4101,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name a music director, belonging to a year after 2003? | CREATE TABLE table_11733 (
"Year" real,
"Film name" text,
"Co-singer" text,
"Music director" text,
"Lyricist" text
) | SELECT "Music director" FROM table_11733 WHERE "Year" > '2003' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20275,
4201,
41,
96,
476,
2741,
121,
490,
6,
96,
371,
173,
51,
564,
121,
1499,
6,
96,
3881,
18,
7,
9963,
121,
1499,
6,
96,
29035,
2090,
121,
1499,
6,
96,
434,
63,
2234,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29035,
2090,
121,
21680,
953,
834,
20275,
4201,
549,
17444,
427,
96,
476,
2741,
121,
2490,
3,
31,
23948,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Swimmer Aurore Mongel has what nationality? | CREATE TABLE table_name_88 (nationality VARCHAR, name VARCHAR) | SELECT nationality FROM table_name_88 WHERE name = "aurore mongel" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
16557,
485,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
27813,
935,
71,
450,
127,
15,
2963,
1803,
65,
125,
1157,
485,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1157,
485,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
564,
3274,
96,
9,
450,
127,
15,
1911,
1803,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Jockey, when Winner is Alke? | CREATE TABLE table_name_10 (
jockey VARCHAR,
winner VARCHAR
) | SELECT jockey FROM table_name_10 WHERE winner = "alke" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
8624,
4397,
584,
4280,
28027,
6,
4668,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
2194,
75,
4397,
6,
116,
18125,
19,
901,
1050,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
8624,
4397,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
4668,
3274,
96,
138,
1050,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who were the semifinalists in the tournament where Mats Wilander 7-6, 6-3 was declared the champion? | CREATE TABLE table_29295463_9 (semifinalists VARCHAR, champion VARCHAR) | SELECT semifinalists FROM table_29295463_9 WHERE champion = "Mats Wilander 7-6, 6-3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
3166,
5062,
3891,
834,
1298,
41,
7,
15,
51,
23,
28077,
584,
4280,
28027,
6,
6336,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
130,
8,
4772,
28077,
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,
0,
0,
0,
0... | [
3,
23143,
14196,
4772,
28077,
21680,
953,
834,
3166,
3166,
5062,
3891,
834,
1298,
549,
17444,
427,
6336,
3274,
96,
329,
144,
7,
2142,
20319,
489,
5783,
6,
3,
24262,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many laps were there in 2002? | CREATE TABLE table_2196127_1 (
laps VARCHAR,
year VARCHAR
) | SELECT laps FROM table_2196127_1 WHERE year = "2002" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
4314,
22367,
834,
536,
41,
14941,
7,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
14941,
7,
130,
132,
16,
4407,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
14941,
7,
21680,
953,
834,
2658,
4314,
22367,
834,
536,
549,
17444,
427,
215,
3274,
96,
24898,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What film was in 1970? | CREATE TABLE table_name_55 (film VARCHAR, year VARCHAR) | SELECT film FROM table_name_55 WHERE year = 1970 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
9988,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
814,
47,
16,
7434,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
814,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
215,
3274,
7434,
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,... |
Where is runner-up Betsy Rawls from? | CREATE TABLE table_name_76 (
location VARCHAR,
runner_s__up VARCHAR
) | SELECT location FROM table_name_76 WHERE runner_s__up = "betsy rawls" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
1128,
584,
4280,
28027,
6,
3,
10806,
834,
7,
834,
834,
413,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2840,
19,
3,
10806,
18,
413,
7912,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1128,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
3,
10806,
834,
7,
834,
834,
413,
3274,
96,
346,
17,
7,
63,
5902,
40,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the lowest 2011 Census population of an area with a land area larger than 908,607.67 km ? | CREATE TABLE table_name_38 (
population___2011_census__ INTEGER,
land_area__km²_ INTEGER
) | SELECT MIN(population___2011_census__) FROM table_name_38 WHERE land_area__km²_ > 908 OFFSET 607.67 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
2074,
834,
834,
834,
13907,
834,
75,
35,
7,
302,
834,
834,
3,
21342,
17966,
6,
1322,
834,
498,
834,
834,
5848,
357,
834,
3,
21342,
17966,
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,
17684,
599,
9791,
7830,
834,
834,
834,
13907,
834,
75,
35,
7,
302,
834,
834,
61,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
1322,
834,
498,
834,
834,
5848,
357,
834,
2490,
2777,
927,
3,
15316,
20788,
43... |
Which title's genre was jazz when it was nominated in 1996? | CREATE TABLE table_name_15 (
title VARCHAR,
year VARCHAR,
genre VARCHAR,
result VARCHAR
) | SELECT title FROM table_name_15 WHERE genre = "jazz" AND result = "nominated" AND year = "1996" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
2233,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
5349,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2233,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2233,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
5349,
3274,
96,
1191,
5271,
121,
3430,
741,
3274,
96,
3114,
77,
920,
121,
3430,
215,
3274,
96,
2294,
4314,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What's the average round Red Bryant was drafted with a pick larger than 121? | CREATE TABLE table_42184 (
"Round" real,
"Pick" real,
"Name" text,
"Position" text,
"College" text
) | SELECT AVG("Round") FROM table_42184 WHERE "Name" = 'red bryant' AND "Pick" > '121' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4165,
25987,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
9939,
7883,
121,
1499,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
448,
32,
1106,
8512,
21680,
953,
834,
4165,
25987,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
1271,
6397,
63,
288,
31,
3430,
96,
345,
3142,
121,
2490,
3,
31,
22011,
31,
1,
-100,
-100,
-100,... |
What is the smallest number of field goals for players with 4 touchdowns and less than 9 extra points? | CREATE TABLE table_name_5 (
field_goals INTEGER,
touchdowns VARCHAR,
extra_points VARCHAR
) | SELECT MIN(field_goals) FROM table_name_5 WHERE touchdowns = 4 AND extra_points < 9 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
755,
41,
1057,
834,
839,
5405,
3,
21342,
17966,
6,
19396,
7,
584,
4280,
28027,
6,
996,
834,
2700,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
1846,
834,
839,
5405,
61,
21680,
953,
834,
4350,
834,
755,
549,
17444,
427,
19396,
7,
3274,
314,
3430,
996,
834,
2700,
7,
3,
2,
668,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is the total face value of 1.00 in 2011 ? | CREATE TABLE table_204_44 (
id number,
"face value" number,
"\u20ac0.01" number,
"\u20ac0.02" number,
"\u20ac0.05" number,
"\u20ac0.10" number,
"\u20ac0.20" number,
"\u20ac0.50" number,
"\u20ac1.00" number,
"\u20ac2.00" number
) | SELECT "\u20ac1.00" FROM table_204_44 WHERE "face value" = 2011 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3628,
41,
3,
23,
26,
381,
6,
96,
4861,
701,
121,
381,
6,
96,
2,
76,
1755,
9,
75,
11739,
536,
121,
381,
6,
96,
2,
76,
1755,
9,
75,
11739,
357,
121,
381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
2,
76,
1755,
9,
75,
536,
4200,
121,
21680,
953,
834,
26363,
834,
3628,
549,
17444,
427,
96,
4861,
701,
121,
3274,
2722,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
allergy against hydroxyethyl starch | CREATE TABLE table_train_71 (
"id" int,
"gender" string,
"language" string,
"intention_to_arterial_catheter" bool,
"renal_disease" bool,
"sepsis" bool,
"allergy_to_hydroxyethyl_starch" bool,
"age" float,
"NOUSE" float
) | SELECT * FROM table_train_71 WHERE allergy_to_hydroxyethyl_starch = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
4450,
41,
96,
23,
26,
121,
16,
17,
6,
96,
122,
3868,
121,
6108,
6,
96,
24925,
121,
6108,
6,
96,
77,
9174,
834,
235,
834,
1408,
15,
12042,
834,
2138,
88,
449,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9719,
834,
4450,
549,
17444,
427,
23886,
834,
235,
834,
30966,
15,
189,
63,
40,
834,
3624,
524,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Network has 17.5 million Viewers? | CREATE TABLE table_78362 (
"Year" real,
"Network" text,
"Lap-by-lap" text,
"s Color commentator" text,
"Pre-Race Host" text,
"Pre-Race Analyst(s)" text,
"Ratings" text,
"Viewers" text
) | SELECT "Network" FROM table_78362 WHERE "Viewers" = '17.5 million' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3940,
3420,
357,
41,
96,
476,
2741,
121,
490,
6,
96,
9688,
1981,
121,
1499,
6,
96,
3612,
102,
18,
969,
18,
8478,
121,
1499,
6,
96,
7,
6088,
1670,
1016,
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,
9688,
1981,
121,
21680,
953,
834,
3940,
3420,
357,
549,
17444,
427,
96,
15270,
277,
121,
3274,
3,
31,
536,
15731,
770,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What year did the United States win with a total of 278? | CREATE TABLE table_name_4 (
year_s__won VARCHAR,
country VARCHAR,
total VARCHAR
) | SELECT year_s__won FROM table_name_4 WHERE country = "united states" AND total = 278 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
215,
834,
7,
834,
834,
210,
106,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
215,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
215,
834,
7,
834,
834,
210,
106,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
684,
3274,
96,
15129,
15,
26,
2315,
121,
3430,
792,
3274,
204,
3940,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest amount of yards when the average is 9.5? | CREATE TABLE table_34801 (
"Player" text,
"Number" real,
"Yards" real,
"Average" real,
"Long" real,
"Touchdowns" real
) | SELECT MAX("Yards") FROM table_34801 WHERE "Average" = '9.5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3710,
2079,
536,
41,
96,
15800,
49,
121,
1499,
6,
96,
567,
5937,
49,
121,
490,
6,
96,
476,
986,
7,
121,
490,
6,
96,
188,
624,
545,
121,
490,
6,
96,
434,
2444,
121,
49... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
476,
986,
7,
8512,
21680,
953,
834,
3710,
2079,
536,
549,
17444,
427,
96,
188,
624,
545,
121,
3274,
3,
31,
22321,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
which island is listed before the town/village of argir ? | CREATE TABLE table_203_568 (
id number,
"town/village" text,
"population" number,
"postal code" text,
"municipality" text,
"island" text,
"location" text
) | SELECT "island" FROM table_203_568 WHERE id = (SELECT id FROM table_203_568 WHERE "town/village" = 'argir') - 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
755,
3651,
41,
3,
23,
26,
381,
6,
96,
3540,
87,
208,
17614,
121,
1499,
6,
96,
9791,
7830,
121,
381,
6,
96,
5950,
138,
1081,
121,
1499,
6,
96,
11760,
3389,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
159,
40,
232,
121,
21680,
953,
834,
23330,
834,
755,
3651,
549,
17444,
427,
3,
23,
26,
3274,
41,
23143,
14196,
3,
23,
26,
21680,
953,
834,
23330,
834,
755,
3651,
549,
17444,
427,
96,
3540,
87,
208,
17614,
121,... |
What is the notes for the rowers from denmark? | CREATE TABLE table_name_26 (notes VARCHAR, country VARCHAR) | SELECT notes FROM table_name_26 WHERE country = "denmark" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
7977,
7,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3358,
21,
8,
7358,
277,
45,
177,
3920,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3358,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
684,
3274,
96,
537,
3920,
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 record for the game that shows the Rose Garden 20,126 as attendance? | CREATE TABLE table_10220 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Attendance" text,
"Record" text,
"Streak" text
) | SELECT "Record" FROM table_10220 WHERE "Attendance" = 'rose garden 20,126' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
14388,
1755,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
2796,
9,
26,
53,
2604,
52,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
7621,
121,
21680,
953,
834,
14388,
1755,
549,
17444,
427,
96,
188,
17,
324,
26,
663,
121,
3274,
3,
31,
8115,
2004,
16047,
21976,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What percentage of browsers were using Firefox or other Mozilla browsers during the period in which 1.93% were using Chrome? | CREATE TABLE table_name_12 (firefox_ VARCHAR, _other_mozilla VARCHAR, chrome VARCHAR) | SELECT firefox_, _other_mozilla FROM table_name_12 WHERE chrome = "1.93%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
6608,
20400,
834,
584,
4280,
28027,
6,
3,
834,
9269,
834,
51,
32,
29885,
584,
4280,
28027,
6,
17520,
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,
1472,
20400,
834,
6,
3,
834,
9269,
834,
51,
32,
29885,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
17520,
3274,
96,
22493,
5170,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
give me some good arabic restaurants in mountain view ? | CREATE TABLE restaurant (
id int,
name varchar,
food_type varchar,
city_name varchar,
rating "decimal
)
CREATE TABLE geographic (
city_name varchar,
county varchar,
region varchar
)
CREATE TABLE location (
restaurant_id int,
house_number int,
street_name varchar,
city_n... | SELECT location.house_number, restaurant.name FROM location, restaurant WHERE location.city_name = 'mountain view' AND restaurant.food_type = 'arabic' AND restaurant.id = location.restaurant_id AND restaurant.rating > 2.5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2062,
41,
3,
23,
26,
16,
17,
6,
564,
3,
4331,
4059,
6,
542,
834,
6137,
3,
4331,
4059,
6,
690,
834,
4350,
3,
4331,
4059,
6,
5773,
96,
24223,
1982,
3,
61,
3,
32102,
32103,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1128,
5,
1840,
834,
5525,
1152,
6,
2062,
5,
4350,
21680,
1128,
6,
2062,
549,
17444,
427,
1128,
5,
6726,
834,
4350,
3274,
3,
31,
11231,
9,
77,
903,
31,
3430,
2062,
5,
12437,
834,
6137,
3274,
3,
31,
2551,
15979,
3... |
Who proceeded to the quarter final when the london irish were eliminated from competition? | CREATE TABLE table_28068063_3 (
proceed_to_quarter_final VARCHAR,
eliminated_from_competition VARCHAR
) | SELECT proceed_to_quarter_final FROM table_28068063_3 WHERE eliminated_from_competition = "London Irish" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
5176,
2079,
3891,
834,
519,
41,
8669,
834,
235,
834,
19973,
834,
12406,
584,
4280,
28027,
6,
17809,
834,
7152,
834,
287,
4995,
4749,
584,
4280,
28027,
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,
8669,
834,
235,
834,
19973,
834,
12406,
21680,
953,
834,
2577,
5176,
2079,
3891,
834,
519,
549,
17444,
427,
17809,
834,
7152,
834,
287,
4995,
4749,
3274,
96,
29712,
7262,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is the total humber of home stadiums for the 2010 chinese super league clubs ? | CREATE TABLE table_203_581 (
id number,
"club" text,
"chinese" text,
"city" text,
"home stadium" text,
"capacity" number,
"average attendance" number
) | SELECT COUNT("home stadium") FROM table_203_581 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
3449,
536,
41,
3,
23,
26,
381,
6,
96,
13442,
121,
1499,
6,
96,
1436,
1496,
15,
121,
1499,
6,
96,
6726,
121,
1499,
6,
96,
5515,
14939,
121,
1499,
6,
96,
4010... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5515,
14939,
8512,
21680,
953,
834,
23330,
834,
3449,
536,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which date has a To par of –12? | CREATE TABLE table_name_53 (date VARCHAR, to_par VARCHAR) | SELECT date FROM table_name_53 WHERE to_par = "–12" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
5522,
584,
4280,
28027,
6,
12,
834,
1893,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
833,
65,
3,
9,
304,
260,
13,
3,
104,
2122,
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,
4867,
549,
17444,
427,
12,
834,
1893,
3274,
96,
104,
2122,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How much Time has a Reaction of 0.155, and an Athlete of kristof beyens, and a Rank smaller than 3? | CREATE TABLE table_79588 (
"Rank" real,
"Lane" real,
"Athlete" text,
"Nationality" text,
"Time" real,
"React" real
) | SELECT COUNT("Time") FROM table_79588 WHERE "React" = '0.155' AND "Athlete" = 'kristof beyens' AND "Rank" < '3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3301,
4060,
41,
96,
22557,
121,
490,
6,
96,
434,
152,
15,
121,
490,
6,
96,
188,
189,
1655,
15,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
13368,
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,
2847,
17161,
599,
121,
13368,
8512,
21680,
953,
834,
940,
3301,
4060,
549,
17444,
427,
96,
1649,
2708,
121,
3274,
3,
31,
16029,
3769,
31,
3430,
96,
188,
189,
1655,
15,
121,
3274,
3,
31,
157,
17149,
89,
36,
63,
35,... |
What is the description of the restaurant type Sandwich? | CREATE TABLE restaurant_type (
restypeid number,
restypename text,
restypedescription text
)
CREATE TABLE visits_restaurant (
stuid number,
resid number,
time time,
spent number
)
CREATE TABLE restaurant (
resid number,
resname text,
address text,
rating number
)
CREATE TA... | SELECT restypedescription FROM restaurant_type WHERE restypename = "Sandwich" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2062,
834,
6137,
41,
3,
60,
7,
6137,
23,
26,
381,
6,
3,
60,
7,
6137,
4350,
1499,
6,
880,
63,
3138,
15,
11830,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
83... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
880,
63,
3138,
15,
11830,
21680,
2062,
834,
6137,
549,
17444,
427,
3,
60,
7,
6137,
4350,
3274,
96,
134,
232,
210,
362,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
provide the number of patients whose primary disease is congestive heart failure and drug route is pb? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescription... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.diagnosis = "CONGESTIVE HEART FAILURE" AND prescriptions.route = "PB" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
What season did a United States center play in? | CREATE TABLE table_name_46 (
season VARCHAR,
nationality VARCHAR,
position VARCHAR
) | SELECT season FROM table_name_46 WHERE nationality = "united states" AND position = "center" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
774,
584,
4280,
28027,
6,
1157,
485,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
774,
410,
3,
9,
907,
1323,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
774,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
1157,
485,
3274,
96,
15129,
15,
26,
2315,
121,
3430,
1102,
3274,
96,
13866,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
When were the odds of winner 16.66? | CREATE TABLE table_24543 (
"Year" real,
"Horse" text,
"Driver" text,
"Trainer" text,
"Country of owner" text,
"Odds of winner" text,
"Winning time (km rate)" text
) | SELECT "Year" FROM table_24543 WHERE "Odds of winner" = '16.66' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2128,
4906,
41,
96,
476,
2741,
121,
490,
6,
96,
566,
127,
7,
15,
121,
1499,
6,
96,
20982,
52,
121,
1499,
6,
96,
9402,
4899,
121,
1499,
6,
96,
10628,
651,
13,
2527,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
476,
2741,
121,
21680,
953,
834,
357,
2128,
4906,
549,
17444,
427,
96,
667,
26,
26,
7,
13,
4668,
121,
3274,
3,
31,
2938,
5,
3539,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the purse when Sherri Steinhauer was champion at Woburn Golf and Country Club? | CREATE TABLE table_35476 (
"Year" real,
"Date" text,
"Venue" text,
"Champion" text,
"Country" text,
"Score" real,
"To par" text,
"Margin of victory" text,
"Purse ( $ )" real,
"Winner's share ($)" real
) | SELECT COUNT("Purse ( $ )") FROM table_35476 WHERE "Champion" = 'sherri steinhauer' AND "Venue" = 'woburn golf and country club' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
591,
3959,
41,
96,
476,
2741,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
254,
1483,
12364,
121,
1499,
6,
96,
10628,
651,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
345,
3589,
15,
41,
1514,
3,
61,
8512,
21680,
953,
834,
2469,
591,
3959,
549,
17444,
427,
96,
254,
1483,
12364,
121,
3274,
3,
31,
7,
107,
21301,
3,
4008,
107,
12668,
31,
3430,
96,
553,
35,
... |
What was the Outcome of the match with Partner Kateryna Bondarenko? | CREATE TABLE table_7322 (
"Outcome" text,
"Date" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
) | SELECT "Outcome" FROM table_7322 WHERE "Partner" = 'kateryna bondarenko' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4552,
2884,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
13725,
687,
121,
1499,
6,
96,
667,
102,
9977,
7,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15767,
287,
15,
121,
21680,
953,
834,
4552,
2884,
549,
17444,
427,
96,
13725,
687,
121,
3274,
3,
31,
8682,
4203,
29,
9,
6235,
291,
18994,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those employees who do not work in departments with managers that have ids between 100 and 200, a bar chart shows the distribution of first_name and employee_id , order by the X in ascending. | CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,... | SELECT FIRST_NAME, EMPLOYEE_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY FIRST_NAME | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6266,
41,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
11116,
632,
201,
4083,
517,
9215,
834,
567,
17683,
3,
4331,
4059,
599,
1828,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
30085,
834,
567,
17683,
6,
262,
5244,
5017,
476,
5080,
834,
4309,
21680,
1652,
549,
17444,
427,
4486,
3396,
19846,
11810,
834,
4309,
3388,
41,
23143,
14196,
3396,
19846,
11810,
834,
4309,
21680,
10521,
549,
17444,
427,
... |
What's the built date when the CR number is more than 940 and the LMS number is 14760? | CREATE TABLE table_name_57 (
built VARCHAR,
cr_no VARCHAR,
lms_no VARCHAR
) | SELECT built FROM table_name_57 WHERE cr_no > 940 AND lms_no = 14760 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
1192,
584,
4280,
28027,
6,
5764,
834,
29,
32,
584,
4280,
28027,
6,
3,
40,
51,
7,
834,
29,
32,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1192,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
5764,
834,
29,
32,
2490,
668,
2445,
3430,
3,
40,
51,
7,
834,
29,
32,
3274,
968,
28212,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the total number of away wins ? | CREATE TABLE table_203_269 (
id number,
"season" text,
"competition" text,
"round" text,
"club" text,
"home" text,
"away" text,
"aggregate" text
) | SELECT COUNT(*) FROM table_203_269 WHERE "away" > "away" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
357,
3951,
41,
3,
23,
26,
381,
6,
96,
9476,
121,
1499,
6,
96,
287,
4995,
4749,
121,
1499,
6,
96,
7775,
121,
1499,
6,
96,
13442,
121,
1499,
6,
96,
5515,
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,
1935,
61,
21680,
953,
834,
23330,
834,
357,
3951,
549,
17444,
427,
96,
8006,
121,
2490,
96,
8006,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the 2003 statistic for general cargo? | CREATE TABLE table_56395 (
"Product" text,
"2004" text,
"2003" text,
"2002" text,
"2001" text
) | SELECT "2003" FROM table_56395 WHERE "Product" = 'general cargo' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4834,
519,
3301,
41,
96,
3174,
7472,
121,
1499,
6,
96,
21653,
121,
1499,
6,
96,
23948,
121,
1499,
6,
96,
24898,
121,
1499,
6,
96,
23658,
121,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
23948,
121,
21680,
953,
834,
4834,
519,
3301,
549,
17444,
427,
96,
3174,
7472,
121,
3274,
3,
31,
27369,
15470,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the rank of the team with a time of 1:00.61? | CREATE TABLE table_63671 (
"Rank" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" text
) | SELECT AVG("Rank") FROM table_63671 WHERE "Time" = '1:00.61' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
3708,
536,
41,
96,
22557,
121,
490,
6,
96,
434,
152,
15,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
13368,
121,
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,
71,
17217,
599,
121,
22557,
8512,
21680,
953,
834,
3891,
3708,
536,
549,
17444,
427,
96,
13368,
121,
3274,
3,
31,
24294,
5,
4241,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
who was the opponent when the week was 9? | CREATE TABLE table_name_44 (
opponent VARCHAR,
week VARCHAR
) | SELECT opponent FROM table_name_44 WHERE week = "9" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
15264,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
113,
47,
8,
15264,
116,
8,
471,
47,
668,
58,
1,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
471,
3274,
96,
1298,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What home has February 10 as the date? | CREATE TABLE table_name_67 (home VARCHAR, date VARCHAR) | SELECT home FROM table_name_67 WHERE date = "february 10" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
5515,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
234,
65,
2083,
335,
38,
8,
833,
58,
1,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
3,
23143,
14196,
234,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
833,
3274,
96,
89,
15,
9052,
1208,
335,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
In what Week was the Result W 27-24? | CREATE TABLE table_name_1 (week INTEGER, result VARCHAR) | SELECT MAX(week) FROM table_name_1 WHERE result = "w 27-24" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
8041,
3,
21342,
17966,
6,
741,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
86,
125,
6551,
47,
8,
3,
20119,
549,
2307,
14962,
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,
4800,
4,
599,
8041,
61,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
741,
3274,
96,
210,
2307,
14962,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total number of races in the 2006 season with 0 poles and more than 0 podiums? | CREATE TABLE table_name_54 (
races VARCHAR,
podiums VARCHAR,
poles VARCHAR,
season VARCHAR
) | SELECT COUNT(races) FROM table_name_54 WHERE poles = 0 AND season = "2006" AND podiums > 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
10879,
584,
4280,
28027,
6,
22828,
7,
584,
4280,
28027,
6,
11148,
7,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
12614,
7,
61,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
11148,
7,
3274,
3,
632,
3430,
774,
3274,
96,
21196,
121,
3430,
22828,
7,
2490,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those employees who was hired before 2002-06-21, draw a bar chart about the distribution of job_id and the average of salary , and group by attribute job_id, list X-axis in descending order. | CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),... | SELECT JOB_ID, AVG(SALARY) FROM employees WHERE HIRE_DATE < '2002-06-21' GROUP BY JOB_ID ORDER BY JOB_ID DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1440,
41,
2847,
17161,
11824,
834,
4309,
3,
4331,
4059,
16426,
6,
2847,
17161,
11824,
834,
567,
17683,
3,
4331,
4059,
599,
2445,
201,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
1714,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
446,
10539,
834,
4309,
6,
71,
17217,
599,
134,
4090,
24721,
61,
21680,
1652,
549,
17444,
427,
454,
14132,
834,
308,
6048,
3,
2,
3,
31,
24898,
18,
5176,
16539,
31,
350,
4630,
6880,
272,
476,
446,
10539,
834,
4309,
... |
Who won the Bronze at Melbourne? | CREATE TABLE table_name_59 (
bronze VARCHAR,
place VARCHAR
) | SELECT bronze FROM table_name_59 WHERE place = "melbourne" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
13467,
584,
4280,
28027,
6,
286,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
751,
8,
20841,
44,
9396,
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,
13467,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
286,
3274,
96,
2341,
26255,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who was the MVP the season Scaligera Verona were Champions? | CREATE TABLE table_19651669_1 (
mvp VARCHAR,
champion VARCHAR
) | SELECT mvp FROM table_19651669_1 WHERE champion = "Scaligera Verona" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
4122,
2938,
3951,
834,
536,
41,
3,
51,
208,
102,
584,
4280,
28027,
6,
6336,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
27203,
8,
774,
13380,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
51,
208,
102,
21680,
953,
834,
2294,
4122,
2938,
3951,
834,
536,
549,
17444,
427,
6336,
3274,
96,
134,
1489,
4424,
9,
781,
106,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What year was the wheel arrangement 0-6-0 and a class 302? | CREATE TABLE table_name_76 (
year_made VARCHAR,
wheel_arrangement VARCHAR,
class VARCHAR
) | SELECT year_made FROM table_name_76 WHERE wheel_arrangement = "0-6-0" AND class = "302" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
215,
834,
4725,
584,
4280,
28027,
6,
5094,
834,
291,
5517,
297,
584,
4280,
28027,
6,
853,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
215,
834,
4725,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
5094,
834,
291,
5517,
297,
3274,
96,
9498,
28625,
121,
3430,
853,
3274,
96,
1458,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is fitzroy's score as the home team? | CREATE TABLE table_name_49 (home_team VARCHAR) | SELECT home_team AS score FROM table_name_49 WHERE home_team = "fitzroy" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
5515,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
1400,
172,
8170,
31,
7,
2604,
38,
8,
234,
372,
58,
1,
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,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
234,
834,
11650,
3274,
96,
89,
5615,
8170,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
patient 032-32248 had undergone a wound care - special care bed in other hospitals? | CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE microlab (
microlabid number,
... | SELECT COUNT(*) > 0 FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.uniquepid = '032-32248' AND patient.hospitalid <> (SELECT DISTINCT patient.hospitalid FROM patient WHERE patient.uniquepid = '032-32248' AND patient.hospitaldischargetime IS NULL)) AND tr... | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1058,
41,
1058,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
1058,
4350,
1499,
6,
1058,
715,
97,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
23886,
41,
23886,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2490,
3,
632,
21680,
1058,
549,
17444,
427,
1058,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
202,
... |
What is the name of the artist who joined latest? | CREATE TABLE artist (
name VARCHAR,
year_join VARCHAR
) | SELECT name FROM artist ORDER BY year_join DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2377,
41,
564,
584,
4280,
28027,
6,
215,
834,
1927,
77,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
13,
8,
2377,
113,
3311,
1251,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
21680,
2377,
4674,
11300,
272,
476,
215,
834,
1927,
77,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the category for 50 totals | CREATE TABLE table_26611679_3 (category VARCHAR, totals VARCHAR) | SELECT category FROM table_26611679_3 WHERE totals = "50" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3539,
20159,
4440,
834,
519,
41,
8367,
839,
651,
584,
4280,
28027,
6,
792,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
3295,
21,
943,
792,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3295,
21680,
953,
834,
357,
3539,
20159,
4440,
834,
519,
549,
17444,
427,
792,
7,
3274,
96,
1752,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the record of the match that had a time of 1:44? | CREATE TABLE table_71890 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
) | SELECT "Record" FROM table_71890 WHERE "Time" = '1:44' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2606,
2394,
41,
96,
1649,
7,
535,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
23351,
107,
32,
26,
121,
1499,
6,
96,
427,
2169,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
7621,
121,
21680,
953,
834,
940,
2606,
2394,
549,
17444,
427,
96,
13368,
121,
3274,
3,
31,
536,
10,
3628,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which batting team had 624 runs? | CREATE TABLE table_8801 (
"Runs" text,
"Wicket" text,
"Batting partners" text,
"Batting team" text,
"Fielding team" text,
"Venue" text,
"Season" text
) | SELECT "Batting team" FROM table_8801 WHERE "Runs" = '624' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4060,
4542,
41,
96,
448,
202,
7,
121,
1499,
6,
96,
518,
447,
8044,
121,
1499,
6,
96,
279,
9,
6031,
3222,
121,
1499,
6,
96,
279,
9,
6031,
372,
121,
1499,
6,
96,
3183,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9,
6031,
372,
121,
21680,
953,
834,
4060,
4542,
549,
17444,
427,
96,
448,
202,
7,
121,
3274,
3,
31,
948,
2266,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Show all cities and corresponding number of students by a bar chart, and display in desc by the bars. | CREATE TABLE Allergy_Type (
Allergy VARCHAR(20),
AllergyType VARCHAR(20)
)
CREATE TABLE Has_Allergy (
StuID INTEGER,
Allergy VARCHAR(20)
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER... | SELECT city_code, COUNT(*) FROM Student GROUP BY city_code ORDER BY city_code DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
432,
49,
122,
63,
834,
25160,
41,
432,
49,
122,
63,
584,
4280,
28027,
599,
1755,
201,
432,
49,
122,
63,
25160,
584,
4280,
28027,
599,
1755,
61,
3,
61,
3,
32102,
32103,
32102,
205,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
690,
834,
4978,
6,
2847,
17161,
599,
1935,
61,
21680,
6341,
350,
4630,
6880,
272,
476,
690,
834,
4978,
4674,
11300,
272,
476,
690,
834,
4978,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Where did arturo segovia compete? | CREATE TABLE table_15583 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
) | SELECT "Location" FROM table_15583 WHERE "Opponent" = 'arturo segovia' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20896,
4591,
41,
96,
1649,
7,
535,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
23351,
107,
32,
26,
121,
1499,
6,
96,
427,
2169,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
32,
75,
257,
121,
21680,
953,
834,
20896,
4591,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
1408,
450,
32,
142,
839,
5907,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what is the number of patients whose ethnicity is white and lab test name is total protein, body fluid? | 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 INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.ethnicity = "WHITE" AND lab.label = "Total Protein, Body Fluid" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
bmi 20 _ 30 kg / m2 | CREATE TABLE table_train_256 (
"id" int,
"mini_mental_state_examination_mmse" int,
"language" string,
"mild_cognitive_impairment" bool,
"moca_score" int,
"dementia" bool,
"body_mass_index_bmi" float,
"age" float,
"NOUSE" float
) | SELECT * FROM table_train_256 WHERE body_mass_index_bmi >= 20 AND body_mass_index_bmi <= 30 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
19337,
41,
96,
23,
26,
121,
16,
17,
6,
96,
7619,
834,
13974,
834,
5540,
834,
994,
9,
14484,
834,
635,
7,
15,
121,
16,
17,
6,
96,
24925,
121,
6108,
6,
96,
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,
1429,
21680,
953,
834,
9719,
834,
19337,
549,
17444,
427,
643,
834,
2754,
7,
834,
18288,
834,
115,
51,
23,
2490,
2423,
460,
3430,
643,
834,
2754,
7,
834,
18288,
834,
115,
51,
23,
3,
2,
2423,
604,
1,
-100,
-100,
... |
How many US events did jason bennett win? | CREATE TABLE table_name_83 (events_won__us_series_ INTEGER, name VARCHAR) | SELECT AVG(events_won__us_series_) FROM table_name_83 WHERE name = "jason bennett" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
15,
2169,
7,
834,
210,
106,
834,
834,
302,
834,
10833,
7,
834,
3,
21342,
17966,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
15,
2169,
7,
834,
210,
106,
834,
834,
302,
834,
10833,
7,
834,
61,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
564,
3274,
96,
1191,
739,
36,
29,
10544,
121,
1,
-100,
-100,
-100,
-100,
-100,
... |
What is the Spanish title of the film whose title used in nomination was Ogu and Mampato in Rapa Nui? | CREATE TABLE table_20404716_1 (spanish_title VARCHAR, film_title_used_in_nomination VARCHAR) | SELECT spanish_title FROM table_20404716_1 WHERE film_title_used_in_nomination = "Ogu and Mampato in Rapa Nui" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
2445,
4177,
2938,
834,
536,
41,
7,
2837,
1273,
834,
21869,
584,
4280,
28027,
6,
814,
834,
21869,
834,
10064,
834,
77,
834,
29,
32,
14484,
584,
4280,
28027,
61,
3,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
8438,
1273,
834,
21869,
21680,
953,
834,
1755,
2445,
4177,
2938,
834,
536,
549,
17444,
427,
814,
834,
21869,
834,
10064,
834,
77,
834,
29,
32,
14484,
3274,
96,
667,
1744,
11,
283,
4624,
9,
235,
16,
15052,
9,
1174,
... |
Who are the scorers when the score is 9-2? | CREATE TABLE table_name_4 (scorers VARCHAR, score VARCHAR) | SELECT scorers FROM table_name_4 WHERE score = "9-2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
7,
5715,
277,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
33,
8,
14056,
277,
116,
8,
2604,
19,
668,
4949,
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,
14056,
277,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
2604,
3274,
96,
1298,
4949,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total number of losses against the Rajasthan Royals with more than 0 ties? | CREATE TABLE table_7657 (
"Opposition" text,
"Span" text,
"Lost" real,
"Tied" real,
"Success Rate" text
) | SELECT COUNT("Lost") FROM table_7657 WHERE "Opposition" = 'rajasthan royals' AND "Tied" > '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3959,
3436,
41,
96,
667,
102,
4718,
121,
1499,
6,
96,
19675,
121,
1499,
6,
96,
434,
3481,
121,
490,
6,
96,
382,
5973,
121,
490,
6,
96,
134,
17431,
15,
7,
7,
13002,
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,
434,
3481,
8512,
21680,
953,
834,
3959,
3436,
549,
17444,
427,
96,
667,
102,
4718,
121,
3274,
3,
31,
9655,
9,
7,
6736,
11268,
7,
31,
3430,
96,
382,
5973,
121,
2490,
3,
31,
632,
31,
1,
-100... |
What is the 2008 for the 2009 ch our charming lady? | CREATE TABLE table_name_89 (
Id VARCHAR
) | SELECT 2008 FROM table_name_89 WHERE 2009 = "ch our charming lady" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2628,
21,
8,
2464,
3,
524,
69,
12216,
9360,
58,
1,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2628,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
2464,
3274,
96,
524,
69,
12216,
9360,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the to par score in the match that had a score of 76-71-78-67=292? | CREATE TABLE table_name_49 (to_par VARCHAR, score VARCHAR) | SELECT COUNT(to_par) FROM table_name_49 WHERE score = 76 - 71 - 78 - 67 = 292 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
235,
834,
1893,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
12,
260,
2604,
16,
8,
1588,
24,
141,
3,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
235,
834,
1893,
61,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
2604,
3274,
3,
3959,
3,
18,
3,
4450,
3,
18,
3,
3940,
3,
18,
3,
3708,
3274,
204,
4508,
1,
-100,
-100,
-100,
-100,
-100,
-10... |
what are the different software platforms for devices, and how many devices have each?, order in ascending by the the total number please. | CREATE TABLE stock (
Shop_ID int,
Device_ID int,
Quantity int
)
CREATE TABLE device (
Device_ID int,
Device text,
Carrier text,
Package_Version text,
Applications text,
Software_Platform text
)
CREATE TABLE shop (
Shop_ID int,
Shop_Name text,
Location text,
Open_Dat... | SELECT Software_Platform, COUNT(*) FROM device GROUP BY Software_Platform ORDER BY COUNT(*) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1519,
41,
3687,
834,
4309,
16,
17,
6,
15511,
834,
4309,
16,
17,
6,
12716,
485,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1407,
41,
15511,
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,
1... | [
3,
23143,
14196,
4300,
834,
10146,
2032,
6,
2847,
17161,
599,
1935,
61,
21680,
1407,
350,
4630,
6880,
272,
476,
4300,
834,
10146,
2032,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.