NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What was the total number of aircrafts in 2011 for sydney airport that was ranked number 1? | CREATE TABLE table_name_48 (airport VARCHAR, rank VARCHAR) | SELECT COUNT(2011) FROM table_name_48 WHERE airport = "sydney airport" AND rank < 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
2256,
1493,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
792,
381,
13,
6442,
7,
16,
2722,
21,
3,
7,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
13907,
61,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
3761,
3274,
96,
7,
63,
26,
3186,
3761,
121,
3430,
11003,
3,
2,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What categories had a Nominated work of yerma before 1992? | CREATE TABLE table_name_99 (category VARCHAR, year VARCHAR, nominated_work VARCHAR) | SELECT category FROM table_name_99 WHERE year < 1992 AND nominated_work = "yerma" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
8367,
839,
651,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
150,
1109,
920,
834,
1981,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
5897,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3295,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
215,
3,
2,
9047,
3430,
150,
1109,
920,
834,
1981,
3274,
96,
7975,
51,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
how many patients whose drug name is tizanidine? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
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 text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.drug = "Tizanidine" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
What is To par, when Total is less than 297, and when Finish is '1'? | CREATE TABLE table_name_37 (
to_par VARCHAR,
total VARCHAR,
finish VARCHAR
) | SELECT to_par FROM table_name_37 WHERE total < 297 AND finish = "1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
12,
834,
1893,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
6,
1992,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
304,
260,
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,
0,
0,
0,
0... | [
3,
23143,
14196,
12,
834,
1893,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
792,
3,
2,
204,
4327,
3430,
1992,
3274,
96,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is Place, when Score is '70-68=138', and when Player is 'Andrew Magee'? | CREATE TABLE table_60730 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "Place" FROM table_60730 WHERE "Score" = '70-68=138' AND "Player" = 'andrew magee' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
940,
1458,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11706,
121,
21680,
953,
834,
3328,
940,
1458,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
2518,
18,
3651,
2423,
22744,
31,
3430,
96,
15800,
49,
121,
3274,
3,
31,
232,
60,
210,
6396,
15,
15,
31,
1,... |
Which visitor has a Los Angeles home? | CREATE TABLE table_75430 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
) | SELECT "Visitor" FROM table_75430 WHERE "Home" = 'los angeles' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
25449,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
3,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
553,
159,
155,
127,
121,
21680,
953,
834,
3072,
25449,
549,
17444,
427,
96,
19040,
121,
3274,
3,
31,
2298,
11831,
15,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
For those products with a price between 60 and 120, visualize a bar chart about the distribution of name and price , order in ascending by the Y. | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT Name, Price FROM Products WHERE Price BETWEEN 60 AND 120 ORDER BY Price | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15248,
7,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
3642,
19973,
584,
4280,
28027,
599,
25502,
201,
3,
19145,
584,
4280,
28027,
599,
25502,
201,
19764,
17833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5570,
6,
5312,
21680,
7554,
549,
17444,
427,
5312,
272,
7969,
518,
23394,
1640,
3430,
5864,
4674,
11300,
272,
476,
5312,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Bar chart x axis name y axis age, and I want to order from high to low by the bars. | CREATE TABLE exhibition (
Exhibition_ID int,
Year int,
Theme text,
Artist_ID int,
Ticket_Price real
)
CREATE TABLE artist (
Artist_ID int,
Name text,
Country text,
Year_Join int,
Age int
)
CREATE TABLE exhibition_record (
Exhibition_ID int,
Date text,
Attendance int
) | SELECT Name, Age FROM artist ORDER BY Name DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4473,
41,
22371,
834,
4309,
16,
17,
6,
2929,
16,
17,
6,
37,
526,
1499,
6,
9152,
834,
4309,
16,
17,
6,
3,
15569,
834,
345,
4920,
490,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
604... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5570,
6,
7526,
21680,
2377,
4674,
11300,
272,
476,
5570,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the 1999 answer when 1998 is Grand Slam Tournaments? | CREATE TABLE table_7930 (
"Tournament" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
) | SELECT "1999" FROM table_7930 WHERE "1998" = 'grand slam tournaments' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4440,
1458,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
2294,
3916,
121,
1499,
6,
96,
2294,
3264,
121,
1499,
6,
96,
13527,
121,
1499,
6,
96,
23658,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
2294,
3264,
121,
21680,
953,
834,
4440,
1458,
549,
17444,
427,
96,
2294,
3916,
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,
-1... |
What is the name of the artist who joined latest? | CREATE TABLE artist (
artist_id number,
name text,
country text,
year_join number,
age number
)
CREATE TABLE exhibition (
exhibition_id number,
year number,
theme text,
artist_id number,
ticket_price number
)
CREATE TABLE exhibition_record (
exhibition_id number,
date text,
attendance number
) | SELECT name FROM artist ORDER BY year_join DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2377,
41,
2377,
834,
23,
26,
381,
6,
564,
1499,
6,
684,
1499,
6,
215,
834,
1927,
77,
381,
6,
1246,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
4473,
41,
4473,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
564,
21680,
2377,
4674,
11300,
272,
476,
215,
834,
1927,
77,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who is the Runner-up in Tournament of seiersberg | CREATE TABLE table_11850 (
"Tournament" text,
"Winner" text,
"Runner-up" text,
"Score" text,
"Third Place" text
) | SELECT "Runner-up" FROM table_11850 WHERE "Tournament" = 'seiersberg' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20056,
1752,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
18455,
687,
121,
1499,
6,
96,
23572,
18,
413,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
382,
9288,
26,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23572,
18,
413,
121,
21680,
953,
834,
20056,
1752,
549,
17444,
427,
96,
382,
1211,
20205,
17,
121,
3274,
3,
31,
7,
15,
4518,
2235,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the pole position for the race with the fastest lap by Nelson Piquet and the constructor is Ferrari? | CREATE TABLE table_16727 (
"Rnd" real,
"Race" text,
"Date" text,
"Location" text,
"Pole Position" text,
"Fastest Lap" text,
"Race Winner" text,
"Constructor" text,
"Report" text
) | SELECT "Pole Position" FROM table_16727 WHERE "Fastest Lap" = 'Nelson Piquet' AND "Constructor" = 'Ferrari' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27650,
2555,
41,
96,
448,
727,
121,
490,
6,
96,
448,
3302,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
8931,
15,
14258,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
8931,
15,
14258,
121,
21680,
953,
834,
27650,
2555,
549,
17444,
427,
96,
371,
9,
7,
4377,
325,
102,
121,
3274,
3,
31,
567,
3573,
106,
276,
1495,
17,
31,
3430,
96,
4302,
7593,
127,
121,
3274,
3,
31,
371,
49,
... |
Show the number of films for each cinema in a pie chart. | CREATE TABLE film (
Film_ID int,
Rank_in_series int,
Number_in_season int,
Title text,
Directed_by text,
Original_air_date text,
Production_code text
)
CREATE TABLE cinema (
Cinema_ID int,
Name text,
Openning_year int,
Capacity int,
Location text
)
CREATE TABLE schedule (
Cinema_ID int,
Film_ID int,
Date text,
Show_times_per_day int,
Price float
) | SELECT Name, COUNT(Name) FROM schedule AS T1 JOIN film AS T2 ON T1.Film_ID = T2.Film_ID JOIN cinema AS T3 ON T1.Cinema_ID = T3.Cinema_ID GROUP BY Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
814,
41,
3417,
834,
4309,
16,
17,
6,
3,
22557,
834,
77,
834,
10833,
7,
16,
17,
6,
7720,
834,
77,
834,
9476,
16,
17,
6,
11029,
1499,
6,
7143,
15,
26,
834,
969,
1499,
6,
8465,
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,
5570,
6,
2847,
17161,
599,
23954,
61,
21680,
2023,
6157,
332,
536,
3,
15355,
3162,
814,
6157,
332,
357,
9191,
332,
5411,
371,
173,
51,
834,
4309,
3274,
332,
4416,
371,
173,
51,
834,
4309,
3,
15355,
3162,
10276,
6157... |
What is the Time with an Away that is broadview hawks? | CREATE TABLE table_40263 (
"Date" text,
"Time" text,
"Home" text,
"Away" text,
"Score" text,
"Ground" text
) | SELECT "Time" FROM table_40263 WHERE "Away" = 'broadview hawks' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
357,
3891,
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,
13368,
121,
21680,
953,
834,
2445,
357,
3891,
549,
17444,
427,
96,
188,
1343,
121,
3274,
3,
31,
115,
8635,
4576,
3,
14400,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the mean evening gown number when the average is 8.686? | CREATE TABLE table_name_32 (evening_gown INTEGER, average VARCHAR) | SELECT AVG(evening_gown) FROM table_name_32 WHERE average = 8.686 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
6190,
53,
834,
122,
9197,
3,
21342,
17966,
6,
1348,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1243,
2272,
19879,
381,
116,
8,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
6190,
53,
834,
122,
9197,
61,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
1348,
3274,
4848,
3651,
948,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the Ram's conference record when they were the CBI champions? | CREATE TABLE table_19439 (
"Season" text,
"Coach" text,
"Overall" text,
"Conference" text,
"Standing" text,
"Postseason" text
) | SELECT "Conference" FROM table_19439 WHERE "Postseason" = 'CBI Champions' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
591,
3288,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
3881,
1836,
121,
1499,
6,
96,
23847,
1748,
121,
1499,
6,
96,
4302,
11788,
121,
1499,
6,
96,
134,
17,
232,
53... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4302,
11788,
121,
21680,
953,
834,
2294,
591,
3288,
549,
17444,
427,
96,
22507,
9476,
121,
3274,
3,
31,
254,
5972,
15132,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Visualize a bar chart for how many students are older than average for each gender?, could you order Sex in ascending order please? | CREATE TABLE Lives_in (
stuid INTEGER,
dormid INTEGER,
room_number INTEGER
)
CREATE TABLE Has_amenity (
dormid INTEGER,
amenid INTEGER
)
CREATE TABLE Dorm_amenity (
amenid INTEGER,
amenity_name VARCHAR(25)
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
CREATE TABLE Dorm (
dormid INTEGER,
dorm_name VARCHAR(20),
student_capacity INTEGER,
gender VARCHAR(1)
) | SELECT Sex, COUNT(*) FROM Student WHERE Age > (SELECT AVG(Age) FROM Student) GROUP BY Sex ORDER BY Sex | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3306,
7,
834,
77,
41,
21341,
23,
26,
3,
21342,
17966,
6,
103,
52,
6983,
3,
21342,
17966,
6,
562,
834,
5525,
1152,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
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,
679,
226,
6,
2847,
17161,
599,
1935,
61,
21680,
6341,
549,
17444,
427,
7526,
2490,
41,
23143,
14196,
71,
17217,
599,
188,
397,
61,
21680,
6341,
61,
350,
4630,
6880,
272,
476,
679,
226,
4674,
11300,
272,
476,
679,
22... |
What is the greatest interview that has a swimsuit less than 8.838? | CREATE TABLE table_name_98 (
interview INTEGER,
swimsuit INTEGER
) | SELECT MAX(interview) FROM table_name_98 WHERE swimsuit < 8.838 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
2772,
3,
21342,
17966,
6,
9728,
7628,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4016,
2772,
24,
65,
3,
9,
9728,
7628,
705,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
3870,
4576,
61,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
9728,
7628,
3,
2,
4848,
927,
3747,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest Top-10, when Top-25 is 4, and when Top-5 is greater than 1? | CREATE TABLE table_name_62 (top_10 INTEGER, top_25 VARCHAR, top_5 VARCHAR) | SELECT MAX(top_10) FROM table_name_62 WHERE top_25 = 4 AND top_5 > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
2916,
834,
1714,
3,
21342,
17966,
6,
420,
834,
1828,
584,
4280,
28027,
6,
420,
834,
755,
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,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
2916,
834,
16968,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
420,
834,
1828,
3274,
314,
3430,
420,
834,
755,
2490,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the earliest election with 2 seats and the outcome of the election of minority in parliament? | CREATE TABLE table_name_67 (
election INTEGER,
outcome_of_election VARCHAR,
seats VARCHAR
) | SELECT MIN(election) FROM table_name_67 WHERE outcome_of_election = "minority in parliament" AND seats = "2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
4356,
3,
21342,
17966,
6,
6138,
834,
858,
834,
15,
12252,
584,
4280,
28027,
6,
6116,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
15,
12252,
61,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
6138,
834,
858,
834,
15,
12252,
3274,
96,
1109,
127,
485,
16,
20417,
121,
3430,
6116,
3274,
96,
357,
121,
1,
-100,
-100,
-100,
-100,
... |
Compare the total number of captains with different classes using a bar graph. | CREATE TABLE captain (
Captain_ID int,
Name text,
Ship_ID int,
age text,
Class text,
Rank text
)
CREATE TABLE Ship (
Ship_ID int,
Name text,
Type text,
Built_Year real,
Class text,
Flag text
) | SELECT Class, COUNT(Class) FROM captain GROUP BY Class | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14268,
41,
12202,
834,
4309,
16,
17,
6,
5570,
1499,
6,
15508,
834,
4309,
16,
17,
6,
1246,
1499,
6,
4501,
1499,
6,
3,
22557,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4501,
6,
2847,
17161,
599,
21486,
61,
21680,
14268,
350,
4630,
6880,
272,
476,
4501,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the maximum number of top 10s when he finished in 63rd? | CREATE TABLE table_20689 (
"Year" real,
"Starts" real,
"Wins" real,
"Top 10" real,
"Avg. Start" text,
"Avg. Finish" text,
"Winnings" text,
"Position" text,
"Team(s)" text
) | SELECT MAX("Top 10") FROM table_20689 WHERE "Position" = '63rd' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24643,
3914,
41,
96,
476,
2741,
121,
490,
6,
96,
7681,
17,
7,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,
22481,
335,
121,
490,
6,
96,
188,
208,
122,
5,
3273,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
22481,
335,
8512,
21680,
953,
834,
24643,
3914,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
3891,
52,
26,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What's the weight when the pos is CB and is part of the New York Athletic Club? | CREATE TABLE table_65838 (
"Name" text,
"Pos." text,
"Height" text,
"Weight" text,
"2012 club" text
) | SELECT "Weight" FROM table_65838 WHERE "Pos." = 'cb' AND "2012 club" = 'new york athletic club' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
3449,
3747,
41,
96,
23954,
121,
1499,
6,
96,
345,
32,
7,
535,
1499,
6,
96,
3845,
2632,
121,
1499,
6,
96,
1326,
2632,
121,
1499,
6,
96,
12172,
1886,
121,
1499,
3,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1326,
2632,
121,
21680,
953,
834,
948,
3449,
3747,
549,
17444,
427,
96,
345,
32,
7,
535,
3274,
3,
31,
75,
115,
31,
3430,
96,
12172,
1886,
121,
3274,
3,
31,
5534,
25453,
12217,
1886,
31,
1,
-100,
-100,
-100,
... |
Name the least flaps | CREATE TABLE table_21154 (
"Season" real,
"Class" text,
"Motorcycle" text,
"Team" text,
"Races" real,
"Wins" real,
"Podiums" real,
"Poles" real,
"FLaps" real,
"Points" text,
"Placement" text
) | SELECT MIN("FLaps") FROM table_21154 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
27308,
41,
96,
134,
15,
9,
739,
121,
490,
6,
96,
21486,
121,
1499,
6,
96,
329,
32,
17,
127,
10136,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
448,
9,
2319,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
10765,
9,
102,
7,
8512,
21680,
953,
834,
2658,
27308,
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 was the game number of the game played against Charlotte? | CREATE TABLE table_name_67 (game VARCHAR, team VARCHAR) | SELECT COUNT(game) FROM table_name_67 WHERE team = "charlotte" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
7261,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
467,
381,
13,
8,
467,
1944,
581,
11240,
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,
2847,
17161,
599,
7261,
61,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
372,
3274,
96,
4059,
21538,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest draw number when there are more than 31 points, a rank greater than 6, and the English translation is listen to me? | CREATE TABLE table_63594 (
"Draw" real,
"Language" text,
"Artist" text,
"English translation" text,
"Place" real,
"Points" real
) | SELECT MAX("Draw") FROM table_63594 WHERE "Points" > '31' AND "Place" > '6' AND "English translation" = 'listen to me' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
3390,
591,
41,
96,
308,
10936,
121,
490,
6,
96,
434,
1468,
76,
545,
121,
1499,
6,
96,
7754,
343,
121,
1499,
6,
96,
26749,
7314,
121,
1499,
6,
96,
345,
11706,
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,
4800,
4,
599,
121,
308,
10936,
8512,
21680,
953,
834,
3891,
3390,
591,
549,
17444,
427,
96,
22512,
7,
121,
2490,
3,
31,
3341,
31,
3430,
96,
345,
11706,
121,
2490,
3,
31,
948,
31,
3430,
96,
26749,
7314,
121,
3274,
... |
On June 17 in Tiger stadium, what was the average home run? | CREATE TABLE table_name_43 (home_run INTEGER, location VARCHAR, date VARCHAR) | SELECT AVG(home_run) FROM table_name_43 WHERE location = "tiger stadium" AND date = "june 17" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
5515,
834,
4312,
3,
21342,
17966,
6,
1128,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
461,
1515,
1003,
16,
11804,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
5515,
834,
4312,
61,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
1128,
3274,
96,
17,
4424,
14939,
121,
3430,
833,
3274,
96,
6959,
15,
1003,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many points where scored by the right end? | CREATE TABLE table_1004 (
"Player" text,
"Position" text,
"Starter" text,
"Touchdowns" real,
"Extra points" real,
"Field goals" real,
"Points" real
) | SELECT COUNT("Points") FROM table_1004 WHERE "Position" = 'Right end' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2915,
591,
41,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
7681,
449,
121,
1499,
6,
96,
3696,
2295,
3035,
7,
121,
490,
6,
96,
5420,
1313,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
22512,
7,
8512,
21680,
953,
834,
2915,
591,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
448,
2632,
414,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Discoveryhas an Operator(s) of lundin? | CREATE TABLE table_15216 (
"Field" text,
"Geological Trend" text,
"Reserves" text,
"Discovery" text,
"Operator(s)" text
) | SELECT "Discovery" FROM table_15216 WHERE "Operator(s)" = 'lundin' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
27184,
41,
96,
3183,
8804,
121,
1499,
6,
96,
517,
15,
4478,
11145,
121,
1499,
6,
96,
1649,
3473,
15,
7,
121,
1499,
6,
96,
15683,
1890,
63,
121,
1499,
6,
96,
667,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15683,
1890,
63,
121,
21680,
953,
834,
1808,
27184,
549,
17444,
427,
96,
667,
883,
1016,
599,
7,
61,
121,
3274,
3,
31,
40,
1106,
77,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the number that is the lowest overall for Round 6? | CREATE TABLE table_name_85 (
overall INTEGER,
round VARCHAR
) | SELECT MIN(overall) FROM table_name_85 WHERE round = 6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
1879,
3,
21342,
17966,
6,
1751,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
381,
24,
19,
8,
7402,
1879,
21,
9609,
431,
58,
1,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
1890,
1748,
61,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
1751,
3274,
431,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many new entries started in the round where winners from the previous round is 16? | CREATE TABLE table_22284 (
"Round" text,
"Clubs remaining" real,
"Clubs involved" real,
"Winners from previous round" text,
"New entries this round" text,
"Leagues entering at this round" text
) | SELECT "New entries this round" FROM table_22284 WHERE "Winners from previous round" = '16' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26144,
4608,
41,
96,
448,
32,
1106,
121,
1499,
6,
96,
254,
11158,
7,
4080,
121,
490,
6,
96,
254,
11158,
7,
1381,
121,
490,
6,
96,
18455,
687,
7,
45,
1767,
1751,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
6861,
10066,
48,
1751,
121,
21680,
953,
834,
26144,
4608,
549,
17444,
427,
96,
18455,
687,
7,
45,
1767,
1751,
121,
3274,
3,
31,
2938,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the most silver medals when the total is more than 2 medals, and with a rank of total, and the number of gold medals is greater than 44? | CREATE TABLE table_name_78 (silver INTEGER, gold VARCHAR, rank VARCHAR) | SELECT MAX(silver) FROM table_name_78 WHERE "total" > 2 AND rank = "total" AND gold > 44 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
7,
173,
624,
3,
21342,
17966,
6,
2045,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
167,
4294,
9365,
7,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
7,
173,
624,
61,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
96,
235,
1947,
121,
2490,
204,
3430,
11003,
3274,
96,
235,
1947,
121,
3430,
2045,
2490,
8537,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many seasons did the team score at least third ? | CREATE TABLE table_204_589 (
id number,
"season" text,
"tier" number,
"division" text,
"pos." text,
"notes" text
) | SELECT COUNT("season") FROM table_204_589 WHERE "pos." <= 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
755,
3914,
41,
3,
23,
26,
381,
6,
96,
9476,
121,
1499,
6,
96,
3276,
121,
381,
6,
96,
26,
23,
6610,
121,
1499,
6,
96,
2748,
535,
1499,
6,
96,
7977,
7,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
9476,
8512,
21680,
953,
834,
26363,
834,
755,
3914,
549,
17444,
427,
96,
2748,
535,
3,
2,
2423,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those records from the products and each product's manufacturer, visualize a scatter chart about the correlation between code and manufacturer , and group by attribute headquarter. | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT T1.Code, T1.Manufacturer FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15248,
7,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
3642,
19973,
584,
4280,
28027,
599,
25502,
201,
3,
19145,
584,
4280,
28027,
599,
25502,
201,
19764,
17833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22737,
6,
332,
5411,
7296,
76,
8717,
450,
49,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,... |
Create a bar chart showing the total number across sex, could you order in desc by the Sex? | CREATE TABLE Faculty_Participates_in (
FacID INTEGER,
actid INTEGER
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
CREATE TABLE Activity (
actid INTEGER,
activity_name varchar(25)
)
CREATE TABLE Participates_in (
stuid INTEGER,
actid INTEGER
)
CREATE TABLE Faculty (
FacID INTEGER,
Lname VARCHAR(15),
Fname VARCHAR(15),
Rank VARCHAR(15),
Sex VARCHAR(1),
Phone INTEGER,
Room VARCHAR(5),
Building VARCHAR(13)
) | SELECT Sex, COUNT(*) FROM Faculty GROUP BY Sex ORDER BY Sex DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
16896,
834,
13725,
23,
3389,
6203,
834,
77,
41,
1699,
75,
4309,
3,
21342,
17966,
6,
1810,
23,
26,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
6341,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
679,
226,
6,
2847,
17161,
599,
1935,
61,
21680,
16896,
350,
4630,
6880,
272,
476,
679,
226,
4674,
11300,
272,
476,
679,
226,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many divisions were listed in 2006? | CREATE TABLE table_17674 (
"Year" text,
"Division" real,
"League" text,
"Regular Season" text,
"Playoffs" text,
"Open Cup" text
) | SELECT COUNT("Division") FROM table_17674 WHERE "Year" = '2006' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26782,
4581,
41,
96,
476,
2741,
121,
1499,
6,
96,
308,
23,
6610,
121,
490,
6,
96,
2796,
9,
5398,
121,
1499,
6,
96,
17748,
4885,
7960,
121,
1499,
6,
96,
15800,
1647,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
308,
23,
6610,
8512,
21680,
953,
834,
26782,
4581,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
21196,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many people reviewed the restaurant ' Texas de Brazil ' in Dallas Texas ? | CREATE TABLE neighborhood (
id int,
business_id varchar,
neighborhood_name varchar
)
CREATE TABLE user (
uid int,
user_id varchar,
name varchar
)
CREATE TABLE business (
bid int,
business_id varchar,
name varchar,
full_address varchar,
city varchar,
latitude varchar,
longitude varchar,
review_count bigint,
is_open tinyint,
rating float,
state varchar
)
CREATE TABLE review (
rid int,
business_id varchar,
user_id varchar,
rating float,
text longtext,
year int,
month varchar
)
CREATE TABLE category (
id int,
business_id varchar,
category_name varchar
)
CREATE TABLE tip (
tip_id int,
business_id varchar,
text longtext,
user_id varchar,
likes int,
year int,
month varchar
)
CREATE TABLE checkin (
cid int,
business_id varchar,
count int,
day varchar
) | SELECT COUNT(DISTINCT (user.name)) FROM business, category, review, user WHERE business.city = 'Dallas' AND business.name = 'Texas de Brazil' AND business.state = 'Texas' AND category.business_id = business.business_id AND category.category_name = 'restaurant' AND review.business_id = business.business_id AND user.user_id = review.user_id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5353,
41,
3,
23,
26,
16,
17,
6,
268,
834,
23,
26,
3,
4331,
4059,
6,
5353,
834,
4350,
3,
4331,
4059,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1139,
41,
3,
76,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
41,
10041,
5,
4350,
61,
61,
21680,
268,
6,
3295,
6,
1132,
6,
1139,
549,
17444,
427,
268,
5,
6726,
3274,
3,
31,
308,
1748,
9,
7,
31,
3430,
268,
5,
4350,
3274,
3,
31,
13598,
... |
What beer has a record of 4.08? | CREATE TABLE table_64021 (
"country" text,
"recorded" real,
"unrecorded" real,
"total" real,
"beer" real,
"wine" real,
"spirits" real,
"other" real
) | SELECT "beer" FROM table_64021 WHERE "recorded" = '4.08' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23714,
2658,
41,
96,
17529,
121,
1499,
6,
96,
60,
7621,
15,
26,
121,
490,
6,
96,
202,
60,
7621,
15,
26,
121,
490,
6,
96,
235,
1947,
121,
490,
6,
96,
346,
49,
121,
490... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
346,
49,
121,
21680,
953,
834,
23714,
2658,
549,
17444,
427,
96,
60,
7621,
15,
26,
121,
3274,
3,
31,
15021,
927,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many instances are there of party in the situation where Robert Bauman is the incumbent politician? | CREATE TABLE table_18355 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT COUNT("Party") FROM table_18355 WHERE "Incumbent" = 'Robert Bauman' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24361,
3769,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
490,
6,
96,
20119,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
13725,
63,
8512,
21680,
953,
834,
24361,
3769,
549,
17444,
427,
96,
1570,
75,
5937,
295,
121,
3274,
3,
31,
24372,
49,
17,
3528,
348,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the number of the crowd when the Wollongong Hawks were the home team? | CREATE TABLE table_name_53 (crowd INTEGER, home_team VARCHAR) | SELECT SUM(crowd) FROM table_name_53 WHERE home_team = "wollongong hawks" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
75,
3623,
26,
3,
21342,
17966,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
381,
13,
8,
4374,
116,
8,
3488,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
75,
3623,
26,
61,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
234,
834,
11650,
3274,
96,
210,
32,
40,
2961,
2444,
3,
14400,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the total number of field goals a player had when there were more than 0 extra points and there were 5 touchdowns? | CREATE TABLE table_75322 (
"Player" text,
"Touchdowns" real,
"Extra points" real,
"Field goals" real,
"Points" real
) | SELECT COUNT("Field goals") FROM table_75322 WHERE "Extra points" > '0' AND "Touchdowns" = '5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
2668,
357,
41,
96,
15800,
49,
121,
1499,
6,
96,
3696,
2295,
3035,
7,
121,
490,
6,
96,
5420,
1313,
979,
121,
490,
6,
96,
3183,
8804,
1766,
121,
490,
6,
96,
22512,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3183,
8804,
1766,
8512,
21680,
953,
834,
3072,
2668,
357,
549,
17444,
427,
96,
5420,
1313,
979,
121,
2490,
3,
31,
632,
31,
3430,
96,
3696,
2295,
3035,
7,
121,
3274,
3,
31,
755,
31,
1,
-100,
... |
What game date had the record of 1-2? | CREATE TABLE table_20928649_1 (
date VARCHAR,
record VARCHAR
) | SELECT date FROM table_20928649_1 WHERE record = "1-2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
4508,
3840,
3647,
834,
536,
41,
833,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
467,
833,
141,
8,
1368,
13,
3,
9596,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
1755,
4508,
3840,
3647,
834,
536,
549,
17444,
427,
1368,
3274,
96,
9596,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the arranger for Ana Rouh? | CREATE TABLE table_42596 (
"Title" text,
"Length" text,
"Writer" text,
"Composer" text,
"Arranger" text
) | SELECT "Arranger" FROM table_42596 WHERE "Title" = 'ana rouh' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
1828,
4314,
41,
96,
382,
155,
109,
121,
1499,
6,
96,
434,
4606,
189,
121,
1499,
6,
96,
24965,
49,
121,
1499,
6,
96,
5890,
2748,
49,
121,
1499,
6,
96,
28150,
9,
936... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
28150,
9,
9369,
121,
21680,
953,
834,
591,
1828,
4314,
549,
17444,
427,
96,
382,
155,
109,
121,
3274,
3,
31,
152,
9,
3,
3964,
107,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the title for 2005 | CREATE TABLE table_name_2 (
title VARCHAR,
year VARCHAR
) | SELECT title FROM table_name_2 WHERE year = 2005 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
2233,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
2233,
21,
3105,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2233,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
215,
3274,
3105,
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,... |
Which cornerback round has a pick number lower than 26 and an overall higher than 41? | CREATE TABLE table_name_36 (round INTEGER, overall VARCHAR, pick__number VARCHAR, position VARCHAR) | SELECT SUM(round) FROM table_name_36 WHERE pick__number < 26 AND position = "cornerback" AND overall > 41 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
7775,
3,
21342,
17966,
6,
1879,
584,
4280,
28027,
6,
1432,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
180,
6122,
599,
7775,
61,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
1432,
834,
834,
5525,
1152,
3,
2,
2208,
3430,
1102,
3274,
96,
13165,
49,
1549,
121,
3430,
1879,
2490,
8798,
1,
-100,
-100,
-100,
-100,
-10... |
WHAT IS THE RESULT OF THE GAME ON APRIL 23? | CREATE TABLE table_name_60 (result VARCHAR, date VARCHAR) | SELECT result FROM table_name_60 WHERE date = "april 23" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
21665,
6827,
1853,
4083,
4138,
9012,
3347,
1853,
350,
17683... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
833,
3274,
96,
9,
2246,
40,
1902,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
When ihaia tainui is the incumbent what is the date? | CREATE TABLE table_4142 (
"By-election" real,
"Electorate" text,
"Date" text,
"Incumbent" text,
"Reason" text,
"Winner" text
) | SELECT "Date" FROM table_4142 WHERE "Incumbent" = 'Ihaia Tainui' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4853,
4165,
41,
96,
279,
63,
18,
15,
12252,
121,
490,
6,
96,
21543,
127,
342,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
1649,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4853,
4165,
549,
17444,
427,
96,
1570,
75,
5937,
295,
121,
3274,
3,
31,
196,
1024,
23,
9,
17612,
17965,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the name of the engine in 1961? | CREATE TABLE table_name_83 (engine VARCHAR, year VARCHAR) | SELECT engine FROM table_name_83 WHERE year = 1961 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
20165,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
13,
8,
1948,
16,
21018,
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,
1948,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
215,
3274,
21018,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the net profit for eps beign 1.19 | CREATE TABLE table_23765 (
"Year ended" real,
"Revenue (\u20acmillion)" real,
"Earnings before interest and taxes (\u20acm)" text,
"Net profit (\u20acm)" text,
"Earnings per share (\u20ac)" text
) | SELECT "Net profit (\u20acm)" FROM table_23765 WHERE "Earnings per share (\u20ac)" = '1.19' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4118,
4122,
41,
96,
476,
2741,
3492,
121,
490,
6,
96,
1649,
15098,
41,
2,
76,
1755,
9,
75,
17030,
61,
121,
490,
6,
96,
427,
291,
29,
53,
7,
274,
1046,
11,
5161,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
9688,
3199,
41,
2,
76,
1755,
9,
75,
51,
61,
121,
21680,
953,
834,
357,
4118,
4122,
549,
17444,
427,
96,
427,
291,
29,
53,
7,
399,
698,
41,
2,
76,
1755,
9,
75,
61,
121,
3274,
3,
31,
5411,
2294,
31,
1,
-... |
How many million u.s. viewers watched the episode with a production code of 2t7004? | CREATE TABLE table_2828803_1 (us_viewers__millions_ VARCHAR, production_code VARCHAR) | SELECT us_viewers__millions_ FROM table_2828803_1 WHERE production_code = "2T7004" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
2577,
2079,
519,
834,
536,
41,
302,
834,
4576,
277,
834,
834,
17030,
7,
834,
584,
4280,
28027,
6,
999,
834,
4978,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
178,
834,
4576,
277,
834,
834,
17030,
7,
834,
21680,
953,
834,
2577,
2577,
2079,
519,
834,
536,
549,
17444,
427,
999,
834,
4978,
3274,
96,
357,
382,
9295,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the lowest value for apps in 2009 season in a division less than 1? | CREATE TABLE table_34907 (
"Season" text,
"Team" text,
"Country" text,
"Division" real,
"Apps" real,
"Goals" real
) | SELECT MIN("Apps") FROM table_34907 WHERE "Season" = '2009' AND "Division" < '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3647,
4560,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
308,
23,
6610,
121,
490,
6,
96,
9648,
7,
121,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
9648,
7,
8512,
21680,
953,
834,
519,
3647,
4560,
549,
17444,
427,
96,
134,
15,
9,
739,
121,
3274,
3,
31,
16660,
31,
3430,
96,
308,
23,
6610,
121,
3,
2,
3,
31,
536,
31,
1,
-100,
-100,
-100,
... |
What is the Date with a Round with sf? | CREATE TABLE table_name_67 (date VARCHAR, round VARCHAR) | SELECT date FROM table_name_67 WHERE round = "sf" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
5522,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7678,
28,
3,
9,
9609,
28,
3,
7,
89,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
1751,
3274,
96,
7,
89,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which position has a School of green valley high school? | CREATE TABLE table_57550 (
"Player" text,
"Position" text,
"School" text,
"Hometown" text,
"MLB Draft" text
) | SELECT "Position" FROM table_57550 WHERE "School" = 'green valley high school' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3436,
17147,
41,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
29364,
121,
1499,
6,
96,
19040,
3540,
121,
1499,
6,
96,
6858,
279,
21409,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
32,
7,
4749,
121,
21680,
953,
834,
3436,
17147,
549,
17444,
427,
96,
29364,
121,
3274,
3,
31,
9423,
10645,
306,
496,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the lowest image with a 20w Harrison, and less than 20 for Ashmolean? | CREATE TABLE table_name_51 (
image INTEGER,
harrison VARCHAR,
ashmolean VARCHAR
) | SELECT MIN(image) FROM table_name_51 WHERE harrison = "20w" AND ashmolean < 20 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
1023,
3,
21342,
17966,
6,
3,
3272,
23790,
584,
4280,
28027,
6,
3,
3198,
4641,
15,
152,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
8221,
61,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
3,
3272,
23790,
3274,
96,
1755,
210,
121,
3430,
3,
3198,
4641,
15,
152,
3,
2,
460,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Find the names of employees who never won any award in the evaluation. | CREATE TABLE evaluation (name VARCHAR, Employee_ID VARCHAR); CREATE TABLE employee (name VARCHAR, Employee_ID VARCHAR) | SELECT name FROM employee WHERE NOT Employee_ID IN (SELECT Employee_ID FROM evaluation) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5002,
41,
4350,
584,
4280,
28027,
6,
15871,
834,
4309,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3490,
41,
4350,
584,
4280,
28027,
6,
15871,
834,
4309,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
564,
21680,
3490,
549,
17444,
427,
4486,
15871,
834,
4309,
3388,
41,
23143,
14196,
15871,
834,
4309,
21680,
5002,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Draw a bar chart of publisher versus the total number, and could you sort by the y-axis from low to high please? | CREATE TABLE publication (
Publication_ID int,
Book_ID int,
Publisher text,
Publication_Date text,
Price real
)
CREATE TABLE book (
Book_ID int,
Title text,
Issues real,
Writer text
) | SELECT Publisher, COUNT(*) FROM publication GROUP BY Publisher ORDER BY COUNT(*) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5707,
41,
2575,
257,
834,
4309,
16,
17,
6,
3086,
834,
4309,
16,
17,
6,
19816,
1499,
6,
2575,
257,
834,
308,
342,
1499,
6,
5312,
490,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
19816,
6,
2847,
17161,
599,
1935,
61,
21680,
5707,
350,
4630,
6880,
272,
476,
19816,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the most extra points for right tackle | CREATE TABLE table_14342480_6 (extra_points INTEGER, position VARCHAR) | SELECT MAX(extra_points) FROM table_14342480_6 WHERE position = "Right tackle" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25133,
4165,
20579,
834,
948,
41,
25666,
834,
2700,
7,
3,
21342,
17966,
6,
1102,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
167,
996,
979,
21,
269,
8000,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
25666,
834,
2700,
7,
61,
21680,
953,
834,
25133,
4165,
20579,
834,
948,
549,
17444,
427,
1102,
3274,
96,
448,
2632,
8000,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What shows for 2004 when 2005 is A, 2006 is A, tournament is US Open? | CREATE TABLE table_name_60 (tournament VARCHAR) | SELECT 2004 FROM table_name_60 WHERE 2005 = "a" AND 2006 = "a" AND tournament = "us open" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
17,
1211,
20205,
17,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1267,
21,
4406,
116,
3105,
19,
71,
6,
3581,
19,
71,
6,
5892,
19,
837,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4406,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
3105,
3274,
96,
9,
121,
3430,
3581,
3274,
96,
9,
121,
3430,
5892,
3274,
96,
302,
539,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the sum of year when start is less than 30 | CREATE TABLE table_name_68 (year INTEGER, start INTEGER) | SELECT SUM(year) FROM table_name_68 WHERE start < 30 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
1201,
3,
21342,
17966,
6,
456,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
4505,
13,
215,
116,
456,
19,
705,
145,
604,
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,
180,
6122,
599,
1201,
61,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
456,
3,
2,
604,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many dates are associated with a guest 4 being Jim Jeffries (debut)? | CREATE TABLE table_20466963_4 (date VARCHAR, guest_4 VARCHAR) | SELECT COUNT(date) FROM table_20466963_4 WHERE guest_4 = "Jim Jeffries (debut)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
4448,
3951,
3891,
834,
591,
41,
5522,
584,
4280,
28027,
6,
3886,
834,
591,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
5128,
33,
1968,
28,
3,
9,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
5522,
61,
21680,
953,
834,
1755,
4448,
3951,
3891,
834,
591,
549,
17444,
427,
3886,
834,
591,
3274,
96,
683,
603,
8507,
2593,
41,
221,
2780,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Show all party names and the number of members in each party. Show bar chart. | CREATE TABLE member (
Member_ID int,
Member_Name text,
Party_ID text,
In_office text
)
CREATE TABLE party (
Party_ID int,
Minister text,
Took_office text,
Left_office text,
Region_ID int,
Party_name 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,
Member_in_charge_ID int
) | SELECT Party_name, COUNT(*) FROM member AS T1 JOIN party AS T2 ON T1.Party_ID = T2.Party_ID GROUP BY T1.Party_ID | [
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,
1088,
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,
3450,
834,
4350,
6,
2847,
17161,
599,
1935,
61,
21680,
1144,
6157,
332,
536,
3,
15355,
3162,
1088,
6157,
332,
357,
9191,
332,
5411,
13725,
63,
834,
4309,
3274,
332,
4416,
13725,
63,
834,
4309,
350,
4630,
6880,
272,
... |
What is the short stem for garbitzen? | CREATE TABLE table_72325 (
"Perfect stem" text,
"Future stem" text,
"Imperfect stem" text,
"Short stem" text,
"Meaning" text
) | SELECT "Short stem" FROM table_72325 WHERE "Imperfect stem" = 'garbitzen' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2773,
1828,
41,
96,
12988,
4075,
6269,
121,
1499,
6,
96,
371,
76,
2693,
6269,
121,
1499,
6,
96,
196,
51,
22588,
6269,
121,
1499,
6,
96,
134,
14184,
6269,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
14184,
6269,
121,
21680,
953,
834,
940,
2773,
1828,
549,
17444,
427,
96,
196,
51,
22588,
6269,
121,
3274,
3,
31,
1478,
2360,
1847,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the first game played on February 28? | CREATE TABLE table_name_95 (
game INTEGER,
date VARCHAR
) | SELECT MIN(game) FROM table_name_95 WHERE date = "february 28" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
467,
3,
21342,
17966,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
166,
467,
1944,
30,
2083,
2059,
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,
3,
17684,
599,
7261,
61,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
833,
3274,
96,
89,
15,
9052,
1208,
2059,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
provide the number of patients whose age is less than 81 and days of hospital stay is greater than 11? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.age < "81" AND demographic.days_stay > "11" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
545,
3,
2,
96,
4959,
121,
3430,
14798,
5,
1135,
7,
834,
21545,
2490,
96,
2596,
121,
1,
-100,
-... |
Show all ministers who do not belong to Progress Party. | CREATE TABLE party (
minister VARCHAR,
party_name VARCHAR
) | SELECT minister FROM party WHERE party_name <> 'Progress Party' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1088,
41,
6323,
584,
4280,
28027,
6,
1088,
834,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
3111,
66,
6323,
7,
113,
103,
59,
13000,
12,
24583,
3450,
5,
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,
6323,
21680,
1088,
549,
17444,
427,
1088,
834,
4350,
3,
2,
3155,
3,
31,
3174,
10292,
3450,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Return a bar chart to show how many documents for different budget type code, I want to list from high to low by the bars. | CREATE TABLE Statements (
Statement_ID INTEGER,
Statement_Details VARCHAR(255)
)
CREATE TABLE Ref_Budget_Codes (
Budget_Type_Code CHAR(15),
Budget_Type_Description VARCHAR(255)
)
CREATE TABLE Documents (
Document_ID INTEGER,
Document_Type_Code CHAR(15),
Project_ID INTEGER,
Document_Date DATETIME,
Document_Name VARCHAR(255),
Document_Description VARCHAR(255),
Other_Details VARCHAR(255)
)
CREATE TABLE Projects (
Project_ID INTEGER,
Project_Details VARCHAR(255)
)
CREATE TABLE Ref_Document_Types (
Document_Type_Code CHAR(15),
Document_Type_Name VARCHAR(255),
Document_Type_Description VARCHAR(255)
)
CREATE TABLE Documents_with_Expenses (
Document_ID INTEGER,
Budget_Type_Code CHAR(15),
Document_Details VARCHAR(255)
)
CREATE TABLE Accounts (
Account_ID INTEGER,
Statement_ID INTEGER,
Account_Details VARCHAR(255)
) | SELECT T1.Budget_Type_Code, COUNT(T1.Budget_Type_Code) FROM Documents_with_Expenses AS T1 JOIN Ref_Budget_Codes AS T2 ON T1.Budget_Type_Code = T2.Budget_Type_Code GROUP BY T1.Budget_Type_Code ORDER BY T1.Budget_Type_Code DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
16836,
7,
41,
16836,
834,
4309,
3,
21342,
17966,
6,
16836,
834,
2962,
5756,
7,
584,
4280,
28027,
599,
25502,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
419,
89,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
279,
13164,
17,
834,
25160,
834,
22737,
6,
2847,
17161,
599,
382,
5411,
279,
13164,
17,
834,
25160,
834,
22737,
61,
21680,
11167,
7,
834,
4065,
834,
12882,
5167,
7,
6157,
332,
536,
3,
15355,
3162,
419,
89... |
how many games were classified friendly competition ? | CREATE TABLE table_203_504 (
id number,
"#" number,
"date" text,
"venue" text,
"opponent" text,
"score" text,
"result" text,
"competition" text
) | SELECT COUNT(*) FROM table_203_504 WHERE "competition" = 'friendly' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
1752,
591,
41,
3,
23,
26,
381,
6,
96,
4663,
121,
381,
6,
96,
5522,
121,
1499,
6,
96,
15098,
121,
1499,
6,
96,
32,
102,
9977,
121,
1499,
6,
96,
7,
9022,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
23330,
834,
1752,
591,
549,
17444,
427,
96,
287,
4995,
4749,
121,
3274,
3,
31,
4905,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the report on 20 may | CREATE TABLE table_name_98 (
report VARCHAR,
date VARCHAR
) | SELECT report FROM table_name_98 WHERE date = "20 may" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
934,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
934,
30,
460,
164,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
934,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
833,
3274,
96,
1755,
164,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is the Power with 88.5 fm Frequency | CREATE TABLE table_name_50 (power VARCHAR, frequency VARCHAR) | SELECT power FROM table_name_50 WHERE frequency = "88.5 fm" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
6740,
584,
4280,
28027,
6,
7321,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
2621,
28,
505,
19253,
3,
89,
51,
5532,
835,
11298,
1,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
579,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
7321,
3274,
96,
927,
19253,
3,
89,
51,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What group info is available for the 56.5 kg weight? | CREATE TABLE table_1358608_2 (
group VARCHAR,
weight__kg_ VARCHAR
) | SELECT group FROM table_1358608_2 WHERE weight__kg_ = "56.5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
536,
2469,
3840,
4018,
834,
357,
41,
563,
584,
4280,
28027,
6,
1293,
834,
834,
8711,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
563,
2845,
19,
347,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
563,
21680,
953,
834,
536,
2469,
3840,
4018,
834,
357,
549,
17444,
427,
1293,
834,
834,
8711,
834,
3274,
96,
4834,
5,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What's the CR number that has an LMS number less than 14761 and works of Hawthorn Leslie 3100? | CREATE TABLE table_65160 (
"HR no." text,
"HR name" text,
"CR no." real,
"LMS no." real,
"Built" text,
"Works" text,
"Withdrawn" text
) | SELECT AVG("CR no.") FROM table_65160 WHERE "Works" = 'hawthorn leslie 3100' AND "LMS no." < '14761' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
19129,
41,
96,
11120,
150,
535,
1499,
6,
96,
11120,
564,
121,
1499,
6,
96,
4545,
150,
535,
490,
6,
96,
11160,
134,
150,
535,
490,
6,
96,
7793,
173,
17,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
4545,
150,
5,
8512,
21680,
953,
834,
4122,
19129,
549,
17444,
427,
96,
12492,
7,
121,
3274,
3,
31,
1024,
210,
17,
6293,
110,
1896,
220,
2915,
31,
3430,
96,
11160,
134,
150,
535,
3,
2,
3,
31,... |
What were the assists on April 8 in game less than 78? | CREATE TABLE table_name_75 (high_assists VARCHAR, game VARCHAR, date VARCHAR) | SELECT high_assists FROM table_name_75 WHERE game < 78 AND date = "april 8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
6739,
834,
6500,
7,
17,
7,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
130,
8,
13041,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
306,
834,
6500,
7,
17,
7,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
467,
3,
2,
3,
3940,
3430,
833,
3274,
96,
9,
2246,
40,
505,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many ranks have more than 7 lanes, and an Athlete of michael mathieu, and a Reaction time larger than 0.203? | CREATE TABLE table_name_3 (
rank INTEGER,
react VARCHAR,
lane VARCHAR,
athlete VARCHAR
) | SELECT SUM(rank) FROM table_name_3 WHERE lane > 7 AND athlete = "michael mathieu" AND react > 0.203 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
11003,
3,
21342,
17966,
6,
8922,
584,
4280,
28027,
6,
3,
8102,
584,
4280,
28027,
6,
17893,
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,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
6254,
61,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
3,
8102,
2490,
489,
3430,
17893,
3274,
96,
51,
362,
9,
15,
40,
7270,
23,
15,
76,
121,
3430,
8922,
2490,
4097,
23330,
1,
-100,
-100,
-100,... |
If the land square milage is 10.950, what is the longitude? | CREATE TABLE table_18600760_7 (
longitude VARCHAR,
land___sqmi__ VARCHAR
) | SELECT longitude FROM table_18600760_7 WHERE land___sqmi__ = "10.950" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24700,
4560,
3328,
834,
940,
41,
307,
20341,
584,
4280,
28027,
6,
1322,
834,
834,
834,
7,
1824,
51,
23,
834,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
307,
20341,
21680,
953,
834,
24700,
4560,
3328,
834,
940,
549,
17444,
427,
1322,
834,
834,
834,
7,
1824,
51,
23,
834,
834,
3274,
96,
10415,
25188,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the result for 1980s | CREATE TABLE table_19508635_1 (result VARCHAR, theme VARCHAR) | SELECT result FROM table_19508635_1 WHERE theme = "1980s" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
1752,
3840,
2469,
834,
536,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
3800,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
741,
21,
6694,
7,
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,
2294,
1752,
3840,
2469,
834,
536,
549,
17444,
427,
3800,
3274,
96,
2294,
2079,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the total number of picks for PBA team san miguel beermen who picked rommel daep? | CREATE TABLE table_name_26 (
pick VARCHAR,
pba_team VARCHAR,
player VARCHAR
) | SELECT COUNT(pick) FROM table_name_26 WHERE pba_team = "san miguel beermen" AND player = "rommel daep" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
1432,
584,
4280,
28027,
6,
3,
102,
115,
9,
834,
11650,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
17967,
61,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
3,
102,
115,
9,
834,
11650,
3274,
96,
7,
152,
3,
51,
15795,
40,
6061,
904,
121,
3430,
1959,
3274,
96,
3522,
2341,
836,
15,
102,
121,
... |
how many patients with death status 1 had primary disease as aortic valve insuffiency\aortic valve replacement /sda? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
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 text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.expire_flag = "1" AND demographic.diagnosis = "AORTIC VALVE INSUFFIENCY\AORTIC VALVE REPLACEMENT /SDA" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
994,
2388,
15,
834,
89,
5430,
3274,
96,
536,
121,
3430,
14798,
5,
25930,
4844,
159,
3274,
96,
18... |
What's the most amount of point finishes for v8supercar? | CREATE TABLE table_30421 (
"Series" text,
"Seasons" real,
"Races" real,
"Poles" real,
"Wins" real,
"Podiums (Non-win)" real,
"Point Finishes (Non-podium)" real,
"Teams" real,
"Total Points" real,
"Championships" real,
"Best Finish (Championship)" text
) | SELECT MAX("Point Finishes (Non-podium)") FROM table_30421 WHERE "Series" = 'V8Supercar' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23702,
2658,
41,
96,
12106,
7,
121,
1499,
6,
96,
134,
15,
9,
6577,
121,
490,
6,
96,
448,
9,
2319,
121,
490,
6,
96,
8931,
15,
7,
121,
490,
6,
96,
18455,
7,
121,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
22512,
17578,
15,
7,
41,
567,
106,
18,
11410,
2552,
61,
8512,
21680,
953,
834,
23702,
2658,
549,
17444,
427,
96,
12106,
7,
121,
3274,
3,
31,
553,
927,
23290,
1720,
31,
1,
-100,
-100,
-100,
-100,... |
Who were the Paraguay scorers on June 15, 2008? | CREATE TABLE table_name_1 (
paraguay_scorers VARCHAR,
date VARCHAR
) | SELECT paraguay_scorers FROM table_name_1 WHERE date = "june 15, 2008" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
3856,
1744,
9,
63,
834,
7,
5715,
277,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
130,
8,
4734,
1744,
9,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3856,
1744,
9,
63,
834,
7,
5715,
277,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
833,
3274,
96,
6959,
15,
10725,
2628,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
On what dates were employees without the letter M in their first names hired, and count them by a bar chart, and list in asc by the y axis please. | CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
) | SELECT HIRE_DATE, COUNT(HIRE_DATE) FROM employees WHERE NOT FIRST_NAME LIKE '%M%' ORDER BY COUNT(HIRE_DATE) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1652,
41,
262,
5244,
5017,
476,
5080,
834,
4309,
7908,
1982,
599,
11071,
632,
201,
30085,
834,
567,
17683,
3,
4331,
4059,
599,
1755,
201,
301,
12510,
834,
567,
17683,
3,
4331,
4059,
59... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
2847,
17161,
599,
566,
14132,
834,
308,
6048,
61,
21680,
1652,
549,
17444,
427,
4486,
30085,
834,
567,
17683,
8729,
9914,
3,
31,
1454,
329,
1454,
31,
4674,
11300,
272,
476,
2847,
17161,
... |
What was the report for the Sunday race where the winner had an average speed of 128.27 mph? | CREATE TABLE table_2593 (
"Year" text,
"Day" text,
"Date" text,
"Driver" text,
"Team" text,
"Manufacturer" text,
"Laps" text,
"Miles (km)" text,
"Race Time" text,
"Average Speed (mph)" text,
"Report" text
) | SELECT "Report" FROM table_2593 WHERE "Day" = 'Sunday' AND "Average Speed (mph)" = '128.27' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
4271,
41,
96,
476,
2741,
121,
1499,
6,
96,
16803,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
20982,
52,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
7296,
76,
87... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
121,
21680,
953,
834,
1828,
4271,
549,
17444,
427,
96,
16803,
121,
3274,
3,
31,
134,
202,
1135,
31,
3430,
96,
188,
624,
545,
9913,
41,
7656,
61,
121,
3274,
3,
31,
536,
2577,
5,
2555,
31,
1,
-100,... |
list the number of patients admitted before the year2105. | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE 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 text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admityear < "2105" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
20466,
17,
1201,
3,
2,
96,
15239,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
count the number of patients whose insurance is medicaid and admission location is emergency room admit? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.insurance = "Medicaid" AND demographic.admission_location = "EMERGENCY ROOM ADMIT" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
29441,
3274,
96,
15789,
6146,
121,
3430,
14798,
5,
9,
26,
5451,
834,
14836,
3274,
96,
427,
13098,
... |
Name the Company which has a Price in USD of free / negotiable? | CREATE TABLE table_name_69 (company VARCHAR, price_in_usd VARCHAR) | SELECT company FROM table_name_69 WHERE price_in_usd = "free / negotiable" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
29179,
584,
4280,
28027,
6,
594,
834,
77,
834,
302,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1958,
84,
65,
3,
9,
5312,
16,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
349,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
594,
834,
77,
834,
302,
26,
3274,
96,
2113,
3,
87,
14261,
32,
17,
23,
179,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Show different nationalities along with the number of hosts of each nationality in a bar chart, and display y-axis in desc order. | CREATE TABLE host (
Host_ID int,
Name text,
Nationality text,
Age text
)
CREATE TABLE party_host (
Party_ID int,
Host_ID int,
Is_Main_in_Charge bool
)
CREATE TABLE party (
Party_ID int,
Party_Theme text,
Location text,
First_year text,
Last_year text,
Number_of_hosts int
) | SELECT Nationality, COUNT(*) FROM host GROUP BY Nationality ORDER BY COUNT(*) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2290,
41,
1546,
7,
17,
834,
4309,
16,
17,
6,
5570,
1499,
6,
868,
485,
1499,
6,
7526,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1088,
834,
12675,
41,
3450,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
868,
485,
6,
2847,
17161,
599,
1935,
61,
21680,
2290,
350,
4630,
6880,
272,
476,
868,
485,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
provide the number of patients whose gender is m and lab test name is potassium, whole blood? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.gender = "M" AND lab.label = "Potassium, Whole Blood" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
How many totals have a Gold larger than 0, and a Bronze smaller than 0? | CREATE TABLE table_name_62 (
total VARCHAR,
gold VARCHAR,
bronze VARCHAR
) | SELECT COUNT(total) FROM table_name_62 WHERE gold > 0 AND bronze < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
792,
584,
4280,
28027,
6,
2045,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
792,
7,
43,
3,
9,
2540,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
2045,
2490,
3,
632,
3430,
13467,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the administrative county being area of 422372 | CREATE TABLE table_14925084_1 (
administrative_county VARCHAR,
area_1961__statute_acres_ VARCHAR
) | SELECT administrative_county FROM table_14925084_1 WHERE area_1961__statute_acres_ = 422372 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24816,
11434,
4608,
834,
536,
41,
6601,
834,
13362,
63,
584,
4280,
28027,
6,
616,
834,
2294,
4241,
834,
834,
8547,
2810,
834,
10610,
7,
834,
584,
4280,
28027,
3,
61,
3,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6601,
834,
13362,
63,
21680,
953,
834,
24816,
11434,
4608,
834,
536,
549,
17444,
427,
616,
834,
2294,
4241,
834,
834,
8547,
2810,
834,
10610,
7,
834,
3274,
6426,
2773,
5865,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who is the winner for the match on October 7? | CREATE TABLE table_name_20 (winner VARCHAR, date VARCHAR) | SELECT winner FROM table_name_20 WHERE date = "october 7" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1755,
41,
3757,
687,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
4668,
21,
8,
1588,
30,
1797,
489,
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,
4668,
21680,
953,
834,
4350,
834,
1755,
549,
17444,
427,
833,
3274,
96,
32,
75,
235,
1152,
489,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is Record, when Date is 'November 22'? | CREATE TABLE table_name_72 (
record VARCHAR,
date VARCHAR
) | SELECT record FROM table_name_72 WHERE date = "november 22" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
1368,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
11392,
6,
116,
7678,
19,
3,
31,
28635,
1630,
31,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
833,
3274,
96,
5326,
18247,
1630,
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 date for acts of 6 bands and year larger than 1981 for monsters of rock | CREATE TABLE table_name_4 (
date VARCHAR,
event VARCHAR,
acts VARCHAR,
year VARCHAR
) | SELECT date FROM table_name_4 WHERE acts = "6 bands" AND year > 1981 AND event = "monsters of rock" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
833,
584,
4280,
28027,
6,
605,
584,
4280,
28027,
6,
6775,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
6775,
3274,
96,
948,
9760,
121,
3430,
215,
2490,
15465,
3430,
605,
3274,
96,
2157,
1370,
7,
13,
2480,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who won on May 2011? | CREATE TABLE table_name_76 (
winner VARCHAR,
date VARCHAR
) | SELECT winner FROM table_name_76 WHERE date = "may 2011" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
4668,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
751,
30,
932,
2722,
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,
4668,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
833,
3274,
96,
13726,
2722,
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 lab test that was last given to patient 006-202970 during the current hospital encounter? | CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
hospitaladmitsource text,
unitadmittime time,
unitdischargetime time,
hospitaldischargetime time,
hospitaldischargestatus text
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
) | SELECT lab.labname FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-202970' AND patient.hospitaldischargetime IS NULL)) ORDER BY lab.labresulttime DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
583,
41,
583,
23,
26,
381,
6,
775,
12417,
1499,
6,
1868,
15878,
3734,
21545,
23,
26,
381,
6,
605,
6137,
1499,
6,
605,
23,
26,
381,
6,
1567,
715,
97,
6,
583,
381,
3,
61,
3,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
7690,
5,
9339,
4350,
21680,
7690,
549,
17444,
427,
7690,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
15878,
3734,
21545,
... |
how many towers are at least 18 meters tall ? | CREATE TABLE table_203_665 (
id number,
"name" text,
"municipality" text,
"established" number,
"tower height\nin meters (ft)" text,
"focal plane\nin meters (ft)" text,
"current status" text,
"current condition" text
) | SELECT COUNT("name") FROM table_203_665 WHERE "tower height\nin meters (ft)" >= 18 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
3539,
755,
41,
3,
23,
26,
381,
6,
96,
4350,
121,
1499,
6,
96,
11760,
3389,
10355,
121,
1499,
6,
96,
24109,
121,
381,
6,
96,
235,
3321,
3902,
2,
29,
77,
8848... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4350,
8512,
21680,
953,
834,
23330,
834,
3539,
755,
549,
17444,
427,
96,
235,
3321,
3902,
2,
29,
77,
8848,
41,
89,
17,
61,
121,
2490,
2423,
507,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Height for Years for Rockets of 2005-06? | CREATE TABLE table_54250 (
"Player" text,
"No.(s)" text,
"Height in Ft." text,
"Position" text,
"Years for Rockets" text,
"School/Club Team/Country" text
) | SELECT "Height in Ft." FROM table_54250 WHERE "Years for Rockets" = '2005-06' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5062,
11434,
41,
96,
15800,
49,
121,
1499,
6,
96,
4168,
5,
599,
7,
61,
121,
1499,
6,
96,
3845,
2632,
16,
377,
17,
535,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3845,
2632,
16,
377,
17,
535,
21680,
953,
834,
5062,
11434,
549,
17444,
427,
96,
476,
2741,
7,
21,
22176,
7,
121,
3274,
3,
31,
22594,
18,
5176,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many cup goals in the season with more than 5 league apps, 1 cup apps and fewer than 4 league goals? | CREATE TABLE table_32378 (
"Season" text,
"Team" text,
"League Apps" real,
"League Goals" real,
"Cup Apps" real,
"Cup Goals" real
) | SELECT SUM("Cup Goals") FROM table_32378 WHERE "League Apps" > '5' AND "Cup Apps" = '1' AND "League Goals" < '4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2668,
519,
3940,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
2796,
9,
5398,
2276,
7,
121,
490,
6,
96,
2796,
9,
5398,
17916,
7,
121,
490,
6,
96... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
254,
413,
17916,
7,
8512,
21680,
953,
834,
2668,
519,
3940,
549,
17444,
427,
96,
2796,
9,
5398,
2276,
7,
121,
2490,
3,
31,
755,
31,
3430,
96,
254,
413,
2276,
7,
121,
3274,
3,
31,
536,
31,
... |
Who is the player that plays position f from Fort Wayne Pistons? | CREATE TABLE table_name_89 (player VARCHAR, team VARCHAR, position VARCHAR) | SELECT player FROM table_name_89 WHERE team = "fort wayne pistons" AND position = "f" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
20846,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
1959,
24,
4805,
1102,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
372,
3274,
96,
1161,
17,
194,
29,
15,
28688,
7,
121,
3430,
1102,
3274,
96,
89,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What were the total 2012 births when the 2012 deaths were 163? | CREATE TABLE table_25703_2 (
birth_2012 INTEGER,
death_2012 VARCHAR
) | SELECT MIN(birth_2012) FROM table_25703_2 WHERE death_2012 = 163 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
2518,
519,
834,
357,
41,
3879,
834,
12172,
3,
21342,
17966,
6,
1687,
834,
12172,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
130,
8,
792,
1673,
3879,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
20663,
834,
12172,
61,
21680,
953,
834,
1828,
2518,
519,
834,
357,
549,
17444,
427,
1687,
834,
12172,
3274,
898,
519,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the most effective determinative method in terms of pesticide residues detection? | CREATE TABLE resultsdata15 (
sample_pk number,
commod text,
commtype text,
lab text,
pestcode text,
testclass text,
concen number,
lod number,
conunit text,
confmethod text,
confmethod2 text,
annotate text,
quantitate text,
mean text,
extract text,
determin text
)
CREATE TABLE sampledata15 (
sample_pk number,
state text,
year text,
month text,
day text,
site text,
commod text,
source_id text,
variety text,
origin text,
country text,
disttype text,
commtype text,
claim text,
quantity number,
growst text,
packst text,
distst text
) | SELECT determin FROM resultsdata15 GROUP BY determin ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
772,
6757,
1808,
41,
3106,
834,
102,
157,
381,
6,
3,
287,
7360,
1499,
6,
3,
287,
51,
6137,
1499,
6,
7690,
1499,
6,
6256,
4978,
1499,
6,
794,
4057,
1499,
6,
3,
11620,
29,
381,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
16372,
21680,
772,
6757,
1808,
350,
4630,
6880,
272,
476,
3,
16372,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the year when My Mother's Teahouse was not nominated? | CREATE TABLE table_17350255_1 (year__ceremony_ VARCHAR, result VARCHAR, film_title_used_in_nomination VARCHAR) | SELECT year__ceremony_ FROM table_17350255_1 WHERE result = "Not Nominated" AND film_title_used_in_nomination = "My Mother's Teahouse" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
16975,
25502,
834,
536,
41,
1201,
834,
834,
2110,
15,
21208,
834,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
6,
814,
834,
21869,
834,
10064,
834,
77,
834,
29,
32,
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,
215,
834,
834,
2110,
15,
21208,
834,
21680,
953,
834,
2517,
16975,
25502,
834,
536,
549,
17444,
427,
741,
3274,
96,
10358,
465,
1109,
920,
121,
3430,
814,
834,
21869,
834,
10064,
834,
77,
834,
29,
32,
14484,
3274,
9... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.