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 score of Howard Clark from England with a To Par of +1? | CREATE TABLE table_name_55 (score VARCHAR, player VARCHAR, to_par VARCHAR, country VARCHAR) | SELECT score FROM table_name_55 WHERE to_par = "+1" AND country = "england" AND player = "howard clark" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
7,
9022,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
6,
12,
834,
1893,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
12,
834,
1893,
3274,
96,
18446,
121,
3430,
684,
3274,
96,
4606,
40,
232,
121,
3430,
1959,
3274,
96,
4067,
986,
6860,
157,
121,
1,
-100,
-100,
-100,
-100,
-100... |
How many documents are with document type code BK for each product id? | CREATE TABLE Documents (project_id VARCHAR, document_type_code VARCHAR) | SELECT COUNT(*), project_id FROM Documents WHERE document_type_code = "BK" GROUP BY project_id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11167,
7,
41,
23574,
834,
23,
26,
584,
4280,
28027,
6,
1708,
834,
6137,
834,
4978,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
2691,
33,
28,
1708,
686,
1081,
272,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
1935,
201,
516,
834,
23,
26,
21680,
11167,
7,
549,
17444,
427,
1708,
834,
6137,
834,
4978,
3274,
96,
279,
439,
121,
350,
4630,
6880,
272,
476,
516,
834,
23,
26,
1,
-100,
-100,
-100,
-100,
-100,
-... |
How much was requested from Investing Dragon Peter Jones request in episode 2? | CREATE TABLE table_name_92 (
money_requested__£_ VARCHAR,
investing_dragon_s_ VARCHAR,
episode VARCHAR
) | SELECT money_requested__£_ FROM table_name_92 WHERE investing_dragon_s_ = "peter jones" AND episode = "episode 2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
540,
834,
60,
835,
6265,
834,
834,
19853,
834,
584,
4280,
28027,
6,
8448,
834,
3515,
5307,
834,
7,
834,
584,
4280,
28027,
6,
5640,
584,
4280,
28027,
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,
540,
834,
60,
835,
6265,
834,
834,
19853,
834,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
8448,
834,
3515,
5307,
834,
7,
834,
3274,
96,
4995,
49,
3,
1927,
1496,
121,
3430,
5640,
3274,
96,
15,
102,
159,
32,... |
count the number of patients whose drug code is quet25? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.formulary_drug_cd = "QUET25" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
Name the 2008 for 2012 being a and tournament of australian open | CREATE TABLE table_name_20 (
tournament VARCHAR
) | SELECT 2008 FROM table_name_20 WHERE 2012 = "a" AND tournament = "australian open" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1755,
41,
5892,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
2628,
21,
1673,
271,
3,
9,
11,
5892,
13,
23407,
29,
539,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2628,
21680,
953,
834,
4350,
834,
1755,
549,
17444,
427,
1673,
3274,
96,
9,
121,
3430,
5892,
3274,
96,
402,
3109,
9928,
539,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Overall attendance for week 4? | CREATE TABLE table_name_63 (
attendance VARCHAR,
week VARCHAR
) | SELECT attendance FROM table_name_63 WHERE week = 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
11364,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
9126,
11364,
21,
471,
314,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
11364,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
471,
3274,
314,
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... |
How many miss universes did south africa have? | CREATE TABLE table_30636 (
"Rank" real,
"Country" text,
"Miss Universe" text,
"1st Runner-up" real,
"2nd Runner-up" real,
"3rd Runner-up" real,
"4th Runner-up" real,
"Semifinalists" real,
"Total" real
) | SELECT COUNT("Miss Universe") FROM table_30636 WHERE "Country" = 'South Africa' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1458,
948,
3420,
41,
96,
22557,
121,
490,
6,
96,
10628,
651,
121,
1499,
6,
96,
329,
159,
7,
20713,
121,
1499,
6,
96,
536,
7,
17,
3,
23572,
18,
413,
121,
490,
6,
96,
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,
121,
329,
159,
7,
20713,
8512,
21680,
953,
834,
1458,
948,
3420,
549,
17444,
427,
96,
10628,
651,
121,
3274,
3,
31,
22081,
2648,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the location where shocker was the winner? | CREATE TABLE table_name_14 (location VARCHAR, winner VARCHAR) | SELECT location FROM table_name_14 WHERE winner = "shocker" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
14836,
584,
4280,
28027,
6,
4668,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1128,
213,
8700,
49,
47,
8,
4668,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
4668,
3274,
96,
5630,
3383,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the Outcome of the match with a Score of w/o? | CREATE TABLE table_name_57 (
outcome VARCHAR,
score VARCHAR
) | SELECT outcome FROM table_name_57 WHERE score = "w/o" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
6138,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
3387,
287,
15,
13,
8,
1588,
28,
3,
9,
17763,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6138,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
2604,
3274,
96,
210,
87,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the Points Classification Navy Blue Jersey that has Yoann le Boulanger, and Gerolsteiner? | CREATE TABLE table_name_11 (
points_classification_navy_blue_jersey VARCHAR,
mountains_classification_green_jersey VARCHAR,
team_classification VARCHAR
) | SELECT points_classification_navy_blue_jersey FROM table_name_11 WHERE mountains_classification_green_jersey = "yoann le boulanger" AND team_classification = "gerolsteiner" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2596,
41,
979,
834,
4057,
2420,
834,
29,
19649,
834,
7060,
15,
834,
12488,
7,
15,
63,
584,
4280,
28027,
6,
8022,
834,
4057,
2420,
834,
9423,
834,
12488,
7,
15,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
979,
834,
4057,
2420,
834,
29,
19649,
834,
7060,
15,
834,
12488,
7,
15,
63,
21680,
953,
834,
4350,
834,
2596,
549,
17444,
427,
8022,
834,
4057,
2420,
834,
9423,
834,
12488,
7,
15,
63,
3274,
96,
63,
32,
152,
29,
... |
what is date of birth and primary disease of subject name jerry deberry? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | SELECT demographic.dob, demographic.diagnosis FROM demographic WHERE demographic.name = "Jerry Deberry" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
26,
32,
115,
6,
14798,
5,
25930,
4844,
159,
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,... |
What is Position, when Height in Ft. is 6-10? | CREATE TABLE table_name_21 (
position VARCHAR,
height_in_ft VARCHAR
) | SELECT position FROM table_name_21 WHERE height_in_ft = "6-10" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
1102,
584,
4280,
28027,
6,
3902,
834,
77,
834,
89,
17,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
14258,
6,
116,
24231,
16,
377,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1102,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
3902,
834,
77,
834,
89,
17,
3274,
96,
948,
4536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the first name and the last name of the customer who made the earliest rental? | CREATE TABLE customer (first_name VARCHAR, last_name VARCHAR, customer_id VARCHAR); CREATE TABLE rental (customer_id VARCHAR, rental_date VARCHAR) | SELECT T1.first_name, T1.last_name FROM customer AS T1 JOIN rental AS T2 ON T1.customer_id = T2.customer_id ORDER BY T2.rental_date LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
884,
41,
14672,
834,
4350,
584,
4280,
28027,
6,
336,
834,
4350,
584,
4280,
28027,
6,
884,
834,
23,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3571,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
14672,
834,
4350,
6,
332,
5411,
5064,
834,
4350,
21680,
884,
6157,
332,
536,
3,
15355,
3162,
3571,
6157,
332,
357,
9191,
332,
5411,
25697,
49,
834,
23,
26,
3274,
332,
4416,
25697,
49,
834,
23,
26,
4674,
... |
which country has the smallest capacity stadium ? | CREATE TABLE table_204_392 (
id number,
"#" number,
"stadium" text,
"capacity" number,
"city" text,
"country" text,
"domed or retractable roof" text
) | SELECT "country" FROM table_204_392 ORDER BY "capacity" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3288,
357,
41,
3,
23,
26,
381,
6,
96,
4663,
121,
381,
6,
96,
2427,
12925,
121,
1499,
6,
96,
4010,
9,
6726,
121,
381,
6,
96,
6726,
121,
1499,
6,
96,
17529,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17529,
121,
21680,
953,
834,
26363,
834,
3288,
357,
4674,
11300,
272,
476,
96,
4010,
9,
6726,
121,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the application for caligari corporation | CREATE TABLE table_19495707_1 (application VARCHAR, developed_by VARCHAR) | SELECT application FROM table_19495707_1 WHERE developed_by = "Caligari Corporation" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
3647,
3436,
4560,
834,
536,
41,
12251,
584,
4280,
28027,
6,
1597,
834,
969,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
917,
21,
212,
2825,
1665,
1186... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
917,
21680,
953,
834,
2294,
3647,
3436,
4560,
834,
536,
549,
17444,
427,
1597,
834,
969,
3274,
96,
254,
9,
2825,
1665,
6708,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the GDP of the city with the largest population. | CREATE TABLE city (
gdp VARCHAR,
Regional_Population VARCHAR
) | SELECT gdp FROM city ORDER BY Regional_Population DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
690,
41,
3,
122,
26,
102,
584,
4280,
28027,
6,
7676,
834,
27773,
7830,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
11284,
13,
8,
690,
28,
8,
2015,
2074,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
122,
26,
102,
21680,
690,
4674,
11300,
272,
476,
7676,
834,
27773,
7830,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which country is bob tway from? | CREATE TABLE table_name_30 (
country VARCHAR,
player VARCHAR
) | SELECT country FROM table_name_30 WHERE player = "bob tway" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
684,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
684,
19,
3,
17396,
3,
17,
1343,
45,
58,
1,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
684,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
1959,
3274,
96,
17396,
3,
17,
1343,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
give the number of patients primarily diagnosed for guillan barre syndrome who underwent the procedure titled int insert 1-cham, rate. | 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 prescriptions... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.diagnosis = "GUILLAIN BARRE SYNDROME" AND procedures.short_title = "Int insert 1-cham, rate" | [
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,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Which Slalom has an overall of 25 in the 2009 season? | CREATE TABLE table_name_32 (
slalom VARCHAR,
overall VARCHAR,
season VARCHAR
) | SELECT slalom FROM table_name_32 WHERE overall = "25" AND season = 2009 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
3,
7,
40,
138,
32,
51,
584,
4280,
28027,
6,
1879,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
180,
40,
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,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
7,
40,
138,
32,
51,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
1879,
3274,
96,
1828,
121,
3430,
774,
3274,
2464,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the Label of the release on Stereo vinyl LP with Catalog number SF-7635? | CREATE TABLE table_name_75 (
label VARCHAR,
format VARCHAR,
catalog VARCHAR
) | SELECT label FROM table_name_75 WHERE format = "stereo vinyl lp" AND catalog = "sf-7635" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
3783,
584,
4280,
28027,
6,
1910,
584,
4280,
28027,
6,
10173,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
16229,
13,
8,
1576,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3783,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
1910,
3274,
96,
1370,
15,
32,
9335,
3,
40,
102,
121,
3430,
10173,
3274,
96,
7,
89,
18,
3959,
2469,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
When winter pines is the fcsl team how many mlb teams are there? | CREATE TABLE table_18373863_2 (mlb_team VARCHAR, fcsl_team VARCHAR) | SELECT COUNT(mlb_team) FROM table_18373863_2 WHERE fcsl_team = "Winter Pines" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
4118,
3747,
3891,
834,
357,
41,
51,
40,
115,
834,
11650,
584,
4280,
28027,
6,
3,
89,
75,
7,
40,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
51,
40,
115,
834,
11650,
61,
21680,
953,
834,
2606,
4118,
3747,
3891,
834,
357,
549,
17444,
427,
3,
89,
75,
7,
40,
834,
11650,
3274,
96,
518,
3870,
13395,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,... |
Bar chart x axis minister y axis how many minister | CREATE TABLE member (
Member_ID int,
Member_Name text,
Party_ID text,
In_office text
)
CREATE TABLE region (
Region_ID int,
Region_name text,
Date text,
Label text,
Format text,
Catalogue text
)
CREATE TABLE party_events (
Event_ID int,
Event_Name text,
Party_ID int... | SELECT Minister, COUNT(Minister) FROM party GROUP BY Minister | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1144,
41,
8541,
834,
4309,
16,
17,
6,
8541,
834,
23954,
1499,
6,
3450,
834,
4309,
1499,
6,
86,
834,
19632,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1719,
41,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3271,
6,
2847,
17161,
599,
12858,
5805,
61,
21680,
1088,
350,
4630,
6880,
272,
476,
3271,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the score of the match against roger federer on April 3, 2006? | CREATE TABLE table_name_44 (
score VARCHAR,
opponent VARCHAR,
date VARCHAR
) | SELECT score FROM table_name_44 WHERE opponent = "roger federer" AND date = "april 3, 2006" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
2604,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
13,
8,
1588,
581,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
15264,
3274,
96,
3822,
49,
3,
16812,
49,
121,
3430,
833,
3274,
96,
9,
2246,
40,
6180,
3581,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who are the reporters for the year of 1984? | CREATE TABLE table_25077 (
"Year" real,
"Network" text,
"Race caller" text,
"s Host" text,
"s Analyst" text,
"Reporters" text,
"Trophy presentation" text
) | SELECT "Reporters" FROM table_25077 WHERE "Year" = '1984' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11434,
4013,
41,
96,
476,
2741,
121,
490,
6,
96,
9688,
1981,
121,
1499,
6,
96,
448,
3302,
580,
49,
121,
1499,
6,
96,
7,
1546,
7,
17,
121,
1499,
6,
96,
7,
25224,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
1493,
277,
121,
21680,
953,
834,
11434,
4013,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
2294,
4608,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show the names and total passengers for all train stations not in London. | CREATE TABLE station (
name VARCHAR,
total_passengers VARCHAR,
LOCATION VARCHAR
) | SELECT name, total_passengers FROM station WHERE LOCATION <> 'London' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2478,
41,
564,
584,
4280,
28027,
6,
792,
834,
3968,
4606,
277,
584,
4280,
28027,
6,
301,
5618,
8015,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
3111,
8,
3056,
11,
792,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
6,
792,
834,
3968,
4606,
277,
21680,
2478,
549,
17444,
427,
301,
5618,
8015,
3,
2,
3155,
3,
31,
29712,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is Score, when Tie No is Replay, and when Home Team is Sunderland? | CREATE TABLE table_name_75 (
score VARCHAR,
tie_no VARCHAR,
home_team VARCHAR
) | SELECT score FROM table_name_75 WHERE tie_no = "replay" AND home_team = "sunderland" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
2604,
584,
4280,
28027,
6,
6177,
834,
29,
32,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
6177,
834,
29,
32,
3274,
96,
60,
4895,
121,
3430,
234,
834,
11650,
3274,
96,
7,
7248,
40,
232,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find meter_200 and the average of ID , and group by attribute meter_200, and visualize them by a bar chart. | CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
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 swimme... | SELECT meter_200, AVG(ID) FROM swimmer GROUP BY meter_200 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
605,
41,
4699,
16,
17,
6,
5570,
1499,
6,
12750,
834,
4309,
16,
17,
6,
2929,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1368,
41,
4699,
16,
17,
6,
3,
20119,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4401,
834,
3632,
6,
71,
17217,
599,
4309,
61,
21680,
27424,
350,
4630,
6880,
272,
476,
3,
4401,
834,
3632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What player won 1985? | CREATE TABLE table_name_65 (
player VARCHAR,
year_s__won VARCHAR
) | SELECT player FROM table_name_65 WHERE year_s__won = "1985" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
1959,
584,
4280,
28027,
6,
215,
834,
7,
834,
834,
210,
106,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1959,
751,
13200,
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,
1959,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
215,
834,
7,
834,
834,
210,
106,
3274,
96,
24151,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is the average tries for the season 2008 warrington wolves with an appearance more than 7? | CREATE TABLE table_name_55 (tries INTEGER, season VARCHAR, appearance VARCHAR) | SELECT AVG(tries) FROM table_name_55 WHERE season = "2008 warrington wolves" AND appearance > 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
9000,
3,
21342,
17966,
6,
774,
584,
4280,
28027,
6,
3179,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
1348,
3,
9000,
21,
8,
774,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
9000,
61,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
774,
3274,
96,
16128,
8036,
27636,
3,
29219,
121,
3430,
3179,
2490,
489,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
When did the High Park Demons play Away? | CREATE TABLE table_75790 (
"Date" text,
"Time" text,
"Home" text,
"Away" text,
"Score" text,
"Ground" text
) | SELECT "Date" FROM table_75790 WHERE "Away" = 'high park demons' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
940,
2394,
41,
96,
308,
342,
121,
1499,
6,
96,
13368,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
188,
1343,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
517,
77... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3072,
940,
2394,
549,
17444,
427,
96,
188,
1343,
121,
3274,
3,
31,
6739,
2447,
20,
2157,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Can you tell me the lowest Total natches that has the Points won of 3, and the Year of 1994? | CREATE TABLE table_name_11 (total_matches INTEGER, points_won VARCHAR, year VARCHAR) | SELECT MIN(total_matches) FROM table_name_11 WHERE points_won = 3 AND year = "1994" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2596,
41,
235,
1947,
834,
19515,
15,
7,
3,
21342,
17966,
6,
979,
834,
210,
106,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
235,
1947,
834,
19515,
15,
7,
61,
21680,
953,
834,
4350,
834,
2596,
549,
17444,
427,
979,
834,
210,
106,
3274,
220,
3430,
215,
3274,
96,
19479,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who is the 2nd member during 1885 election? | CREATE TABLE table_71096 (
"Election" text,
"1st Member" text,
"1st Party" text,
"2nd Member" text,
"2nd Party" text
) | SELECT "2nd Member" FROM table_71096 WHERE "Election" = '1885' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
1714,
4314,
41,
96,
427,
12252,
121,
1499,
6,
96,
536,
7,
17,
8541,
121,
1499,
6,
96,
536,
7,
17,
3450,
121,
1499,
6,
96,
357,
727,
8541,
121,
1499,
6,
96,
357,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
357,
727,
8541,
121,
21680,
953,
834,
940,
1714,
4314,
549,
17444,
427,
96,
427,
12252,
121,
3274,
3,
31,
2606,
4433,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
List the total defensive points for marion bartoli. | CREATE TABLE table_24431264_17 (
points VARCHAR,
player VARCHAR
) | SELECT points AS defending FROM table_24431264_17 WHERE player = "Marion Bartoli" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
4906,
2122,
4389,
834,
2517,
41,
979,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
6792,
8,
792,
11976,
979,
21,
2774,
106,
1207,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
979,
6157,
3,
20309,
21680,
953,
834,
2266,
4906,
2122,
4389,
834,
2517,
549,
17444,
427,
1959,
3274,
96,
7286,
23,
106,
1386,
17,
4172,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Where is the coimbatore affilation that was established in 1982? | CREATE TABLE table_name_89 (
affiliation VARCHAR,
estd VARCHAR,
location VARCHAR
) | SELECT affiliation FROM table_name_89 WHERE estd = "1982" AND location = "coimbatore" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
24405,
584,
4280,
28027,
6,
259,
26,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2840,
19,
8,
576,
17982,
235,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
24405,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
259,
26,
3274,
96,
2294,
4613,
121,
3430,
1128,
3274,
96,
509,
17982,
235,
60,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
If the Races is Test Driver what is the Position? | CREATE TABLE table_name_40 (
position VARCHAR,
races VARCHAR
) | SELECT position FROM table_name_40 WHERE races = "test driver" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
1102,
584,
4280,
28027,
6,
10879,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
156,
8,
10949,
7,
19,
2300,
10546,
125,
19,
8,
14258,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1102,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
10879,
3274,
96,
4377,
2535,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many loses corresponded to giving up 714 points? | CREATE TABLE table_12792876_2 (lost VARCHAR, points_against VARCHAR) | SELECT lost FROM table_12792876_2 WHERE points_against = "714" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
4440,
2577,
3959,
834,
357,
41,
2298,
17,
584,
4280,
28027,
6,
979,
834,
9,
16720,
7,
17,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
2615,
7,
1042... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1513,
21680,
953,
834,
2122,
4440,
2577,
3959,
834,
357,
549,
17444,
427,
979,
834,
9,
16720,
7,
17,
3274,
96,
4450,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the outcome of the election with edward mahama as a candidate and 73,494 votes? | CREATE TABLE table_8476 (
"Election" real,
"Candidate" text,
"Number of votes" text,
"Share of votes" text,
"Outcome of election" text
) | SELECT "Outcome of election" FROM table_8476 WHERE "Candidate" = 'edward mahama' AND "Number of votes" = '73,494' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4608,
3959,
41,
96,
427,
12252,
121,
490,
6,
96,
14050,
12416,
342,
121,
1499,
6,
96,
567,
5937,
49,
13,
11839,
121,
1499,
6,
96,
24501,
13,
11839,
121,
1499,
6,
96,
1576... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15767,
287,
15,
13,
4356,
121,
21680,
953,
834,
4608,
3959,
549,
17444,
427,
96,
14050,
12416,
342,
121,
3274,
3,
31,
15,
26,
2239,
954,
1483,
9,
31,
3430,
96,
567,
5937,
49,
13,
11839,
121,
3274,
3,
31,
455... |
What is the lowest population of alessandria where the altitude is less than 197 and density is less than 461.8? | CREATE TABLE table_name_37 (
population INTEGER,
density__inhabitants_km_2__ VARCHAR,
altitude__mslm_ VARCHAR,
city VARCHAR
) | SELECT MIN(population) FROM table_name_37 WHERE altitude__mslm_ < 197 AND city = "alessandria" AND density__inhabitants_km_2__ < 461.8 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
2074,
3,
21342,
17966,
6,
11048,
834,
834,
77,
29884,
7,
834,
5848,
834,
357,
834,
834,
584,
4280,
28027,
6,
491,
6592,
834,
834,
51,
7,
40,
51,
834,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
9791,
7830,
61,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
491,
6592,
834,
834,
51,
7,
40,
51,
834,
3,
2,
3,
27181,
3430,
690,
3274,
96,
9,
924,
232,
52,
23,
9,
121,
3430,
11048,
834,
83... |
What is the zip code of the customer Carole Bernhard? | CREATE TABLE customer_payments (
customer_id number,
datetime_payment time,
payment_method_code text,
amount_payment number
)
CREATE TABLE addresses (
address_id number,
line_1_number_building text,
city text,
zip_postcode text,
state_province_county text,
country text
)
CREATE... | SELECT T2.zip_postcode FROM customers AS T1 JOIN addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T1.first_name = "Carole" AND T1.last_name = "Bernhard" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
884,
834,
21752,
7,
41,
884,
834,
23,
26,
381,
6,
833,
715,
834,
21752,
97,
6,
1942,
834,
23152,
834,
4978,
1499,
6,
866,
834,
21752,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
13453,
834,
5950,
4978,
21680,
722,
6157,
332,
536,
3,
15355,
3162,
7181,
6157,
332,
357,
9191,
332,
5411,
25697,
49,
834,
9,
26,
12039,
834,
23,
26,
3274,
332,
4416,
9,
26,
12039,
834,
23,
26,
549,
174... |
List the position of players and the average number of points of players of each position Visualize by bar chart, and order by the names in ascending. | CREATE TABLE competition_result (
Competition_ID int,
Club_ID_1 int,
Club_ID_2 int,
Score text
)
CREATE TABLE player (
Player_ID int,
name text,
Position text,
Club_ID int,
Apps real,
Tries real,
Goals text,
Points real
)
CREATE TABLE club (
Club_ID int,
name te... | SELECT Position, AVG(Points) FROM player GROUP BY Position ORDER BY Position | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2259,
834,
60,
7,
83,
17,
41,
15571,
834,
4309,
16,
17,
6,
1949,
834,
4309,
834,
536,
16,
17,
6,
1949,
834,
4309,
834,
357,
16,
17,
6,
17763,
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,
14258,
6,
71,
17217,
599,
22512,
7,
61,
21680,
1959,
350,
4630,
6880,
272,
476,
14258,
4674,
11300,
272,
476,
14258,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
count the number of patients whose admission year is less than 2155 and procedure short title is dx ultrasound-heart? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admityear < "2155" AND procedures.short_title = "Dx ultrasound-heart" | [
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 time span is listed under years for the 96th congres? | CREATE TABLE table_2841865_2 (years VARCHAR, congress VARCHAR) | SELECT years FROM table_2841865_2 WHERE congress = "96th" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4608,
2606,
4122,
834,
357,
41,
1201,
7,
584,
4280,
28027,
6,
27197,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
97,
8438,
19,
2616,
365,
203,
21,
8,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
203,
21680,
953,
834,
357,
4608,
2606,
4122,
834,
357,
549,
17444,
427,
27197,
3274,
96,
4314,
189,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the highest Roll of Orere School with a Decile less than 8 with a State Authority? | CREATE TABLE table_name_98 (
roll INTEGER,
name VARCHAR,
decile VARCHAR,
authority VARCHAR
) | SELECT MAX(roll) FROM table_name_98 WHERE decile < 8 AND authority = "state" AND name = "orere school" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
3812,
3,
21342,
17966,
6,
564,
584,
4280,
28027,
6,
7908,
109,
584,
4280,
28027,
6,
5015,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
4046,
61,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
7908,
109,
3,
2,
505,
3430,
5015,
3274,
96,
5540,
121,
3430,
564,
3274,
96,
127,
49,
15,
496,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average age for each gender of student? Return a pie chart. | CREATE TABLE Dorm (
dormid INTEGER,
dorm_name VARCHAR(20),
student_capacity INTEGER,
gender VARCHAR(1)
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
CREAT... | SELECT Sex, AVG(Age) FROM Student GROUP BY Sex | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6200,
51,
41,
103,
52,
6983,
3,
21342,
17966,
6,
103,
52,
51,
834,
4350,
584,
4280,
28027,
599,
1755,
201,
1236,
834,
4010,
9,
6726,
3,
21342,
17966,
6,
7285,
584,
4280,
28027,
14296... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
679,
226,
6,
71,
17217,
599,
188,
397,
61,
21680,
6341,
350,
4630,
6880,
272,
476,
679,
226,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who's captain of the team whose stadium has a capacity of 17800 people? | CREATE TABLE table_23214833_1 (
team_captain VARCHAR,
capacity VARCHAR
) | SELECT team_captain FROM table_23214833_1 WHERE capacity = 17800 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23188,
24748,
4201,
834,
536,
41,
372,
834,
4010,
17,
9,
77,
584,
4280,
28027,
6,
2614,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
31,
7,
14268,
13,
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,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
834,
4010,
17,
9,
77,
21680,
953,
834,
23188,
24748,
4201,
834,
536,
549,
17444,
427,
2614,
3274,
1003,
6192,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who was the opponent in Game 27? | CREATE TABLE table_8977 (
"Game" real,
"December" real,
"Opponent" text,
"Score" text,
"Record" text
) | SELECT "Opponent" FROM table_8977 WHERE "Game" = '27' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3914,
4013,
41,
96,
23055,
121,
490,
6,
96,
29835,
121,
490,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
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,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
667,
102,
9977,
121,
21680,
953,
834,
3914,
4013,
549,
17444,
427,
96,
23055,
121,
3274,
3,
31,
2555,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total number of Game, when High Assists is 'Rajon Rondo (6)'? | CREATE TABLE table_name_83 (
game VARCHAR,
high_assists VARCHAR
) | SELECT COUNT(game) FROM table_name_83 WHERE high_assists = "rajon rondo (6)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
467,
584,
4280,
28027,
6,
306,
834,
6500,
7,
17,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
381,
13,
4435,
6,
116,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
7261,
61,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
306,
834,
6500,
7,
17,
7,
3274,
96,
9655,
106,
19033,
32,
3,
18669,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For Raison Blue with a nicotine larger than 0.30000000000000004, what's the lowest quantity? | CREATE TABLE table_name_60 (
quantity INTEGER,
name VARCHAR,
nicotine VARCHAR
) | SELECT MIN(quantity) FROM table_name_60 WHERE name = "raison blue" AND nicotine > 0.30000000000000004 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
8708,
3,
21342,
17966,
6,
564,
584,
4280,
28027,
6,
28459,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
242,
391,
11684,
2419,
28,
3,
9,
284... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
13158,
485,
61,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
564,
3274,
96,
52,
11684,
1692,
121,
3430,
28459,
2490,
4097,
5426,
19568,
19568,
19568,
6348,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is listed for the Drawn that has a Tray bonus of 5 wiht Points for of 517? | CREATE TABLE table_name_23 (drawn VARCHAR, try_bonus VARCHAR, points_for VARCHAR) | SELECT drawn FROM table_name_23 WHERE try_bonus = "5" AND points_for = "517" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
19489,
29,
584,
4280,
28027,
6,
653,
834,
5407,
302,
584,
4280,
28027,
6,
979,
834,
1161,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
6796,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
653,
834,
5407,
302,
3274,
96,
17395,
3430,
979,
834,
1161,
3274,
96,
755,
2517,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
When paul moor is on the europe team who is on the usa team? | CREATE TABLE table_19072602_5 (team_usa VARCHAR, team_europe VARCHAR) | SELECT team_usa FROM table_19072602_5 WHERE team_europe = "Paul Moor" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
4560,
18365,
357,
834,
755,
41,
11650,
834,
302,
9,
584,
4280,
28027,
6,
372,
834,
28188,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
2576,
83,
3,
21477,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
372,
834,
302,
9,
21680,
953,
834,
2294,
4560,
18365,
357,
834,
755,
549,
17444,
427,
372,
834,
28188,
3274,
96,
23183,
1290,
127,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Give the proportion of what are the name and population of each county? | CREATE TABLE party (
Party_ID int,
Year real,
Party text,
Governor text,
Lieutenant_Governor text,
Comptroller text,
Attorney_General text,
US_Senate text
)
CREATE TABLE county (
County_Id int,
County_name text,
Population real,
Zip_code text
)
CREATE TABLE election (
... | SELECT County_name, Population FROM county | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1088,
41,
3450,
834,
4309,
16,
17,
6,
2929,
490,
6,
3450,
1499,
6,
10510,
1499,
6,
30943,
834,
27304,
127,
1499,
6,
4961,
17,
4046,
49,
1499,
6,
10154,
834,
20857,
1499,
6,
837,
83... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1334,
834,
4350,
6,
29659,
21680,
5435,
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,
-1... |
two recent consecutive hba1c values 8 _ 13 % | CREATE TABLE table_train_269 (
"id" int,
"pregnancy_or_lactation" bool,
"hemoglobin_a1c_hba1c" float,
"diabetic" string,
"hba1c" float,
"prisoners" bool,
"age" float,
"NOUSE" float
) | SELECT * FROM table_train_269 WHERE hba1c >= 8 AND hemoglobin_a1c_hba1c <= 13 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
357,
3951,
41,
96,
23,
26,
121,
16,
17,
6,
96,
2026,
11260,
11298,
834,
127,
834,
9700,
6821,
121,
3,
12840,
40,
6,
96,
6015,
32,
14063,
77,
834,
9,
536,
75,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9719,
834,
357,
3951,
549,
17444,
427,
3,
107,
115,
9,
536,
75,
2490,
2423,
505,
3430,
24731,
14063,
77,
834,
9,
536,
75,
834,
107,
115,
9,
536,
75,
3,
2,
2423,
1179,
1,
-100,
-100,
-100,
... |
What's the L3 Cache that has a standard power I/O? | CREATE TABLE table_name_63 (
l3_cache VARCHAR,
i_o_bus VARCHAR
) | SELECT l3_cache FROM table_name_63 WHERE i_o_bus = "standard power" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
3,
40,
519,
834,
75,
4933,
584,
4280,
28027,
6,
3,
23,
834,
32,
834,
3465,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
40,
519,
834,
75,
4933,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
3,
23,
834,
32,
834,
3465,
3274,
96,
16020,
579,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which wheels were built 1920? | CREATE TABLE table_name_33 (wheels VARCHAR, built VARCHAR) | SELECT wheels FROM table_name_33 WHERE built = 1920 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
14074,
7,
584,
4280,
28027,
6,
1192,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
8277,
130,
1192,
13978,
58,
1,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
8277,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
1192,
3274,
13978,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is the title no in season 2? | CREATE TABLE table_1876825_8 (title VARCHAR, no_in_season VARCHAR) | SELECT title FROM table_1876825_8 WHERE no_in_season = 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25828,
3651,
1828,
834,
927,
41,
21869,
584,
4280,
28027,
6,
150,
834,
77,
834,
9476,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
2233,
150,
16,
774,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2233,
21680,
953,
834,
25828,
3651,
1828,
834,
927,
549,
17444,
427,
150,
834,
77,
834,
9476,
3274,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the type of POR? | CREATE TABLE table_name_10 (type VARCHAR, nat VARCHAR) | SELECT type FROM table_name_10 WHERE nat = "por" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
6137,
584,
4280,
28027,
6,
3,
29,
144,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
686,
13,
276,
2990,
58,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
686,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
3,
29,
144,
3274,
96,
102,
127,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the bore and stroke for Engine of 351-2v cleveland v8 | CREATE TABLE table_name_9 (bore_ VARCHAR, _stroke VARCHAR, engine VARCHAR) | SELECT bore_ & _stroke FROM table_name_9 WHERE engine = "351-2v cleveland v8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
6693,
15,
834,
584,
4280,
28027,
6,
3,
834,
24790,
584,
4280,
28027,
6,
1948,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
18033,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18033,
834,
3,
184,
3,
834,
24790,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
1948,
3274,
96,
2469,
9596,
208,
3,
75,
4563,
232,
3,
208,
927,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many time was the political party the social democratic party of germany? | CREATE TABLE table_21132404_1 (
_percentage_2006 VARCHAR,
political_parties VARCHAR
) | SELECT COUNT(_percentage_2006) FROM table_21132404_1 WHERE political_parties = "Social Democratic Party of Germany" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
23757,
25285,
834,
536,
41,
3,
834,
883,
3728,
545,
834,
21196,
584,
4280,
28027,
6,
1827,
834,
25516,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
834,
883,
3728,
545,
834,
21196,
61,
21680,
953,
834,
2658,
23757,
25285,
834,
536,
549,
17444,
427,
1827,
834,
25516,
7,
3274,
96,
5231,
4703,
10021,
3450,
13,
3434,
121,
1,
-100,
-100,
-100,
-100,
... |
Which result has sunderland as opponent? | CREATE TABLE table_name_38 (result VARCHAR, opponent VARCHAR) | SELECT result FROM table_name_38 WHERE opponent = "sunderland" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
741,
65,
1997,
221,
7721,
38,
15264,
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,
741,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
15264,
3274,
96,
7,
7248,
40,
232,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the political party of Jackie Goldberg? | CREATE TABLE table_name_85 (
party VARCHAR,
name VARCHAR
) | SELECT party FROM table_name_85 WHERE name = "jackie goldberg" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
1088,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1827,
1088,
13,
26868,
2540,
2235,
58,
1,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1088,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
564,
3274,
96,
9325,
23,
15,
2045,
2235,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
who was the pitcher in seasons 1982, 1984, 1985, 1987, 1988, 1989 | CREATE TABLE table_2181 (
"Pitcher" text,
"Starts" real,
"Wins" real,
"Losses" real,
"No decisions" real,
"Winning %" text,
"Seasons" text
) | SELECT "Pitcher" FROM table_2181 WHERE "Seasons" = '1982, 1984, 1985, 1987, 1988, 1989' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
4959,
41,
96,
345,
155,
1703,
121,
1499,
6,
96,
7681,
17,
7,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,
434,
13526,
7,
121,
490,
6,
96,
4168,
3055,
121,
490,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
155,
1703,
121,
21680,
953,
834,
2658,
4959,
549,
17444,
427,
96,
134,
15,
9,
6577,
121,
3274,
3,
31,
24151,
4482,
13480,
6,
13200,
6,
12701,
6,
10414,
6,
9975,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Prohibition ticket has a Socialist Labor ticket of joseph smith? | CREATE TABLE table_name_34 (prohibition_ticket VARCHAR, socialist_labor_ticket VARCHAR) | SELECT prohibition_ticket FROM table_name_34 WHERE socialist_labor_ticket = "joseph smith" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
1409,
13506,
1575,
834,
26639,
584,
4280,
28027,
6,
23737,
834,
9456,
834,
26639,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
749,
13506,
15... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
30693,
834,
26639,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
23737,
834,
9456,
834,
26639,
3274,
96,
1927,
7,
15,
102,
107,
3,
16331,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which type of crime happen the most in Salford? | CREATE TABLE greatermanchestercrime (
crimeid text,
crimets time,
location text,
lsoa text,
type text,
outcome text
) | SELECT type FROM greatermanchestercrime WHERE lsoa LIKE "%Salford%" GROUP BY type ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2123,
348,
13263,
2685,
526,
41,
5447,
23,
26,
1499,
6,
5447,
17,
7,
97,
6,
1128,
1499,
6,
3,
40,
7,
32,
9,
1499,
6,
686,
1499,
6,
6138,
1499,
3,
61,
3,
32102,
32103,
32101,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
686,
21680,
2123,
348,
13263,
2685,
526,
549,
17444,
427,
3,
40,
7,
32,
9,
8729,
9914,
96,
1454,
134,
138,
2590,
1454,
121,
350,
4630,
6880,
272,
476,
686,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
2... |
Find the student ID and personal name of the student with at least two enrollments. | CREATE TABLE Student_Course_Enrolment (student_id VARCHAR); CREATE TABLE Students (personal_name VARCHAR, student_id VARCHAR) | SELECT T1.student_id, T2.personal_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING COUNT(*) >= 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6341,
834,
3881,
3589,
15,
834,
8532,
3491,
297,
41,
8637,
295,
834,
23,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
4375,
41,
17108,
834,
4350,
584,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
8637,
295,
834,
23,
26,
6,
332,
4416,
17108,
834,
4350,
21680,
6341,
834,
3881,
3589,
15,
834,
8532,
3491,
297,
6157,
332,
536,
3,
15355,
3162,
4375,
6157,
332,
357,
9191,
332,
5411,
8637,
295,
834,
23,
... |
How many districts had results related to incumbent Toby Roth? | CREATE TABLE table_1341472_51 (result VARCHAR, incumbent VARCHAR) | SELECT COUNT(result) FROM table_1341472_51 WHERE incumbent = "Toby Roth" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
24719,
357,
834,
5553,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
14126,
141,
772,
1341,
12,
28406,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
60,
7,
83,
17,
61,
21680,
953,
834,
23747,
24719,
357,
834,
5553,
549,
17444,
427,
28406,
3274,
96,
3696,
969,
17269,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which District has a Result of Re-elected and a First Elected of 1898? | CREATE TABLE table_name_95 (district VARCHAR, result VARCHAR, first_elected VARCHAR) | SELECT district FROM table_name_95 WHERE result = "re-elected" AND first_elected = 1898 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
26,
23,
20066,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
6,
166,
834,
19971,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
3570,
65,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
3939,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
741,
3274,
96,
60,
18,
19971,
121,
3430,
166,
834,
19971,
3274,
507,
3916,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Can you tell me the 2010 that has the 2008 of grand slam tournaments? | CREATE TABLE table_60383 (
"Tournament" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
) | SELECT "2010" FROM table_60383 WHERE "2008" = 'grand slam tournaments' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
3747,
519,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
16128,
121,
1499,
6,
96,
16660,
121,
1499,
6,
96,
14926,
121,
1499,
6,
96,
13907,
121,
1499,
6,
96,
12172... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14926,
121,
21680,
953,
834,
3328,
3747,
519,
549,
17444,
427,
96,
16128,
121,
3274,
3,
31,
15448,
3,
7,
40,
265,
5892,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which FAT32 has a no for HPFS, a no for ReFS, and a yes v3.0 fir NTFS? | CREATE TABLE table_32634 (
"FAT16" text,
"FAT32" text,
"HPFS" text,
"ISO 9660" text,
"NTFS" text,
"ReFS" text
) | SELECT "FAT32" FROM table_32634 WHERE "HPFS" = 'no' AND "ReFS" = 'no' AND "NTFS" = 'yes v3.0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2688,
3710,
41,
96,
4795,
382,
2938,
121,
1499,
6,
96,
4795,
382,
2668,
121,
1499,
6,
96,
13201,
7674,
121,
1499,
6,
96,
196,
6582,
668,
27720,
121,
1499,
6,
96,
735... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4795,
382,
2668,
121,
21680,
953,
834,
519,
2688,
3710,
549,
17444,
427,
96,
13201,
7674,
121,
3274,
3,
31,
29,
32,
31,
3430,
96,
1649,
7674,
121,
3274,
3,
31,
29,
32,
31,
3430,
96,
7359,
7674,
121,
3274,
3,... |
Which Venue has a Competition of european championships, and a Position of 7th? | CREATE TABLE table_47631 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Notes" text
) | SELECT "Venue" FROM table_47631 WHERE "Competition" = 'european championships' AND "Position" = '7th' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3959,
3341,
41,
96,
476,
2741,
121,
490,
6,
96,
5890,
4995,
4749,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
10358,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
553,
35,
76,
15,
121,
21680,
953,
834,
591,
3959,
3341,
549,
17444,
427,
96,
5890,
4995,
4749,
121,
3274,
3,
31,
28188,
152,
10183,
7,
31,
3430,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
940,
189,
31,
1,
-10... |
List the full amount of week 36 results when week 32 is 13.2%. | CREATE TABLE table_23680576_3 (
week_36 VARCHAR,
week_32 VARCHAR
) | SELECT COUNT(week_36) FROM table_23680576_3 WHERE week_32 = "13.2%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
3651,
3076,
3959,
834,
519,
41,
471,
834,
3420,
584,
4280,
28027,
6,
471,
834,
2668,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
6792,
8,
423,
866,
13,
47... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
8041,
834,
3420,
61,
21680,
953,
834,
2773,
3651,
3076,
3959,
834,
519,
549,
17444,
427,
471,
834,
2668,
3274,
96,
2368,
5,
5406,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
which country won only one medal , a bronze medal ? | CREATE TABLE table_203_812 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) | SELECT "nation" FROM table_203_812 WHERE "total" = 1 AND "bronze" = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
4959,
357,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
29,
257,
121,
1499,
6,
96,
14910,
121,
381,
6,
96,
7,
173,
624,
121,
381,
6,
96,
13711,
776,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29,
257,
121,
21680,
953,
834,
23330,
834,
4959,
357,
549,
17444,
427,
96,
235,
1947,
121,
3274,
209,
3430,
96,
13711,
776,
121,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which To par has a Country of england, and a Place of t9, and a Player of graeme storm? | CREATE TABLE table_60368 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" real
) | SELECT MAX("To par") FROM table_60368 WHERE "Country" = 'england' AND "Place" = 't9' AND "Player" = 'graeme storm' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
519,
3651,
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,
490,
3,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
3696,
260,
8512,
21680,
953,
834,
3328,
519,
3651,
549,
17444,
427,
96,
10628,
651,
121,
3274,
3,
31,
4606,
40,
232,
31,
3430,
96,
345,
11706,
121,
3274,
3,
31,
17,
1298,
31,
3430,
96,
15800,
... |
Name the chassis of 147 points and engine of ford cosworth dfx | CREATE TABLE table_name_43 (
chassis VARCHAR,
points VARCHAR,
engine VARCHAR
) | SELECT chassis FROM table_name_43 WHERE points = 147 AND engine = "ford cosworth dfx" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
22836,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
6,
1948,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
22836,
13,
3,
24719,
979,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22836,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
979,
3274,
3,
24719,
3430,
1948,
3274,
96,
2590,
576,
7,
7048,
3,
26,
89,
226,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Show each location and the number of cinemas there by a bar chart, and sort bars in desc order. | CREATE TABLE schedule (
Cinema_ID int,
Film_ID int,
Date text,
Show_times_per_day int,
Price float
)
CREATE TABLE cinema (
Cinema_ID int,
Name text,
Openning_year int,
Capacity int,
Location text
)
CREATE TABLE film (
Film_ID int,
Rank_in_series int,
Number_in_seaso... | SELECT Location, COUNT(*) FROM cinema GROUP BY Location ORDER BY Location DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2023,
41,
17544,
834,
4309,
16,
17,
6,
3417,
834,
4309,
16,
17,
6,
7678,
1499,
6,
3111,
834,
715,
7,
834,
883,
834,
1135,
16,
17,
6,
5312,
3,
12660,
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,
10450,
6,
2847,
17161,
599,
1935,
61,
21680,
10276,
350,
4630,
6880,
272,
476,
10450,
4674,
11300,
272,
476,
10450,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
When 1927 is the founded year how many measurements of enrollment in 2012 are there? | CREATE TABLE table_2323 (
"School" text,
"Location(s)" text,
"Control" text,
"Type" text,
"Enrollment (2012)" real,
"Founded" real
) | SELECT COUNT("Enrollment (2012)") FROM table_2323 WHERE "Founded" = '1927' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
2773,
41,
96,
29364,
121,
1499,
6,
96,
434,
32,
75,
257,
599,
7,
61,
121,
1499,
6,
96,
25716,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
8532,
4046,
297,
24705,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8532,
4046,
297,
24705,
8512,
21680,
953,
834,
2773,
2773,
549,
17444,
427,
96,
20100,
121,
3274,
3,
31,
2294,
2555,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Create a pie chart showing the total number across type. | CREATE TABLE festival_detail (
Festival_ID int,
Festival_Name text,
Chair_Name text,
Location text,
Year int,
Num_of_Audience int
)
CREATE TABLE artwork (
Artwork_ID int,
Type text,
Name text
)
CREATE TABLE nomination (
Artwork_ID int,
Festival_ID int,
Result text
) | SELECT Type, COUNT(*) FROM artwork GROUP BY Type | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3994,
834,
221,
5756,
41,
3397,
834,
4309,
16,
17,
6,
3397,
834,
23954,
1499,
6,
6651,
834,
23954,
1499,
6,
10450,
1499,
6,
2929,
16,
17,
6,
1174,
51,
834,
858,
834,
188,
5291,
143... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
6632,
6,
2847,
17161,
599,
1935,
61,
21680,
7924,
350,
4630,
6880,
272,
476,
6632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Windy hill is the home to what team? | CREATE TABLE table_56772 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Home team" FROM table_56772 WHERE "Venue" = 'windy hill' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4834,
4013,
357,
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,
121,
21680,
953,
834,
4834,
4013,
357,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
5165,
63,
9956,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Show the relation between team id and school_id for each All_Road using a scatter chart | CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
Scho... | SELECT Team_ID, School_ID FROM basketball_match GROUP BY All_Road | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8498,
834,
19515,
41,
2271,
834,
4309,
16,
17,
6,
1121,
834,
4309,
16,
17,
6,
2271,
834,
23954,
1499,
6,
3,
14775,
834,
17748,
4885,
834,
134,
15,
9,
739,
1499,
6,
3,
14775,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2271,
834,
4309,
6,
1121,
834,
4309,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
432,
834,
448,
32,
9,
26,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the result on 10/08/1988? | CREATE TABLE table_name_52 (
result VARCHAR,
date VARCHAR
) | SELECT result FROM table_name_52 WHERE date = "10/08/1988" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
741,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
741,
30,
335,
87,
4018,
13523,
4060,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
833,
3274,
96,
1714,
87,
4018,
13523,
4060,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What team has 104 laps and a grid of 10? | CREATE TABLE table_12940 (
"Driver" text,
"Team" text,
"Laps" real,
"Time/Retired" text,
"Grid" real,
"Points" real
) | SELECT "Team" FROM table_12940 WHERE "Laps" = '104' AND "Grid" = '10' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22174,
2445,
41,
96,
20982,
52,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
87,
1649,
11809,
26,
121,
1499,
6,
96,
13313,
26,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
18699,
121,
21680,
953,
834,
22174,
2445,
549,
17444,
427,
96,
3612,
102,
7,
121,
3274,
3,
31,
15442,
31,
3430,
96,
13313,
26,
121,
3274,
3,
31,
1714,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What number (#) is associated with the Name Ron Baxter? | CREATE TABLE table_405 (
"Name" text,
"#" real,
"Position" text,
"Height" text,
"Weight" real,
"Year" text,
"Home Town" text,
"High School" text
) | SELECT COUNT("#") FROM table_405 WHERE "Name" = 'Ron Baxter' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3076,
41,
96,
23954,
121,
1499,
6,
96,
4663,
121,
490,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
3845,
2632,
121,
1499,
6,
96,
1326,
2632,
121,
490,
6,
96,
476,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4663,
8512,
21680,
953,
834,
591,
3076,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
448,
106,
2659,
226,
449,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Count the number of people of each sex who have a weight higher than 85 in a pie chart. | CREATE TABLE candidate (
Candidate_ID int,
People_ID int,
Poll_Source text,
Date text,
Support_rate real,
Consider_rate real,
Oppose_rate real,
Unsure_rate real
)
CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height real,
Weight re... | SELECT Sex, COUNT(*) FROM people WHERE Weight > 85 GROUP BY Sex | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4775,
41,
25833,
17,
15,
834,
4309,
16,
17,
6,
2449,
834,
4309,
16,
17,
6,
14457,
834,
23799,
1499,
6,
7678,
1499,
6,
4224,
834,
2206,
490,
6,
9151,
834,
2206,
490,
6,
4495,
2748,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
679,
226,
6,
2847,
17161,
599,
1935,
61,
21680,
151,
549,
17444,
427,
14230,
2490,
11989,
350,
4630,
6880,
272,
476,
679,
226,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who is the publisher of the book titled daughters of an emerald dusk? | CREATE TABLE table_20193855_2 (
publisher VARCHAR,
book_title VARCHAR
) | SELECT publisher FROM table_20193855_2 WHERE book_title = "Daughters of an Emerald Dusk" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
8584,
3747,
3769,
834,
357,
41,
14859,
584,
4280,
28027,
6,
484,
834,
21869,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
14859,
13,
8,
484,
3,
1092... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14859,
21680,
953,
834,
8584,
3747,
3769,
834,
357,
549,
17444,
427,
484,
834,
21869,
3274,
96,
308,
9313,
277,
13,
46,
29424,
970,
7,
157,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the title of the episode written by daniel sackheim? | CREATE TABLE table_28368 (
"No. in series" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real
) | SELECT "Title" FROM table_28368 WHERE "Directed by" = 'Daniel Sackheim' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
519,
3651,
41,
96,
4168,
5,
16,
939,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965,
324,
57,
121,
1499,
6,
96,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
155,
109,
121,
21680,
953,
834,
2577,
519,
3651,
549,
17444,
427,
96,
23620,
15,
26,
57,
121,
3274,
3,
31,
308,
2738,
15,
40,
180,
4365,
3254,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How much did the home team Hawthorn score? | CREATE TABLE table_name_5 (
home_team VARCHAR
) | SELECT home_team AS score FROM table_name_5 WHERE home_team = "hawthorn" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
755,
41,
234,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
231,
410,
8,
234,
372,
1626,
210,
17,
6293,
2604,
58,
1,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
755,
549,
17444,
427,
234,
834,
11650,
3274,
96,
1024,
210,
17,
6293,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What are the first names of the different drivers who won in position 1 as driver standing and had more than 20 points? | CREATE TABLE pitstops (
raceid number,
driverid number,
stop number,
lap number,
time text,
duration text,
milliseconds number
)
CREATE TABLE qualifying (
qualifyid number,
raceid number,
driverid number,
constructorid number,
number number,
position number,
q1 t... | SELECT DISTINCT T1.forename FROM drivers AS T1 JOIN driverstandings AS T2 ON T1.driverid = T2.driverid WHERE T2.position = 1 AND T2.wins = 1 AND T2.points > 20 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7688,
7618,
7,
41,
1964,
23,
26,
381,
6,
1262,
4055,
381,
6,
1190,
381,
6,
14941,
381,
6,
97,
1499,
6,
8659,
1499,
6,
3293,
23,
12091,
7,
381,
3,
61,
3,
32102,
32103,
32102,
205,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
332,
5411,
1161,
15,
4350,
21680,
3863,
6157,
332,
536,
3,
15355,
3162,
2535,
11018,
7,
6157,
332,
357,
9191,
332,
5411,
13739,
4055,
3274,
332,
4416,
13739,
4055,
549,
17444,
427,
332,
4416,
47... |
What is the total revenue of all companies whose main office is at Tokyo or Taiwan? | CREATE TABLE manufacturers (
revenue INTEGER,
Headquarter VARCHAR
) | SELECT SUM(revenue) FROM manufacturers WHERE Headquarter = 'Tokyo' OR Headquarter = 'Taiwan' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5360,
41,
3751,
3,
21342,
17966,
6,
3642,
19973,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
3751,
13,
66,
688,
3,
2544,
711,
828,
19,
44,
12653,
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,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
60,
15098,
61,
21680,
5360,
549,
17444,
427,
3642,
19973,
3274,
3,
31,
3696,
3781,
32,
31,
4674,
3642,
19973,
3274,
3,
31,
382,
9,
23,
3877,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the score of the away team when hawthorn was the home team? | CREATE TABLE table_name_43 (
away_team VARCHAR,
home_team VARCHAR
) | SELECT away_team AS score FROM table_name_43 WHERE home_team = "hawthorn" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
550,
834,
11650,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
13,
8,
550,
372,
116,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
550,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
234,
834,
11650,
3274,
96,
1024,
210,
17,
6293,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the average number of losses when there are more than 0 ties? | CREATE TABLE table_name_49 (
lost INTEGER,
tied INTEGER
) | SELECT AVG(lost) FROM table_name_49 WHERE tied > 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
1513,
3,
21342,
17966,
6,
10422,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
381,
13,
8467,
116,
132,
33,
72,
145,
3,
63... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
2298,
17,
61,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
10422,
2490,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
count the number of patients whose year of birth is less than 2104 and drug type is main? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.dob_year < "2104" AND prescriptions.drug_type = "MAIN" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
What is the tries for when the points against is 214? | CREATE TABLE table_name_25 (tries_for VARCHAR, points_against VARCHAR) | SELECT tries_for FROM table_name_25 WHERE points_against = "214" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
9000,
834,
1161,
584,
4280,
28027,
6,
979,
834,
9,
16720,
7,
17,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
9000,
21,
116,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
9000,
834,
1161,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
979,
834,
9,
16720,
7,
17,
3274,
96,
27357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the title of the episode with a production code of FL209? | CREATE TABLE table_29747178_3 (title VARCHAR, production_code VARCHAR) | SELECT title FROM table_29747178_3 WHERE production_code = "FL209" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
4581,
4450,
3940,
834,
519,
41,
21869,
584,
4280,
28027,
6,
999,
834,
4978,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2233,
13,
8,
5640,
28,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2233,
21680,
953,
834,
3166,
4581,
4450,
3940,
834,
519,
549,
17444,
427,
999,
834,
4978,
3274,
96,
10765,
357,
4198,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
In which season did the Rangers win with a score of 2 1? | CREATE TABLE table_61063 (
"Season" text,
"Date" text,
"Winners" text,
"Finalists" text,
"Score" text
) | SELECT "Season" FROM table_61063 WHERE "Score" = '2–1' AND "Winners" = 'rangers' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27097,
3891,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
18455,
687,
7,
121,
1499,
6,
96,
371,
10270,
343,
7,
121,
1499,
6,
96,
134,
9022,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
15,
9,
739,
121,
21680,
953,
834,
27097,
3891,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
357,
104,
536,
31,
3430,
96,
18455,
687,
7,
121,
3274,
3,
31,
6287,
277,
31,
1,
-100,
-100,
-100,
-100,
... |
What was the retired time on someone who had 43 laps on a grip of 18? | CREATE TABLE table_name_17 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR) | SELECT time_retired FROM table_name_17 WHERE laps = 43 AND grid = 18 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
715,
834,
10682,
1271,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
6,
8634,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
10611,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
97,
834,
10682,
1271,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
14941,
7,
3274,
8838,
3430,
8634,
3274,
507,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Label has a Region of canada? | CREATE TABLE table_35224 (
"Date" text,
"Label" text,
"Region" text,
"Format" text,
"Catalog" text
) | SELECT "Label" FROM table_35224 WHERE "Region" = 'canada' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
24622,
41,
96,
308,
342,
121,
1499,
6,
96,
434,
10333,
121,
1499,
6,
96,
17748,
23,
106,
121,
1499,
6,
96,
3809,
3357,
121,
1499,
6,
96,
18610,
9,
2152,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
96,
434,
10333,
121,
21680,
953,
834,
2469,
24622,
549,
17444,
427,
96,
17748,
23,
106,
121,
3274,
3,
31,
658,
18089,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is Dean Whitehead's manager? | CREATE TABLE table_name_92 (
manager VARCHAR,
captain VARCHAR
) | SELECT manager FROM table_name_92 WHERE captain = "dean whitehead" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
2743,
584,
4280,
28027,
6,
14268,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
12738,
1945,
3313,
31,
7,
2743,
58,
1,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2743,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
14268,
3274,
96,
221,
152,
872,
3313,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the name of the newspaper with the website liderinformativo.com ? | CREATE TABLE table_name_17 (
name VARCHAR,
website VARCHAR
) | SELECT name FROM table_name_17 WHERE website = "liderinformativo.com" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
564,
584,
4280,
28027,
6,
475,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
13,
8,
8468,
28,
8,
475,
18793,
77,
8995,
23,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
475,
3274,
96,
30821,
29,
8995,
23,
1621,
5,
287,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What position did Marty Gateman play? | CREATE TABLE table_1473672_5 (
position VARCHAR,
player VARCHAR
) | SELECT position FROM table_1473672_5 WHERE player = "Marty Gateman" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24719,
3420,
5865,
834,
755,
41,
1102,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1102,
410,
11163,
63,
11118,
348,
577,
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,
0... | [
3,
23143,
14196,
1102,
21680,
953,
834,
24719,
3420,
5865,
834,
755,
549,
17444,
427,
1959,
3274,
96,
7286,
17,
63,
11118,
348,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is Date, when Away Team is 'Brentford'? | CREATE TABLE table_62478 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) | SELECT "Date" FROM table_62478 WHERE "Away team" = 'brentford' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2266,
3940,
41,
96,
382,
23,
15,
150,
121,
1499,
6,
96,
19040,
372,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
308,
342,
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,
308,
342,
121,
21680,
953,
834,
948,
2266,
3940,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
115,
5320,
2590,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is the discharge time and diagnoses long title of subject id 2110? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | SELECT demographic.dischtime, diagnoses.long_title FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.subject_id = "2110" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
26,
2499,
715,
6,
18730,
7,
5,
2961,
834,
21869,
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,
549,
17444,
427,
1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.