NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
how many patients are born before 2120 and tested with blood in lab? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "2120" AND lab.fluid = "Blood" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the highest number of points a player got during the game on May 25? | CREATE TABLE table_name_85 (
high_points VARCHAR,
date VARCHAR
) | SELECT high_points FROM table_name_85 WHERE date = "may 25" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
306,
834,
2700,
7,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
381,
13,
979,
3,
9,
1959,
530,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
306,
834,
2700,
7,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
833,
3274,
96,
13726,
944,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is 2011, when 2006 is 'A', when 2008 is 'A', and when Tournament is 'Rome'? | CREATE TABLE table_78686 (
"Tournament" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text
) | SELECT "2011" FROM table_78686 WHERE "2006" = 'a' AND "2008" = 'a' AND "Tournament" = 'rome' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3940,
3651,
948,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
21653,
121,
1499,
6,
96,
22594,
121,
1499,
6,
96,
21196,
121,
1499,
6,
96,
20615,
121,
1499,
6,
96,
16128... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
13907,
121,
21680,
953,
834,
3940,
3651,
948,
549,
17444,
427,
96,
21196,
121,
3274,
3,
31,
9,
31,
3430,
96,
16128,
121,
3274,
3,
31,
9,
31,
3430,
96,
382,
1211,
20205,
17,
121,
3274,
3,
31,
11956,
31,
1,
... |
Who is the famous for that finished 2nd? | CREATE TABLE table_14345690_5 (
famous_for VARCHAR,
finished VARCHAR
) | SELECT famous_for FROM table_14345690_5 WHERE finished = "2nd" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
3710,
4834,
2394,
834,
755,
41,
2581,
834,
1161,
584,
4280,
28027,
6,
2369,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
2581,
21,
24,
2369,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2581,
834,
1161,
21680,
953,
834,
2534,
3710,
4834,
2394,
834,
755,
549,
17444,
427,
2369,
3274,
96,
357,
727,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
how many democrats were re elected ? | CREATE TABLE table_203_615 (
id number,
"district" text,
"incumbent" text,
"party" text,
"first\nelected" number,
"result" text,
"candidates" text
) | SELECT COUNT(*) FROM table_203_615 WHERE "party" = 'democratic' AND "result" = 're-elected' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
948,
1808,
41,
3,
23,
26,
381,
6,
96,
26,
23,
20066,
121,
1499,
6,
96,
77,
75,
5937,
295,
121,
1499,
6,
96,
8071,
121,
1499,
6,
96,
14672,
2,
29,
19971,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
948,
1808,
549,
17444,
427,
96,
8071,
121,
3274,
3,
31,
23319,
447,
31,
3430,
96,
60,
7,
83,
17,
121,
3274,
3,
31,
60,
18,
19971,
31,
1,
-100,
-100,
-100,... |
What is the Result of the Competition at MBPJ Stadium with a Score of 4 0? | CREATE TABLE table_76767 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Result" FROM table_76767 WHERE "Score" = '4–0' AND "Venue" = 'mbpj stadium' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3708,
3708,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20119,
121,
21680,
953,
834,
940,
3708,
3708,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
591,
104,
632,
31,
3430,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
51,
115,
102,
354,
14939,
31,
1,
-100,
-100,
... |
Draw a bar chart of operating system versus the total number, order in asc by the Y. | CREATE TABLE Web_client_accelerator (
id int,
name text,
Operating_system text,
Client text,
Connection text
)
CREATE TABLE accelerator_compatible_browser (
accelerator_id int,
browser_id int,
compatible_since_year int
)
CREATE TABLE browser (
id int,
name text,
market_shar... | SELECT Operating_system, COUNT(*) FROM Web_client_accelerator GROUP BY Operating_system ORDER BY COUNT(*) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1620,
834,
26693,
834,
6004,
15,
1171,
1016,
41,
3,
23,
26,
16,
17,
6,
564,
1499,
6,
21606,
834,
3734,
1499,
6,
6371,
1499,
6,
19466,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
21606,
834,
3734,
6,
2847,
17161,
599,
1935,
61,
21680,
1620,
834,
26693,
834,
6004,
15,
1171,
1016,
350,
4630,
6880,
272,
476,
21606,
834,
3734,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
1,
-100,
-100,
-100,... |
Who is the player when the pick is 22 and the year [A] is after 1979? | CREATE TABLE table_63561 (
"Year [A ]" real,
"Pick" text,
"Player name" text,
"Position" text,
"College" text
) | SELECT "Player name" FROM table_63561 WHERE "Pick" = '22' AND "Year [A ]" > '1979' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
4834,
536,
41,
96,
476,
2741,
784,
188,
3,
908,
121,
490,
6,
96,
345,
3142,
121,
1499,
6,
96,
15800,
49,
564,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15800,
49,
564,
121,
21680,
953,
834,
3891,
4834,
536,
549,
17444,
427,
96,
345,
3142,
121,
3274,
3,
31,
2884,
31,
3430,
96,
476,
2741,
784,
188,
3,
908,
121,
2490,
3,
31,
2294,
4440,
31,
1,
-100,
-100,
-100... |
What is the most number of truck loads north? | CREATE TABLE table_12791809_1 (
number_of_truck_loads_north INTEGER
) | SELECT MAX(number_of_truck_loads_north) FROM table_12791809_1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
4440,
2606,
4198,
834,
536,
41,
381,
834,
858,
834,
28105,
834,
7134,
7,
834,
29,
127,
189,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
167,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
5525,
1152,
834,
858,
834,
28105,
834,
7134,
7,
834,
29,
127,
189,
61,
21680,
953,
834,
2122,
4440,
2606,
4198,
834,
536,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who had the most laps led in monterey, california when scott rarick won the race? | CREATE TABLE table_25668203_2 (most_laps_led VARCHAR, location VARCHAR, winning_driver VARCHAR) | SELECT most_laps_led FROM table_25668203_2 WHERE location = "Monterey, California" AND winning_driver = "Scott Rarick" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19337,
3651,
23330,
834,
357,
41,
5463,
834,
8478,
7,
834,
1361,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
6,
3447,
834,
13739,
52,
584,
4280,
28027,
61,
3,
32102,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
167,
834,
8478,
7,
834,
1361,
21680,
953,
834,
19337,
3651,
23330,
834,
357,
549,
17444,
427,
1128,
3274,
96,
9168,
449,
15,
63,
6,
1826,
121,
3430,
3447,
834,
13739,
52,
3274,
96,
134,
10405,
2922,
5206,
121,
1,
... |
What is the lowest amount of field goals on the chart? | CREATE TABLE table_14342480_7 (field_goals INTEGER) | SELECT MIN(field_goals) FROM table_14342480_7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25133,
4165,
20579,
834,
940,
41,
1846,
834,
839,
5405,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
866,
13,
1057,
1766,
30,
8,
5059,
58,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
1846,
834,
839,
5405,
61,
21680,
953,
834,
25133,
4165,
20579,
834,
940,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many laps were there when time/retired was gearbox? | CREATE TABLE table_name_53 (laps INTEGER, time_retired VARCHAR) | SELECT SUM(laps) FROM table_name_53 WHERE time_retired = "gearbox" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
8478,
7,
3,
21342,
17966,
6,
97,
834,
10682,
1271,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
14941,
7,
130,
132,
116,
97,
87,
1068... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
8478,
7,
61,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
97,
834,
10682,
1271,
3274,
96,
397,
291,
2689,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
In what year is australia/oceania listed? | CREATE TABLE table_29512 (
"Year" text,
"Summits" text,
"Country" text,
"Continent" text,
"Elevation ft" real,
"Elevation m" real
) | SELECT COUNT("Year") FROM table_29512 WHERE "Continent" = 'Australia/Oceania' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
24163,
41,
96,
476,
2741,
121,
1499,
6,
96,
134,
440,
1538,
7,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
16798,
295,
121,
1499,
6,
96,
427,
10912,
257,
3,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
476,
2741,
8512,
21680,
953,
834,
3166,
24163,
549,
17444,
427,
96,
16798,
295,
121,
3274,
3,
31,
31971,
87,
667,
565,
11219,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the composer of El Hanone? | CREATE TABLE table_name_98 (
composer VARCHAR,
title VARCHAR
) | SELECT composer FROM table_name_98 WHERE title = "el hanone" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
13075,
584,
4280,
28027,
6,
2233,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
13075,
13,
1289,
6627,
782,
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,
13075,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
2233,
3274,
96,
15,
40,
3,
2618,
782,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the highest number of bronze medals for nations with under 0 golds? | CREATE TABLE table_name_46 (bronze INTEGER, gold INTEGER) | SELECT MAX(bronze) FROM table_name_46 WHERE gold < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
13711,
776,
3,
21342,
17966,
6,
2045,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
381,
13,
13467,
9365,
7,
21,
9352,
28,
365,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
13711,
776,
61,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
2045,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what is drug route of drug name dexmedetomidine? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
... | SELECT prescriptions.route FROM prescriptions WHERE prescriptions.drug = "Dexmedetomidine" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
7744,
7,
5,
20300,
21680,
7744,
7,
549,
17444,
427,
7744,
7,
5,
26,
13534,
3274,
96,
308,
994,
2726,
15,
235,
51,
30095,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Money ($) when the Place is t6, and Player is chris dimarco? | CREATE TABLE table_name_40 (money___$__ VARCHAR, place VARCHAR, player VARCHAR) | SELECT money___$__ FROM table_name_40 WHERE place = "t6" AND player = "chris dimarco" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
28442,
834,
834,
834,
3229,
834,
834,
584,
4280,
28027,
6,
286,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
540,
834,
834,
834,
3229,
834,
834,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
286,
3274,
96,
17,
948,
121,
3430,
1959,
3274,
96,
524,
52,
159,
1227,
1635,
509,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When st kilda played as the away team, what date was that? | CREATE TABLE table_name_67 (
date VARCHAR,
away_team VARCHAR
) | SELECT date FROM table_name_67 WHERE away_team = "st kilda" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
833,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
3,
7,
17,
3,
157,
173,
26,
9,
1944,
38,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
550,
834,
11650,
3274,
96,
7,
17,
3,
157,
173,
26,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When through 2001 to 2002 the duration is 0.5 what is the term abroad? | CREATE TABLE table_22527 (
"Term Abroad" text,
"2000/01" text,
"2001/02" text,
"2002/03" text,
"2003/04" text,
"2004/05" text,
"2005/06" text,
"2006/07" text,
"2007/08" text,
"2008/09" text
) | SELECT "Term Abroad" FROM table_22527 WHERE "2001/02" = '0.5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20489,
2555,
41,
96,
11679,
891,
8635,
121,
1499,
6,
96,
13527,
87,
4542,
121,
1499,
6,
96,
23658,
87,
4305,
121,
1499,
6,
96,
24898,
87,
4928,
121,
1499,
6,
96,
23948,
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,
96,
11679,
891,
8635,
121,
21680,
953,
834,
20489,
2555,
549,
17444,
427,
96,
23658,
87,
4305,
121,
3274,
3,
31,
12100,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many afc titles did the Cleveland Browns have? | CREATE TABLE table_1952065_4 (afc_titles INTEGER, teams_with_division_titles VARCHAR) | SELECT MAX(afc_titles) FROM table_1952065_4 WHERE teams_with_division_titles = "Cleveland Browns" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22464,
1755,
4122,
834,
591,
41,
9,
89,
75,
834,
21869,
7,
3,
21342,
17966,
6,
2323,
834,
4065,
834,
26,
23,
6610,
834,
21869,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
9,
89,
75,
834,
21869,
7,
61,
21680,
953,
834,
22464,
1755,
4122,
834,
591,
549,
17444,
427,
2323,
834,
4065,
834,
26,
23,
6610,
834,
21869,
7,
3274,
96,
254,
4563,
232,
3899,
7,
121,
1,
-100,
-100... |
What is the branding for fm 88.9? | CREATE TABLE table_66083 (
"Frequency" text,
"Call sign" text,
"Branding" text,
"Format" text,
"Owner" text
) | SELECT "Branding" FROM table_66083 WHERE "Frequency" = 'fm 88.9' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27720,
4591,
41,
96,
371,
60,
835,
11298,
121,
1499,
6,
96,
254,
1748,
1320,
121,
1499,
6,
96,
18304,
727,
53,
121,
1499,
6,
96,
3809,
3357,
121,
1499,
6,
96,
667,
210,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18304,
727,
53,
121,
21680,
953,
834,
27720,
4591,
549,
17444,
427,
96,
371,
60,
835,
11298,
121,
3274,
3,
31,
89,
51,
3,
4060,
5,
1298,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is subject name of subject id 2110? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT demographic.name FROM demographic WHERE demographic.subject_id = "2110" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
4350,
21680,
14798,
549,
17444,
427,
14798,
5,
7304,
11827,
834,
23,
26,
3274,
96,
2658,
1714,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what's the first appearance where character(s) is iron man | CREATE TABLE table_446 (
"Character(s)" text,
"First Appearance" text,
"Cover Date" text,
"Publisher" text,
"Estimated Value" text
) | SELECT "First Appearance" FROM table_446 WHERE "Character(s)" = 'Iron Man' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4448,
41,
96,
18947,
2708,
49,
599,
7,
61,
121,
1499,
6,
96,
25171,
2276,
2741,
663,
121,
1499,
6,
96,
254,
1890,
7678,
121,
1499,
6,
96,
31009,
49,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
25171,
2276,
2741,
663,
121,
21680,
953,
834,
591,
4448,
549,
17444,
427,
96,
18947,
2708,
49,
599,
7,
61,
121,
3274,
3,
31,
196,
52,
106,
1140,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
how many female patients were given the drug with drug code acet1000i? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.gender = "F" AND prescriptions.formulary_drug_cd = "ACET1000I" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
What is the largest Decile with Years of 1–8, anAuthority of state, and a Roll of 141? | CREATE TABLE table_name_46 (decile INTEGER, roll VARCHAR, years VARCHAR, authority VARCHAR) | SELECT MAX(decile) FROM table_name_46 WHERE years = "1–8" AND authority = "state" AND roll = 141 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
24223,
109,
3,
21342,
17966,
6,
3812,
584,
4280,
28027,
6,
203,
584,
4280,
28027,
6,
5015,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
24223,
109,
61,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
203,
3274,
96,
536,
104,
927,
121,
3430,
5015,
3274,
96,
5540,
121,
3430,
3812,
3274,
3,
26059,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the release price (USD) of the microprocessor with a model number pentium dual-core t2330? | CREATE TABLE table_name_32 (release_price___usd__ VARCHAR, model_number VARCHAR) | SELECT release_price___usd__ FROM table_name_32 WHERE model_number = "pentium dual-core t2330" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
21019,
834,
102,
4920,
834,
834,
834,
302,
26,
834,
834,
584,
4280,
28027,
6,
825,
834,
5525,
1152,
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,
1576,
834,
102,
4920,
834,
834,
834,
302,
26,
834,
834,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
825,
834,
5525,
1152,
3274,
96,
102,
295,
2552,
7013,
18,
9022,
3,
17,
2773,
1458,
121,
1,
-100,
-100,
-10... |
When n/a is the cash fate and n/a is the 31-day pass how many types of fare are there? | CREATE TABLE table_20803241_1 (
type_of_fare VARCHAR,
cash_fare VARCHAR,
day_pass VARCHAR
) | SELECT COUNT(type_of_fare) FROM table_20803241_1 WHERE 31 - day_pass = "N/A" AND cash_fare = "N/A" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
2079,
2668,
4853,
834,
536,
41,
686,
834,
858,
834,
89,
355,
584,
4280,
28027,
6,
1723,
834,
89,
355,
584,
4280,
28027,
6,
239,
834,
3968,
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,
2847,
17161,
599,
6137,
834,
858,
834,
89,
355,
61,
21680,
953,
834,
1755,
2079,
2668,
4853,
834,
536,
549,
17444,
427,
2664,
3,
18,
239,
834,
3968,
3274,
96,
567,
87,
188,
121,
3430,
1723,
834,
89,
355,
3274,
96,... |
What is the after debt has receipts of $379,794? | CREATE TABLE table_name_90 (after_debt VARCHAR, total_receipts VARCHAR) | SELECT after_debt FROM table_name_90 WHERE total_receipts = "$379,794" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
10245,
834,
221,
115,
17,
584,
4280,
28027,
6,
792,
834,
60,
565,
23,
102,
17,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
227,
834,
221,
115,
17,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
792,
834,
60,
565,
23,
102,
17,
7,
3274,
96,
3229,
519,
4440,
6,
4440,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the team #2 with Deport as team #1? | CREATE TABLE table_76066 (
"Team #1" text,
"Points" text,
"Team #2" text,
"1st leg" text,
"2nd leg" text
) | SELECT "Team #2" FROM table_76066 WHERE "Team #1" = 'deport' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
28212,
3539,
41,
96,
18699,
7172,
121,
1499,
6,
96,
22512,
7,
121,
1499,
6,
96,
18699,
15493,
121,
1499,
6,
96,
536,
7,
17,
4553,
121,
1499,
6,
96,
357,
727,
4553,
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,
18699,
15493,
121,
21680,
953,
834,
28212,
3539,
549,
17444,
427,
96,
18699,
7172,
121,
3274,
3,
31,
221,
1493,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the Pixie and Dixie skit in episode 7? | CREATE TABLE table_23369 (
"N\u00ba" real,
"Ep" real,
"Huckleberry Hound" text,
"Pixie and Dixie" text,
"Yogi Bear" text,
"Air date" text,
"Credited animators" text
) | SELECT "Pixie and Dixie" FROM table_23369 WHERE "Ep" = '7' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20879,
3951,
41,
96,
567,
2,
76,
1206,
115,
9,
121,
490,
6,
96,
427,
102,
121,
490,
6,
96,
13284,
19376,
7418,
1546,
1106,
121,
1499,
6,
96,
345,
27350,
11,
309,
27350,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
27350,
11,
309,
27350,
121,
21680,
953,
834,
20879,
3951,
549,
17444,
427,
96,
427,
102,
121,
3274,
3,
31,
940,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What player was on the Grizzlies from 2009-2013? | CREATE TABLE table_16494599_1 (
player VARCHAR,
years_for_grizzlies VARCHAR
) | SELECT player FROM table_16494599_1 WHERE years_for_grizzlies = "2009-2013" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
3647,
2128,
3264,
834,
536,
41,
1959,
584,
4280,
28027,
6,
203,
834,
1161,
834,
3496,
5271,
4664,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1959,
47,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
2938,
3647,
2128,
3264,
834,
536,
549,
17444,
427,
203,
834,
1161,
834,
3496,
5271,
4664,
3274,
96,
16660,
18,
11138,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Event has a Round of 1, and a Record of 2 0? | CREATE TABLE table_5626 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" text,
"Location" text
) | SELECT "Event" FROM table_5626 WHERE "Round" = '1' AND "Record" = '2–0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4834,
2688,
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,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
427,
2169,
121,
21680,
953,
834,
4834,
2688,
549,
17444,
427,
96,
448,
32,
1106,
121,
3274,
3,
31,
536,
31,
3430,
96,
1649,
7621,
121,
3274,
3,
31,
357,
104,
632,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the name of the catalog released on 19 July 2008? | CREATE TABLE table_name_55 (
catalog VARCHAR,
date VARCHAR
) | SELECT catalog FROM table_name_55 WHERE date = "19 july 2008" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
10173,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
564,
13,
8,
10173,
1883,
30,
957,
1718,
2628,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
10173,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
833,
3274,
96,
2294,
3,
2047,
120,
2628,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the home team of the game on February 3? | CREATE TABLE table_name_72 (
home VARCHAR,
date VARCHAR
) | SELECT home FROM table_name_72 WHERE date = "february 3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
234,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
234,
372,
13,
8,
467,
30,
2083,
220,
58,
1,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
833,
3274,
96,
89,
15,
9052,
1208,
220,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Time has a Grid of 19? | CREATE TABLE table_name_59 (time VARCHAR, grid VARCHAR) | SELECT time FROM table_name_59 WHERE grid = 19 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
715,
584,
4280,
28027,
6,
8634,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
2900,
65,
3,
9,
23644,
13,
957,
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,
97,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
8634,
3274,
957,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest Round, when Position is Linebacker, and when Player is Thomas Henderson? | CREATE TABLE table_47102 (
"Round" real,
"Pick #" real,
"Player" text,
"Position" text,
"College" text
) | SELECT MIN("Round") FROM table_47102 WHERE "Position" = 'linebacker' AND "Player" = 'thomas henderson' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4177,
14388,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
1713,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
9939,
7883,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
448,
32,
1106,
8512,
21680,
953,
834,
4177,
14388,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
747,
1549,
49,
31,
3430,
96,
15800,
49,
121,
3274,
3,
31,
189,
32,
2754,
3,
107,
... |
What is the System when the Licence is gpl and the Current Version is 1.72? | CREATE TABLE table_name_63 (
system VARCHAR,
license VARCHAR,
current_version VARCHAR
) | SELECT system FROM table_name_63 WHERE license = "gpl" AND current_version = "1.72" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
358,
584,
4280,
28027,
6,
3344,
584,
4280,
28027,
6,
750,
834,
8674,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2149,
116,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
358,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
3344,
3274,
96,
122,
102,
40,
121,
3430,
750,
834,
8674,
3274,
96,
18596,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest points when the ranking is 1st? | CREATE TABLE table_name_60 (points INTEGER, rank VARCHAR) | SELECT MIN(points) FROM table_name_60 WHERE rank = "1st" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
2700,
7,
3,
21342,
17966,
6,
11003,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
979,
116,
8,
11592,
19,
209,
7,
17,
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,
3,
17684,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
11003,
3274,
96,
536,
7,
17,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the driver passenger for 394 points | CREATE TABLE table_21164 (
"Position" real,
"Driver / Passenger" text,
"Equipment" text,
"Bike No" real,
"Points" real
) | SELECT "Driver / Passenger" FROM table_21164 WHERE "Points" = '394' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
26987,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
20982,
52,
3,
87,
3424,
35,
1304,
121,
1499,
6,
96,
427,
23067,
297,
121,
1499,
6,
96,
279,
5208,
465,
121,
490,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20982,
52,
3,
87,
3424,
35,
1304,
121,
21680,
953,
834,
2658,
26987,
549,
17444,
427,
96,
22512,
7,
121,
3274,
3,
31,
3288,
591,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What other cadidate ran against Dave Treen? | CREATE TABLE table_1341663_19 (
candidates VARCHAR,
incumbent VARCHAR
) | SELECT candidates FROM table_1341663_19 WHERE incumbent = "Dave Treen" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2938,
3891,
834,
2294,
41,
4341,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
119,
212,
12416,
342,
4037,
581,
8545,
4691,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4341,
21680,
953,
834,
23747,
2938,
3891,
834,
2294,
549,
17444,
427,
28406,
3274,
96,
308,
9,
162,
4691,
35,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the average base price of different bed type? List bed type and average base price Plot them as bar chart, display Y from low to high order. | CREATE TABLE Reservations (
Code INTEGER,
Room TEXT,
CheckIn TEXT,
CheckOut TEXT,
Rate REAL,
LastName TEXT,
FirstName TEXT,
Adults INTEGER,
Kids INTEGER
)
CREATE TABLE Rooms (
RoomId TEXT,
roomName TEXT,
beds INTEGER,
bedType TEXT,
maxOccupancy INTEGER,
baseP... | SELECT bedType, AVG(basePrice) FROM Rooms GROUP BY bedType ORDER BY AVG(basePrice) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
27659,
7,
41,
3636,
3,
21342,
17966,
6,
4181,
3,
3463,
4,
382,
6,
1972,
1570,
3,
3463,
4,
382,
6,
1972,
15767,
3,
3463,
4,
382,
6,
13002,
17833,
6,
2506,
23954,
3,
3463,
4,
382,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1953,
25160,
6,
71,
17217,
599,
10925,
345,
4920,
61,
21680,
4181,
7,
350,
4630,
6880,
272,
476,
1953,
25160,
4674,
11300,
272,
476,
71,
17217,
599,
10925,
345,
4920,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest numbered grid for piercarlo ghinzani with over 3 laps? | CREATE TABLE table_name_80 (
grid INTEGER,
driver VARCHAR,
laps VARCHAR
) | SELECT MAX(grid) FROM table_name_80 WHERE driver = "piercarlo ghinzani" AND laps > 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
8634,
3,
21342,
17966,
6,
2535,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
3,
22412,
8634... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
3496,
26,
61,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
2535,
3274,
96,
8343,
1720,
40,
32,
3,
5649,
29,
10241,
23,
121,
3430,
14941,
7,
2490,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What's the venue for the asian games tournament? | CREATE TABLE table_name_55 (
venue VARCHAR,
tournament VARCHAR
) | SELECT venue FROM table_name_55 WHERE tournament = "asian games" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
5669,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
5669,
21,
8,
3,
9,
10488,
1031,
5892,
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,
5669,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
5892,
3274,
96,
9,
10488,
1031,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What date did the home team Richmond play? | CREATE TABLE table_name_34 (date VARCHAR, home_team VARCHAR) | SELECT date FROM table_name_34 WHERE home_team = "richmond" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
5522,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
833,
410,
8,
234,
372,
17247,
577,
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,
833,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
234,
834,
11650,
3274,
96,
3723,
6764,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the latest number in series that was directed by Skip Sudduth? | CREATE TABLE table_3769 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (millions)" text
) | SELECT MAX("No. in series") FROM table_3769 WHERE "Directed by" = 'Skip Sudduth' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4118,
3951,
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,
4800,
4,
599,
121,
4168,
5,
16,
939,
8512,
21680,
953,
834,
4118,
3951,
549,
17444,
427,
96,
23620,
15,
26,
57,
121,
3274,
3,
31,
134,
2168,
102,
9010,
1259,
189,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the active pixels of the cantare model? | CREATE TABLE table_name_10 (
active_pixels VARCHAR,
model VARCHAR
) | SELECT active_pixels FROM table_name_10 WHERE model = "cantare" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
1676,
834,
14251,
7,
584,
4280,
28027,
6,
825,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
1676,
15386,
13,
8,
54,
17,
355,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1676,
834,
14251,
7,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
825,
3274,
96,
1608,
17,
355,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the earliest year when action was the genre? | CREATE TABLE table_name_35 (year INTEGER, genre VARCHAR) | SELECT MIN(year) FROM table_name_35 WHERE genre = "action" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
1201,
3,
21342,
17966,
6,
5349,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
16454,
215,
116,
1041,
47,
8,
5349,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
1201,
61,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
5349,
3274,
96,
4787,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who is no. 79 directed by? | CREATE TABLE table_22904752_1 (directed_by VARCHAR, no VARCHAR) | SELECT directed_by FROM table_22904752_1 WHERE no = 79 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
2394,
4177,
5373,
834,
536,
41,
22955,
834,
969,
584,
4280,
28027,
6,
150,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
150,
5,
3,
4440,
6640,
57,
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,
6640,
834,
969,
21680,
953,
834,
2884,
2394,
4177,
5373,
834,
536,
549,
17444,
427,
150,
3274,
3,
4440,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
For those records from the products and each product's manufacturer, give me the comparison about the average of revenue over the name , and group by attribute name, and could you display from high to low by the names? | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT T2.Name, T2.Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T2.Name DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
5312,
3396,
254,
26330,
434,
6,
15248,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
23954,
6,
332,
4416,
1649,
15098,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,
476,
332,
4... |
What's the D 42 when D 46 is majority ? | CREATE TABLE table_54080 (
"D 39 \u221a" text,
"D 40 \u221a" text,
"D 41 \u221a" text,
"D 42 \u221a" text,
"D 43 \u221a" text,
"D 44 \u221a" text,
"D 45 \u221a" text,
"D 46 \u221a" text,
"D 47 \u221a" text,
"D 48 \u221a" text
) | SELECT "D 42 \u221a" FROM table_54080 WHERE "D 46 \u221a" = 'majority→' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25379,
2079,
41,
96,
308,
6352,
3,
2,
76,
357,
2658,
9,
121,
1499,
6,
96,
308,
1283,
3,
2,
76,
357,
2658,
9,
121,
1499,
6,
96,
308,
8798,
3,
2,
76,
357,
2658,
9,
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,
308,
6426,
3,
2,
76,
357,
2658,
9,
121,
21680,
953,
834,
25379,
2079,
549,
17444,
427,
96,
308,
9668,
3,
2,
76,
357,
2658,
9,
121,
3274,
3,
31,
16547,
127,
485,
2,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
Show the number of transactions for different investors. Plot them as scatter chart. | CREATE TABLE Investors (
investor_id INTEGER,
Investor_details VARCHAR(255)
)
CREATE TABLE Purchases (
purchase_transaction_id INTEGER,
purchase_details VARCHAR(255)
)
CREATE TABLE Transactions_Lots (
transaction_id INTEGER,
lot_id INTEGER
)
CREATE TABLE Sales (
sales_transaction_id INTEG... | SELECT investor_id, COUNT(*) FROM Transactions GROUP BY investor_id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
16873,
7,
41,
12024,
834,
23,
26,
3,
21342,
17966,
6,
16873,
834,
221,
5756,
7,
584,
4280,
28027,
599,
25502,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
14839,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
12024,
834,
23,
26,
6,
2847,
17161,
599,
1935,
61,
21680,
21469,
7,
350,
4630,
6880,
272,
476,
12024,
834,
23,
26,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is the rounds when the entrant is scuderia ferrari marlboro? | CREATE TABLE table_name_57 (rounds VARCHAR, entrant VARCHAR) | SELECT rounds FROM table_name_57 WHERE entrant = "scuderia ferrari marlboro" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
7775,
7,
584,
4280,
28027,
6,
3,
295,
3569,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
14419,
116,
8,
3,
295,
3569,
19,
3,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
14419,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
3,
295,
3569,
3274,
96,
7,
1071,
26,
4476,
25007,
1665,
3157,
40,
14901,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
NAME THE Playoffs that HAVE a League of npsl, and a Open Cup of did not enter, and a Year of 2013? | CREATE TABLE table_name_8 (playoffs VARCHAR, year VARCHAR, league VARCHAR, open_cup VARCHAR) | SELECT playoffs FROM table_name_8 WHERE league = "npsl" AND open_cup = "did not enter" AND year = "2013" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
4895,
1647,
7,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
5533,
584,
4280,
28027,
6,
539,
834,
4658,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
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,
15289,
7,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
5533,
3274,
96,
29,
102,
7,
40,
121,
3430,
539,
834,
4658,
3274,
96,
12416,
59,
2058,
121,
3430,
215,
3274,
96,
11138,
121,
1,
-100,
-100,
-100,
-100,
-1... |
What is the highest pick from Washington? | CREATE TABLE table_78295 (
"Pick" real,
"Round" text,
"Player" text,
"Position" text,
"School" text
) | SELECT MAX("Pick") FROM table_78295 WHERE "School" = 'washington' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3940,
357,
3301,
41,
96,
345,
3142,
121,
490,
6,
96,
448,
32,
1106,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
29364,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
121,
345,
3142,
8512,
21680,
953,
834,
3940,
357,
3301,
549,
17444,
427,
96,
29364,
121,
3274,
3,
31,
14710,
6029,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many players are there? | CREATE TABLE player (Id VARCHAR) | SELECT COUNT(*) FROM player | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1959,
41,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1508,
33,
132,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
1959,
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,
-... |
Who had the high assists in game 80? | CREATE TABLE table_21604 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "High assists" FROM table_21604 WHERE "Game" = '80' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27184,
6348,
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,
3,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
21417,
13041,
121,
21680,
953,
834,
27184,
6348,
549,
17444,
427,
96,
23055,
121,
3274,
3,
31,
2079,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the record on September 26? | CREATE TABLE table_name_79 (
record VARCHAR,
date VARCHAR
) | SELECT record FROM table_name_79 WHERE date = "september 26" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
1368,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1368,
30,
1600,
2208,
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,
1368,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
833,
3274,
96,
7,
6707,
18247,
2208,
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 24-17? | CREATE TABLE table_44021 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) | SELECT MAX("Week") FROM table_44021 WHERE "Result" = 'w 24-17' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22335,
2658,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
121,
490... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
518,
10266,
8512,
21680,
953,
834,
22335,
2658,
549,
17444,
427,
96,
20119,
121,
3274,
3,
31,
210,
997,
10794,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the companion for the author Dave Stone? | CREATE TABLE table_61123 (
"Title" text,
"Author" text,
"Doctor" text,
"Companion(s)" text,
"Published" text
) | SELECT "Companion(s)" FROM table_61123 WHERE "Author" = 'dave stone' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4241,
14574,
41,
96,
382,
155,
109,
121,
1499,
6,
96,
23602,
127,
121,
1499,
6,
96,
4135,
5317,
121,
1499,
6,
96,
5890,
2837,
23,
106,
599,
7,
61,
121,
1499,
6,
96,
310... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5890,
2837,
23,
106,
599,
7,
61,
121,
21680,
953,
834,
4241,
14574,
549,
17444,
427,
96,
23602,
127,
121,
3274,
3,
31,
26,
9,
162,
3372,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
For the sale details with amount smaller than 3000, visualize a bar chart that x-axis is the sales details and count them as y. | CREATE TABLE Ref_Transaction_Types (
transaction_type_code VARCHAR(10),
transaction_type_description VARCHAR(80)
)
CREATE TABLE Sales (
sales_transaction_id INTEGER,
sales_details VARCHAR(255)
)
CREATE TABLE Transactions (
transaction_id INTEGER,
investor_id INTEGER,
transaction_type_code ... | SELECT sales_details, COUNT(sales_details) FROM Sales AS T1 JOIN Transactions AS T2 ON T1.sales_transaction_id = T2.transaction_id WHERE T2.amount_of_transaction < 3000 GROUP BY sales_details | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
419,
89,
834,
18474,
4787,
834,
25160,
7,
41,
5878,
834,
6137,
834,
4978,
584,
4280,
28027,
599,
16968,
6,
5878,
834,
6137,
834,
221,
11830,
584,
4280,
28027,
599,
2079,
61,
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,
1085,
834,
221,
5756,
7,
6,
2847,
17161,
599,
7,
4529,
834,
221,
5756,
7,
61,
21680,
7107,
6157,
332,
536,
3,
15355,
3162,
21469,
7,
6157,
332,
357,
9191,
332,
5411,
7,
4529,
834,
7031,
4787,
834,
23,
26,
3274,
... |
Plot how many country by grouped by country as a bar graph, show X from high to low order. | CREATE TABLE round (
Round_ID int,
Member_ID int,
Decoration_Theme text,
Rank_in_Round int
)
CREATE TABLE member (
Member_ID int,
Name text,
Country text,
College_ID int
)
CREATE TABLE college (
College_ID int,
Name text,
Leader_Name text,
College_Location text
) | SELECT Country, COUNT(Country) FROM member GROUP BY Country ORDER BY Country DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1751,
41,
9609,
834,
4309,
16,
17,
6,
8541,
834,
4309,
16,
17,
6,
23367,
834,
634,
526,
1499,
6,
3,
22557,
834,
77,
834,
448,
32,
1106,
16,
17,
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,
6993,
6,
2847,
17161,
599,
10628,
651,
61,
21680,
1144,
350,
4630,
6880,
272,
476,
6993,
4674,
11300,
272,
476,
6993,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the population (hab) when the distance medellin downtown (km) is * dane? | CREATE TABLE table_name_10 (population__hab_ VARCHAR, distance_medellín_downtown___km__ VARCHAR) | SELECT population__hab_ FROM table_name_10 WHERE distance_medellín_downtown___km__ = "* dane" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
9791,
7830,
834,
834,
6111,
834,
584,
4280,
28027,
6,
2357,
834,
2726,
3820,
2,
29,
834,
3035,
3540,
834,
834,
834,
5848,
834,
834,
584,
4280,
28027,
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,
2074,
834,
834,
6111,
834,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
2357,
834,
2726,
3820,
2,
29,
834,
3035,
3540,
834,
834,
834,
5848,
834,
834,
3274,
96,
1935,
3,
3768,
15,
121,
1,
-100,
-100,
-100,
-1... |
What are the headquarters and industries of all companies? | CREATE TABLE company (
Headquarters VARCHAR,
Industry VARCHAR
) | SELECT Headquarters, Industry FROM company | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
349,
41,
31282,
584,
4280,
28027,
6,
9036,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
13767,
11,
5238,
13,
66,
688,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
31282,
6,
9036,
21680,
349,
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,
-100,
-100,
-1... |
What is the lowest Total for Italy with less than 0 silver? | CREATE TABLE table_name_32 (
total INTEGER,
nation VARCHAR,
silver VARCHAR
) | SELECT MIN(total) FROM table_name_32 WHERE nation = "italy" AND silver < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
792,
3,
21342,
17966,
6,
2982,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
9273,
21,
5308,
28,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
2982,
3274,
96,
9538,
63,
121,
3430,
4294,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Jeremy Hill's hometown? | CREATE TABLE table_11677691_1 (
hometown VARCHAR,
player VARCHAR
) | SELECT hometown FROM table_11677691_1 WHERE player = "Jeremy Hill" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
3708,
3959,
4729,
834,
536,
41,
22295,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
3,
18540,
3588,
31,
7,
22295,
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,
22295,
21680,
953,
834,
2596,
3708,
3959,
4729,
834,
536,
549,
17444,
427,
1959,
3274,
96,
18540,
3588,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Give me a bar chart for team_id of each all neutral, and order total number in asc order please. | CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
Scho... | SELECT All_Neutral, Team_ID FROM basketball_match ORDER BY Team_ID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8498,
834,
19515,
41,
2271,
834,
4309,
16,
17,
6,
1121,
834,
4309,
16,
17,
6,
2271,
834,
23954,
1499,
6,
3,
14775,
834,
17748,
4885,
834,
134,
15,
9,
739,
1499,
6,
3,
14775,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
432,
834,
26288,
8792,
6,
2271,
834,
4309,
21680,
8498,
834,
19515,
4674,
11300,
272,
476,
2271,
834,
4309,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the total number of multiplayer maps released during this time ? | CREATE TABLE table_204_587 (
id number,
"drop(s)" text,
"multiplayer map(s)" text,
"spec ops mission(s)" text,
"face off map(s)" text,
"xbox 360 release date" text,
"playstation 3 release date" text
) | SELECT SUM("multiplayer map(s)") FROM table_204_587 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
755,
4225,
41,
3,
23,
26,
381,
6,
96,
15946,
599,
7,
61,
121,
1499,
6,
96,
23829,
20846,
2828,
599,
7,
61,
121,
1499,
6,
96,
7576,
3,
9280,
2253,
599,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
23829,
20846,
2828,
599,
7,
61,
8512,
21680,
953,
834,
26363,
834,
755,
4225,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Show the names of members and the decoration themes they have. | CREATE TABLE round (
round_id number,
member_id number,
decoration_theme text,
rank_in_round number
)
CREATE TABLE member (
member_id number,
name text,
country text,
college_id number
)
CREATE TABLE college (
college_id number,
name text,
leader_name text,
college_loca... | SELECT T1.name, T2.decoration_theme FROM member AS T1 JOIN round AS T2 ON T1.member_id = T2.member_id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1751,
41,
1751,
834,
23,
26,
381,
6,
1144,
834,
23,
26,
381,
6,
11649,
834,
532,
526,
1499,
6,
11003,
834,
77,
834,
7775,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
4350,
6,
332,
4416,
221,
509,
2661,
834,
532,
526,
21680,
1144,
6157,
332,
536,
3,
15355,
3162,
1751,
6157,
332,
357,
9191,
332,
5411,
12066,
834,
23,
26,
3274,
332,
4416,
12066,
834,
23,
26,
1,
-100,
-... |
Who is performer 4 on episode 3, where Jim Sweeney was performer 1? | CREATE TABLE table_name_86 (performer_4 VARCHAR, performer_1 VARCHAR, episode VARCHAR) | SELECT performer_4 FROM table_name_86 WHERE performer_1 = "jim sweeney" AND episode = 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
883,
2032,
49,
834,
591,
584,
4280,
28027,
6,
1912,
49,
834,
536,
584,
4280,
28027,
6,
5640,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
1912,
49,
834,
591,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
1912,
49,
834,
536,
3274,
96,
354,
603,
3,
7,
1123,
15,
3186,
121,
3430,
5640,
3274,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How much money does the player with a 69-70-72-64=275 score have? | CREATE TABLE table_name_20 (
money___£__ VARCHAR,
score VARCHAR
) | SELECT money___£__ FROM table_name_20 WHERE score = 69 - 70 - 72 - 64 = 275 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1755,
41,
540,
834,
834,
834,
19853,
834,
834,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
231,
540,
405,
8,
1959,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
540,
834,
834,
834,
19853,
834,
834,
21680,
953,
834,
4350,
834,
1755,
549,
17444,
427,
2604,
3274,
3,
3951,
3,
18,
2861,
3,
18,
9455,
3,
18,
6687,
3274,
3,
25988,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Dave Douglas has what score? | CREATE TABLE table_name_46 (score VARCHAR, player VARCHAR) | SELECT score FROM table_name_46 WHERE player = "dave douglas" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
7,
9022,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
8545,
14154,
65,
125,
2604,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
1959,
3274,
96,
26,
9,
162,
103,
76,
16985,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is minimum age of patients whose discharge location is home health care and primary disease is overdose? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic ... | SELECT MIN(demographic.age) FROM demographic WHERE demographic.discharge_location = "HOME HEALTH CARE" AND demographic.diagnosis = "OVERDOSE" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
26,
159,
7993,
834,
14836,
3274,
96,
6299,
4369,
3,
6021,
4090,
4611,
3,
22443,
121,
3430,
14798,
5,
25930,
4844,
159,
3274,
96,
23288... |
How many candidates were in the election featuring brooks hays (d) unopposed? | CREATE TABLE table_1342256_5 (first_elected VARCHAR, candidates VARCHAR) | SELECT COUNT(first_elected) FROM table_1342256_5 WHERE candidates = "Brooks Hays (D) Unopposed" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
4165,
19337,
834,
755,
41,
14672,
834,
19971,
584,
4280,
28027,
6,
4341,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
4341,
130,
16,
8,
4356,
4767,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
14672,
834,
19971,
61,
21680,
953,
834,
2368,
4165,
19337,
834,
755,
549,
17444,
427,
4341,
3274,
96,
22780,
1825,
7,
8567,
7,
41,
308,
61,
597,
28236,
3843,
121,
1,
-100,
-100,
-100,
-100,
-100,
-... |
What is the first name of the staff who did not give any lesson? | CREATE TABLE Staff (
first_name VARCHAR
)
CREATE TABLE Lessons (
staff_id VARCHAR
) | SELECT first_name FROM Staff EXCEPT SELECT T2.first_name FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10071,
41,
166,
834,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
622,
6577,
41,
871,
834,
23,
26,
584,
4280,
28027,
3,
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,
0,
0,
0,
0... | [
3,
23143,
14196,
166,
834,
4350,
21680,
10071,
262,
4,
30416,
3,
23143,
14196,
332,
4416,
14672,
834,
4350,
21680,
622,
6577,
6157,
332,
536,
3,
15355,
3162,
10071,
6157,
332,
357,
9191,
332,
5411,
26416,
834,
23,
26,
3274,
332,
4416,... |
List all customer status codes and the number of customers having each status code in a bar chart, sort from low to high by the X please. | CREATE TABLE Vehicles (
vehicle_id INTEGER,
vehicle_details VARCHAR(255)
)
CREATE TABLE Lessons (
lesson_id INTEGER,
customer_id INTEGER,
lesson_status_code VARCHAR(15),
staff_id INTEGER,
vehicle_id INTEGER,
lesson_date DATETIME,
lesson_time VARCHAR(10),
price DOUBLE
)
CREATE T... | SELECT customer_status_code, COUNT(*) FROM Customers GROUP BY customer_status_code ORDER BY customer_status_code | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15095,
7,
41,
1689,
834,
23,
26,
3,
21342,
17966,
6,
1689,
834,
221,
5756,
7,
584,
4280,
28027,
599,
25502,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
622,
6577,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
884,
834,
8547,
302,
834,
4978,
6,
2847,
17161,
599,
1935,
61,
21680,
16423,
350,
4630,
6880,
272,
476,
884,
834,
8547,
302,
834,
4978,
4674,
11300,
272,
476,
884,
834,
8547,
302,
834,
4978,
1,
-100,
-100,
-100,
-10... |
What is the rank of the swimmer with a time of 2:11.83? | CREATE TABLE table_name_35 (rank VARCHAR, time VARCHAR) | SELECT rank FROM table_name_35 WHERE time = "2:11.83" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
6254,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
11003,
13,
8,
27424,
28,
3,
9,
97,
13,
27078,
16253,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11003,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
97,
3274,
96,
357,
10,
10032,
4591,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What's the sum of the population with a population density (per km ) of 24.8? | CREATE TABLE table_9074 (
"Country or territory" text,
"Area (km\u00b2)" real,
"Population" real,
"Population density (per km\u00b2)" real,
"Capital" text
) | SELECT SUM("Population") FROM table_9074 WHERE "Population density (per km\u00b2)" = '24.8' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2394,
4581,
41,
96,
10628,
651,
42,
9964,
121,
1499,
6,
96,
188,
864,
41,
5848,
2,
76,
1206,
115,
7318,
121,
490,
6,
96,
27773,
7830,
121,
490,
6,
96,
27773,
7830,
11048,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
27773,
7830,
8512,
21680,
953,
834,
2394,
4581,
549,
17444,
427,
96,
27773,
7830,
11048,
41,
883,
2280,
2,
76,
1206,
115,
7318,
121,
3274,
3,
31,
357,
27441,
31,
1,
-100,
-100,
-100,
-100,
-100,... |
What is the name for the species Authority of sigmodon hispidus say & ord, 1825? | CREATE TABLE table_name_76 (name VARCHAR, species_authority VARCHAR) | SELECT name FROM table_name_76 WHERE species_authority = "sigmodon hispidus say & ord, 1825" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
4350,
584,
4280,
28027,
6,
3244,
834,
17415,
485,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
21,
8,
3244,
9293,
13,
3,
13658... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
564,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
3244,
834,
17415,
485,
3274,
96,
13658,
7360,
106,
112,
12417,
302,
497,
3,
184,
42,
26,
6,
507,
1828,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which label had a Japan region and a date of November 3, 2004? | CREATE TABLE table_52357 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalogue" text
) | SELECT "Label" FROM table_52357 WHERE "Region" = 'japan' AND "Date" = 'november 3, 2004' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2773,
3436,
41,
96,
17748,
23,
106,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
434,
10333,
121,
1499,
6,
96,
3809,
3357,
121,
1499,
6,
96,
18610,
9,
10384,
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,
434,
10333,
121,
21680,
953,
834,
755,
2773,
3436,
549,
17444,
427,
96,
17748,
23,
106,
121,
3274,
3,
31,
1191,
2837,
31,
3430,
96,
308,
342,
121,
3274,
3,
31,
5326,
18247,
6180,
4406,
31,
1,
-100,
-100,
-100,... |
Tell me the date for bugatti fpr stanislas czaykowski | CREATE TABLE table_31560 (
"Name" text,
"Circuit" text,
"Date" text,
"Winning driver" text,
"Winning constructor" text,
"Report" text
) | SELECT "Date" FROM table_31560 WHERE "Winning constructor" = 'bugatti' AND "Winning driver" = 'stanislas czaykowski' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
1808,
3328,
41,
96,
23954,
121,
1499,
6,
96,
254,
23,
52,
21560,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
518,
10503,
2535,
121,
1499,
6,
96,
518,
10503,
6774,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
519,
1808,
3328,
549,
17444,
427,
96,
518,
10503,
6774,
127,
121,
3274,
3,
31,
14588,
15817,
31,
3430,
96,
518,
10503,
2535,
121,
3274,
3,
31,
5627,
159,
521,
7,
3,
75,
1629,
... |
What is the total number of lanes used for races with winners from Austria? | CREATE TABLE table_name_75 (lane VARCHAR, country VARCHAR) | SELECT COUNT(lane) FROM table_name_75 WHERE country = "austria" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
8102,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
381,
13,
50,
1496,
261,
21,
10879,
28,
8969,
45,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
8102,
61,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
684,
3274,
96,
402,
23387,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What score did John Mahaffey have? | CREATE TABLE table_8942 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "Score" FROM table_8942 WHERE "Player" = 'john mahaffey' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3914,
4165,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
3914,
4165,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
27341,
954,
1024,
7398,
63,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Find All_Road and All_Games_Percent , and visualize them by a bar chart. | CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Per... | SELECT All_Road, All_Games_Percent FROM basketball_match | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3819,
41,
1121,
834,
4309,
16,
17,
6,
1121,
1499,
6,
10450,
1499,
6,
3,
20100,
490,
6,
71,
89,
8027,
23,
257,
1499,
6,
695,
4046,
297,
490,
6,
7486,
4350,
1499,
6,
14542,
834,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
432,
834,
448,
32,
9,
26,
6,
432,
834,
23055,
7,
834,
12988,
3728,
21680,
8498,
834,
19515,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the team that has a song writer named larry spokes. | CREATE TABLE table_28243323_1 (
club_name VARCHAR,
writer_composer VARCHAR
) | SELECT club_name FROM table_28243323_1 WHERE writer_composer = "Larry Spokes" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
2266,
4201,
2773,
834,
536,
41,
1886,
834,
4350,
584,
4280,
28027,
6,
4346,
834,
287,
2748,
49,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
372,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1886,
834,
4350,
21680,
953,
834,
2577,
2266,
4201,
2773,
834,
536,
549,
17444,
427,
4346,
834,
287,
2748,
49,
3274,
96,
434,
291,
651,
8927,
7735,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the 2nd place when Virginia finished in 1st place? | CREATE TABLE table_22792 (
"Year" real,
"Host" text,
"1st Place" text,
"2nd Place" text,
"3rd Place" text,
"4th Place" text,
"5th Place" text
) | SELECT "2nd Place" FROM table_22792 WHERE "1st Place" = 'Virginia' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2555,
4508,
41,
96,
476,
2741,
121,
490,
6,
96,
566,
3481,
121,
1499,
6,
96,
536,
7,
17,
3399,
121,
1499,
6,
96,
357,
727,
3399,
121,
1499,
6,
96,
519,
52,
26,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
357,
727,
3399,
121,
21680,
953,
834,
357,
2555,
4508,
549,
17444,
427,
96,
536,
7,
17,
3399,
121,
3274,
3,
31,
21031,
122,
77,
23,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the lowest value under the column series no.? | CREATE TABLE table_21025437_3 (
series_no INTEGER
) | SELECT MIN(series_no) FROM table_21025437_3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15239,
1828,
591,
4118,
834,
519,
41,
939,
834,
29,
32,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
7402,
701,
365,
8,
6710,
939,
150,
5,
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,
3,
17684,
599,
10833,
7,
834,
29,
32,
61,
21680,
953,
834,
15239,
1828,
591,
4118,
834,
519,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is 2007, when Tournament is 'Madrid'? | CREATE TABLE table_78685 (
"Tournament" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text
) | SELECT "2007" FROM table_78685 WHERE "Tournament" = 'madrid' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3940,
3651,
755,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
21653,
121,
1499,
6,
96,
22594,
121,
1499,
6,
96,
21196,
121,
1499,
6,
96,
20615,
121,
1499,
6,
96,
16128... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20615,
121,
21680,
953,
834,
3940,
3651,
755,
549,
17444,
427,
96,
382,
1211,
20205,
17,
121,
3274,
3,
31,
11374,
4055,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the names of the mills which are not located in 'Donceel'? | CREATE TABLE mill (
architect_id number,
id number,
location text,
name text,
type text,
built_year number,
notes text
)
CREATE TABLE bridge (
architect_id number,
id number,
name text,
location text,
length_meters number,
length_feet number
)
CREATE TABLE architect... | SELECT name FROM mill WHERE location <> 'Donceel' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3293,
41,
13188,
834,
23,
26,
381,
6,
3,
23,
26,
381,
6,
1128,
1499,
6,
564,
1499,
6,
686,
1499,
6,
1192,
834,
1201,
381,
6,
3358,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
564,
21680,
3293,
549,
17444,
427,
1128,
3,
2,
3155,
3,
31,
308,
14549,
15,
40,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
how many latitudes have 0.081 (sqmi) of water? | CREATE TABLE table_18600760_15 (latitude VARCHAR, water__sqmi_ VARCHAR) | SELECT COUNT(latitude) FROM table_18600760_15 WHERE water__sqmi_ = "0.081" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24700,
4560,
3328,
834,
1808,
41,
521,
6592,
584,
4280,
28027,
6,
387,
834,
834,
7,
1824,
51,
23,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
149,
186,
50,
65... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
521,
6592,
61,
21680,
953,
834,
24700,
4560,
3328,
834,
1808,
549,
17444,
427,
387,
834,
834,
7,
1824,
51,
23,
834,
3274,
96,
11739,
4959,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Goal Difference has 13 Wins, and a Position of 3, and Played smaller than 30? | CREATE TABLE table_13167 (
"Position" real,
"Club" text,
"Played" real,
"Points" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Goals for" real,
"Goals against" real,
"Goal Difference" real
) | SELECT AVG("Goal Difference") FROM table_13167 WHERE "Wins" = '13' AND "Position" = '3' AND "Played" < '30' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22048,
3708,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
254,
11158,
121,
1499,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
22512,
7,
121,
490,
6,
96,
18455,
7,
121,
490,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
6221,
138,
27187,
8512,
21680,
953,
834,
22048,
3708,
549,
17444,
427,
96,
18455,
7,
121,
3274,
3,
31,
2368,
31,
3430,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
519,
31,
3430,
96,
15800,
15,
2... |
what is the average age of patients who had an emergency pituitary bleed? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (... | SELECT AVG(demographic.age) FROM demographic WHERE demographic.admission_type = "EMERGENCY" AND demographic.diagnosis = "PITUITARY BLEED" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
6137,
3274,
96,
427,
13098,
18464,
17063,
121,
3430,
14798,
5,
25930,
4844,
159,
3274,
96,
4111,
9968,
3177,
24721,
... |
provide the number of patients whose year of death is less than or equal to 2174 and diagnoses icd9 code is 2300? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.dod_year <= "2174.0" AND diagnoses.icd9_code = "2300" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
How many classes are held in each department? | CREATE TABLE course (
crs_code text,
dept_code text,
crs_description text,
crs_credit number
)
CREATE TABLE enroll (
class_code text,
stu_num number,
enroll_grade text
)
CREATE TABLE employee (
emp_num number,
emp_lname text,
emp_fname text,
emp_initial text,
emp_jobcod... | SELECT COUNT(*), dept_code FROM class AS T1 JOIN course AS T2 ON T1.crs_code = T2.crs_code GROUP BY dept_code | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
503,
41,
5764,
7,
834,
4978,
1499,
6,
20,
102,
17,
834,
4978,
1499,
6,
5764,
7,
834,
221,
11830,
1499,
6,
5764,
7,
834,
15547,
381,
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,
2847,
17161,
599,
1935,
201,
20,
102,
17,
834,
4978,
21680,
853,
6157,
332,
536,
3,
15355,
3162,
503,
6157,
332,
357,
9191,
332,
5411,
75,
52,
7,
834,
4978,
3274,
332,
4416,
75,
52,
7,
834,
4978,
350,
4630,
6880,
... |
What are the average scores of participants with 9.226 in evening gown | CREATE TABLE table_17088705_2 (
average VARCHAR,
evening_gown VARCHAR
) | SELECT average FROM table_17088705_2 WHERE evening_gown = "9.226" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
4018,
4225,
3076,
834,
357,
41,
1348,
584,
4280,
28027,
6,
2272,
834,
122,
9197,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
1348,
7586,
13,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1348,
21680,
953,
834,
2517,
4018,
4225,
3076,
834,
357,
549,
17444,
427,
2272,
834,
122,
9197,
3274,
96,
8797,
357,
2688,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the catalogue for Harbor Lights as a title? | CREATE TABLE table_name_59 (catalogue VARCHAR, song_title VARCHAR) | SELECT catalogue FROM table_name_59 WHERE song_title = "harbor lights" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
2138,
9,
10384,
584,
4280,
28027,
6,
2324,
834,
21869,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
14978,
21,
17590,
2892,
7,
38,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
14978,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
2324,
834,
21869,
3274,
96,
3272,
6693,
4113,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What are the phone numbers of customers using the policy with the code 'Life Insurance'? | CREATE TABLE customers (
customer_id number,
customer_name text
)
CREATE TABLE services (
service_id number,
service_name text
)
CREATE TABLE available_policies (
policy_id number,
policy_type_code text,
customer_phone text
)
CREATE TABLE claims (
claim_id number,
fnol_id number,
... | SELECT customer_phone FROM available_policies WHERE policy_type_code = "Life Insurance" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
722,
41,
884,
834,
23,
26,
381,
6,
884,
834,
4350,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
364,
41,
313,
834,
23,
26,
381,
6,
313,
834,
4350,
1499,
3,
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,
884,
834,
6399,
21680,
347,
834,
3003,
6267,
7,
549,
17444,
427,
1291,
834,
6137,
834,
4978,
3274,
96,
16427,
5446,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the number in series for production code being 204 | CREATE TABLE table_28123 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real
) | SELECT "No. in series" FROM table_28123 WHERE "Production code" = '204' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
14574,
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,
96,
4168,
5,
16,
939,
121,
21680,
953,
834,
2577,
14574,
549,
17444,
427,
96,
3174,
8291,
1081,
121,
3274,
3,
31,
26363,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
how many processors have an integrated monochrome display ? | CREATE TABLE table_203_136 (
id number,
"year" number,
"ibm model number" text,
"name" text,
"processor" text,
"bus" text,
"hd interface" text,
"case" text,
"notes" text
) | SELECT COUNT("processor") FROM table_203_136 WHERE "case" = 'desktop with integrated monochrome display' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
23459,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
23,
115,
51,
825,
381,
121,
1499,
6,
96,
4350,
121,
1499,
6,
96,
15056,
127,
121,
1499,
6,
96,
34... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15056,
127,
8512,
21680,
953,
834,
23330,
834,
23459,
549,
17444,
427,
96,
6701,
121,
3274,
3,
31,
1395,
157,
2916,
28,
4580,
7414,
10363,
526,
1831,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Score of the match on May 21, 1984 with Outcome of runner-up? | CREATE TABLE table_name_94 (
score VARCHAR,
outcome VARCHAR,
date VARCHAR
) | SELECT score FROM table_name_94 WHERE outcome = "runner-up" AND date = "may 21, 1984" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
2604,
584,
4280,
28027,
6,
6138,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
17763,
13,
8,
1588,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
6138,
3274,
96,
10806,
18,
413,
121,
3430,
833,
3274,
96,
13726,
12026,
13480,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the lowest rank of Gatwick Airport? | CREATE TABLE table_72962 (
"Rank" real,
"Railway Station" text,
"Annual entry/exit (millions) 2011\u201312" text,
"Annual interchanges (millions) 2011\u201312" text,
"Total Passengers (millions) 2011\u201312" text,
"Location" text,
"Main Services" text,
"Number of Platforms" real
) | SELECT MIN("Rank") FROM table_72962 WHERE "Railway Station" = 'Gatwick Airport' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5865,
4314,
357,
41,
96,
22557,
121,
490,
6,
96,
448,
9,
173,
1343,
5939,
121,
1499,
6,
96,
17608,
3471,
1764,
87,
994,
155,
41,
17030,
7,
61,
2722,
2,
76,
11138,
2122,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22557,
8512,
21680,
953,
834,
5865,
4314,
357,
549,
17444,
427,
96,
448,
9,
173,
1343,
5939,
121,
3274,
3,
31,
517,
144,
5981,
5735,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.