NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What is the to par of United States' Cristie Kerr? | CREATE TABLE table_name_66 (to_par VARCHAR, country VARCHAR, player VARCHAR) | SELECT to_par FROM table_name_66 WHERE country = "united states" AND player = "cristie kerr" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
235,
834,
1893,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
12,
260,
13,
907,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
834,
1893,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
684,
3274,
96,
15129,
15,
26,
2315,
121,
3430,
1959,
3274,
96,
75,
22061,
15,
3,
2304,
52,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the visitor on december 3? | CREATE TABLE table_name_66 (visitor VARCHAR, date VARCHAR) | SELECT visitor FROM table_name_66 WHERE date = "december 3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
3466,
155,
127,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
7019,
30,
20,
75,
18247,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
7019,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
833,
3274,
96,
221,
75,
18247,
220,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Visualize the name and their component amounts with a bar chart for all furnitures that have more than 10 components, show Y in asc order. | CREATE TABLE furniture_manufacte (
Manufacturer_ID int,
Furniture_ID int,
Price_in_Dollar real
)
CREATE TABLE manufacturer (
Manufacturer_ID int,
Open_Year real,
Name text,
Num_of_Factories int,
Num_of_Shops int
)
CREATE TABLE furniture (
Furniture_ID int,
Name text,
Num_of... | SELECT Name, Num_of_Component FROM furniture WHERE Num_of_Component > 10 ORDER BY Num_of_Component | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1991,
834,
348,
76,
8717,
15,
41,
15248,
834,
4309,
16,
17,
6,
9724,
834,
4309,
16,
17,
6,
5312,
834,
77,
834,
4135,
195,
291,
490,
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,
5570,
6,
1174,
51,
834,
858,
834,
5890,
9977,
21680,
1991,
549,
17444,
427,
1174,
51,
834,
858,
834,
5890,
9977,
2490,
335,
4674,
11300,
272,
476,
1174,
51,
834,
858,
834,
5890,
9977,
1,
-100,
-100,
-100,
-100,
-100... |
Plot id by grouped by name as a bar graph | CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_20... | SELECT name, ID FROM swimmer | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1368,
41,
4699,
16,
17,
6,
3,
20119,
1499,
6,
27813,
935,
834,
4309,
16,
17,
6,
8042,
834,
4309,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
14939,
41,
4699... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
564,
6,
4699,
21680,
27424,
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... |
who was player of the year after ben mauk ? | CREATE TABLE table_203_805 (
id number,
"year" number,
"player" text,
"position" text,
"high school" text,
"college" text
) | SELECT "player" FROM table_203_805 WHERE "year" = (SELECT "year" FROM table_203_805 WHERE "player" = 'ben mauk') + 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
2079,
755,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
20846,
121,
1499,
6,
96,
4718,
121,
1499,
6,
96,
6739,
496,
121,
1499,
6,
96,
3297,
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,
96,
20846,
121,
21680,
953,
834,
23330,
834,
2079,
755,
549,
17444,
427,
96,
1201,
121,
3274,
41,
23143,
14196,
96,
1201,
121,
21680,
953,
834,
23330,
834,
2079,
755,
549,
17444,
427,
96,
20846,
121,
3274,
3,
31,
11... |
How many medals for spain that has 1 silver and 1 bronze? | CREATE TABLE table_name_62 (
total VARCHAR,
nation VARCHAR,
silver VARCHAR,
bronze VARCHAR
) | SELECT COUNT(total) FROM table_name_62 WHERE silver = "1" AND bronze = "1" AND nation = "spain" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
792,
584,
4280,
28027,
6,
2982,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
4294,
3274,
96,
536,
121,
3430,
13467,
3274,
96,
536,
121,
3430,
2982,
3274,
96,
14147,
77,
121,
1,
-100,
-100,
-100,
-100,
-100,
-... |
what is the position in table when the team is hartlepool united? | CREATE TABLE table_64562 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Replaced by" text,
"Date of appointment" text,
"Position in table" text
) | SELECT "Position in table" FROM table_64562 WHERE "Team" = 'hartlepool united' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4389,
4834,
357,
41,
96,
18699,
121,
1499,
6,
96,
15767,
9545,
2743,
121,
1499,
6,
96,
7296,
687,
13,
12028,
121,
1499,
6,
96,
308,
342,
13,
3,
29685,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
32,
7,
4749,
16,
953,
121,
21680,
953,
834,
4389,
4834,
357,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
13626,
109,
13194,
18279,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the money for trevor immelman? | CREATE TABLE table_71073 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" real
) | SELECT "Money ( $ )" FROM table_71073 WHERE "Player" = 'trevor immelman' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
1714,
4552,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
9168,
15,
63,
41,
1514,
3,
61,
121,
21680,
953,
834,
940,
1714,
4552,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
929,
1967,
256,
2341,
348,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What country has a television service with Cartello Promozionale sky hd? | CREATE TABLE table_name_95 (country VARCHAR, television_service VARCHAR) | SELECT country FROM table_name_95 WHERE television_service = "cartello promozionale sky hd" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
17529,
584,
4280,
28027,
6,
4390,
834,
5114,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
684,
65,
3,
9,
4390,
313,
28,
11533,
7126,
17758,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
684,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
4390,
834,
5114,
3274,
96,
1720,
17,
7126,
5585,
172,
6318,
15,
5796,
3,
107,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many points have a percentage of possible points of 67.22%? | CREATE TABLE table_name_92 (points INTEGER, percentage_of_possible_points VARCHAR) | SELECT SUM(points) FROM table_name_92 WHERE percentage_of_possible_points = "67.22%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
2700,
7,
3,
21342,
17966,
6,
5294,
834,
858,
834,
2748,
7,
2317,
834,
2700,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
979,
43,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
5294,
834,
858,
834,
2748,
7,
2317,
834,
2700,
7,
3274,
96,
948,
25791,
5406,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many patients were treated with normal saline administration - aggressive volume resuscitation (>250 mls/hr) since 2105? | CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetake... | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.patientunitstayid IN (SELECT treatment.patientunitstayid FROM treatment WHERE treatment.treatmentname = 'normal saline administration - aggressive volume resuscitation (>250 mls/hr)' AND STRFTIME('%y', treatment.treatmenttime) >= '2105') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7757,
41,
7757,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2672,
4350,
1499,
6,
17166,
1499,
6,
2981,
20466,
29,
1499,
6,
2672,
10208,
715,
97,
6,
4845,
2916,
715,
97,
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,
2847,
17161,
599,
15438,
25424,
6227,
1868,
5,
202,
1495,
12417,
61,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1058,
5,
10061,
15129,
21545,
23,
26,
21680,
1058,
549,
... |
What is the average area for code 98030 with population over 312? | CREATE TABLE table_name_80 (area__km_2__ INTEGER, code VARCHAR, population VARCHAR) | SELECT AVG(area__km_2__) FROM table_name_80 WHERE code = 98030 AND population > 312 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
498,
834,
834,
5848,
834,
357,
834,
834,
3,
21342,
17966,
6,
1081,
584,
4280,
28027,
6,
2074,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
498,
834,
834,
5848,
834,
357,
834,
834,
61,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
1081,
3274,
668,
2079,
1458,
3430,
2074,
2490,
220,
2122,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
If the record was 22-21-5, who was the opponent? | CREATE TABLE table_27537870_6 (
opponent VARCHAR,
record VARCHAR
) | SELECT opponent FROM table_27537870_6 WHERE record = "22-21-5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
4867,
3940,
2518,
834,
948,
41,
15264,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
156,
8,
1368,
47,
1630,
16539,
4525,
6,
113,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
2555,
4867,
3940,
2518,
834,
948,
549,
17444,
427,
1368,
3274,
96,
2884,
16539,
18,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which points classification shares a general classification of Bernard Hinault, a Trofeo Fast Tem of Bianchi, was won by Urs Freuler, and was stage 4? | CREATE TABLE table_name_7 (points_classification VARCHAR, stage VARCHAR, winner VARCHAR, general_classification VARCHAR, trofeo_fast_team VARCHAR) | SELECT points_classification FROM table_name_7 WHERE general_classification = "bernard hinault" AND trofeo_fast_team = "bianchi" AND winner = "urs freuler" AND stage = "4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
2700,
7,
834,
4057,
2420,
584,
4280,
28027,
6,
1726,
584,
4280,
28027,
6,
4668,
584,
4280,
28027,
6,
879,
834,
4057,
2420,
584,
4280,
28027,
6,
10968,
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,
979,
834,
4057,
2420,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
879,
834,
4057,
2420,
3274,
96,
1152,
29,
986,
3811,
10335,
121,
3430,
10968,
89,
15,
32,
834,
11584,
834,
11650,
3274,
96,
12032,
1436,
121,
3... |
Which Matches have a Rank smaller than 5, a Years of 1995 2003, and a Goals smaller than 104? | CREATE TABLE table_41790 (
"Rank" real,
"Name" text,
"Years" text,
"Matches" real,
"Goals" real
) | SELECT AVG("Matches") FROM table_41790 WHERE "Rank" < '5' AND "Years" = '1995–2003' AND "Goals" < '104' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2517,
2394,
41,
96,
22557,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
476,
2741,
7,
121,
1499,
6,
96,
329,
144,
2951,
121,
490,
6,
96,
6221,
5405,
121,
490,
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,
71,
17217,
599,
121,
329,
144,
2951,
8512,
21680,
953,
834,
591,
2517,
2394,
549,
17444,
427,
96,
22557,
121,
3,
2,
3,
31,
755,
31,
3430,
96,
476,
2741,
7,
121,
3274,
3,
31,
2294,
3301,
104,
23948,
31,
3430,
96,... |
What date was the Silverstone circuit driven? | CREATE TABLE table_230 (
"Race Name" text,
"Circuit" text,
"Date" text,
"Winning driver" text,
"Constructor" text,
"Report" text
) | SELECT "Date" FROM table_230 WHERE "Circuit" = 'Silverstone' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
13427,
41,
96,
448,
3302,
5570,
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,
4302,
7593,
127,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13427,
549,
17444,
427,
96,
254,
23,
52,
21560,
121,
3274,
3,
31,
134,
173,
624,
3009,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Class Pos have Laps smaller than 304, and a Year after 2001? | CREATE TABLE table_name_79 (
class VARCHAR,
laps VARCHAR,
year VARCHAR
) | SELECT class AS pos FROM table_name_79 WHERE laps < 304 AND year > 2001 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
853,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
4501,
13995,
43,
325,
102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
853,
6157,
3,
2748,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
14941,
7,
3,
2,
3,
23702,
3430,
215,
2490,
4402,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many products are there under the category 'Seeds'? | CREATE TABLE products (
product_id number,
color_code text,
product_category_code text,
product_name text,
typical_buying_price text,
typical_selling_price text,
product_description text,
other_product_details text
)
CREATE TABLE product_characteristics (
product_id number,
char... | SELECT COUNT(*) FROM products WHERE product_category_code = "Seeds" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
494,
41,
556,
834,
23,
26,
381,
6,
945,
834,
4978,
1499,
6,
556,
834,
8367,
839,
651,
834,
4978,
1499,
6,
556,
834,
4350,
1499,
6,
4541,
834,
14584,
53,
834,
102,
4920,
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,
2847,
17161,
599,
1935,
61,
21680,
494,
549,
17444,
427,
556,
834,
8367,
839,
651,
834,
4978,
3274,
96,
18648,
26,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the developer when the pre-release is no*? | CREATE TABLE table_name_70 (
kinka_developer VARCHAR,
kinka_pre_release VARCHAR
) | SELECT kinka_developer FROM table_name_70 WHERE kinka_pre_release = "no*" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
3,
2917,
1258,
834,
29916,
49,
584,
4280,
28027,
6,
3,
2917,
1258,
834,
2026,
834,
21019,
584,
4280,
28027,
3,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
2917,
1258,
834,
29916,
49,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
3,
2917,
1258,
834,
2026,
834,
21019,
3274,
96,
29,
32,
1935,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What country did Derek Black come from? | CREATE TABLE table_1104 (
"Pick #" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
) | SELECT "Nationality" FROM table_1104 WHERE "Player" = 'Derek Black' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
536,
15442,
41,
96,
345,
3142,
1713,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
15743,
434,
372,
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,
24732,
485,
121,
21680,
953,
834,
536,
15442,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
2962,
60,
157,
1589,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, visualize a bar chart about the distribution of hire_date and the sum of salary bin hire_date by weekday, and rank from low to high by the total number. | CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
... | SELECT HIRE_DATE, SUM(SALARY) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 ORDER BY SUM(SALARY) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10521,
41,
3396,
19846,
11810,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3396,
19846,
11810,
834,
567,
17683,
3,
4331,
4059,
599,
1458,
201,
283,
15610,
17966,
834,
4309,
7908,
1982,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
180,
6122,
599,
134,
4090,
24721,
61,
21680,
1652,
549,
17444,
427,
180,
4090,
24721,
272,
7969,
518,
23394,
3,
25129,
3430,
586,
2313,
3430,
3,
6657,
329,
16994,
9215,
834,
4051,
382,
... |
What is Team, when Race 2 is "5"? | CREATE TABLE table_name_41 (team VARCHAR, race_2 VARCHAR) | SELECT team FROM table_name_41 WHERE race_2 = "5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
11650,
584,
4280,
28027,
6,
1964,
834,
357,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
2271,
6,
116,
10949,
204,
19,
96,
17395,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
1964,
834,
357,
3274,
96,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the average number of wins for those with less than 2 byes? | CREATE TABLE table_61970 (
"Golden Rivers" text,
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
) | SELECT AVG("Wins") FROM table_61970 WHERE "Byes" < '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2294,
2518,
41,
96,
23576,
35,
2473,
7,
121,
1499,
6,
96,
18455,
7,
121,
490,
6,
96,
279,
10070,
121,
490,
6,
96,
434,
13526,
7,
121,
490,
6,
96,
308,
10936,
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,
71,
17217,
599,
121,
18455,
7,
8512,
21680,
953,
834,
948,
2294,
2518,
549,
17444,
427,
96,
279,
10070,
121,
3,
2,
3,
31,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the attendance at game with a loss of Josh Hall (0 1)? | CREATE TABLE table_75468 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Save" text,
"Attendance" real,
"Record" text
) | SELECT "Attendance" FROM table_75468 WHERE "Loss" = 'josh hall (0–1)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
591,
3651,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
7,
7,
121,
1499,
6,
96,
23163,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
17,
324,
26,
663,
121,
21680,
953,
834,
3072,
591,
3651,
549,
17444,
427,
96,
434,
32,
7,
7,
121,
3274,
3,
31,
1927,
7,
107,
6358,
17482,
104,
6982,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the total number of faculty members? | CREATE TABLE faculty (
facid number,
lname text,
fname text,
rank text,
sex text,
phone number,
room text,
building text
)
CREATE TABLE activity (
actid number,
activity_name text
)
CREATE TABLE faculty_participates_in (
facid number,
actid number
)
CREATE TABLE partic... | SELECT COUNT(*) FROM faculty | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6040,
41,
7076,
26,
381,
6,
3,
40,
4350,
1499,
6,
3,
89,
4350,
1499,
6,
11003,
1499,
6,
3,
7,
994,
1499,
6,
951,
381,
6,
562,
1499,
6,
740,
1499,
3,
61,
3,
32102,
32103,
32102,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
6040,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the completion percentage when yards per attempt was done by Steve McNair : 2003? | CREATE TABLE table_19517448_3 (completion_percentage VARCHAR, yards_per_attempt VARCHAR) | SELECT completion_percentage FROM table_19517448_3 WHERE yards_per_attempt = "Steve McNair : 2003" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22464,
27693,
3707,
834,
519,
41,
7699,
109,
1575,
834,
883,
3728,
545,
584,
4280,
28027,
6,
6460,
834,
883,
834,
144,
17,
9045,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
6929,
834,
883,
3728,
545,
21680,
953,
834,
22464,
27693,
3707,
834,
519,
549,
17444,
427,
6460,
834,
883,
834,
144,
17,
9045,
3274,
96,
14337,
162,
26842,
2256,
3,
10,
3888,
121,
1,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the date when Troy Murphy (15), got high rebounds? | CREATE TABLE table_17326036_7 (date VARCHAR, high_rebounds VARCHAR) | SELECT date FROM table_17326036_7 WHERE high_rebounds = "Troy Murphy (15)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
2668,
3328,
3420,
834,
940,
41,
5522,
584,
4280,
28027,
6,
306,
834,
23768,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
833,
116,
21854,
16212,
172... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
2517,
2668,
3328,
3420,
834,
940,
549,
17444,
427,
306,
834,
23768,
3274,
96,
382,
8170,
16212,
17251,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What high definition television options are available for Italia 1? | CREATE TABLE table_15887683_1 (
hdtv VARCHAR,
television_service VARCHAR
) | SELECT hdtv FROM table_15887683_1 WHERE television_service = "Italia 1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
4060,
3959,
4591,
834,
536,
41,
3,
107,
26,
17,
208,
584,
4280,
28027,
6,
4390,
834,
5114,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
306,
4903,
439... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
107,
26,
17,
208,
21680,
953,
834,
1808,
4060,
3959,
4591,
834,
536,
549,
17444,
427,
4390,
834,
5114,
3274,
96,
196,
17,
5434,
209,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What amount of senior high school where junior high school is 114cm? | CREATE TABLE table_18812 (
"Specification" text,
"Gender" text,
"Junior High School (12\u201315 yrs)" text,
"Senior High School (15\u201318 yrs)" text,
"University students and Adults (18yrs+)" text
) | SELECT "Senior High School (15\u201318 yrs)" FROM table_18812 WHERE "Junior High School (12\u201315 yrs)" = '114cm' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25794,
2122,
41,
96,
7727,
2420,
121,
1499,
6,
96,
517,
3868,
121,
1499,
6,
96,
683,
202,
23,
127,
1592,
1121,
16465,
2,
76,
11138,
1808,
3,
63,
52,
7,
61,
121,
1499,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
35,
23,
127,
1592,
1121,
17251,
2,
76,
11138,
2606,
3,
63,
52,
7,
61,
121,
21680,
953,
834,
25794,
2122,
549,
17444,
427,
96,
683,
202,
23,
127,
1592,
1121,
16465,
2,
76,
11138,
1808,
3,
63,
52,
7,
61... |
Which of the lowest years had a Wheel arrangement that was 0-4-2t? | CREATE TABLE table_name_86 (
year_made INTEGER,
wheel_arrangement VARCHAR
) | SELECT MIN(year_made) FROM table_name_86 WHERE wheel_arrangement = "0-4-2t" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
215,
834,
4725,
3,
21342,
17966,
6,
5094,
834,
291,
5517,
297,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
13,
8,
7402,
203,
141,
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,
3,
17684,
599,
1201,
834,
4725,
61,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
5094,
834,
291,
5517,
297,
3274,
96,
632,
4278,
4949,
17,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the biggest crowd when the away team of south melbourne played there? | CREATE TABLE table_11701 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT MAX("Crowd") FROM table_11701 WHERE "Away team" = 'south melbourne' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20275,
4542,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
254,
3623,
26,
8512,
21680,
953,
834,
20275,
4542,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
7,
670,
107,
3,
2341,
26255,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
In fitzroy's match where they were the home team, how much did they score? | CREATE TABLE table_54953 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Home team score" FROM table_54953 WHERE "Home team" = 'fitzroy' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5062,
3301,
519,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19040,
372,
2604,
121,
21680,
953,
834,
5062,
3301,
519,
549,
17444,
427,
96,
19040,
372,
121,
3274,
3,
31,
89,
5615,
8170,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the census ranking for the parish with an area larger than 243.31 square km? | CREATE TABLE table_name_79 (census_ranking VARCHAR, area_km_2 INTEGER) | SELECT census_ranking FROM table_name_79 WHERE area_km_2 > 243.31 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
75,
35,
7,
302,
834,
6254,
53,
584,
4280,
28027,
6,
616,
834,
5848,
834,
357,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
23087,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23087,
834,
6254,
53,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
616,
834,
5848,
834,
357,
2490,
3,
27730,
5,
3341,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the status of the junior coaster model that opened in 2008? | CREATE TABLE table_55047 (
"Name" text,
"Model" text,
"Park" text,
"Opened" text,
"Status" text
) | SELECT "Status" FROM table_55047 WHERE "Opened" = '2008' AND "Model" = 'junior coaster' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17147,
4177,
41,
96,
23954,
121,
1499,
6,
96,
24663,
121,
1499,
6,
96,
26163,
121,
1499,
6,
96,
22696,
15,
26,
121,
1499,
6,
96,
134,
17,
144,
302,
121,
1499,
3,
61,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
17,
144,
302,
121,
21680,
953,
834,
17147,
4177,
549,
17444,
427,
96,
22696,
15,
26,
121,
3274,
3,
31,
16128,
31,
3430,
96,
24663,
121,
3274,
3,
31,
6959,
23,
127,
4939,
49,
31,
1,
-100,
-100,
-100,
-10... |
What was the nationality of every player that attended Baylor? | CREATE TABLE table_name_55 (
nationality VARCHAR,
school_country VARCHAR
) | SELECT nationality FROM table_name_55 WHERE school_country = "baylor" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
1157,
485,
584,
4280,
28027,
6,
496,
834,
17529,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1157,
485,
13,
334,
1959,
24,
5526... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1157,
485,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
496,
834,
17529,
3274,
96,
11119,
322,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Bronze has a Year smaller than 1994, and a Silver of south korea? | CREATE TABLE table_name_45 (bronze VARCHAR, year VARCHAR, silver VARCHAR) | SELECT bronze FROM table_name_45 WHERE year < 1994 AND silver = "south korea" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
13711,
776,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
20841,
65,
3,
9,
2929,
2755,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
13467,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
215,
3,
2,
7520,
3430,
4294,
3274,
96,
7,
670,
107,
3,
5543,
15,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
count the number of patients who have had systemic antibiotics - quinolone performed since 3 years ago. | CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeri... | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.patientunitstayid IN (SELECT treatment.patientunitstayid FROM treatment WHERE treatment.treatmentname = 'systemic antibiotics - quinolone' AND DATETIME(treatment.treatmenttime) >= DATETIME(CURRENT_TIME(), '-3 year')) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
583,
41,
583,
23,
26,
381,
6,
775,
12417,
1499,
6,
1868,
15878,
3734,
21545,
23,
26,
381,
6,
605,
6137,
1499,
6,
605,
23,
26,
381,
6,
1567,
715,
97,
6,
583,
381,
3,
61,
3,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
1868,
5,
202,
1495,
12417,
61,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1058,
5,
10061,
15129,
21545,
23,
26,
21680,
1058,
549,
... |
Which best 5-year period has a best 15-year period of alekhine; lasker? | CREATE TABLE table_45645 (
"Position" real,
"best year" text,
"best 2-year period" text,
"best 3-year period" text,
"best 5-year period" text,
"best 10-year period" text,
"best 15-year period" text
) | SELECT "best 5-year period" FROM table_45645 WHERE "best 15-year period" = 'alekhine; lasker' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
948,
2128,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
9606,
215,
121,
1499,
6,
96,
9606,
8401,
1201,
1059,
121,
1499,
6,
96,
9606,
5354,
1201,
1059,
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,
9606,
7670,
1201,
1059,
121,
21680,
953,
834,
2128,
948,
2128,
549,
17444,
427,
96,
9606,
627,
18,
1201,
1059,
121,
3274,
3,
31,
9,
109,
157,
2907,
15,
117,
50,
7,
2304,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
Which Last 5 has a Rank of 7? | CREATE TABLE table_name_31 (
last_5 VARCHAR,
rank VARCHAR
) | SELECT last_5 FROM table_name_31 WHERE rank = 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
336,
834,
755,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2506,
305,
65,
3,
9,
3,
22557,
13,
489,
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,
336,
834,
755,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
11003,
3274,
489,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find the names of all instructors whose name includes the substring dar . | CREATE TABLE department (
dept_name text,
building text,
budget number
)
CREATE TABLE prereq (
course_id text,
prereq_id text
)
CREATE TABLE instructor (
id text,
name text,
dept_name text,
salary number
)
CREATE TABLE course (
course_id text,
title text,
dept_name tex... | SELECT name FROM instructor WHERE name LIKE '%dar%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3066,
41,
20,
102,
17,
834,
4350,
1499,
6,
740,
1499,
6,
1487,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
554,
60,
1824,
41,
503,
834,
23,
26,
1499,
6,
554,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10617,
549,
17444,
427,
564,
8729,
9914,
3,
31,
1454,
3439,
1454,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the professional partner of celebrity małgorzata foremniak with a season less than 7, an average greater than 34.66, and a rank less than 10? | CREATE TABLE table_name_52 (professional_partner VARCHAR, celebrity VARCHAR, rank VARCHAR, season VARCHAR, average VARCHAR) | SELECT professional_partner FROM table_name_52 WHERE season < 7 AND average > 34.66 AND rank < 10 AND celebrity = "małgorzata foremniak" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
24318,
834,
12300,
584,
4280,
28027,
6,
17086,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
6,
1348,
584,
4280,
28027,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
771,
834,
12300,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
774,
3,
2,
489,
3430,
1348,
2490,
6154,
5,
3539,
3430,
11003,
3,
2,
335,
3430,
17086,
3274,
96,
51,
9,
2,
122,
127,
1629,
17,
9,
21,
15,
51,
... |
Which Pick has an Overall larger than 308, and a Position of rb? | CREATE TABLE table_name_21 (
pick INTEGER,
overall VARCHAR,
position VARCHAR
) | SELECT MAX(pick) FROM table_name_21 WHERE overall > 308 AND position = "rb" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
1432,
3,
21342,
17966,
6,
1879,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
8356,
65,
46,
9126,
2186,
145,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
17967,
61,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
1879,
2490,
604,
927,
3430,
1102,
3274,
96,
52,
115,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the least silver when the total is more than 2, bronze is 3, gold is more than 0, and rank is 1? | CREATE TABLE table_name_4 (silver INTEGER, rank VARCHAR, gold VARCHAR, total VARCHAR, bronze VARCHAR) | SELECT MIN(silver) FROM table_name_4 WHERE total > 2 AND bronze = 3 AND gold > 0 AND rank = "1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
7,
173,
624,
3,
21342,
17966,
6,
11003,
584,
4280,
28027,
6,
2045,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
61,
3,
32102,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
7,
173,
624,
61,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
792,
2490,
204,
3430,
13467,
3274,
220,
3430,
2045,
2490,
3,
632,
3430,
11003,
3274,
96,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
... |
Which Position has a CFL Team of montreal alouettes (via edmonton)? | CREATE TABLE table_name_6 (
position VARCHAR,
cfl_team VARCHAR
) | SELECT position FROM table_name_6 WHERE cfl_team = "montreal alouettes (via edmonton)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
1102,
584,
4280,
28027,
6,
3,
75,
89,
40,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
14258,
65,
3,
9,
205,
10765,
2271,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1102,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
3,
75,
89,
40,
834,
11650,
3274,
96,
4662,
6644,
491,
24043,
7,
41,
5907,
3,
15,
26,
4662,
106,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the average draft pick number from Carson-Newman College before Round 7? | CREATE TABLE table_42436 (
"Round" real,
"Pick #" real,
"Player" text,
"Position" text,
"College" text
) | SELECT AVG("Pick #") FROM table_42436 WHERE "College" = 'carson-newman' AND "Round" < '7' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2266,
3420,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
345,
3142,
1713,
8512,
21680,
953,
834,
591,
2266,
3420,
549,
17444,
427,
96,
9939,
7883,
121,
3274,
3,
31,
1720,
739,
18,
5534,
348,
31,
3430,
96,
448,
32,
1106,
121,
3,
2,
3,
31,
940,
31,
... |
How many districts does Donald D. Clancy represent? | CREATE TABLE table_1341738_36 (
district VARCHAR,
incumbent VARCHAR
) | SELECT COUNT(district) FROM table_1341738_36 WHERE incumbent = "Donald D. Clancy" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2517,
3747,
834,
3420,
41,
3939,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
14126,
405,
7459,
309,
5,
4779,
6833,
42... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
26,
23,
20066,
61,
21680,
953,
834,
23747,
2517,
3747,
834,
3420,
549,
17444,
427,
28406,
3274,
96,
13843,
138,
26,
309,
5,
4779,
6833,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the 2002 dominant religion when the largest ethnic group (2002) was slovaks and type is village? | CREATE TABLE table_2562572_43 (dominant_religion__2002_ VARCHAR, largest_ethnic_group__2002_ VARCHAR, type VARCHAR) | SELECT dominant_religion__2002_ FROM table_2562572_43 WHERE largest_ethnic_group__2002_ = "Slovaks" AND type = "village" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19337,
1828,
5865,
834,
4906,
41,
5012,
77,
288,
834,
60,
2825,
23,
106,
834,
834,
24898,
834,
584,
4280,
28027,
6,
2015,
834,
15,
189,
2532,
834,
10739,
834,
834,
24898,
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,
12613,
834,
60,
2825,
23,
106,
834,
834,
24898,
834,
21680,
953,
834,
19337,
1828,
5865,
834,
4906,
549,
17444,
427,
2015,
834,
15,
189,
2532,
834,
10739,
834,
834,
24898,
834,
3274,
96,
134,
5850,
1639,
7,
121,
343... |
Show the name and phone of the customer without any mailshot. | CREATE TABLE mailshot_customers (
customer_name VARCHAR,
customer_phone VARCHAR,
customer_id VARCHAR
)
CREATE TABLE customers (
customer_name VARCHAR,
customer_phone VARCHAR,
customer_id VARCHAR
) | SELECT customer_name, customer_phone FROM customers WHERE NOT customer_id IN (SELECT customer_id FROM mailshot_customers) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4842,
11159,
834,
25697,
277,
41,
884,
834,
4350,
584,
4280,
28027,
6,
884,
834,
6399,
584,
4280,
28027,
6,
884,
834,
23,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
43... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4350,
6,
884,
834,
6399,
21680,
722,
549,
17444,
427,
4486,
884,
834,
23,
26,
3388,
41,
23143,
14196,
884,
834,
23,
26,
21680,
4842,
11159,
834,
25697,
277,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is he smallest numbered week? | CREATE TABLE table_24136814_3 (week INTEGER) | SELECT MIN(week) FROM table_24136814_3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
2368,
3651,
2534,
834,
519,
41,
8041,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
3,
88,
3,
17924,
3,
22412,
471,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
8041,
61,
21680,
953,
834,
2266,
2368,
3651,
2534,
834,
519,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Tournament has a Margin of victory of 1 stroke, and a Date of oct 7, 1990? | CREATE TABLE table_name_39 (
tournament VARCHAR,
margin_of_victory VARCHAR,
date VARCHAR
) | SELECT tournament FROM table_name_39 WHERE margin_of_victory = "1 stroke" AND date = "oct 7, 1990" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
5892,
584,
4280,
28027,
6,
6346,
834,
858,
834,
7287,
10972,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2050... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5892,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
6346,
834,
858,
834,
7287,
10972,
3274,
96,
536,
9529,
121,
3430,
833,
3274,
96,
32,
75,
17,
7973,
5541,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the To par of the T8 Place Player with a Score of 72-70-66=208? | CREATE TABLE table_name_79 (
to_par VARCHAR,
place VARCHAR,
score VARCHAR
) | SELECT to_par FROM table_name_79 WHERE place = "t8" AND score = 72 - 70 - 66 = 208 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
12,
834,
1893,
584,
4280,
28027,
6,
286,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
304,
260,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
12,
834,
1893,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
286,
3274,
96,
17,
927,
121,
3430,
2604,
3274,
9455,
3,
18,
2861,
3,
18,
3,
3539,
3274,
3,
23946,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
In how many rounds of the draft was there a college from Georgia involved? | CREATE TABLE table_name_94 (
round VARCHAR,
college VARCHAR
) | SELECT COUNT(round) FROM table_name_94 WHERE college = "georgia" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
1751,
584,
4280,
28027,
6,
1900,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
86,
149,
186,
14419,
13,
8,
6488,
47,
132,
3,
9,
1900,
45,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
7775,
61,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
1900,
3274,
96,
397,
1677,
23,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Played has a Lost larger than 4, and a Team of américa, and Points smaller than 5? | CREATE TABLE table_name_4 (played INTEGER, points VARCHAR, lost VARCHAR, team VARCHAR) | SELECT SUM(played) FROM table_name_4 WHERE lost > 4 AND team = "américa" AND points < 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
4895,
15,
26,
3,
21342,
17966,
6,
979,
584,
4280,
28027,
6,
1513,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
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,
180,
6122,
599,
4895,
15,
26,
61,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
1513,
2490,
314,
3430,
372,
3274,
96,
265,
5134,
658,
121,
3430,
979,
3,
2,
305,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What were the July ( C) temperatures when the July ( F) temperatures were 71/55? | CREATE TABLE table_21980_1 (
july__°c_ VARCHAR,
july__°f_ VARCHAR
) | SELECT july__°c_ FROM table_21980_1 WHERE july__°f_ = "71/55" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2294,
2079,
834,
536,
41,
3,
2047,
120,
834,
834,
1956,
75,
834,
584,
4280,
28027,
6,
3,
2047,
120,
834,
834,
1956,
89,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
2047,
120,
834,
834,
1956,
75,
834,
21680,
953,
834,
357,
2294,
2079,
834,
536,
549,
17444,
427,
3,
2047,
120,
834,
834,
1956,
89,
834,
3274,
96,
4450,
16936,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the result for the politician first elected in 1942? | CREATE TABLE table_18481 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT "Result" FROM table_18481 WHERE "First elected" = '1942' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25987,
4959,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
490,
6,
96,
20119,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20119,
121,
21680,
953,
834,
25987,
4959,
549,
17444,
427,
96,
25171,
8160,
121,
3274,
3,
31,
2294,
4165,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
which team had the most fourth place finishes ? | CREATE TABLE table_203_502 (
id number,
"team" text,
"titles" number,
"runner-up" number,
"third place" number,
"fourth place" number,
"years participated" number
) | SELECT "team" FROM table_203_502 ORDER BY "fourth place" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
1752,
357,
41,
3,
23,
26,
381,
6,
96,
11650,
121,
1499,
6,
96,
21869,
7,
121,
381,
6,
96,
10806,
18,
413,
121,
381,
6,
96,
14965,
286,
121,
381,
6,
96,
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,
11650,
121,
21680,
953,
834,
23330,
834,
1752,
357,
4674,
11300,
272,
476,
96,
12521,
189,
286,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Date has a Winning score of −15 (71-69-68-65=273)? | CREATE TABLE table_name_98 (date VARCHAR, winning_score VARCHAR) | SELECT date FROM table_name_98 WHERE winning_score = −15(71 - 69 - 68 - 65 = 273) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
5522,
584,
4280,
28027,
6,
3447,
834,
7,
9022,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
7678,
65,
3,
9,
549,
10503,
2604,
13,
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,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
3447,
834,
7,
9022,
3274,
3,
2,
1808,
599,
4450,
3,
18,
3,
3951,
3,
18,
3,
3651,
3,
18,
7123,
3274,
2307,
5268,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the Home team at the Lincoln City Away game? | CREATE TABLE table_name_80 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team FROM table_name_80 WHERE away_team = "lincoln city" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
5515,
834,
11650,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1210,
372,
44,
8,
9884,
896,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
11650,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
550,
834,
11650,
3274,
96,
40,
77,
3297,
29,
690,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What network has a Play-by-play by Jack Edwards in 2000? | CREATE TABLE table_44804 (
"Year" real,
"Network" text,
"Play-by-play" text,
"Color commentator(s)" text,
"Pregame host" text
) | SELECT "Network" FROM table_44804 WHERE "Play-by-play" = 'jack edwards' AND "Year" = '2000' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3628,
2079,
591,
41,
96,
476,
2741,
121,
490,
6,
96,
9688,
1981,
121,
1499,
6,
96,
15800,
18,
969,
18,
4895,
121,
1499,
6,
96,
3881,
322,
1670,
1016,
599,
7,
61,
121,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
9688,
1981,
121,
21680,
953,
834,
3628,
2079,
591,
549,
17444,
427,
96,
15800,
18,
969,
18,
4895,
121,
3274,
3,
31,
9325,
3,
15,
26,
2239,
7,
31,
3430,
96,
476,
2741,
121,
3274,
3,
31,
13527,
31,
1,
-100,
... |
What is the score for Milwaukee? | CREATE TABLE table_21362 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Score" FROM table_21362 WHERE "Team" = 'Milwaukee' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
3420,
357,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
2658,
3420,
357,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
329,
173,
210,
402,
1050,
15,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who won Silverstone in a round after 10? | CREATE TABLE table_4555 (
"Round" real,
"Name" text,
"Circuit" text,
"Date" text,
"Winning driver" text,
"Winning car" text
) | SELECT "Name" FROM table_4555 WHERE "Round" > '10' AND "Circuit" = 'silverstone' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
3769,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
254,
23,
52,
21560,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
518,
10503,
2535,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23954,
121,
21680,
953,
834,
2128,
3769,
549,
17444,
427,
96,
448,
32,
1106,
121,
2490,
3,
31,
1714,
31,
3430,
96,
254,
23,
52,
21560,
121,
3274,
3,
31,
7,
173,
624,
3009,
31,
1,
-100,
-100,
-100,
-100,
-100... |
What is the Rank of the Swimmer in Lane 5? | CREATE TABLE table_64463 (
"Rank" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" real
) | SELECT AVG("Rank") FROM table_64463 WHERE "Lane" = '5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4389,
4448,
519,
41,
96,
22557,
121,
490,
6,
96,
434,
152,
15,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
13368,
121,
490,
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,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
121,
22557,
8512,
21680,
953,
834,
4389,
4448,
519,
549,
17444,
427,
96,
434,
152,
15,
121,
3274,
3,
31,
755,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
how many patients whose procedure long title is other bronchoscopy? | 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 COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE procedures.long_title = "Other bronchoscopy" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What was the result for the Bafta Tv award? | CREATE TABLE table_name_63 (result VARCHAR, award VARCHAR) | SELECT result FROM table_name_63 WHERE award = "bafta tv award" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
2760,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
741,
21,
8,
2659,
89,
17,
9,
332,
208,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
2760,
3274,
96,
115,
9,
89,
17,
9,
3,
17,
208,
2760,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which text has Wade-Giles translation of ai-ma … hsin-yüan? | CREATE TABLE table_name_85 (text VARCHAR, wade_giles VARCHAR) | SELECT text FROM table_name_85 WHERE wade_giles = "ai-ma … hsin-yüan" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
6327,
584,
4280,
28027,
6,
8036,
221,
834,
122,
699,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1499,
65,
26765,
18,
517,
699,
7,
73... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
3,
23143,
14196,
1499,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
8036,
221,
834,
122,
699,
7,
3274,
96,
9,
23,
18,
51,
9,
3,
233,
3,
107,
7,
77,
18,
63,
1272,
152,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the average year that anna thompson had an 8th place result in team competition at the world cross country championships in st etienne, france with | CREATE TABLE table_46161 (
"Year" real,
"Tournament" text,
"Venue" text,
"Result" text,
"Extra" text
) | SELECT AVG("Year") FROM table_46161 WHERE "Tournament" = 'world cross country championships' AND "Venue" = 'st etienne, france' AND "Extra" = 'team competition' AND "Result" = '8th' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4448,
2938,
536,
41,
96,
476,
2741,
121,
490,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
5420,
1313,
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,
71,
17217,
599,
121,
476,
2741,
8512,
21680,
953,
834,
4448,
2938,
536,
549,
17444,
427,
96,
382,
1211,
20205,
17,
121,
3274,
3,
31,
7276,
2269,
684,
10183,
7,
31,
3430,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
7,... |
What is the density that has an area smaller than 2,200.2 and a population larger than 2,599? | CREATE TABLE table_37649 (
"Commune" text,
"Area (km 2 )" real,
"2002 population" real,
"Density (km 2 )" real,
"Government website" text
) | SELECT COUNT("Density (km 2 )") FROM table_37649 WHERE "Area (km 2 )" < '2,200.2' AND "2002 population" > '2,599' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3959,
3647,
41,
96,
10205,
444,
121,
1499,
6,
96,
188,
864,
41,
5848,
204,
3,
61,
121,
490,
6,
96,
24898,
2074,
121,
490,
6,
96,
308,
35,
7,
485,
41,
5848,
204,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
308,
35,
7,
485,
41,
5848,
204,
3,
61,
8512,
21680,
953,
834,
519,
3959,
3647,
549,
17444,
427,
96,
188,
864,
41,
5848,
204,
3,
61,
121,
3,
2,
3,
31,
4482,
1755,
18189,
31,
3430,
96,
248... |
give me the number of patients whose admission location is phys referral/normal deli and age is less than 50? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "PHYS REFERRAL/NORMAL DELI" AND demographic.age < "50" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
14836,
3274,
96,
8023,
476,
134,
4083,
20805,
21415,
87,
24833,
329,
4090,
309,
... |
What is Reserved Instruments, when Conduct of Litigation is Yes, and when Probate Activities is No? | CREATE TABLE table_name_95 (
reserved_instruments VARCHAR,
conduct_of_litigation VARCHAR,
probate_activities VARCHAR
) | SELECT reserved_instruments FROM table_name_95 WHERE conduct_of_litigation = "yes" AND probate_activities = "no" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
14040,
834,
25232,
7,
584,
4280,
28027,
6,
3498,
834,
858,
834,
40,
23,
2880,
257,
584,
4280,
28027,
6,
12361,
342,
834,
8463,
2197,
584,
4280,
28027,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14040,
834,
25232,
7,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
3498,
834,
858,
834,
40,
23,
2880,
257,
3274,
96,
10070,
121,
3430,
12361,
342,
834,
8463,
2197,
3274,
96,
29,
32,
121,
1,
-100,
-100,
-100,
... |
Which player was drafted after round 9 and number 464 overall? | CREATE TABLE table_name_83 (player VARCHAR, round VARCHAR, overall VARCHAR) | SELECT player FROM table_name_83 WHERE round > 9 AND overall = 464 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
20846,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
6,
1879,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1959,
47,
3,
23505,
227,
1751,
66... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1959,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
1751,
2490,
668,
3430,
1879,
3274,
314,
4389,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which city is post code 255 located in? | CREATE TABLE customer_contact_channels (
customer_id number,
channel_code text,
active_from_date time,
active_to_date time,
contact_number text
)
CREATE TABLE addresses (
address_id number,
address_content text,
city text,
zip_postcode text,
state_province_county text,
count... | SELECT city FROM addresses WHERE zip_postcode = 255 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
884,
834,
27608,
834,
19778,
7,
41,
884,
834,
23,
26,
381,
6,
4245,
834,
4978,
1499,
6,
1676,
834,
7152,
834,
5522,
97,
6,
1676,
834,
235,
834,
5522,
97,
6,
574,
834,
5525,
1152,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
690,
21680,
7181,
549,
17444,
427,
10658,
834,
5950,
4978,
3274,
3,
25502,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What teams finished in 3rd when panathinaikos finished 2nd? | CREATE TABLE table_20550 (
"Season" text,
"1st Place" text,
"2nd Place" text,
"3rd Place" text,
"4th Place" text
) | SELECT "3rd Place" FROM table_20550 WHERE "2nd Place" = 'Panathinaikos' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
17147,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
536,
7,
17,
3399,
121,
1499,
6,
96,
357,
727,
3399,
121,
1499,
6,
96,
519,
52,
26,
3399,
121,
1499,
6,
96,
591... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
519,
52,
26,
3399,
121,
21680,
953,
834,
1755,
17147,
549,
17444,
427,
96,
357,
727,
3399,
121,
3274,
3,
31,
345,
152,
144,
2907,
9,
12027,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the joined year of the pilot of the highest rank? | CREATE TABLE pilot (
pilot_id number,
pilot_name text,
rank number,
age number,
nationality text,
position text,
join_year number,
team text
)
CREATE TABLE aircraft (
aircraft_id number,
order_year number,
manufacturer text,
model text,
fleet_series text,
powertr... | SELECT join_year FROM pilot ORDER BY rank LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4487,
41,
4487,
834,
23,
26,
381,
6,
4487,
834,
4350,
1499,
6,
11003,
381,
6,
1246,
381,
6,
1157,
485,
1499,
6,
1102,
1499,
6,
1715,
834,
1201,
381,
6,
372,
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,
1715,
834,
1201,
21680,
4487,
4674,
11300,
272,
476,
11003,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the sum of Wins, when Played is less than 5? | CREATE TABLE table_48749 (
"Rank" real,
"Team" text,
"Played" real,
"Wins" real,
"Ties" real,
"Losses" real,
"Points" real
) | SELECT SUM("Wins") FROM table_48749 WHERE "Played" < '5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4225,
3647,
41,
96,
22557,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,
382,
725,
121,
490,
6,
96,
434,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18455,
7,
8512,
21680,
953,
834,
591,
4225,
3647,
549,
17444,
427,
96,
15800,
15,
26,
121,
3,
2,
3,
31,
755,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
who held the fastes lap in Phoenix, Arizona? | CREATE TABLE table_26925 (
"Rnd" real,
"Date" text,
"Race Name" text,
"Track" text,
"Location" text,
"Pole position" text,
"Fastest lap" text,
"Most Laps Led" text,
"Winner" text
) | SELECT "Fastest lap" FROM table_26925 WHERE "Location" = 'Phoenix, Arizona' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
28456,
41,
96,
448,
727,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
448,
3302,
5570,
121,
1499,
6,
96,
382,
16729,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
371,
9,
7,
4377,
14941,
121,
21680,
953,
834,
2688,
28456,
549,
17444,
427,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
345,
107,
32,
35,
2407,
6,
7601,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Return a scatter chart about the correlation between Team_ID and All_Games_Percent . | 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 Team_ID, 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,
2271,
834,
4309,
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,
-100,
-100,
... |
What is the international use of the 1 flag? | CREATE TABLE table_74436 (
"Flag Name" text,
"Transliteration" text,
"Meaning" text,
"Description" text,
"International Use" text
) | SELECT "International Use" FROM table_74436 WHERE "Flag Name" = '1 единица' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
591,
3420,
41,
96,
371,
5430,
5570,
121,
1499,
6,
96,
18474,
9842,
257,
121,
1499,
6,
96,
329,
15,
152,
53,
121,
1499,
6,
96,
2962,
11830,
121,
1499,
6,
96,
27490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
27490,
2048,
121,
21680,
953,
834,
4581,
591,
3420,
549,
17444,
427,
96,
371,
5430,
5570,
121,
3274,
3,
31,
536,
3,
1757,
5814,
2795,
14391,
2,
2533,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest block that has 328 as the spike, and a height less than 186? | CREATE TABLE table_40186 (
"Name" text,
"Date of Birth" text,
"Height" real,
"Weight" real,
"Spike" real,
"Block" real
) | SELECT MIN("Block") FROM table_40186 WHERE "Spike" = '328' AND "Height" < '186' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
25398,
41,
96,
23954,
121,
1499,
6,
96,
308,
342,
13,
26337,
121,
1499,
6,
96,
3845,
2632,
121,
490,
6,
96,
1326,
2632,
121,
490,
6,
96,
134,
102,
5208,
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,
3,
17684,
599,
121,
279,
4029,
8512,
21680,
953,
834,
2445,
25398,
549,
17444,
427,
96,
134,
102,
5208,
121,
3274,
3,
31,
28070,
31,
3430,
96,
3845,
2632,
121,
3,
2,
3,
31,
25398,
31,
1,
-100,
-100,
-100,
-100,
... |
Who was the opponent when the Phillies played on April 28? | CREATE TABLE table_name_77 (
opponent VARCHAR,
date VARCHAR
) | SELECT opponent FROM table_name_77 WHERE date = "april 28" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
15264,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
15264,
116,
8,
8188,
4664,
1944,
30,
1186,
2059,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15264,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
833,
3274,
96,
9,
2246,
40,
2059,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the date successor seated for delegate seat established | CREATE TABLE table_73392 (
"District" text,
"Vacator" text,
"Reason for change" text,
"Successor" text,
"Date successor seated" text
) | SELECT "Date successor seated" FROM table_73392 WHERE "Reason for change" = 'Delegate seat established' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4552,
3288,
357,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
25203,
1016,
121,
1499,
6,
96,
1649,
9,
739,
21,
483,
121,
1499,
6,
96,
134,
17431,
24901,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
22261,
3,
22933,
121,
21680,
953,
834,
4552,
3288,
357,
549,
17444,
427,
96,
1649,
9,
739,
21,
483,
121,
3274,
3,
31,
2962,
8791,
3143,
2127,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What Score in the final has a Surface of hard, a Championship of washington, d.c. , u.s., and an Opponent in the final of ivan lendl? | CREATE TABLE table_61361 (
"Outcome" text,
"Date" real,
"Championship" text,
"Surface" text,
"Opponent in the final" text,
"Score in the final" text
) | SELECT "Score in the final" FROM table_61361 WHERE "Surface" = 'hard' AND "Championship" = 'washington, d.c. , u.s.' AND "Opponent in the final" = 'ivan lendl' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4241,
3420,
536,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
308,
342,
121,
490,
6,
96,
254,
1483,
12364,
2009,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
667,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
16,
8,
804,
121,
21680,
953,
834,
4241,
3420,
536,
549,
17444,
427,
96,
134,
450,
4861,
121,
3274,
3,
31,
5651,
31,
3430,
96,
254,
1483,
12364,
2009,
121,
3274,
3,
31,
14710,
6029,
6,
3,
26,
5,
... |
Which operator has a Reserve of 100 bbbl? | CREATE TABLE table_15218 (
"Field" text,
"Geological Trend" text,
"Reserves" text,
"Discovery" text,
"Operator(s)" text
) | SELECT "Operator(s)" FROM table_15218 WHERE "Reserves" = '100 bbbl' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26320,
2606,
41,
96,
3183,
8804,
121,
1499,
6,
96,
517,
15,
4478,
11145,
121,
1499,
6,
96,
1649,
3473,
15,
7,
121,
1499,
6,
96,
15683,
1890,
63,
121,
1499,
6,
96,
667,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
883,
1016,
599,
7,
61,
121,
21680,
953,
834,
26320,
2606,
549,
17444,
427,
96,
1649,
3473,
15,
7,
121,
3274,
3,
31,
2915,
3,
115,
115,
115,
40,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What competition did they have 1 lost, 3 draws, and played 9 games? | CREATE TABLE table_63925 (
"Season" text,
"Competition" text,
"Round" text,
"Played" text,
"Drew" text,
"Lost" text
) | SELECT "Competition" FROM table_63925 WHERE "Lost" = '1' AND "Drew" = '3' AND "Played" = '9' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
28456,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
1499,
6,
96,
448,
32,
1106,
121,
1499,
6,
96,
15800,
15,
26,
121,
1499,
6,
96,
308,
60,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
5890,
4995,
4749,
121,
21680,
953,
834,
3891,
28456,
549,
17444,
427,
96,
434,
3481,
121,
3274,
3,
31,
536,
31,
3430,
96,
308,
60,
210,
121,
3274,
3,
31,
519,
31,
3430,
96,
15800,
15,
26,
121,
3274,
3,
31,
... |
What is the original air date of episode 8? Answer: Dec. 21, 2006 | CREATE TABLE table_17467578_1 (
original_airdate VARCHAR,
episode__number VARCHAR
) | SELECT COUNT(original_airdate) FROM table_17467578_1 WHERE episode__number = 8 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
4448,
3072,
3940,
834,
536,
41,
926,
834,
2256,
5522,
584,
4280,
28027,
6,
5640,
834,
834,
5525,
1152,
584,
4280,
28027,
3,
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,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
21878,
834,
2256,
5522,
61,
21680,
953,
834,
2517,
4448,
3072,
3940,
834,
536,
549,
17444,
427,
5640,
834,
834,
5525,
1152,
3274,
505,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the home team score at lake oval? | CREATE TABLE table_name_45 (home_team VARCHAR, venue VARCHAR) | SELECT home_team AS score FROM table_name_45 WHERE venue = "lake oval" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
5515,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
234,
372,
2604,
44,
6957,
17986,
58,
1,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
5669,
3274,
96,
16948,
17986,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What are the highest touchdowns that have net yards greater than 631, with attempts less than 145? | CREATE TABLE table_name_34 (touchdowns INTEGER, net_yards VARCHAR, attempts VARCHAR) | SELECT MAX(touchdowns) FROM table_name_34 WHERE net_yards > 631 AND attempts < 145 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
17681,
3035,
7,
3,
21342,
17966,
6,
3134,
834,
6636,
7,
584,
4280,
28027,
6,
9048,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
203... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
3,
23143,
14196,
4800,
4,
599,
17681,
3035,
7,
61,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
3134,
834,
6636,
7,
2490,
431,
3341,
3430,
9048,
3,
2,
3,
20987,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What Willinghshain has Reimboldsh of 101? | CREATE TABLE table_name_27 (
willingshain VARCHAR,
reimboldsh VARCHAR
) | SELECT willingshain FROM table_name_27 WHERE reimboldsh = "101" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
4403,
7,
1024,
77,
584,
4280,
28027,
6,
3,
60,
603,
4243,
26,
7,
107,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
2003,
53,
107,
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,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4403,
7,
1024,
77,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
3,
60,
603,
4243,
26,
7,
107,
3274,
96,
19621,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
WHAT IS THE TOTAL, OF A TO PAR FOR HUBERT GREEN, AND A TOTAL LARGER THAN 291? | CREATE TABLE table_name_96 (to_par VARCHAR, player VARCHAR, total VARCHAR) | SELECT COUNT(to_par) FROM table_name_96 WHERE player = "hubert green" AND total > 291 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
235,
834,
1893,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
21665,
6827,
1853,
3001,
16359,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
235,
834,
1893,
61,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
1959,
3274,
96,
16420,
49,
17,
1442,
121,
3430,
792,
2490,
204,
4729,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the 2nd member of the parliament that was assembled on 3 november 1529? | CREATE TABLE table_name_37 (assembled VARCHAR) | SELECT 2 AS nd_member FROM table_name_37 WHERE assembled = "3 november 1529" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
15222,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
204,
727,
1144,
13,
8,
20417,
24,
47,
17583,
30,
220,
3,
5326,
18247,
627,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
204,
6157,
3,
727,
834,
12066,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
17583,
3274,
96,
519,
3,
5326,
18247,
627,
3166,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Score with a Winning team that is san antonio spurs? | CREATE TABLE table_name_48 (
score VARCHAR,
winning_team VARCHAR
) | SELECT score FROM table_name_48 WHERE winning_team = "san antonio spurs" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
2604,
584,
4280,
28027,
6,
3447,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
17763,
28,
3,
9,
549,
10503,
372,
24,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
3447,
834,
11650,
3274,
96,
7,
152,
3,
9,
6992,
23,
32,
18421,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
count the number of patients whose admission type is urgent and diagnoses icd9 code is 99813? | 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 diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_type = "URGENT" AND diagnoses.icd9_code = "99813" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
Which country has an IATA of EVN? | CREATE TABLE table_42364 (
"City" text,
"Country" text,
"IATA" text,
"ICAO" text,
"Airport" text
) | SELECT "Country" FROM table_42364 WHERE "IATA" = 'evn' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2773,
4389,
41,
96,
254,
485,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
196,
19282,
121,
1499,
6,
96,
15038,
667,
121,
1499,
6,
96,
20162,
1493,
121,
1499,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
96,
10628,
651,
121,
21680,
953,
834,
591,
2773,
4389,
549,
17444,
427,
96,
196,
19282,
121,
3274,
3,
31,
15,
208,
29,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
how many patients whose admission year is less than 2198 and drug name is gentamicin sulfate? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admityear < "2198" AND prescriptions.drug = "Gentamicin Sulfate" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
How many of the patients born before the year 2098 had operations on chordae tendineae? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.dob_year < "2098" AND procedures.long_title = "Operations on chordae tendineae" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is Award, when Category is 'Best Actor', and when Year is less than 1988? | CREATE TABLE table_59284 (
"Year" real,
"Award" text,
"Category" text,
"Film" text,
"Result" text
) | SELECT "Award" FROM table_59284 WHERE "Category" = 'best actor' AND "Year" < '1988' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
357,
4608,
41,
96,
476,
2741,
121,
490,
6,
96,
188,
2239,
121,
1499,
6,
96,
18610,
6066,
651,
121,
1499,
6,
96,
371,
173,
51,
121,
1499,
6,
96,
20119,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
2239,
121,
21680,
953,
834,
3390,
357,
4608,
549,
17444,
427,
96,
18610,
6066,
651,
121,
3274,
3,
31,
9606,
7556,
31,
3430,
96,
476,
2741,
121,
3,
2,
3,
31,
2294,
4060,
31,
1,
-100,
-100,
-100,
-100,
-1... |
how many games have a max player limit of at least 3 ? | CREATE TABLE table_204_480 (
id number,
"title" text,
"alternate title(s)" text,
"year" number,
"manufacturer" text,
"genre(s)" text,
"max. players" number
) | SELECT COUNT(*) FROM table_204_480 WHERE "max. players" >= 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
20579,
41,
3,
23,
26,
381,
6,
96,
21869,
121,
1499,
6,
96,
8818,
29,
342,
2233,
599,
7,
61,
121,
1499,
6,
96,
1201,
121,
381,
6,
96,
348,
76,
8717,
450,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
26363,
834,
20579,
549,
17444,
427,
96,
9128,
5,
1508,
121,
2490,
2423,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who replaced the outgoing manager H sn zkara? | CREATE TABLE table_74060 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Replaced by" text,
"Date of appointment" text
) | SELECT "Replaced by" FROM table_74060 WHERE "Outgoing manager" = 'Hüsnü Özkara' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2445,
3328,
41,
96,
18699,
121,
1499,
6,
96,
15767,
9545,
2743,
121,
1499,
6,
96,
7296,
687,
13,
12028,
121,
1499,
6,
96,
308,
342,
13,
3,
29685,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
4687,
26,
57,
121,
21680,
953,
834,
940,
2445,
3328,
549,
17444,
427,
96,
15767,
9545,
2743,
121,
3274,
3,
31,
566,
1272,
7,
29,
1272,
3,
2,
172,
4031,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the school of the player from Lake Charles, LA? | CREATE TABLE table_17054 (
"Player" text,
"Position" text,
"School" text,
"Hometown" text,
"MLB Draft" text
) | SELECT "School" FROM table_17054 WHERE "Hometown" = 'Lake Charles, LA' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
3076,
591,
41,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
29364,
121,
1499,
6,
96,
19040,
3540,
121,
1499,
6,
96,
6858,
279,
21409,
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,
29364,
121,
21680,
953,
834,
2517,
3076,
591,
549,
17444,
427,
96,
19040,
3540,
121,
3274,
3,
31,
3612,
1050,
5417,
6,
5292,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the minimum introduced value for the Departmental region? | CREATE TABLE table_1081459_1 (
introduced INTEGER,
region VARCHAR
) | SELECT MIN(introduced) FROM table_1081459_1 WHERE region = "Departmental" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
16169,
2534,
3390,
834,
536,
41,
3665,
3,
21342,
17966,
6,
1719,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2559,
3665,
701,
21,
8,
1775,
138,
1719... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
20322,
32,
12160,
26,
61,
21680,
953,
834,
16169,
2534,
3390,
834,
536,
549,
17444,
427,
1719,
3274,
96,
2962,
2274,
13974,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
tell me whether patient jerry deberry is married or not. | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | SELECT demographic.marital_status FROM demographic WHERE demographic.name = "Jerry Deberry" | [
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,
14798,
5,
1635,
9538,
834,
8547,
302,
21680,
14798,
549,
17444,
427,
14798,
5,
4350,
3274,
96,
683,
49,
651,
374,
7418,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.