NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What's the total number of crew chiefs of the Fas Lane Racing team? | CREATE TABLE table_1266602_1 (crew_chief VARCHAR, team VARCHAR) | SELECT COUNT(crew_chief) FROM table_1266602_1 WHERE team = "FAS Lane Racing" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
21976,
3539,
4305,
834,
536,
41,
5045,
210,
834,
20053,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
792,
381,
13,
4627,
57... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
5045,
210,
834,
20053,
61,
21680,
953,
834,
21976,
3539,
4305,
834,
536,
549,
17444,
427,
372,
3274,
96,
4795,
134,
11834,
16046,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many million viewers watched the episode that had a 2.6/7 rating/share (18-49) | CREATE TABLE table_23397386_2 (
viewers__millions_ VARCHAR,
rating VARCHAR
) | SELECT viewers__millions_ FROM table_23397386_2 WHERE rating / SHARE(18 AS –49) = 2.6 / 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
3288,
4552,
3840,
834,
357,
41,
13569,
834,
834,
17030,
7,
834,
584,
4280,
28027,
6,
5773,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
770,
13569,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13569,
834,
834,
17030,
7,
834,
21680,
953,
834,
2773,
3288,
4552,
3840,
834,
357,
549,
17444,
427,
5773,
3,
87,
10046,
7451,
599,
2606,
6157,
3,
104,
3647,
61,
3274,
3,
22724,
3,
87,
489,
1,
-100,
-100,
-100,
-10... |
What was the club for Great Britain? | CREATE TABLE table_43403 (
"Nation" text,
"Skip" text,
"Third" text,
"Second" text,
"Lead" text,
"Alternate" text,
"Club" text
) | SELECT "Club" FROM table_43403 WHERE "Nation" = 'great britain' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4906,
2445,
519,
41,
96,
567,
257,
121,
1499,
6,
96,
134,
2168,
102,
121,
1499,
6,
96,
382,
9288,
26,
121,
1499,
6,
96,
134,
15,
1018,
26,
121,
1499,
6,
96,
2796,
9,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
254,
11158,
121,
21680,
953,
834,
4906,
2445,
519,
549,
17444,
427,
96,
567,
257,
121,
3274,
3,
31,
20288,
3,
115,
10694,
77,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the venue on the 20th? | CREATE TABLE table_name_29 (
venue VARCHAR,
date VARCHAR
) | SELECT venue FROM table_name_29 WHERE date = "20th" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
5669,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
5669,
30,
8,
460,
189,
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,
5669,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
833,
3274,
96,
1755,
189,
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 Shaun Murphy's outcome in the Premier League Snooker championship held before 2010? | CREATE TABLE table_name_1 (
outcome VARCHAR,
championship VARCHAR,
year VARCHAR
) | SELECT outcome FROM table_name_1 WHERE championship = "premier league snooker" AND year < 2010 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
6138,
584,
4280,
28027,
6,
10183,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
3926,
202,
16212,
31,
7,
61... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6138,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
10183,
3274,
96,
2026,
51,
972,
5533,
3,
7,
22563,
49,
121,
3430,
215,
3,
2,
2735,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those records from the products and each product's manufacturer, draw a bar chart about the distribution of name and price , and group by attribute name. | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT T1.Name, T1.Price FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name, T1.Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
5312,
3396,
254,
26330,
434,
6,
15248,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
23954,
6,
332,
5411,
345,
4920,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,
476,
332,
541... |
What is the title of the edition with more than 128 pages and a volume # of 5? | CREATE TABLE table_7364 (
"Vol. #" real,
"Title" text,
"Material collected" text,
"Pages" real,
"ISBN" text
) | SELECT "Title" FROM table_7364 WHERE "Pages" > '128' AND "Vol. #" = '5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4552,
4389,
41,
96,
22803,
5,
1713,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
329,
342,
12042,
4759,
121,
1499,
6,
96,
345,
2568,
121,
490,
6,
96,
4555,
19174,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
155,
109,
121,
21680,
953,
834,
4552,
4389,
549,
17444,
427,
96,
345,
2568,
121,
2490,
3,
31,
536,
2577,
31,
3430,
96,
22803,
5,
1713,
121,
3274,
3,
31,
755,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the product category description and unit of measurement of category 'Herbs'? | CREATE TABLE ref_product_categories (
product_category_code text,
product_category_description text,
unit_of_measure text
)
CREATE TABLE ref_characteristic_types (
characteristic_type_code text,
characteristic_type_description text
)
CREATE TABLE products (
product_id number,
color_code text,
product_category_code text,
product_name text,
typical_buying_price text,
typical_selling_price text,
product_description text,
other_product_details text
)
CREATE TABLE product_characteristics (
product_id number,
characteristic_id number,
product_characteristic_value text
)
CREATE TABLE ref_colors (
color_code text,
color_description text
)
CREATE TABLE characteristics (
characteristic_id number,
characteristic_type_code text,
characteristic_data_type text,
characteristic_name text,
other_characteristic_details text
) | SELECT product_category_description, unit_of_measure FROM ref_product_categories WHERE product_category_code = "Herbs" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6273,
834,
15892,
834,
8367,
839,
2593,
41,
556,
834,
8367,
839,
651,
834,
4978,
1499,
6,
556,
834,
8367,
839,
651,
834,
221,
11830,
1499,
6,
1745,
834,
858,
834,
31038,
1499,
3,
61,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
556,
834,
8367,
839,
651,
834,
221,
11830,
6,
1745,
834,
858,
834,
31038,
21680,
6273,
834,
15892,
834,
8367,
839,
2593,
549,
17444,
427,
556,
834,
8367,
839,
651,
834,
4978,
3274,
96,
12636,
115,
7,
121,
1,
-100,
... |
What was the value in 2009 when 2005 was A for the Australian Open? | CREATE TABLE table_71530 (
"Tournament" text,
"2001" text,
"2002" text,
"2003" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
) | SELECT "2009" FROM table_71530 WHERE "2005" = 'a' AND "Tournament" = 'australian open' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4450,
26918,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
23658,
121,
1499,
6,
96,
24898,
121,
1499,
6,
96,
23948,
121,
1499,
6,
96,
22594,
121,
1499,
6,
96,
21196,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
16660,
121,
21680,
953,
834,
4450,
26918,
549,
17444,
427,
96,
22594,
121,
3274,
3,
31,
9,
31,
3430,
96,
382,
1211,
20205,
17,
121,
3274,
3,
31,
402,
3109,
9928,
539,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which L1 Cache has an FSB speed of 800mhz and a clock speed of 1.2ghz? | CREATE TABLE table_name_35 (l1_cache VARCHAR, fsb_speed VARCHAR, clock_speed VARCHAR) | SELECT l1_cache FROM table_name_35 WHERE fsb_speed = "800mhz" AND clock_speed = "1.2ghz" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
40,
536,
834,
75,
4933,
584,
4280,
28027,
6,
3,
89,
7,
115,
834,
9993,
584,
4280,
28027,
6,
6702,
834,
9993,
584,
4280,
28027,
61,
3,
32102,
32103,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
40,
536,
834,
75,
4933,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
3,
89,
7,
115,
834,
9993,
3274,
96,
6192,
51,
107,
172,
121,
3430,
6702,
834,
9993,
3274,
96,
10917,
122,
107,
172,
121,
1,
-100,
-10... |
which is the first best score on the chart | CREATE TABLE table_204_711 (
id number,
"dance" text,
"best dancer(s)" text,
"best score" number,
"worst dancer(s)" text,
"worst score" number
) | SELECT "best score" FROM table_204_711 WHERE id = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4450,
536,
41,
3,
23,
26,
381,
6,
96,
26,
663,
121,
1499,
6,
96,
9606,
2595,
52,
599,
7,
61,
121,
1499,
6,
96,
9606,
2604,
121,
381,
6,
96,
210,
127,
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,
96,
9606,
2604,
121,
21680,
953,
834,
26363,
834,
4450,
536,
549,
17444,
427,
3,
23,
26,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the Lost average that has a Drawn less than 0? | CREATE TABLE table_35016 (
"Games" real,
"Drawn" real,
"Lost" real,
"Points difference" text,
"Points" real
) | SELECT AVG("Lost") FROM table_35016 WHERE "Drawn" < '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
16975,
2938,
41,
96,
23055,
7,
121,
490,
6,
96,
308,
10936,
29,
121,
490,
6,
96,
434,
3481,
121,
490,
6,
96,
22512,
7,
1750,
121,
1499,
6,
96,
22512,
7,
121,
490,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
434,
3481,
8512,
21680,
953,
834,
16975,
2938,
549,
17444,
427,
96,
308,
10936,
29,
121,
3,
2,
3,
31,
632,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many times is the co-singer suresh wadkar and the film name is tera dukh mera dukh? | CREATE TABLE table_11827596_2 (lyricist VARCHAR, co_singer VARCHAR, film_name VARCHAR) | SELECT COUNT(lyricist) FROM table_11827596_2 WHERE co_singer = "Suresh Wadkar" AND film_name = "Tera Dukh Mera Dukh" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20056,
25988,
4314,
834,
357,
41,
120,
2234,
343,
584,
4280,
28027,
6,
576,
834,
7,
9963,
584,
4280,
28027,
6,
814,
834,
4350,
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,
1... | [
3,
23143,
14196,
2847,
17161,
599,
120,
2234,
343,
61,
21680,
953,
834,
20056,
25988,
4314,
834,
357,
549,
17444,
427,
576,
834,
7,
9963,
3274,
96,
134,
7665,
107,
3129,
26,
4031,
121,
3430,
814,
834,
4350,
3274,
96,
382,
1498,
970,... |
Date of 10 july 2009 includes what athlete? | CREATE TABLE table_name_92 (
athlete VARCHAR,
date VARCHAR
) | SELECT athlete FROM table_name_92 WHERE date = "10 july 2009" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
17893,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
7678,
13,
335,
3,
2047,
120,
2464,
963,
125,
17893,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
17893,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
833,
3274,
96,
1714,
3,
2047,
120,
2464,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who is the director and what number is the episode for episode #1 of Are You Afraid of the Dark season 3? | CREATE TABLE table_10470082_4 (
director VARCHAR,
_number VARCHAR
) | SELECT COUNT(director) FROM table_10470082_4 WHERE _number = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15442,
9295,
4613,
834,
591,
41,
2090,
584,
4280,
28027,
6,
3,
834,
5525,
1152,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
2090,
11,
125,
381,
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,
2847,
17161,
599,
25982,
61,
21680,
953,
834,
15442,
9295,
4613,
834,
591,
549,
17444,
427,
3,
834,
5525,
1152,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which team scored 9.8 (62) points against Fitzroy? | CREATE TABLE table_10164 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Away team" FROM table_10164 WHERE "Away team score" = '9.8 (62)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1714,
26987,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
1343,
372,
121,
21680,
953,
834,
1714,
26987,
549,
17444,
427,
96,
188,
1343,
372,
2604,
121,
3274,
3,
31,
8797,
927,
11372,
7318,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many Points have a Record of 25 10 11, and a January larger than 28? | CREATE TABLE table_name_21 (
points VARCHAR,
record VARCHAR,
january VARCHAR
) | SELECT COUNT(points) FROM table_name_21 WHERE record = "25–10–11" AND january > 28 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
979,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
6,
3,
7066,
76,
1208,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
4564,
7,
43,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
1368,
3274,
96,
1828,
104,
1714,
104,
2596,
121,
3430,
3,
7066,
76,
1208,
2490,
2059,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Adelaide's Melbourne, Sydney, and Gold Coast were all no? | CREATE TABLE table_68333 (
"Sydney" text,
"Melbourne" text,
"Perth" text,
"Adelaide" text,
"Gold Coast" text,
"Auckland" text
) | SELECT "Adelaide" FROM table_68333 WHERE "Melbourne" = 'no' AND "Sydney" = 'no' AND "Gold Coast" = 'no' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
23360,
41,
96,
134,
63,
26,
3186,
121,
1499,
6,
96,
329,
15,
40,
26255,
121,
1499,
6,
96,
12988,
189,
121,
1499,
6,
96,
188,
221,
40,
5385,
121,
1499,
6,
96,
2357... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
221,
40,
5385,
121,
21680,
953,
834,
3651,
23360,
549,
17444,
427,
96,
329,
15,
40,
26255,
121,
3274,
3,
31,
29,
32,
31,
3430,
96,
134,
63,
26,
3186,
121,
3274,
3,
31,
29,
32,
31,
3430,
96,
23576,
545... |
Which Total has a Gold smaller than 0? | CREATE TABLE table_name_29 (
total INTEGER,
gold INTEGER
) | SELECT SUM(total) FROM table_name_29 WHERE gold < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
792,
3,
21342,
17966,
6,
2045,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
9273,
65,
3,
9,
2540,
2755,
145,
3,
632,
58,
1,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
2045,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is the total number of seats 2006 that has parties and voter turnout in % and whose %2006 is greater than 51.5? | CREATE TABLE table_name_33 (seats_2006 INTEGER, parties_and_voter_communities VARCHAR, _percentage_2006 VARCHAR) | SELECT SUM(seats_2006) FROM table_name_33 WHERE parties_and_voter_communities = "voter turnout in %" AND _percentage_2006 > 51.5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
7,
1544,
7,
834,
21196,
3,
21342,
17966,
6,
2251,
834,
232,
834,
1621,
449,
834,
18782,
2197,
584,
4280,
28027,
6,
3,
834,
883,
3728,
545,
834,
21196,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7,
1544,
7,
834,
21196,
61,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
2251,
834,
232,
834,
1621,
449,
834,
18782,
2197,
3274,
96,
1621,
449,
919,
670,
16,
3,
1454,
121,
3430,
3,
834,
883,
... |
what is the insurance for patient id 990? | 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
)
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 lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
) | SELECT demographic.insurance FROM demographic WHERE demographic.subject_id = "990" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
29441,
21680,
14798,
549,
17444,
427,
14798,
5,
7304,
11827,
834,
23,
26,
3274,
96,
26901,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many economy stats for the player with 2/19 BBI? | CREATE TABLE table_28846752_13 (
economy VARCHAR,
bbi VARCHAR
) | SELECT COUNT(economy) FROM table_28846752_13 WHERE bbi = "2/19" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
4608,
3708,
5373,
834,
2368,
41,
2717,
584,
4280,
28027,
6,
3,
115,
115,
23,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
2717,
3089,
7,
21,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
15,
12036,
63,
61,
21680,
953,
834,
2577,
4608,
3708,
5373,
834,
2368,
549,
17444,
427,
3,
115,
115,
23,
3274,
96,
357,
13523,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the score of the tournament with younes el aynaoui as the opponent? | CREATE TABLE table_name_37 (
score VARCHAR,
opponent VARCHAR
) | SELECT score FROM table_name_37 WHERE opponent = "younes el aynaoui" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
2604,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2604,
13,
8,
5892,
28,
25,
1496,
3,
15,
40,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
15264,
3274,
96,
4188,
1496,
3,
15,
40,
3,
9,
63,
29,
9,
1063,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many sections does course ACCT-211 has? | CREATE TABLE CLASS (
class_section VARCHAR,
crs_code VARCHAR
) | SELECT COUNT(DISTINCT class_section) FROM CLASS WHERE crs_code = 'ACCT-211' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
31598,
41,
853,
834,
14309,
584,
4280,
28027,
6,
5764,
7,
834,
4978,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
6795,
405,
503,
5686,
6227,
18,
27278,
65,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
853,
834,
14309,
61,
21680,
3,
31598,
549,
17444,
427,
5764,
7,
834,
4978,
3274,
3,
31,
14775,
382,
18,
27278,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
In the game where the Hornets were the home team and Clippers the visiting team, what is the score? | CREATE TABLE table_56666 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Attendance" real,
"Record" text
) | SELECT "Score" FROM table_56666 WHERE "Home" = 'hornets' AND "Visitor" = 'clippers' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3539,
3539,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
2796,
9,
26,
53,
2604,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
755,
3539,
3539,
549,
17444,
427,
96,
19040,
121,
3274,
3,
31,
6293,
15,
17,
7,
31,
3430,
96,
553,
159,
155,
127,
121,
3274,
3,
31,
16744,
4660,
31,
1,
-100,
-100,
-100,
-100... |
Find dates and attendance for exhibitions that happened in 2004, show me the comparison of attendance by date, list names in descending order. | 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
)
CREATE TABLE exhibition (
Exhibition_ID int,
Year int,
Theme text,
Artist_ID int,
Ticket_Price real
) | SELECT T1.Date, T1.Attendance FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.Exhibition_ID = T2.Exhibition_ID WHERE T2.Year = 2004 ORDER BY Date DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2377,
41,
9152,
834,
4309,
16,
17,
6,
5570,
1499,
6,
6993,
1499,
6,
2929,
834,
683,
32,
77,
16,
17,
6,
7526,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
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,
332,
5411,
308,
342,
6,
332,
5411,
188,
17,
324,
26,
663,
21680,
4473,
834,
60,
7621,
6157,
332,
536,
3,
15355,
3162,
4473,
6157,
332,
357,
9191,
332,
5411,
5420,
13506,
1575,
834,
4309,
3274,
332,
4416,
5420,
13506... |
the number of patients who have received a treatment of hyperkalemia - intravenous calcium procedure during this year. | CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime 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 allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
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 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 treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
) | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.patientunitstayid IN (SELECT treatment.patientunitstayid FROM treatment WHERE treatment.treatmentname = 'treatment of hyperkalemia - intravenous calcium' AND DATETIME(treatment.treatmenttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year')) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2179,
9339,
41,
2179,
521,
9824,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
1543,
3585,
1499,
6,
9329,
1499,
6,
1543,
4914,
29,
715,
97,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
1868,
5,
202,
1495,
12417,
61,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1058,
5,
10061,
15129,
21545,
23,
26,
21680,
1058,
549,
... |
What is the largest crowd when north melbourne is the home side? | CREATE TABLE table_33505 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT MAX("Crowd") FROM table_33505 WHERE "Home team" = 'north melbourne' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2469,
3076,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
254,
3623,
26,
8512,
21680,
953,
834,
519,
2469,
3076,
549,
17444,
427,
96,
19040,
372,
121,
3274,
3,
31,
29,
127,
189,
3,
2341,
26255,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what's the record where result is l 24-10 | CREATE TABLE table_229 (
"Week" text,
"Date" text,
"Opponent" text,
"Result" text,
"Kickoff [a ]" text,
"Game site" text,
"TV" text,
"Attendance" text,
"Record" text
) | SELECT "Record" FROM table_229 WHERE "Result" = 'L 24-10' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3166,
41,
96,
518,
10266,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
439,
3142,
1647,
784,
9,
3,
908,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
7621,
121,
21680,
953,
834,
357,
3166,
549,
17444,
427,
96,
20119,
121,
3274,
3,
31,
434,
997,
4536,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What type of 3D game did Valve Corporation release? | CREATE TABLE table_name_4 (genre VARCHAR, type VARCHAR, developer_s_ VARCHAR) | SELECT genre FROM table_name_4 WHERE type = "3d" AND developer_s_ = "valve corporation" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
729,
60,
584,
4280,
28027,
6,
686,
584,
4280,
28027,
6,
7523,
834,
7,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
686,
13,
220,
308,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5349,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
686,
3274,
96,
519,
26,
121,
3430,
7523,
834,
7,
834,
3274,
96,
2165,
162,
11861,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What school did Alexander Korobolin go to? | CREATE TABLE table_name_27 (college_junior_club_team__league_ VARCHAR, player VARCHAR) | SELECT college_junior_club_team__league_ FROM table_name_27 WHERE player = "alexander korobolin" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
3297,
7883,
834,
6959,
23,
127,
834,
13442,
834,
11650,
834,
834,
29512,
834,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1900,
834,
6959,
23,
127,
834,
13442,
834,
11650,
834,
834,
29512,
834,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
1959,
3274,
96,
138,
994,
11849,
3,
5543,
32,
4243,
77,
121,
1,
-100,
-100,
-100,
-100,
-100... |
What position does the player from arkansas play? | CREATE TABLE table_name_57 (
pos VARCHAR,
school_country VARCHAR
) | SELECT pos FROM table_name_57 WHERE school_country = "arkansas" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
3,
2748,
584,
4280,
28027,
6,
496,
834,
17529,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1102,
405,
8,
1959,
45,
3,
6604,
3247,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
2748,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
496,
834,
17529,
3274,
96,
6604,
3247,
9,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the 1st leg of bp. honvéd team #2? | CREATE TABLE table_name_62 (team__number2 VARCHAR) | SELECT 1 AS st_leg FROM table_name_62 WHERE team__number2 = "bp. honvéd" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
11650,
834,
834,
5525,
1152,
357,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
209,
7,
17,
4553,
13,
3,
115,
102,
5,
3534,
29,
88... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
209,
6157,
3,
7,
17,
834,
5772,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
372,
834,
834,
5525,
1152,
357,
3274,
96,
115,
102,
5,
3534,
29,
8825,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which authority has a rocket launch called rehbar-5? | CREATE TABLE table_363 (
"Rocket launch" text,
"Launch Date" text,
"Mission" text,
"Institutional authority" text,
"Launch Site" text,
"Outcomes" text,
"Derivatives" text
) | SELECT COUNT("Derivatives") FROM table_363 WHERE "Rocket launch" = 'Rehbar-5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3420,
519,
41,
96,
23349,
15,
17,
3289,
121,
1499,
6,
96,
3612,
202,
524,
7678,
121,
1499,
6,
96,
329,
159,
1938,
121,
1499,
6,
96,
9496,
6318,
5015,
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,
2847,
17161,
599,
121,
2962,
5927,
1528,
7,
8512,
21680,
953,
834,
3420,
519,
549,
17444,
427,
96,
23349,
15,
17,
3289,
121,
3274,
3,
31,
1649,
107,
1047,
4525,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the quantity of the fleet information for DWWR 50 and 51? | CREATE TABLE table_name_4 (
quantity_made VARCHAR,
fleet_numbers VARCHAR
) | SELECT quantity_made FROM table_name_4 WHERE fleet_numbers = "dwwr 50 and 51" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
8708,
834,
4725,
584,
4280,
28027,
6,
9111,
834,
5525,
1152,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
8708,
13,
8,
9111,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
8708,
834,
4725,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
9111,
834,
5525,
1152,
7,
3274,
96,
26,
210,
210,
52,
943,
11,
11696,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What name is associated with a rank greater than 69, an altitude (meters) smaller than 2154, and a range of Sivorgfjella? | CREATE TABLE table_63742 (
"Rank" real,
"Name" text,
"Altitude (meters)" real,
"Range" text,
"Parent Range" text
) | SELECT "Name" FROM table_63742 WHERE "Range" = 'sivorgfjella' AND "Rank" > '69' AND "Altitude (meters)" < '2154' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
4581,
357,
41,
96,
22557,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
188,
40,
6592,
41,
4401,
7,
61,
121,
490,
6,
96,
448,
3280,
121,
1499,
6,
96,
13212,
295,
1097... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23954,
121,
21680,
953,
834,
3891,
4581,
357,
549,
17444,
427,
96,
448,
3280,
121,
3274,
3,
31,
7,
23,
1967,
122,
89,
354,
5303,
31,
3430,
96,
22557,
121,
2490,
3,
31,
3951,
31,
3430,
96,
188,
40,
6592,
41,
... |
What city has trojans as the team, and taylor as the school? | CREATE TABLE table_36466 (
"School" text,
"Team" text,
"City" text,
"State" text,
"Conference" text
) | SELECT "City" FROM table_36466 WHERE "Team" = 'trojans' AND "School" = 'taylor' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3420,
591,
3539,
41,
96,
29364,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
254,
485,
121,
1499,
6,
96,
134,
4748,
121,
1499,
6,
96,
4302,
11788,
121,
1499,
3,
61,
3,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
254,
485,
121,
21680,
953,
834,
3420,
591,
3539,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
17,
52,
32,
7066,
7,
31,
3430,
96,
29364,
121,
3274,
3,
31,
17,
9,
63,
322,
31,
1,
-100,
-100,
-100,
-100,
-10... |
What is the tournament location when Vicky Hurst in the champion? | CREATE TABLE table_12243817_1 (
tournament_location VARCHAR,
champion VARCHAR
) | SELECT tournament_location FROM table_12243817_1 WHERE champion = "Vicky Hurst" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
2266,
3747,
2517,
834,
536,
41,
5892,
834,
14836,
584,
4280,
28027,
6,
6336,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
5892,
1128,
116,
12060,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5892,
834,
14836,
21680,
953,
834,
2122,
2266,
3747,
2517,
834,
536,
549,
17444,
427,
6336,
3274,
96,
553,
3142,
63,
13268,
7,
17,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the starter for position being left end | CREATE TABLE table_14342480_6 (
starter VARCHAR,
position VARCHAR
) | SELECT starter FROM table_14342480_6 WHERE position = "Left end" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25133,
4165,
20579,
834,
948,
41,
11933,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
11933,
21,
1102,
271,
646,
414,
1,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
11933,
21680,
953,
834,
25133,
4165,
20579,
834,
948,
549,
17444,
427,
1102,
3274,
96,
2796,
89,
17,
414,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What's the highest lowest number of capacity that ibrox stadium has when the average is larger than 49,143? | CREATE TABLE table_12067 (
"Team" text,
"Stadium" text,
"Capacity" real,
"Lowest" real,
"Highest" real,
"Average" real
) | SELECT MAX("Lowest") FROM table_12067 WHERE "Stadium" = 'ibrox stadium' AND "Average" > '49,143' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15518,
3708,
41,
96,
18699,
121,
1499,
6,
96,
134,
17,
9,
12925,
121,
1499,
6,
96,
19566,
9,
6726,
121,
490,
6,
96,
434,
32,
12425,
121,
490,
6,
96,
21417,
222,
121,
49... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
434,
32,
12425,
8512,
21680,
953,
834,
15518,
3708,
549,
17444,
427,
96,
134,
17,
9,
12925,
121,
3274,
3,
31,
23,
5702,
226,
14939,
31,
3430,
96,
188,
624,
545,
121,
2490,
3,
31,
3647,
6,
2513... |
What was Mu's title? | CREATE TABLE table_45178 (
"State" text,
"Type" text,
"Name" text,
"Title" text,
"Royal house" text,
"From" text
) | SELECT "Title" FROM table_45178 WHERE "Name" = 'mu' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
27640,
41,
96,
134,
4748,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
448,
32,
63,
138,
629,
121,
1499,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
155,
109,
121,
21680,
953,
834,
2128,
27640,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
51,
76,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Bats have a First of josh, and Throws of r, and a Surname of cakebread? | CREATE TABLE table_name_90 (
bats VARCHAR,
surname VARCHAR,
first VARCHAR,
throws VARCHAR
) | SELECT bats FROM table_name_90 WHERE first = "josh" AND throws = "r" AND surname = "cakebread" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
3795,
7,
584,
4280,
28027,
6,
244,
4350,
584,
4280,
28027,
6,
166,
584,
4280,
28027,
6,
3793,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3795,
7,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
166,
3274,
96,
1927,
7,
107,
121,
3430,
3793,
7,
3274,
96,
52,
121,
3430,
244,
4350,
3274,
96,
13192,
20517,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What location had a year of 1971 and a city of Tokyo? | CREATE TABLE table_name_88 (
location VARCHAR,
year VARCHAR,
city VARCHAR
) | SELECT location FROM table_name_88 WHERE year = 1971 AND city = "tokyo" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
1128,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
690,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1128,
141,
3,
9,
215,
13,
17961,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
215,
3274,
17961,
3430,
690,
3274,
96,
235,
3781,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who is the winning team when the year is more than 2003, the score is 19 14 and the venue is harding park golf club? | CREATE TABLE table_name_31 (
winning_team VARCHAR,
venue VARCHAR,
year VARCHAR,
score VARCHAR
) | SELECT winning_team FROM table_name_31 WHERE year > 2003 AND score = "19½–14½" AND venue = "harding park golf club" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
3447,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3447,
834,
11650,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
215,
2490,
3888,
3430,
2604,
3274,
96,
2294,
536,
2,
357,
104,
26059,
2,
357,
121,
3430,
5669,
3274,
96,
5651,
53,
2447,
4319,
1886,
121,
1,
-100,... |
Who is the studio host for the year 2006-07? | CREATE TABLE table_14902507_2 (studio_host VARCHAR, year VARCHAR) | SELECT studio_host FROM table_14902507_2 WHERE year = "2006-07" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
2394,
1828,
4560,
834,
357,
41,
22991,
834,
12675,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
3100,
2290,
21,
8,
215,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3100,
834,
12675,
21680,
953,
834,
2534,
2394,
1828,
4560,
834,
357,
549,
17444,
427,
215,
3274,
96,
21196,
18,
4560,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Where did Carlton play? | CREATE TABLE table_51895 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Venue" FROM table_51895 WHERE "Away team" = 'carlton' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2606,
3301,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
553,
35,
76,
15,
121,
21680,
953,
834,
755,
2606,
3301,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
1720,
7377,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
whats the first ward id of patient 006-77873 in this year? | 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 microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime 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 intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
) | SELECT patient.wardid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-77873') AND DATETIME(patient.unitadmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') ORDER BY patient.unitadmittime LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1868,
41,
775,
12417,
1499,
6,
1868,
15878,
3734,
21545,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
7285,
1499,
6,
1246,
1499,
6,
11655,
485,
1499,
6,
2833,
23,
26,
381,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1868,
5,
2239,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
15878,
3734,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15878,
3734,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
202,
1495,
... |
give me the top four of the most commonly prescribed drugs during the last year? | CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime 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 microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime 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 allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
) | SELECT t1.drugname FROM (SELECT medication.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM medication WHERE DATETIME(medication.drugstarttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') GROUP BY medication.drugname) AS t1 WHERE t1.c1 <= 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7757,
41,
7757,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2672,
4350,
1499,
6,
17166,
1499,
6,
2981,
20466,
29,
1499,
6,
2672,
10208,
715,
97,
6,
4845,
2916,
715,
97,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17,
5411,
26,
13534,
4350,
21680,
41,
23143,
14196,
7757,
5,
26,
13534,
4350,
6,
3,
22284,
4132,
834,
16375,
439,
9960,
3,
23288,
41,
2990,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
61,
6157,
3,
... |
what's the engine with turbo being yes (mitsubishi td04-15g ) | CREATE TABLE table_11167610_1 (
engine VARCHAR,
turbo VARCHAR
) | SELECT engine FROM table_11167610_1 WHERE turbo = "Yes (Mitsubishi TD04-15g )" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15866,
3708,
27097,
834,
536,
41,
1948,
584,
4280,
28027,
6,
20353,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
31,
7,
8,
1948,
28,
20353,
271,
4273,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1948,
21680,
953,
834,
15866,
3708,
27097,
834,
536,
549,
17444,
427,
20353,
3274,
96,
19739,
41,
19999,
7,
8371,
5605,
3,
10494,
6348,
10106,
122,
3,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many times did Public Policy Polling under Republican: Jack Hoogendyk? | CREATE TABLE table_16751596_6 (republican VARCHAR, poll_source VARCHAR) | SELECT COUNT(republican) AS :_jack_hoogendyk FROM table_16751596_6 WHERE poll_source = "Public Policy Polling" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
3072,
1808,
4314,
834,
948,
41,
60,
15727,
152,
584,
4280,
28027,
6,
5492,
834,
7928,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
648,
410,
2575,
758... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
60,
15727,
152,
61,
6157,
3,
10,
834,
9325,
834,
107,
32,
5255,
26,
63,
157,
21680,
953,
834,
2938,
3072,
1808,
4314,
834,
948,
549,
17444,
427,
5492,
834,
7928,
3274,
96,
30931,
7587,
14457,
53,
... |
What is the result of the match on January 26, 2006? | CREATE TABLE table_name_44 (result VARCHAR, date VARCHAR) | SELECT result FROM table_name_44 WHERE date = "january 26, 2006" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
741,
13,
8,
1588,
30,
1762,
13597,
3581,
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... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
833,
3274,
96,
7066,
76,
1208,
13597,
3581,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the heightfor city of license of malone, ny | CREATE TABLE table_71967 (
"Call sign" text,
"Frequency" text,
"City of license" text,
"Facility ID" real,
"ERP / Power W" real,
"Height m ( ft )" text,
"Class" text
) | SELECT "Height m ( ft )" FROM table_71967 WHERE "City of license" = 'malone, ny' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2294,
3708,
41,
96,
254,
1748,
1320,
121,
1499,
6,
96,
371,
60,
835,
11298,
121,
1499,
6,
96,
254,
485,
13,
3344,
121,
1499,
6,
96,
371,
9,
75,
14277,
4699,
121,
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,
96,
3845,
2632,
3,
51,
41,
3,
89,
17,
3,
61,
121,
21680,
953,
834,
940,
2294,
3708,
549,
17444,
427,
96,
254,
485,
13,
3344,
121,
3274,
3,
31,
1982,
782,
6,
3,
29,
63,
31,
1,
-100,
-100,
-100,
-100,
-100,
-1... |
give me the number of patients born before 1850 who have drug code chlo250. | 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
)
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
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.dob_year < "1850" AND prescriptions.formulary_drug_cd = "CHLO250" | [
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 the pick number for the College of Central Missouri State? | CREATE TABLE table_name_45 (pick__number VARCHAR, college VARCHAR) | SELECT pick__number FROM table_name_45 WHERE college = "central missouri state" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
17967,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
1900,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1432,
381,
21,
8,
1888,
13,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1432,
834,
834,
5525,
1152,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
1900,
3274,
96,
20071,
3041,
32,
459,
538,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what is the least total in gila | CREATE TABLE table_19681738_1 (
total INTEGER,
county VARCHAR
) | SELECT MIN(total) FROM table_19681738_1 WHERE county = "Gila" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
3651,
2517,
3747,
834,
536,
41,
792,
3,
21342,
17966,
6,
5435,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
709,
792,
16,
3,
122,
173,
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,
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,
235,
1947,
61,
21680,
953,
834,
2294,
3651,
2517,
3747,
834,
536,
549,
17444,
427,
5435,
3274,
96,
517,
173,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
If the equation is 6 9 + 6 9 + 6, what is the 3rd throw? | CREATE TABLE table_21440 (
"1st throw" real,
"2nd throw" real,
"3rd throw" real,
"Equation" text,
"Result" real
) | SELECT MAX("3rd throw") FROM table_21440 WHERE "Equation" = '6 × 9² + 6 × 9 + 6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
22335,
41,
96,
536,
7,
17,
3793,
121,
490,
6,
96,
357,
727,
3793,
121,
490,
6,
96,
519,
52,
26,
3793,
121,
490,
6,
96,
427,
2436,
257,
121,
1499,
6,
96,
20119,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
519,
52,
26,
3793,
8512,
21680,
953,
834,
2658,
22335,
549,
17444,
427,
96,
427,
2436,
257,
121,
3274,
3,
31,
948,
3,
2,
3,
4508,
1768,
431,
3,
2,
668,
1768,
431,
31,
1,
-100,
-100,
-100,
-1... |
What TV network is the series aistr em aired on? | CREATE TABLE table_name_21 (
tv_network_s_ VARCHAR,
alternate_title_translation VARCHAR
) | SELECT tv_network_s_ FROM table_name_21 WHERE alternate_title_translation = "aistrų žemė" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
3,
17,
208,
834,
1582,
1981,
834,
7,
834,
584,
4280,
28027,
6,
13902,
834,
21869,
834,
7031,
6105,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
3,
17,
208,
834,
1582,
1981,
834,
7,
834,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
13902,
834,
21869,
834,
7031,
6105,
3274,
96,
9,
343,
52,
2,
3,
2,
15,
51,
2,
121,
1,
-100,
-100,
-100,
-100,
-100,
... |
Specify the total number of male patients with item id 51148 | 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
)
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 INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.gender = "M" AND lab.itemid = "51148" | [
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,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the type when the source is Realmadrid, and the name is Soldado? | CREATE TABLE table_name_6 (type VARCHAR, source VARCHAR, name VARCHAR) | SELECT type FROM table_name_6 WHERE source = "realmadrid" AND name = "soldado" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
6137,
584,
4280,
28027,
6,
1391,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
686,
116,
8,
1391,
19,
2977,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
686,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
1391,
3274,
96,
6644,
11374,
4055,
121,
3430,
564,
3274,
96,
4099,
14677,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What route has termini of fm 1472 sh 255? | CREATE TABLE table_name_49 (route_name VARCHAR, termini VARCHAR) | SELECT route_name FROM table_name_49 WHERE termini = "fm 1472 sh 255" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
20300,
834,
4350,
584,
4280,
28027,
6,
12089,
23,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
2981,
65,
12089,
23,
13,
3,
89,
51,
968,
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,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2981,
834,
4350,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
12089,
23,
3274,
96,
89,
51,
968,
5865,
6660,
944,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What's the 1881 with 1961 in 1851? | CREATE TABLE table_name_54 (Id VARCHAR) | SELECT 1881 FROM table_name_54 WHERE 1851 = "1961" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
507,
4959,
28,
21018,
16,
507,
5553,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
507,
4959,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
507,
5553,
3274,
96,
2294,
4241,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which type has a color of Dark Blue? | CREATE TABLE table_63350 (
"House" text,
"Abbr." text,
"Type" text,
"Colour" text,
"Boarding/Day" text
) | SELECT "Type" FROM table_63350 WHERE "Colour" = 'dark blue' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
16975,
41,
96,
4489,
1074,
121,
1499,
6,
96,
8952,
115,
52,
535,
1499,
6,
96,
25160,
121,
1499,
6,
96,
9939,
1211,
121,
1499,
6,
96,
279,
32,
986,
53,
87,
16803,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
25160,
121,
21680,
953,
834,
3891,
16975,
549,
17444,
427,
96,
9939,
1211,
121,
3274,
3,
31,
26,
6604,
1692,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the venue for the Status of Five Nations and 0 againts? | CREATE TABLE table_name_38 (venue VARCHAR, status VARCHAR, against VARCHAR) | SELECT venue FROM table_name_38 WHERE status = "five nations" AND against = 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
15098,
584,
4280,
28027,
6,
2637,
584,
4280,
28027,
6,
581,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
5669,
21,
8,
19318,
13,
95... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5669,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
2637,
3274,
96,
16443,
9352,
121,
3430,
581,
3274,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Placing of 3 had what match w-l? | CREATE TABLE table_name_20 (matches_w_l VARCHAR, placing VARCHAR) | SELECT matches_w_l FROM table_name_20 WHERE placing = 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1755,
41,
19515,
15,
7,
834,
210,
834,
40,
584,
4280,
28027,
6,
9308,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
8422,
75,
53,
13,
220,
141,
125,
1588,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6407,
834,
210,
834,
40,
21680,
953,
834,
4350,
834,
1755,
549,
17444,
427,
9308,
3274,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
subject has a history of primary psychotic disorder ( e.g. schizophrenia, schizoaffective disorder, delusional disorder ) or bipolar disorder. | CREATE TABLE table_train_137 (
"id" int,
"hbv" bool,
"systolic_blood_pressure_sbp" int,
"hemoglobin_a1c_hba1c" float,
"substance_dependence" bool,
"hcv" bool,
"schizophrenia" bool,
"neutrophil_count" int,
"renal_disease" bool,
"creatinine_clearance_cl" float,
"platelet_count" float,
"diastolic_greater_than" int,
"pulse_rate" int,
"bipolar_disorder" bool,
"delusional_disorder" bool,
"serum_creatinine" float,
"alcohol_abuse" bool,
"primary_psychotic_disorder" bool,
"bilirubin" float,
"schizoaffective_disorder" bool,
"NOUSE" float
) | SELECT * FROM table_train_137 WHERE primary_psychotic_disorder = 1 OR schizophrenia = 1 OR schizoaffective_disorder = 1 OR delusional_disorder = 1 OR bipolar_disorder = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
24636,
41,
96,
23,
26,
121,
16,
17,
6,
96,
107,
115,
208,
121,
3,
12840,
40,
6,
96,
7,
63,
7,
235,
2176,
834,
27798,
834,
26866,
834,
7,
115,
102,
121,
16,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9719,
834,
24636,
549,
17444,
427,
2329,
834,
8118,
9798,
834,
26,
159,
9397,
3274,
209,
4674,
31926,
3274,
209,
4674,
3,
860,
14406,
4127,
25848,
15,
834,
26,
159,
9397,
3274,
209,
4674,
20,
... |
What is the award for the Star Awards earlier than 2005 and the result is won? | CREATE TABLE table_74904 (
"Year" real,
"Organisation" text,
"Award" text,
"Representative Work" text,
"Result" text
) | SELECT "Award" FROM table_74904 WHERE "Organisation" = 'star awards' AND "Year" < '2005' AND "Result" = 'won' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
2394,
591,
41,
96,
476,
2741,
121,
490,
6,
96,
7395,
2565,
2121,
121,
1499,
6,
96,
188,
2239,
121,
1499,
6,
96,
1649,
12640,
1528,
3118,
121,
1499,
6,
96,
20119,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
2239,
121,
21680,
953,
834,
4581,
2394,
591,
549,
17444,
427,
96,
7395,
2565,
2121,
121,
3274,
3,
31,
3624,
6120,
31,
3430,
96,
476,
2741,
121,
3,
2,
3,
31,
22594,
31,
3430,
96,
20119,
121,
3274,
3,
31,... |
For those employees who was hired before 2002-06-21, give me the comparison about the average of manager_id over the hire_date bin hire_date by time by a bar chart. | CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
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 countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
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 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)
) | SELECT HIRE_DATE, AVG(MANAGER_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10521,
41,
3396,
19846,
11810,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3396,
19846,
11810,
834,
567,
17683,
3,
4331,
4059,
599,
1458,
201,
283,
15610,
17966,
834,
4309,
7908,
1982,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
71,
17217,
599,
9312,
188,
17966,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
454,
14132,
834,
308,
6048,
3,
2,
3,
31,
24898,
18,
5176,
16539,
31,
1,
-100,
-100,
-100,
-100,
-100,
-... |
which coach was the first to coach before all others ? | CREATE TABLE table_204_95 (
id number,
"name" text,
"title" text,
"first year\nin this position" number,
"years at nebraska" text,
"alma mater" text
) | SELECT "name" FROM table_204_95 ORDER BY "first year\nin this position" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3301,
41,
3,
23,
26,
381,
6,
96,
4350,
121,
1499,
6,
96,
21869,
121,
1499,
6,
96,
14672,
215,
2,
29,
77,
48,
1102,
121,
381,
6,
96,
1201,
7,
44,
3,
29,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4350,
121,
21680,
953,
834,
26363,
834,
3301,
4674,
11300,
272,
476,
96,
14672,
215,
2,
29,
77,
48,
1102,
121,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the highest average when Fuml was 0? | CREATE TABLE table_41466 (
"Player" text,
"Att." real,
"Yards" real,
"Avg." real,
"Long" real,
"FumL" real
) | SELECT MAX("Avg.") FROM table_41466 WHERE "FumL" < '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2534,
3539,
41,
96,
15800,
49,
121,
1499,
6,
96,
188,
17,
17,
535,
490,
6,
96,
476,
986,
7,
121,
490,
6,
96,
188,
208,
122,
535,
490,
6,
96,
434,
2444,
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,
188,
208,
122,
5,
8512,
21680,
953,
834,
591,
2534,
3539,
549,
17444,
427,
96,
371,
440,
434,
121,
3,
2,
3,
31,
632,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which tournament was played on September 25, 1995? | CREATE TABLE table_name_46 (
tournament VARCHAR,
date VARCHAR
) | SELECT tournament FROM table_name_46 WHERE date = "september 25, 1995" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
5892,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
5892,
47,
1944,
30,
1600,
14105,
7273,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5892,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
833,
3274,
96,
7,
6707,
18247,
14105,
7273,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find the schools that were either founded after 1850 or public. | CREATE TABLE university (
school VARCHAR,
founded VARCHAR,
affiliation VARCHAR
) | SELECT school FROM university WHERE founded > 1850 OR affiliation = 'Public' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3819,
41,
496,
584,
4280,
28027,
6,
5710,
584,
4280,
28027,
6,
24405,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2588,
8,
2061,
24,
130,
893,
5710,
227,
507,
1752,
42,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
496,
21680,
3819,
549,
17444,
427,
5710,
2490,
507,
1752,
4674,
24405,
3274,
3,
31,
30931,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the date of enrollment of the course named 'Spanish', and count them by a bar chart, and I want to show by the Y-axis from low to high. | CREATE TABLE Courses (
course_id INTEGER,
author_id INTEGER,
subject_id INTEGER,
course_name VARCHAR(120),
course_description VARCHAR(255)
)
CREATE TABLE Course_Authors_and_Tutors (
author_id INTEGER,
author_tutor_ATB VARCHAR(3),
login_name VARCHAR(40),
password VARCHAR(40),
personal_name VARCHAR(80),
middle_name VARCHAR(80),
family_name VARCHAR(80),
gender_mf VARCHAR(1),
address_line_1 VARCHAR(80)
)
CREATE TABLE Student_Tests_Taken (
registration_id INTEGER,
date_test_taken DATETIME,
test_result VARCHAR(255)
)
CREATE TABLE Students (
student_id INTEGER,
date_of_registration DATETIME,
date_of_latest_logon DATETIME,
login_name VARCHAR(40),
password VARCHAR(10),
personal_name VARCHAR(40),
middle_name VARCHAR(40),
family_name VARCHAR(40)
)
CREATE TABLE Student_Course_Enrolment (
registration_id INTEGER,
student_id INTEGER,
course_id INTEGER,
date_of_enrolment DATETIME,
date_of_completion DATETIME
)
CREATE TABLE Subjects (
subject_id INTEGER,
subject_name VARCHAR(120)
) | SELECT date_of_enrolment, COUNT(date_of_enrolment) FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = "Spanish" ORDER BY COUNT(date_of_enrolment) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8670,
7,
41,
503,
834,
23,
26,
3,
21342,
17966,
6,
2291,
834,
23,
26,
3,
21342,
17966,
6,
1426,
834,
23,
26,
3,
21342,
17966,
6,
503,
834,
4350,
584,
4280,
28027,
599,
15518,
201,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
833,
834,
858,
834,
35,
3491,
297,
6,
2847,
17161,
599,
5522,
834,
858,
834,
35,
3491,
297,
61,
21680,
8670,
7,
6157,
332,
536,
3,
15355,
3162,
6341,
834,
3881,
3589,
15,
834,
8532,
3491,
297,
6157,
332,
357,
9191... |
When did venue A have an attendance larger than 48,053, and a result of 1 0? | CREATE TABLE table_77196 (
"Date" text,
"Opponent" text,
"Venue" text,
"Result" text,
"Attendance" real
) | SELECT "Date" FROM table_77196 WHERE "Attendance" > '48,053' AND "Venue" = 'a' AND "Result" = '1–0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
26937,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4013,
26937,
549,
17444,
427,
96,
188,
17,
324,
26,
663,
121,
2490,
3,
31,
3707,
6,
3076,
519,
31,
3430,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
9,
31,
3430,
96,
20119,
121,
... |
What is the average goals against average for those playing more than 78 games? | CREATE TABLE table_name_33 (goals_against_average INTEGER, games_played INTEGER) | SELECT AVG(goals_against_average) FROM table_name_33 WHERE games_played > 78 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
839,
5405,
834,
9,
16720,
7,
17,
834,
28951,
3,
21342,
17966,
6,
1031,
834,
4895,
15,
26,
3,
21342,
17966,
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,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
839,
5405,
834,
9,
16720,
7,
17,
834,
28951,
61,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
1031,
834,
4895,
15,
26,
2490,
3,
3940,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What level for seasons after 2003, a Division of kakkonen (second division), and a Position of 12th? | CREATE TABLE table_name_21 (level VARCHAR, position VARCHAR, season VARCHAR, division VARCHAR) | SELECT level FROM table_name_21 WHERE season > 2003 AND division = "kakkonen (second division)" AND position = "12th" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
4563,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
6,
4889,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
593,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
593,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
774,
2490,
3888,
3430,
4889,
3274,
96,
1258,
157,
4470,
35,
41,
12091,
4889,
61,
121,
3430,
1102,
3274,
96,
2122,
189,
121,
1,
-100,
-100,
-100,
-100,
-100,
-1... |
For those records from the products and each product's manufacturer, draw a bar chart about the distribution of name and revenue , and group by attribute founder, and rank Y from low to high order. | 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.Name, T2.Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder, T1.Name ORDER BY T2.Revenue | [
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,
23954,
6,
332,
4416,
1649,
15098,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,
476,
3,
191... |
What is the number of points for the team with 2 matches drawn and 577 points for? | CREATE TABLE table_name_88 (
points VARCHAR,
drawn VARCHAR,
points_for VARCHAR
) | SELECT points FROM table_name_88 WHERE drawn = "2" AND points_for = "577" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
979,
584,
4280,
28027,
6,
6796,
584,
4280,
28027,
6,
979,
834,
1161,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
381,
13,
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,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
979,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
6796,
3274,
96,
357,
121,
3430,
979,
834,
1161,
3274,
96,
755,
4013,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the originl title for no stars in the jungle | CREATE TABLE table_20963074_1 (original_title VARCHAR, film_title_used_in_nomination VARCHAR) | SELECT original_title FROM table_20963074_1 WHERE film_title_used_in_nomination = "No Stars in the Jungle" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
4314,
1458,
4581,
834,
536,
41,
21878,
834,
21869,
584,
4280,
28027,
6,
814,
834,
21869,
834,
10064,
834,
77,
834,
29,
32,
14484,
584,
4280,
28027,
61,
3,
32102,
32103,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
926,
834,
21869,
21680,
953,
834,
1755,
4314,
1458,
4581,
834,
536,
549,
17444,
427,
814,
834,
21869,
834,
10064,
834,
77,
834,
29,
32,
14484,
3274,
96,
4168,
2042,
7,
16,
8,
9383,
109,
121,
1,
-100,
-100,
-100,
-... |
What is the home team with the ny rangers as the visitor team? | CREATE TABLE table_name_16 (home VARCHAR, visitor VARCHAR) | SELECT home FROM table_name_16 WHERE visitor = "ny rangers" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
5515,
584,
4280,
28027,
6,
7019,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
234,
372,
28,
8,
3,
29,
63,
620,
52,
7,
38,
8,
70... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
7019,
3274,
96,
29,
63,
620,
52,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
provide the number of patients whose admission location is clinic referral/premature and diagnoses short title is chr tot occlus cor artry? | 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
)
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 lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_location = "CLINIC REFERRAL/PREMATURE" AND diagnoses.short_title = "Chr tot occlus cor artry" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
What are the average and minimum weights for people of each sex? | CREATE TABLE people (
people_id number,
sex text,
name text,
date_of_birth text,
height number,
weight number
)
CREATE TABLE candidate (
candidate_id number,
people_id number,
poll_source text,
date text,
support_rate number,
consider_rate number,
oppose_rate number,
unsure_rate number
) | SELECT AVG(weight), MIN(weight), sex FROM people GROUP BY sex | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
151,
41,
151,
834,
23,
26,
381,
6,
3,
7,
994,
1499,
6,
564,
1499,
6,
833,
834,
858,
834,
20663,
1499,
6,
3902,
381,
6,
1293,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
9378,
201,
3,
17684,
599,
9378,
201,
3,
7,
994,
21680,
151,
350,
4630,
6880,
272,
476,
3,
7,
994,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the visiting team on May 7? | CREATE TABLE table_38480 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
) | SELECT "Visitor" FROM table_38480 WHERE "Date" = 'may 7' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3747,
20579,
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,
3747,
20579,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
13726,
489,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What's the call sign that has 20kw of power? | CREATE TABLE table_65418 (
"Branding" text,
"Call-Sign" text,
"Frequency" text,
"Power (kw)" text,
"Location" text
) | SELECT "Call-Sign" FROM table_65418 WHERE "Power (kw)" = '20kw' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
591,
2606,
41,
96,
18304,
727,
53,
121,
1499,
6,
96,
254,
1748,
18,
134,
3191,
121,
1499,
6,
96,
371,
60,
835,
11298,
121,
1499,
6,
96,
23553,
41,
157,
210,
61,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
254,
1748,
18,
134,
3191,
121,
21680,
953,
834,
4122,
591,
2606,
549,
17444,
427,
96,
23553,
41,
157,
210,
61,
121,
3274,
3,
31,
1755,
157,
210,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the most recent year? | CREATE TABLE table_18003 (
"Year" real,
"Dates" text,
"Champion" text,
"Score" real,
"To par" text,
"Margin of victory" text,
"Purse ( $ )" real,
"Winners share ($)" real
) | SELECT MAX("Year") FROM table_18003 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20829,
4928,
41,
96,
476,
2741,
121,
490,
6,
96,
308,
6203,
121,
1499,
6,
96,
254,
1483,
12364,
121,
1499,
6,
96,
134,
9022,
121,
490,
6,
96,
3696,
260,
121,
1499,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
476,
2741,
8512,
21680,
953,
834,
20829,
4928,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who are all the womens doubles for the year 2008/2009? | CREATE TABLE table_72601 (
"Year" text,
"Mens singles" text,
"Womens singles" text,
"Mens doubles" text,
"Womens doubles" text,
"Mixed doubles" text
) | SELECT "Womens doubles" FROM table_72601 WHERE "Year" = '2008/2009' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5865,
3328,
536,
41,
96,
476,
2741,
121,
1499,
6,
96,
329,
35,
7,
712,
7,
121,
1499,
6,
96,
518,
32,
904,
7,
712,
7,
121,
1499,
6,
96,
329,
35,
7,
1486,
7,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
518,
32,
904,
7,
1486,
7,
121,
21680,
953,
834,
5865,
3328,
536,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
16128,
87,
16660,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the studio of ra.one? | CREATE TABLE table_name_89 (
studio_s_ VARCHAR,
movie VARCHAR
) | SELECT studio_s_ FROM table_name_89 WHERE movie = "ra.one" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
3100,
834,
7,
834,
584,
4280,
28027,
6,
1974,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3100,
13,
3,
52,
9,
5,
782,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3100,
834,
7,
834,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
1974,
3274,
96,
52,
9,
5,
782,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the to par of the player with a t9 place and a score of 72-67=139? | CREATE TABLE table_name_86 (
to_par VARCHAR,
place VARCHAR,
score VARCHAR
) | SELECT to_par FROM table_name_86 WHERE place = "t9" AND score = 72 - 67 = 139 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
12,
834,
1893,
584,
4280,
28027,
6,
286,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
12,
260,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
12,
834,
1893,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
286,
3274,
96,
17,
1298,
121,
3430,
2604,
3274,
9455,
3,
18,
3,
3708,
3274,
3,
24090,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
The hanja is for what capital? | CREATE TABLE table_160510_1 (
capital VARCHAR,
hanja VARCHAR
) | SELECT capital FROM table_160510_1 WHERE hanja = "尙州" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19129,
25926,
834,
536,
41,
1784,
584,
4280,
28027,
6,
3,
2618,
1191,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
37,
3,
2618,
1191,
19,
21,
125,
1784,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1784,
21680,
953,
834,
19129,
25926,
834,
536,
549,
17444,
427,
3,
2618,
1191,
3274,
96,
2,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the average year for a coin that had a mintage smaller than 10,000? | CREATE TABLE table_name_13 (
year INTEGER,
mintage INTEGER
) | SELECT AVG(year) FROM table_name_13 WHERE mintage < 10 OFFSET 000 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
215,
3,
21342,
17966,
6,
13983,
545,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1348,
215,
21,
3,
9,
7485,
24,
141,
3,
9,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
1201,
61,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
13983,
545,
3,
2,
335,
3,
15316,
20788,
6078,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
In what counties is the 2011 population 17908? | CREATE TABLE table_1940144_1 (
county VARCHAR,
population_2011 VARCHAR
) | SELECT county FROM table_1940144_1 WHERE population_2011 = 17908 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
2445,
20885,
834,
536,
41,
5435,
584,
4280,
28027,
6,
2074,
834,
13907,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
86,
125,
16227,
19,
8,
2722,
2074,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5435,
21680,
953,
834,
2294,
2445,
20885,
834,
536,
549,
17444,
427,
2074,
834,
13907,
3274,
3,
26593,
4018,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Can you tell me the total number of Total votes that has the Election larger than 2009, and the Candidates fielded larger than 61? | CREATE TABLE table_45696 (
"Election" real,
"Candidates fielded" real,
"# of seats won" real,
"Total votes" real,
"% of popular vote" text,
"Place" text
) | SELECT COUNT("Total votes") FROM table_45696 WHERE "Election" > '2009' AND "Candidates fielded" > '61' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
3951,
948,
41,
96,
427,
12252,
121,
490,
6,
96,
14050,
12416,
6203,
1057,
15,
26,
121,
490,
6,
96,
4663,
13,
6116,
751,
121,
490,
6,
96,
3696,
1947,
11839,
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,
2847,
17161,
599,
121,
3696,
1947,
11839,
8512,
21680,
953,
834,
2128,
3951,
948,
549,
17444,
427,
96,
427,
12252,
121,
2490,
3,
31,
16660,
31,
3430,
96,
14050,
12416,
6203,
1057,
15,
26,
121,
2490,
3,
31,
4241,
31,... |
What is the Date of the castle with a Historic Scotland Ownership? | CREATE TABLE table_name_38 (
date VARCHAR,
ownership VARCHAR
) | SELECT date FROM table_name_38 WHERE ownership = "historic scotland" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
833,
584,
4280,
28027,
6,
7915,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7678,
13,
8,
13243,
28,
3,
9,
19923,
8288,
13307,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
7915,
3274,
96,
28005,
3,
7,
4310,
40,
232,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average points that the driver Ryan Hunter-Reay has? | CREATE TABLE table_name_54 (
points INTEGER,
driver VARCHAR
) | SELECT AVG(points) FROM table_name_54 WHERE driver = "ryan hunter-reay" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
979,
3,
21342,
17966,
6,
2535,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
979,
24,
8,
2535,
7826,
14046,
18,
1649,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
2535,
3274,
96,
651,
152,
8069,
49,
18,
864,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What week number was the result bottom 3? | CREATE TABLE table_27614707_1 (week__number VARCHAR, result VARCHAR) | SELECT week__number FROM table_27614707_1 WHERE result = "Bottom 3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
4241,
4177,
4560,
834,
536,
41,
8041,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
471,
381,
47,
8,
741,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
471,
834,
834,
5525,
1152,
21680,
953,
834,
2555,
4241,
4177,
4560,
834,
536,
549,
17444,
427,
741,
3274,
96,
26465,
235,
51,
220,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the date for margalita chakhnashvili salome devidze | CREATE TABLE table_16893837_4 (
date VARCHAR,
opponents VARCHAR
) | SELECT date FROM table_16893837_4 WHERE opponents = "Margalita Chakhnashvili Salome Devidze" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
3914,
3747,
4118,
834,
591,
41,
833,
584,
4280,
28027,
6,
16383,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
833,
21,
3157,
6191,
155,
9,
3,
524,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
2938,
3914,
3747,
4118,
834,
591,
549,
17444,
427,
16383,
3274,
96,
7286,
6191,
155,
9,
4004,
18965,
29,
3198,
6372,
23,
5158,
7159,
24434,
26,
776,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those employees who was hired before 2002-06-21, give me the comparison about the average of department_id over the hire_date bin hire_date by weekday by a bar chart, rank by the Y-axis from low to high. | 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 departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
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 jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
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)
) | SELECT HIRE_DATE, AVG(DEPARTMENT_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' ORDER BY AVG(DEPARTMENT_ID) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3248,
41,
301,
5618,
8015,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3,
13733,
26418,
834,
24604,
12200,
134,
3,
4331,
4059,
599,
2445,
201,
3,
16034,
16359,
834,
5911,
5596,
3,
4331... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
5596,
19846,
11810,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
454,
14132,
834,
308,
6048,
3,
2,
3,
31,
24898,
18,
5176,
16539,
31,
4674,
11300,
272,
476,
71,
17217,
... |
Which institution has more than 19,020 students in london with a research funding of more than 7,734? | CREATE TABLE table_38743 (
"Institution" text,
"Location" text,
"Established" real,
"Gained university status" real,
"Vice-chancellor" text,
"Total Number of Students" real,
"Research Funding (\u00a3,000)" real
) | SELECT "Institution" FROM table_38743 WHERE "Total Number of Students" > '19,020' AND "Location" = 'london' AND "Research Funding (\u00a3,000)" > '7,734' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3747,
4581,
519,
41,
96,
1570,
17448,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
14997,
15403,
11904,
121,
490,
6,
96,
517,
7043,
26,
3819,
2637,
121,
490,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1570,
17448,
121,
21680,
953,
834,
3747,
4581,
519,
549,
17444,
427,
96,
3696,
1947,
7720,
13,
4375,
121,
2490,
3,
31,
2294,
6,
632,
1755,
31,
3430,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
40,
106,
2029,
31,... |
How many bronze medals for West Germany having a total more than 2? | CREATE TABLE table_name_65 (bronze VARCHAR, total VARCHAR, nation VARCHAR) | SELECT COUNT(bronze) FROM table_name_65 WHERE total > 2 AND nation = "west germany" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
13711,
776,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
6,
2982,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
13467,
9365,
7,
21,
1244,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
13711,
776,
61,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
792,
2490,
204,
3430,
2982,
3274,
96,
12425,
13692,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many Points has a Position of 8? | CREATE TABLE table_name_45 (
points INTEGER,
position VARCHAR
) | SELECT AVG(points) FROM table_name_45 WHERE position = 8 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
979,
3,
21342,
17966,
6,
1102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
4564,
7,
65,
3,
9,
14258,
13,
505,
58,
1,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
1102,
3274,
505,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many players have played for Jazz during 2006-2007? | CREATE TABLE table_11545282_6 (player VARCHAR, years_for_jazz VARCHAR) | SELECT COUNT(player) FROM table_11545282_6 WHERE years_for_jazz = "2006-2007" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15660,
2128,
2577,
357,
834,
948,
41,
20846,
584,
4280,
28027,
6,
203,
834,
1161,
834,
1191,
5271,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1508,
43,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
20846,
61,
21680,
953,
834,
15660,
2128,
2577,
357,
834,
948,
549,
17444,
427,
203,
834,
1161,
834,
1191,
5271,
3274,
96,
21196,
18,
20615,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.