NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What are the papers published under the institution 'Indiana University'? | CREATE TABLE authors (
authid number,
lname text,
fname text
)
CREATE TABLE inst (
instid number,
name text,
country text
)
CREATE TABLE authorship (
authid number,
instid number,
paperid number,
authorder number
)
CREATE TABLE papers (
paperid number,
title text
) | SELECT DISTINCT t1.title FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = "Indiana University" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5921,
41,
185,
17,
11740,
381,
6,
3,
40,
4350,
1499,
6,
3,
89,
4350,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
16,
7,
17,
41,
16,
2248,
26,
381,
6,
564,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
3,
17,
5411,
21869,
21680,
5778,
6157,
3,
17,
536,
3,
15355,
3162,
2291,
2009,
6157,
3,
17,
357,
9191,
3,
17,
5411,
19587,
23,
26,
3274,
3,
17,
4416,
19587,
23,
26,
3,
15355,
3162,
16,
7,
... |
what is the elevation of south america? | CREATE TABLE table_29517 (
"Year" text,
"Summits" text,
"Country" text,
"Continent" text,
"Elevation ft" real,
"Elevation m" real
) | SELECT "Elevation ft" FROM table_29517 WHERE "Continent" = 'South America' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3301,
2517,
41,
96,
476,
2741,
121,
1499,
6,
96,
134,
440,
1538,
7,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
16798,
295,
121,
1499,
6,
96,
427,
10912,
257,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
427,
10912,
257,
3,
89,
17,
121,
21680,
953,
834,
357,
3301,
2517,
549,
17444,
427,
96,
16798,
295,
121,
3274,
3,
31,
22081,
1371,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Driver has a Grid smaller than 17, and Points larger than 0, and a Lapse of 87, and a Time/Retired of 1:48:11.023? | CREATE TABLE table_65671 (
"Driver" text,
"Team" text,
"Laps" real,
"Time/Retired" text,
"Grid" real,
"Points" real
) | SELECT "Driver" FROM table_65671 WHERE "Grid" < '17' AND "Points" > '0' AND "Laps" = '87' AND "Time/Retired" = '1:48:11.023' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
3708,
536,
41,
96,
20982,
52,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
87,
1649,
11809,
26,
121,
1499,
6,
96,
13313,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20982,
52,
121,
21680,
953,
834,
4122,
3708,
536,
549,
17444,
427,
96,
13313,
26,
121,
3,
2,
3,
31,
2517,
31,
3430,
96,
22512,
7,
121,
2490,
3,
31,
632,
31,
3430,
96,
3612,
102,
7,
121,
3274,
3,
31,
4225,
... |
What is the elena basescu when the poling firm of gallup? | CREATE TABLE table_75387 (
"Polling Firm" text,
"Date" text,
"PSD - PC" text,
"UDMR" text,
"Elena B\u0103sescu" text,
"Others" text,
"Undecided" text
) | SELECT "Elena B\u0103sescu" FROM table_75387 WHERE "Polling Firm" = 'gallup' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
519,
4225,
41,
96,
8931,
697,
13530,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
4176,
308,
3,
18,
2104,
121,
1499,
6,
96,
10161,
9320,
121,
1499,
6,
96,
10991,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10991,
35,
9,
272,
2,
76,
632,
17864,
7,
5152,
121,
21680,
953,
834,
3072,
519,
4225,
549,
17444,
427,
96,
8931,
697,
13530,
121,
3274,
3,
31,
6191,
40,
413,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest overall draft pick number for terry daniels who was picked in round 10? | CREATE TABLE table_45971 (
"Round" real,
"Pick" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
) | SELECT MIN("Overall") FROM table_45971 WHERE "Round" = '10' AND "Name" = 'terry daniels' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
4327,
536,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
121,
490,
6,
96,
23847,
1748,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
23847,
1748,
8512,
21680,
953,
834,
2128,
4327,
536,
549,
17444,
427,
96,
448,
32,
1106,
121,
3274,
3,
31,
1714,
31,
3430,
96,
23954,
121,
3274,
3,
31,
449,
651,
3,
26,
2738,
3573,
31,
1,
-10... |
Find the number of the dates of orders which belong to the customer named 'Jeramie'. | CREATE TABLE Invoices (
invoice_number INTEGER,
invoice_date DATETIME,
invoice_details VARCHAR(255)
)
CREATE TABLE Shipment_Items (
shipment_id INTEGER,
order_item_id INTEGER
)
CREATE TABLE Products (
product_id INTEGER,
product_name VARCHAR(80),
product_details VARCHAR(255)
)
CREATE TABLE Shipments (
shipment_id INTEGER,
order_id INTEGER,
invoice_number INTEGER,
shipment_tracking_number VARCHAR(80),
shipment_date DATETIME,
other_shipment_details VARCHAR(255)
)
CREATE TABLE Orders (
order_id INTEGER,
customer_id INTEGER,
order_status VARCHAR(10),
date_order_placed DATETIME,
order_details VARCHAR(255)
)
CREATE TABLE Order_Items (
order_item_id INTEGER,
product_id INTEGER,
order_id INTEGER,
order_item_status VARCHAR(10),
order_item_details VARCHAR(255)
)
CREATE TABLE Customers (
customer_id INTEGER,
customer_name VARCHAR(80),
customer_details VARCHAR(255)
) | SELECT date_order_placed, COUNT(date_order_placed) FROM Customers AS T1 JOIN Orders AS T2 ON T1.customer_id = T2.customer_id WHERE T1.customer_name = "Jeramie" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
86,
23235,
7,
41,
10921,
834,
5525,
1152,
3,
21342,
17966,
6,
10921,
834,
5522,
309,
6048,
382,
15382,
6,
10921,
834,
221,
5756,
7,
584,
4280,
28027,
599,
25502,
61,
3,
61,
3,
32102,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
833,
834,
9397,
834,
4687,
26,
6,
2847,
17161,
599,
5522,
834,
9397,
834,
4687,
26,
61,
21680,
16423,
6157,
332,
536,
3,
15355,
3162,
5197,
7,
6157,
332,
357,
9191,
332,
5411,
25697,
49,
834,
23,
26,
3274,
332,
44... |
What category was Brian D'arcy James nominated for? | CREATE TABLE table_name_6 (category VARCHAR, nominee VARCHAR, result VARCHAR) | SELECT category FROM table_name_6 WHERE nominee = "brian d'arcy james" AND result = "nominated" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
8367,
839,
651,
584,
4280,
28027,
6,
21077,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
3295,
47,
7798,
309,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3295,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
21077,
3274,
96,
2160,
152,
3,
26,
31,
4667,
63,
7620,
15,
7,
121,
3430,
741,
3274,
96,
3114,
77,
920,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the athelte for enkhzorig ( mgl ) l 1 10 | CREATE TABLE table_17417383_6 (
athlete VARCHAR,
round_of_32 VARCHAR
) | SELECT athlete FROM table_17417383_6 WHERE round_of_32 = "Enkhzorig ( MGL ) L 1–10" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27693,
2517,
3747,
519,
834,
948,
41,
17893,
584,
4280,
28027,
6,
1751,
834,
858,
834,
2668,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
44,
107,
18920,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17893,
21680,
953,
834,
27693,
2517,
3747,
519,
834,
948,
549,
17444,
427,
1751,
834,
858,
834,
2668,
3274,
96,
8532,
157,
107,
172,
32,
3380,
41,
283,
13011,
3,
61,
301,
209,
104,
1714,
121,
1,
-100,
-100,
-100,
... |
What is the date of creation for the locomotive having a type of 0-4-2 | CREATE TABLE table_name_9 (date_made VARCHAR, type VARCHAR) | SELECT date_made FROM table_name_9 WHERE type = "0-4-2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
5522,
834,
4725,
584,
4280,
28027,
6,
686,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
833,
13,
3409,
21,
8,
31301,
578,
3,
9,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
834,
4725,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
686,
3274,
96,
632,
4278,
4949,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what teams has the top amount of points ? | CREATE TABLE table_204_722 (
id number,
"season" text,
"series" text,
"team" text,
"races" number,
"wins" number,
"poles" number,
"f/lap" number,
"podiums" number,
"points" number,
"position" text
) | SELECT "team" FROM table_204_722 ORDER BY "points" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
5865,
357,
41,
3,
23,
26,
381,
6,
96,
9476,
121,
1499,
6,
96,
10833,
7,
121,
1499,
6,
96,
11650,
121,
1499,
6,
96,
12614,
7,
121,
381,
6,
96,
3757,
7,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
11650,
121,
21680,
953,
834,
26363,
834,
5865,
357,
4674,
11300,
272,
476,
96,
2700,
7,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many patients who underwent the procedure under icd9 code 2219 have passed away in or before the year 2165? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE 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 procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.dod_year <= "2165.0" AND procedures.icd9_code = "2219" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
How many episodes with different season numbers had the Jeans family in them? | CREATE TABLE table_23391 (
"No. in series" text,
"No. in season" real,
"Family/families" text,
"Location(s)" text,
"Original air date" text
) | SELECT COUNT("No. in season") FROM table_23391 WHERE "Family/families" = 'The Jeans Family' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20879,
4729,
41,
96,
4168,
5,
16,
939,
121,
1499,
6,
96,
4168,
5,
16,
774,
121,
490,
6,
96,
371,
3690,
120,
87,
89,
3690,
4664,
121,
1499,
6,
96,
434,
32,
75,
257,
59... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
4168,
5,
16,
774,
8512,
21680,
953,
834,
20879,
4729,
549,
17444,
427,
96,
371,
3690,
120,
87,
89,
3690,
4664,
121,
3274,
3,
31,
634,
3966,
7,
3712,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the Enrollment at Whitman College Founded after 1859? | CREATE TABLE table_name_6 (enrollment INTEGER, institution VARCHAR, founded VARCHAR) | SELECT AVG(enrollment) FROM table_name_6 WHERE institution = "whitman college" AND founded > 1859 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
35,
4046,
297,
3,
21342,
17966,
6,
6568,
584,
4280,
28027,
6,
5710,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
695,
4046,
297,
44,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
35,
4046,
297,
61,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
6568,
3274,
96,
12124,
17,
348,
1900,
121,
3430,
5710,
2490,
507,
3390,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many patients born before 2089 have the lab test fluid urine? | 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 procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "2089" AND lab.fluid = "Urine" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the value of the Democratic Alternative for the poll released by Malta Today? | CREATE TABLE table_name_31 (
democratic_alternative VARCHAR,
polling_institute VARCHAR
) | SELECT democratic_alternative FROM table_name_31 WHERE polling_institute = "malta today" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
15053,
834,
8818,
29,
1528,
584,
4280,
28027,
6,
5492,
53,
834,
17521,
15,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
701,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15053,
834,
8818,
29,
1528,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
5492,
53,
834,
17521,
15,
3274,
96,
1982,
17,
9,
469,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the Full Word, when Case Suffix (case) is "-sa (dative)"? | CREATE TABLE table_name_46 (full_word VARCHAR, case_suffix__case_ VARCHAR) | SELECT full_word FROM table_name_46 WHERE case_suffix__case_ = "-sa (dative)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
1329,
40,
834,
6051,
584,
4280,
28027,
6,
495,
834,
7,
2999,
2407,
834,
834,
6701,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
423,
834,
6051,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
495,
834,
7,
2999,
2407,
834,
834,
6701,
834,
3274,
96,
18,
7,
9,
41,
26,
1528,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which date had Japanese sales of 0.57 million? | CREATE TABLE table_13489 (
"Date" text,
"Japan" text,
"Americas" text,
"Other" text,
"Total" text
) | SELECT "Date" FROM table_13489 WHERE "Japan" = '0.57 million' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
3914,
41,
96,
308,
342,
121,
1499,
6,
96,
683,
9,
2837,
121,
1499,
6,
96,
28746,
7,
121,
1499,
6,
96,
667,
189,
49,
121,
1499,
6,
96,
3696,
1947,
121,
1499,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
23747,
3914,
549,
17444,
427,
96,
683,
9,
2837,
121,
3274,
3,
31,
12100,
940,
770,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the most of 2500-3000ft | CREATE TABLE table_1456056_1 (
Id VARCHAR
) | SELECT MAX(2500 AS _3000ft) FROM table_1456056_1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20987,
3328,
4834,
834,
536,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
167,
13,
204,
2560,
3486,
2313,
89,
17,
1,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
357,
2560,
6157,
3,
834,
519,
2313,
89,
17,
61,
21680,
953,
834,
20987,
3328,
4834,
834,
536,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the april for candice cassidy | CREATE TABLE table_name_41 (april VARCHAR, june VARCHAR) | SELECT april FROM table_name_41 WHERE june = "candice cassidy" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
9,
2246,
40,
584,
4280,
28027,
6,
3,
6959,
15,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
3,
9,
2246,
40,
21,
2988,
867,
1990,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
9,
2246,
40,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
3,
6959,
15,
3274,
96,
75,
232,
867,
1990,
7,
23,
26,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who had the decision when the visitor was Detroit and the home team was Ottawa? | CREATE TABLE table_49260 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text
) | SELECT "Decision" FROM table_49260 WHERE "Visitor" = 'detroit' AND "Home" = 'ottawa' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3647,
18365,
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,
2962,
18901,
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,
2962,
18901,
121,
21680,
953,
834,
3647,
18365,
549,
17444,
427,
96,
553,
159,
155,
127,
121,
3274,
3,
31,
26,
15252,
155,
31,
3430,
96,
19040,
121,
3274,
3,
31,
32,
17,
17,
7396,
31,
1,
-100,
-100,
-100,
-1... |
Name the height in feet for the guard from north carolina-charlotte | CREATE TABLE table_name_35 (
height_in_ft VARCHAR,
position VARCHAR,
school_club_team_country VARCHAR
) | SELECT height_in_ft FROM table_name_35 WHERE position = "guard" AND school_club_team_country = "north carolina-charlotte" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
3902,
834,
77,
834,
89,
17,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
6,
496,
834,
13442,
834,
11650,
834,
17529,
584,
4280,
28027,
3,
61,
3,
32102,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
3902,
834,
77,
834,
89,
17,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
1102,
3274,
96,
11010,
121,
3430,
496,
834,
13442,
834,
11650,
834,
17529,
3274,
96,
29,
127,
189,
443,
12057,
9,
18,
4059,
21538,
121,
... |
Who is in group a when indiana is in group d? | CREATE TABLE table_15290638_1 (group_a VARCHAR, group_d VARCHAR) | SELECT group_a FROM table_15290638_1 WHERE group_d = "Indiana" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
3166,
5176,
3747,
834,
536,
41,
10739,
834,
9,
584,
4280,
28027,
6,
563,
834,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
16,
563,
3,
9,
116,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
563,
834,
9,
21680,
953,
834,
1808,
3166,
5176,
3747,
834,
536,
549,
17444,
427,
563,
834,
26,
3274,
96,
22126,
29,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What game was located at the Los Angeles Memorial Sports Arena? | CREATE TABLE table_66088 (
"Game" text,
"Date" text,
"Opponent" text,
"Score" text,
"Location/Attendance" text,
"Record" text
) | SELECT "Game" FROM table_66088 WHERE "Location/Attendance" = 'los angeles memorial sports arena' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27720,
4060,
41,
96,
23055,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
75,
257,
87,
188,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23055,
121,
21680,
953,
834,
27720,
4060,
549,
17444,
427,
96,
434,
32,
75,
257,
87,
188,
17,
324,
26,
663,
121,
3274,
3,
31,
2298,
11831,
15,
7,
15827,
2100,
15134,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many Goals against have Played more than 34? | CREATE TABLE table_name_97 (goals_against VARCHAR, played INTEGER) | SELECT COUNT(goals_against) FROM table_name_97 WHERE played > 34 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
839,
5405,
834,
9,
16720,
7,
17,
584,
4280,
28027,
6,
1944,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
17916,
7,
581,
43,
2911,
15,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
839,
5405,
834,
9,
16720,
7,
17,
61,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
1944,
2490,
6154,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Score of 3 - 2 had what record? | CREATE TABLE table_name_93 (record VARCHAR, score VARCHAR) | SELECT record FROM table_name_93 WHERE score = "3 - 2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
60,
7621,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
17763,
13,
220,
3,
18,
204,
141,
125,
1368,
58,
1,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
2604,
3274,
96,
519,
3,
18,
204,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the date of the game with the Kansas City Royals when the Blue Jays record was 18-12? | CREATE TABLE table_71778 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
) | SELECT "Date" FROM table_71778 WHERE "Opponent" = 'royals' AND "Record" = '18-12' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2517,
3940,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
7,
7,
121,
1499,
6,
96,
188,
17,
324,
26,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
940,
2517,
3940,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
8170,
5405,
31,
3430,
96,
1649,
7621,
121,
3274,
3,
31,
2606,
5947,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
Who won the 2012 game that had a score of 15 0? | CREATE TABLE table_52102 (
"Year" real,
"Date" text,
"Winner" text,
"Result" text,
"Loser" text,
"Location" text
) | SELECT "Winner" FROM table_52102 WHERE "Year" = '2012' AND "Result" = '15–0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5373,
14388,
41,
96,
476,
2741,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18455,
687,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
434,
32,
7,
49,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
18455,
687,
121,
21680,
953,
834,
5373,
14388,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
12172,
31,
3430,
96,
20119,
121,
3274,
3,
31,
1808,
104,
632,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Visualize a bar chart about the distribution of Team_Name and School_ID , I want to rank by the total number in ascending. | CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
) | SELECT Team_Name, School_ID FROM basketball_match ORDER BY School_ID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8498,
834,
19515,
41,
2271,
834,
4309,
16,
17,
6,
1121,
834,
4309,
16,
17,
6,
2271,
834,
23954,
1499,
6,
3,
14775,
834,
17748,
4885,
834,
134,
15,
9,
739,
1499,
6,
3,
14775,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2271,
834,
23954,
6,
1121,
834,
4309,
21680,
8498,
834,
19515,
4674,
11300,
272,
476,
1121,
834,
4309,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the loss with save of || 23,391 ||17-18||? | CREATE TABLE table_75236 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Save" text
) | SELECT "Loss" FROM table_75236 WHERE "Save" = '|| 23,391 ||17-18||' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
357,
3420,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
7,
7,
121,
1499,
6,
96,
23163,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
32,
7,
7,
121,
21680,
953,
834,
3072,
357,
3420,
549,
17444,
427,
96,
23163,
121,
3274,
3,
31,
9175,
9175,
12992,
3288,
536,
1820,
9175,
2517,
6996,
9175,
9175,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what status is the vehicle types of dmbs+tcl+dmcl? | CREATE TABLE table_77889 (
"Vehicle Numbers" text,
"Vehicle Types" text,
"Livery" text,
"Location" text,
"Status" text
) | SELECT "Status" FROM table_77889 WHERE "Vehicle Types" = 'dmbs+tcl+dmcl' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3940,
3914,
41,
96,
553,
15,
107,
23,
2482,
7720,
7,
121,
1499,
6,
96,
553,
15,
107,
23,
2482,
6632,
7,
121,
1499,
6,
96,
24179,
651,
121,
1499,
6,
96,
434,
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,
134,
17,
144,
302,
121,
21680,
953,
834,
940,
3940,
3914,
549,
17444,
427,
96,
553,
15,
107,
23,
2482,
6632,
7,
121,
3274,
3,
31,
26,
51,
115,
7,
1220,
17,
75,
40,
1220,
26,
51,
75,
40,
31,
1,
-100,
-100... |
Name the studio host for glenn ordway and jerry sichting with year of 1993-94 | CREATE TABLE table_name_91 (
studio_host VARCHAR,
year VARCHAR,
play_by_play VARCHAR,
color_commentator_s_ VARCHAR
) | SELECT studio_host FROM table_name_91 WHERE play_by_play = "glenn ordway" AND color_commentator_s_ = "jerry sichting" AND year = "1993-94" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
3100,
834,
12675,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
577,
834,
969,
834,
4895,
584,
4280,
28027,
6,
945,
834,
287,
297,
1016,
834,
7,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3100,
834,
12675,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
577,
834,
969,
834,
4895,
3274,
96,
3537,
29,
29,
42,
26,
1343,
121,
3430,
945,
834,
287,
297,
1016,
834,
7,
834,
3274,
96,
12488,
651,
289,
122... |
What was the date of birth of a republican member of the United States House of Representatives who held the term of 1863-1865? | CREATE TABLE table_name_80 (
date_of_birth VARCHAR,
party VARCHAR,
house_term VARCHAR
) | SELECT date_of_birth FROM table_name_80 WHERE party = "republican" AND house_term = "1863-1865" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
833,
834,
858,
834,
20663,
584,
4280,
28027,
6,
1088,
584,
4280,
28027,
6,
629,
834,
1987,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
833,
834,
858,
834,
20663,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
1088,
3274,
96,
60,
15727,
152,
121,
3430,
629,
834,
1987,
3274,
96,
2606,
3891,
6996,
4122,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When hot adult contemporary is the format what is the call sign? | CREATE TABLE table_18536769_1 (call_sign VARCHAR, format VARCHAR) | SELECT call_sign FROM table_18536769_1 WHERE format = "hot adult contemporary" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
4867,
3708,
3951,
834,
536,
41,
16482,
834,
6732,
584,
4280,
28027,
6,
1910,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
1312,
3165,
4092,
19,
8,
1910,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
580,
834,
6732,
21680,
953,
834,
2606,
4867,
3708,
3951,
834,
536,
549,
17444,
427,
1910,
3274,
96,
10718,
3165,
4092,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many people attended the game in week 13? | CREATE TABLE table_43025 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
) | SELECT "Attendance" FROM table_43025 WHERE "Week" = '13' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25449,
1828,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
121,
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,
0... | [
3,
23143,
14196,
96,
188,
17,
324,
26,
663,
121,
21680,
953,
834,
25449,
1828,
549,
17444,
427,
96,
518,
10266,
121,
3274,
3,
31,
2368,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What's the FCC info with a Frequency MHz thats smaller than 100.3 and a City of License as Lowville, NY? | CREATE TABLE table_70510 (
"Call sign" text,
"Frequency MHz" real,
"City of license" text,
"ERP W" real,
"Height m ( ft )" text,
"Class" text,
"FCC info" text
) | SELECT "FCC info" FROM table_70510 WHERE "Frequency MHz" < '100.3' AND "City of license" = 'lowville, ny' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2518,
25926,
41,
96,
254,
1748,
1320,
121,
1499,
6,
96,
371,
60,
835,
11298,
3,
20210,
121,
490,
6,
96,
254,
485,
13,
3344,
121,
1499,
6,
96,
3316,
345,
549,
121,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
371,
2823,
2845,
121,
21680,
953,
834,
2518,
25926,
549,
17444,
427,
96,
371,
60,
835,
11298,
3,
20210,
121,
3,
2,
3,
31,
1714,
19997,
31,
3430,
96,
254,
485,
13,
3344,
121,
3274,
3,
31,
3216,
1420,
6,
3,
... |
calculate the number of patients who had an abnormal test result for cd4/cd8 ratio | 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 lab ON demographic.hadm_id = lab.hadm_id WHERE lab.flag = "abnormal" AND lab.label = "CD4/CD8 Ratio" | [
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,... |
Name the opponent which has a home/away of home and date of july 27 | CREATE TABLE table_53468 (
"Date" text,
"Opponent" text,
"Home/Away" text,
"Field" text,
"Result" text
) | SELECT "Opponent" FROM table_53468 WHERE "Home/Away" = 'home' AND "Date" = 'july 27' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3710,
3651,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
19040,
87,
188,
1343,
121,
1499,
6,
96,
3183,
8804,
121,
1499,
6,
96,
20119,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
102,
9977,
121,
21680,
953,
834,
755,
3710,
3651,
549,
17444,
427,
96,
19040,
87,
188,
1343,
121,
3274,
3,
31,
5515,
31,
3430,
96,
308,
342,
121,
3274,
3,
31,
2047,
120,
2307,
31,
1,
-100,
-100,
-100,
-... |
What is the region for the date November 18, 2002? | CREATE TABLE table_7474 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog" text
) | SELECT "Region" FROM table_7474 WHERE "Date" = 'november 18, 2002' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
4581,
41,
96,
17748,
23,
106,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
434,
10333,
121,
1499,
6,
96,
3809,
3357,
121,
1499,
6,
96,
18610,
9,
2152,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
96,
17748,
23,
106,
121,
21680,
953,
834,
4581,
4581,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
5326,
18247,
14985,
4407,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
For all employees who have the letters D or S in their first name, give me the trend about employee_id over hire_date . | CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
) | SELECT HIRE_DATE, EMPLOYEE_ID FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
613,
834,
10193,
10972,
41,
262,
5244,
5017,
476,
5080,
834,
4309,
7908,
1982,
599,
11071,
632,
201,
5097,
8241,
834,
308,
6048,
833,
6,
3,
14920,
834,
308,
6048,
833,
6,
446,
10539,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
5244,
5017,
476,
5080,
834,
4309,
21680,
1652,
549,
17444,
427,
30085,
834,
567,
17683,
8729,
9914,
3,
31,
1454,
308,
1454,
31,
4674,
30085,
834,
567,
17683,
8729,
9914,
3,
31,
14... |
What is the location of the opponent Siarhei Navarka? | CREATE TABLE table_name_79 (location VARCHAR, opponent VARCHAR) | SELECT location FROM table_name_79 WHERE opponent = "siarhei navarka" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
14836,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1128,
13,
8,
15264,
925,
291,
88,
23,
3,
22192,
660... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1128,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
15264,
3274,
96,
7,
23,
291,
88,
23,
3,
14128,
6604,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What players finished 2nd? | CREATE TABLE table_1506950_4 (player VARCHAR, finish VARCHAR) | SELECT player FROM table_1506950_4 WHERE finish = "2nd" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
12278,
3951,
1752,
834,
591,
41,
20846,
584,
4280,
28027,
6,
1992,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1508,
2369,
204,
727,
58,
1,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1959,
21680,
953,
834,
12278,
3951,
1752,
834,
591,
549,
17444,
427,
1992,
3274,
96,
357,
727,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the score when the attendance is greater than 134 and Workington is the home team? | CREATE TABLE table_name_30 (
score VARCHAR,
attendance VARCHAR,
home_team VARCHAR
) | SELECT score FROM table_name_30 WHERE attendance > 134 AND home_team = "workington" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
2604,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2604,
116,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
11364,
2490,
3,
23747,
3430,
234,
834,
11650,
3274,
96,
1981,
6029,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
give me the number of patients whose ethnicity is hispanic or latino and procedure long title is other phototherapy? | 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 diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.ethnicity = "HISPANIC OR LATINO" AND procedures.long_title = "Other phototherapy" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
how many movies total did zhao dan star in between 1930 and 1940 | CREATE TABLE table_204_707 (
id number,
"year" number,
"english title" text,
"chinese title" text,
"director" text,
"role" text
) | SELECT COUNT(*) FROM table_204_707 WHERE "year" >= 1930 AND "year" <= 1940 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
2518,
940,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
4606,
40,
1273,
2233,
121,
1499,
6,
96,
1436,
1496,
15,
2233,
121,
1499,
6,
96,
25982,
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,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
26363,
834,
2518,
940,
549,
17444,
427,
96,
1201,
121,
2490,
2423,
15559,
3430,
96,
1201,
121,
3,
2,
2423,
15830,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the points gained of the match where fans took 403 [sunday]? | CREATE TABLE table_67430 (
"Team" text,
"Miles [One Way]" real,
"Home Result" text,
"Fans Brought" text,
"Away Result" text,
"Fans Took" text,
"Points Gained" real
) | SELECT SUM("Points Gained") FROM table_67430 WHERE "Fans Took" = '403 [sunday]' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
25449,
41,
96,
18699,
121,
1499,
6,
96,
329,
699,
7,
784,
10723,
5994,
908,
121,
490,
6,
96,
19040,
3,
20119,
121,
1499,
6,
96,
371,
3247,
272,
13245,
17,
121,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
22512,
7,
22097,
15,
26,
8512,
21680,
953,
834,
3708,
25449,
549,
17444,
427,
96,
371,
3247,
304,
1825,
121,
3274,
3,
31,
2445,
519,
784,
7,
202,
1135,
908,
31,
1,
-100,
-100,
-100,
-100,
-100... |
What is the name of the newspaper with the website liderinformativo.com ? | CREATE TABLE table_name_17 (name VARCHAR, website VARCHAR) | SELECT name FROM table_name_17 WHERE website = "liderinformativo.com" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
4350,
584,
4280,
28027,
6,
475,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
13,
8,
8468,
28,
8,
475,
18793,
77,
8995,
23,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
475,
3274,
96,
30821,
29,
8995,
23,
1621,
5,
287,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the postal code when the administrative capital in Bori? | CREATE TABLE table_28891101_3 (
postal_code INTEGER,
administrative_capital VARCHAR
) | SELECT MAX(postal_code) FROM table_28891101_3 WHERE administrative_capital = "Bori" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
3914,
2596,
4542,
834,
519,
41,
19085,
834,
4978,
3,
21342,
17966,
6,
6601,
834,
4010,
9538,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
19085,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
5950,
138,
834,
4978,
61,
21680,
953,
834,
2577,
3914,
2596,
4542,
834,
519,
549,
17444,
427,
6601,
834,
4010,
9538,
3274,
96,
279,
2057,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
how many dbeingtrict with candidates being william b. bankhead (d) 71.3% e. m. reed (r) 28.7% | CREATE TABLE table_18635 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT COUNT("District") FROM table_18635 WHERE "Candidates" = 'William B. Bankhead (D) 71.3% E. M. Reed (R) 28.7%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25398,
2469,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
490,
6,
96,
20119,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
308,
23,
20066,
8512,
21680,
953,
834,
25398,
2469,
549,
17444,
427,
96,
14050,
12416,
6203,
121,
3274,
3,
31,
518,
1092,
23,
265,
272,
5,
1925,
3313,
41,
308,
61,
3,
4450,
5,
5170,
262,
5,
... |
Provide me with the name of the writer with the production code 210. | CREATE TABLE table_12451376_2 (writer_s_ VARCHAR, production_code VARCHAR) | SELECT writer_s_ FROM table_12451376_2 WHERE production_code = 210 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
2128,
2368,
3959,
834,
357,
41,
12756,
834,
7,
834,
584,
4280,
28027,
6,
999,
834,
4978,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
7740,
140,
28,
8,
564,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4346,
834,
7,
834,
21680,
953,
834,
2122,
2128,
2368,
3959,
834,
357,
549,
17444,
427,
999,
834,
4978,
3274,
3,
15239,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the lowest against value with less than 9 points and more than 6 lost? | CREATE TABLE table_name_29 (against INTEGER, points VARCHAR, lost VARCHAR) | SELECT MIN(against) FROM table_name_29 WHERE points < 9 AND lost > 6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
9,
16720,
7,
17,
3,
21342,
17966,
6,
979,
584,
4280,
28027,
6,
1513,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
581,
701,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
9,
16720,
7,
17,
61,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
979,
3,
2,
668,
3430,
1513,
2490,
431,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the win % for the QB with 3 starts? | CREATE TABLE table_55997 (
"Name" text,
"Period" text,
"Starts" real,
"Wins" real,
"Losses" real,
"Ties" real,
"Win %" real
) | SELECT "Win %" FROM table_55997 WHERE "Starts" = '3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3390,
4327,
41,
96,
23954,
121,
1499,
6,
96,
12988,
23,
32,
26,
121,
1499,
6,
96,
7681,
17,
7,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,
434,
13526,
7,
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,
96,
18455,
3,
1454,
121,
21680,
953,
834,
755,
3390,
4327,
549,
17444,
427,
96,
7681,
17,
7,
121,
3274,
3,
31,
519,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
a suspected infection and an acute increase of >= 2 sofa points ( a proxy for organ dysfunction ) | CREATE TABLE table_train_50 (
"id" int,
"raynaud_syndrome" bool,
"active_infection" bool,
"antibiotic_treatment" bool,
"receiving_vasopressor" bool,
"sepsis" bool,
"vasospastic_diathesis" bool,
"organ_failure" bool,
"septic_shock" bool,
"NOUSE" float
) | SELECT * FROM table_train_50 WHERE active_infection = 1 AND organ_failure = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
1752,
41,
96,
23,
26,
121,
16,
17,
6,
96,
2866,
29,
402,
26,
834,
7,
63,
727,
11956,
121,
3,
12840,
40,
6,
96,
6645,
834,
77,
17856,
121,
3,
12840,
40,
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,
1429,
21680,
953,
834,
9719,
834,
1752,
549,
17444,
427,
1676,
834,
77,
17856,
3274,
209,
3430,
3640,
834,
89,
9,
173,
1462,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which record has a Date of august 28? | CREATE TABLE table_name_8 (
record VARCHAR,
date VARCHAR
) | SELECT record FROM table_name_8 WHERE date = "august 28" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
1368,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1368,
65,
3,
9,
7678,
13,
14663,
2059,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
833,
3274,
96,
402,
17198,
2059,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What si the total sample size at rasmussen reports when the margin of error was bigger than 4.5? | CREATE TABLE table_name_59 (sample_size VARCHAR, poll_source VARCHAR, margin_of_error VARCHAR) | SELECT COUNT(sample_size) FROM table_name_59 WHERE poll_source = "rasmussen reports" AND margin_of_error > 4.5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
7,
9,
9208,
834,
7991,
584,
4280,
28027,
6,
5492,
834,
7928,
584,
4280,
28027,
6,
6346,
834,
858,
834,
17262,
584,
4280,
28027,
61,
3,
32102,
32103,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
7,
9,
9208,
834,
7991,
61,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
5492,
834,
7928,
3274,
96,
52,
9,
7,
3252,
7,
35,
2279,
121,
3430,
6346,
834,
858,
834,
17262,
2490,
3,
12451,
1,
-... |
What is the main legion base that disbanded 70 xx? | CREATE TABLE table_242785_3 (
main_legion_base VARCHAR,
date_disband VARCHAR
) | SELECT main_legion_base FROM table_242785_3 WHERE date_disband = "70 XX" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
2555,
4433,
834,
519,
41,
711,
834,
8492,
106,
834,
10925,
584,
4280,
28027,
6,
833,
834,
26,
159,
3348,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
711,
834,
8492,
106,
834,
10925,
21680,
953,
834,
2266,
2555,
4433,
834,
519,
549,
17444,
427,
833,
834,
26,
159,
3348,
3274,
96,
2518,
3,
4,
4,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the office held by member Mark Coulton? | CREATE TABLE table_name_58 (in_office VARCHAR, member VARCHAR) | SELECT in_office FROM table_name_58 WHERE member = "mark coulton" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
77,
834,
19632,
584,
4280,
28027,
6,
1144,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
828,
1213,
57,
1144,
2185,
11356,
7377,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
16,
834,
19632,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
1144,
3274,
96,
3920,
3,
3422,
7377,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
how many patients whose admission type is emergency and item id is 50927? | 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 lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND lab.itemid = "50927" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Which Result has a Venue of away, and a Game smaller than 43, and an Opponent of bournemouth? | CREATE TABLE table_62817 (
"Game" real,
"Date" text,
"Opponent" text,
"Venue" text,
"Result" text,
"Attendance" real
) | SELECT "Result" FROM table_62817 WHERE "Venue" = 'away' AND "Game" < '43' AND "Opponent" = 'bournemouth' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2577,
2517,
41,
96,
23055,
121,
490,
6,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20119,
121,
21680,
953,
834,
948,
2577,
2517,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
8006,
31,
3430,
96,
23055,
121,
3,
2,
3,
31,
4906,
31,
3430,
96,
667,
102,
9977,
121,
3274,
3,
31,
2625... |
List the number of bbc rankings with cable rankings of 6. | CREATE TABLE table_24399615_10 (bbc_three_weekly_ranking VARCHAR, cable_rank VARCHAR) | SELECT bbc_three_weekly_ranking FROM table_24399615_10 WHERE cable_rank = "6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
3288,
4314,
1808,
834,
1714,
41,
115,
115,
75,
834,
21182,
834,
8041,
120,
834,
6254,
53,
584,
4280,
28027,
6,
4807,
834,
6254,
584,
4280,
28027,
61,
3,
32102,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
115,
115,
75,
834,
21182,
834,
8041,
120,
834,
6254,
53,
21680,
953,
834,
2266,
3288,
4314,
1808,
834,
1714,
549,
17444,
427,
4807,
834,
6254,
3274,
96,
948,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What College/junior/club had a player of United States nationality drafted by the Toronto Maple Leafs? | CREATE TABLE table_name_12 (
college_junior_club_team VARCHAR,
nhl_team VARCHAR,
nationality VARCHAR
) | SELECT college_junior_club_team FROM table_name_12 WHERE nhl_team = "toronto maple leafs" AND nationality = "united states" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
1900,
834,
6959,
23,
127,
834,
13442,
834,
11650,
584,
4280,
28027,
6,
3,
29,
107,
40,
834,
11650,
584,
4280,
28027,
6,
1157,
485,
584,
4280,
28027,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1900,
834,
6959,
23,
127,
834,
13442,
834,
11650,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
3,
29,
107,
40,
834,
11650,
3274,
96,
235,
4438,
32,
22007,
8384,
7,
121,
3430,
1157,
485,
3274,
96,
15129,
15,
... |
Which Wins has a Team of scuderia toro rosso, Poles of 0, and Races of 16? | CREATE TABLE table_name_99 (wins VARCHAR, races VARCHAR, team VARCHAR, poles VARCHAR) | SELECT wins FROM table_name_99 WHERE team = "scuderia toro rosso" AND poles = "0" AND races = "16" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
3757,
7,
584,
4280,
28027,
6,
10879,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
6,
11148,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
9204,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
372,
3274,
96,
7,
1071,
26,
4476,
12,
52,
32,
3,
1859,
7,
32,
121,
3430,
11148,
7,
3274,
96,
632,
121,
3430,
10879,
3274,
96,
2938,
121,
1,
-100,
-100,
-1... |
Who was the director for To Have and Have Not, earlier than 1945 with WB studio? | CREATE TABLE table_name_61 (director VARCHAR, title VARCHAR, studio VARCHAR, year VARCHAR) | SELECT director FROM table_name_61 WHERE studio = "wb" AND year < 1945 AND title = "to have and have not" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
25982,
584,
4280,
28027,
6,
2233,
584,
4280,
28027,
6,
3100,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2090,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
3100,
3274,
96,
210,
115,
121,
3430,
215,
3,
2,
18315,
3430,
2233,
3274,
96,
235,
43,
11,
43,
59,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What displacement & configuration does the car model Panamera 4s have? | CREATE TABLE table_name_68 (displacement_ VARCHAR, _configuration VARCHAR, car_model VARCHAR) | SELECT displacement_ & _configuration FROM table_name_68 WHERE car_model = "panamera 4s" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
10475,
11706,
297,
834,
584,
4280,
28027,
6,
3,
834,
1018,
26703,
584,
4280,
28027,
6,
443,
834,
21770,
584,
4280,
28027,
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,
0,
0,
0,
0... | [
3,
23143,
14196,
27780,
834,
3,
184,
3,
834,
1018,
26703,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
443,
834,
21770,
3274,
96,
2837,
9,
935,
9,
314,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What surface was used when she played with Remi Tezuka? | CREATE TABLE table_name_76 (
surface VARCHAR,
partner VARCHAR
) | SELECT surface FROM table_name_76 WHERE partner = "remi tezuka" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
1774,
584,
4280,
28027,
6,
2397,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1774,
47,
261,
116,
255,
1944,
28,
13466,
23,
2255,
1000,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1774,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
2397,
3274,
96,
60,
51,
23,
3,
17,
457,
1598,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What Level has a Season larger than 2010? | CREATE TABLE table_name_54 (
level VARCHAR,
season INTEGER
) | SELECT level FROM table_name_54 WHERE season > 2010 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
593,
584,
4280,
28027,
6,
774,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
7166,
65,
3,
9,
7960,
2186,
145,
2735,
58,
1,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
593,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
774,
2490,
2735,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is the number where the player was jimmy demaret | CREATE TABLE table_262383_1 (runner_s__up VARCHAR) | SELECT 54 AS _holes FROM table_262383_1 WHERE runner_s__up = "Jimmy Demaret" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
2773,
4591,
834,
536,
41,
10806,
834,
7,
834,
834,
413,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
381,
213,
8,
1959,
47,
3,
354,
603,
2258,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
10630,
6157,
3,
834,
9136,
7,
21680,
953,
834,
2688,
2773,
4591,
834,
536,
549,
17444,
427,
3,
10806,
834,
7,
834,
834,
413,
3274,
96,
683,
603,
2258,
10007,
355,
17,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What are the details of all organizations that are described as Sponsors and sort the results in ascending order? | CREATE TABLE research_staff (
staff_id number,
employer_organisation_id number,
staff_details text
)
CREATE TABLE organisation_types (
organisation_type text,
organisation_type_description text
)
CREATE TABLE project_staff (
staff_id number,
project_id number,
role_code text,
date_from time,
date_to time,
other_details text
)
CREATE TABLE documents (
document_id number,
document_type_code text,
grant_id number,
sent_date time,
response_received_date time,
other_details text
)
CREATE TABLE project_outcomes (
project_id number,
outcome_code text,
outcome_details text
)
CREATE TABLE grants (
grant_id number,
organisation_id number,
grant_amount number,
grant_start_date time,
grant_end_date time,
other_details text
)
CREATE TABLE staff_roles (
role_code text,
role_description text
)
CREATE TABLE projects (
project_id number,
organisation_id number,
project_details text
)
CREATE TABLE organisations (
organisation_id number,
organisation_type text,
organisation_details text
)
CREATE TABLE research_outcomes (
outcome_code text,
outcome_description text
)
CREATE TABLE document_types (
document_type_code text,
document_description text
)
CREATE TABLE tasks (
task_id number,
project_id number,
task_details text,
eg agree objectives text
) | SELECT organisation_details FROM organisations AS T1 JOIN organisation_types AS T2 ON T1.organisation_type = T2.organisation_type WHERE T2.organisation_type_description = 'Sponsor' ORDER BY organisation_details | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
585,
834,
26416,
41,
871,
834,
23,
26,
381,
6,
6152,
834,
10832,
834,
23,
26,
381,
6,
871,
834,
221,
5756,
7,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
5102... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5102,
834,
221,
5756,
7,
21680,
6445,
6157,
332,
536,
3,
15355,
3162,
5102,
834,
6137,
7,
6157,
332,
357,
9191,
332,
5411,
10832,
834,
6137,
3274,
332,
4416,
10832,
834,
6137,
549,
17444,
427,
332,
4416,
10832,
834,
... |
When was the Treaty of Cession for Karikal Colony? | CREATE TABLE table_name_60 (treaty_of_cession VARCHAR, colony VARCHAR) | SELECT treaty_of_cession FROM table_name_60 WHERE colony = "karikal" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
929,
144,
63,
834,
858,
834,
19988,
584,
4280,
28027,
6,
6718,
63,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
47,
8,
16494,
63,
13,
6188... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2665,
63,
834,
858,
834,
19988,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
6718,
63,
3274,
96,
4031,
23,
4766,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which club has Jamie Korab as Lead? | CREATE TABLE table_name_69 (club VARCHAR, lead VARCHAR) | SELECT club FROM table_name_69 WHERE lead = "jamie korab" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
13442,
584,
4280,
28027,
6,
991,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1886,
65,
17845,
1793,
7093,
38,
12208,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1886,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
991,
3274,
96,
1191,
2720,
3,
5543,
9,
115,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who had the pole position in the Canadian Grand Prix? | CREATE TABLE table_26258348_4 (pole_position VARCHAR, grand_prix VARCHAR) | SELECT pole_position FROM table_26258348_4 WHERE grand_prix = "Canadian grand_prix" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
1828,
4591,
3707,
834,
591,
41,
14332,
834,
4718,
584,
4280,
28027,
6,
1907,
834,
2246,
226,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
141,
8,
11148,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11148,
834,
4718,
21680,
953,
834,
2688,
1828,
4591,
3707,
834,
591,
549,
17444,
427,
1907,
834,
2246,
226,
3274,
96,
14050,
9,
8603,
1907,
834,
2246,
226,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who had the high points when the score was w 108–105 (ot)? | CREATE TABLE table_name_59 (high_points VARCHAR, score VARCHAR) | SELECT high_points FROM table_name_59 WHERE score = "w 108–105 (ot)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
6739,
834,
2700,
7,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
141,
8,
306,
979,
116,
8,
2604,
47,
3,
210,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
306,
834,
2700,
7,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
2604,
3274,
96,
210,
3,
16169,
104,
12869,
41,
32,
17,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many times is the nhl team the winnipeg jets? | CREATE TABLE table_2679061_2 (player VARCHAR, nhl_team VARCHAR) | SELECT COUNT(player) FROM table_2679061_2 WHERE nhl_team = "Winnipeg Jets" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3708,
2394,
4241,
834,
357,
41,
20846,
584,
4280,
28027,
6,
3,
29,
107,
40,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
149,
186,
648,
19,
8,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
20846,
61,
21680,
953,
834,
357,
3708,
2394,
4241,
834,
357,
549,
17444,
427,
3,
29,
107,
40,
834,
11650,
3274,
96,
18455,
29,
23,
855,
122,
12434,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the date when result is l 13–10 ot | CREATE TABLE table_14520977_1 (date VARCHAR, result VARCHAR) | SELECT date FROM table_14520977_1 WHERE result = "L 13–10 OT" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20987,
357,
4198,
4013,
834,
536,
41,
5522,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
833,
116,
741,
19,
3,
40,
1179,
104,
171... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
20987,
357,
4198,
4013,
834,
536,
549,
17444,
427,
741,
3274,
96,
434,
1179,
104,
1714,
3,
6951,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the round of 16 result for felipe saucedo? | CREATE TABLE table_29521180_35 (
round_of_16 VARCHAR,
athlete VARCHAR
) | SELECT round_of_16 FROM table_29521180_35 WHERE athlete = "Felipe Saucedo" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3301,
2658,
20829,
834,
2469,
41,
1751,
834,
858,
834,
2938,
584,
4280,
28027,
6,
17893,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1751,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1751,
834,
858,
834,
2938,
21680,
953,
834,
357,
3301,
2658,
20829,
834,
2469,
549,
17444,
427,
17893,
3274,
96,
17160,
23,
855,
25803,
26,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many pinyin transaltions are available for the chinese phrase ? | CREATE TABLE table_1216675_1 (
pinyin VARCHAR,
chinese VARCHAR
) | SELECT COUNT(pinyin) FROM table_1216675_1 WHERE chinese = "釋蟲" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
26811,
3072,
834,
536,
41,
4522,
63,
77,
584,
4280,
28027,
6,
3,
1436,
1496,
15,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
4522,
63,
77,
3017,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
3180,
63,
77,
61,
21680,
953,
834,
2122,
26811,
3072,
834,
536,
549,
17444,
427,
3,
1436,
1496,
15,
3274,
96,
2,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which location had a year over 2006? | CREATE TABLE table_35283 (
"Year" real,
"Location" text,
"Gold" text,
"Silver" text,
"Bronze" text
) | SELECT "Location" FROM table_35283 WHERE "Year" > '2006' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
2577,
519,
41,
96,
476,
2741,
121,
490,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
23576,
121,
1499,
6,
96,
134,
173,
624,
121,
1499,
6,
96,
22780,
29,
776,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
96,
434,
32,
75,
257,
121,
21680,
953,
834,
2469,
2577,
519,
549,
17444,
427,
96,
476,
2741,
121,
2490,
3,
31,
21196,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For races with an average speed of 113.835 mph, what are the winning race times? | CREATE TABLE table_21918 (
"Year" real,
"Date" text,
"Driver" text,
"Manufacturer" text,
"Laps" real,
"Miles (km)" text,
"Race Time" text,
"Average Speed (mph)" text
) | SELECT "Race Time" FROM table_21918 WHERE "Average Speed (mph)" = '113.835' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2294,
2606,
41,
96,
476,
2741,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
20982,
52,
121,
1499,
6,
96,
7296,
76,
8717,
450,
49,
121,
1499,
6,
96,
3612,
102,
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,
448,
3302,
2900,
121,
21680,
953,
834,
357,
2294,
2606,
549,
17444,
427,
96,
188,
624,
545,
9913,
41,
7656,
61,
121,
3274,
3,
31,
2596,
26195,
2469,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For each position, what is the minimum time students spent practicing. Show a pie chart. | CREATE TABLE Tryout (
pID numeric(5,0),
cName varchar(20),
pPos varchar(8),
decision varchar(3)
)
CREATE TABLE College (
cName varchar(20),
state varchar(2),
enr numeric(5,0)
)
CREATE TABLE Player (
pID numeric(5,0),
pName varchar(20),
yCard varchar(3),
HS numeric(5,0)
) | SELECT pPos, MIN(T2.HS) FROM Tryout AS T1 JOIN Player AS T2 ON T1.pID = T2.pID GROUP BY pPos | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5263,
670,
41,
3,
102,
4309,
206,
17552,
599,
11116,
632,
201,
3,
75,
23954,
3,
4331,
4059,
599,
1755,
201,
3,
102,
345,
32,
7,
3,
4331,
4059,
28007,
6,
1357,
3,
4331,
4059,
17867,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
102,
345,
32,
7,
6,
3,
17684,
599,
382,
4416,
4950,
61,
21680,
5263,
670,
6157,
332,
536,
3,
15355,
3162,
12387,
6157,
332,
357,
9191,
332,
5411,
102,
4309,
3274,
332,
4416,
102,
4309,
350,
4630,
6880,
272,
476... |
What 2008 has 2013 for the year 2013? | CREATE TABLE table_name_37 (Id VARCHAR) | SELECT 2008 FROM table_name_37 WHERE "2013" = "2013" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
2628,
65,
2038,
21,
8,
215,
2038,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2628,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
96,
11138,
121,
3274,
96,
11138,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Semifinalists have a Tournament of rome? | CREATE TABLE table_8543 (
"Tournament" text,
"Surface" text,
"Week" text,
"Winner and score" text,
"Finalist" text,
"Semifinalists" text
) | SELECT "Semifinalists" FROM table_8543 WHERE "Tournament" = 'rome' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4433,
4906,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
518,
10266,
121,
1499,
6,
96,
18455,
687,
11,
2604,
121,
1499,
6,
96,
371,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
15,
51,
23,
28077,
121,
21680,
953,
834,
4433,
4906,
549,
17444,
427,
96,
382,
1211,
20205,
17,
121,
3274,
3,
31,
11956,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
give the province with the least population | CREATE TABLE table_204_704 (
id number,
"province" text,
"map #" number,
"iso 3166-2:af" text,
"centers" text,
"population" number,
"area (km2)" number,
"language" text,
"notes" text,
"u.n. region" text
) | SELECT "province" FROM table_204_704 ORDER BY "population" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
2518,
591,
41,
3,
23,
26,
381,
6,
96,
1409,
2494,
565,
121,
1499,
6,
96,
11576,
1713,
121,
381,
6,
96,
159,
32,
3,
25946,
25369,
10,
9,
89,
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,
1409,
2494,
565,
121,
21680,
953,
834,
26363,
834,
2518,
591,
4674,
11300,
272,
476,
96,
9791,
7830,
121,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which nominating festival did Bosnia and Herzegovina enter? | CREATE TABLE table_15367 (
"Category" text,
"Film" text,
"Director(s)" text,
"Country" text,
"Nominating Festival" text
) | SELECT "Nominating Festival" FROM table_15367 WHERE "Country" = 'bosnia and herzegovina' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27025,
3708,
41,
96,
18610,
6066,
651,
121,
1499,
6,
96,
371,
173,
51,
121,
1499,
6,
96,
23620,
127,
599,
7,
61,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
4168,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4168,
1109,
1014,
3397,
121,
21680,
953,
834,
27025,
3708,
549,
17444,
427,
96,
10628,
651,
121,
3274,
3,
31,
115,
32,
7,
29,
23,
9,
11,
160,
776,
9527,
77,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the lowest 1994-1995, when Points is 145, and when Played is less than 114? | CREATE TABLE table_name_2 (
points VARCHAR,
played VARCHAR
) | SELECT MIN(1994 AS _1995) FROM table_name_2 WHERE points = 145 AND played < 114 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
979,
584,
4280,
28027,
6,
1944,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
7520,
4481,
3301,
6,
116,
4564,
7,
19,
3,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
2294,
4240,
6157,
3,
834,
19479,
9120,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
979,
3274,
3,
20987,
3430,
1944,
3,
2,
3,
18959,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What pick number was player Greg McKegg? | CREATE TABLE table_name_13 (
pick__number INTEGER,
player VARCHAR
) | SELECT AVG(pick__number) FROM table_name_13 WHERE player = "greg mckegg" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
1432,
834,
834,
5525,
1152,
3,
21342,
17966,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1432,
381,
47,
1959,
11859,
30808,
410... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
17967,
834,
834,
5525,
1152,
61,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
1959,
3274,
96,
18301,
3,
51,
8849,
4102,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the id, forname and surname of the driver who had the first position in terms of laptime at least twice? | CREATE TABLE drivers (
driverid VARCHAR,
forename VARCHAR,
surname VARCHAR
)
CREATE TABLE laptimes (
driverid VARCHAR
) | SELECT T1.driverid, T1.forename, T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE POSITION = '1' GROUP BY T1.driverid HAVING COUNT(*) >= 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3863,
41,
1262,
4055,
584,
4280,
28027,
6,
21,
15,
4350,
584,
4280,
28027,
6,
244,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
14941,
715,
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,
332,
5411,
13739,
4055,
6,
332,
5411,
1161,
15,
4350,
6,
332,
5411,
3042,
4350,
21680,
3863,
6157,
332,
536,
3,
15355,
3162,
14941,
715,
7,
6157,
332,
357,
9191,
332,
5411,
13739,
4055,
3274,
332,
4416,
13739,
4055,
... |
Which Jersey # has a Height (cm) of 183, a Name of paul stastny, and a Weight (kg) smaller than 93? | CREATE TABLE table_name_98 (jersey__number VARCHAR, weight__kg_ VARCHAR, height__cm_ VARCHAR, name VARCHAR) | SELECT COUNT(jersey__number) FROM table_name_98 WHERE height__cm_ = 183 AND name = "paul stastny" AND weight__kg_ < 93 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
12488,
7,
15,
63,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
1293,
834,
834,
8711,
834,
584,
4280,
28027,
6,
3902,
834,
834,
75,
51,
834,
584,
4280,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12488,
7,
15,
63,
834,
834,
5525,
1152,
61,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
3902,
834,
834,
75,
51,
834,
3274,
3,
24361,
3430,
564,
3274,
96,
102,
9,
83,
3342,
7,
17,
29,
63,... |
Which movie was awarded Film of the Year on May 8, 1964? | CREATE TABLE table_name_2 (film_of_the_year VARCHAR, date VARCHAR) | SELECT film_of_the_year FROM table_name_2 WHERE date = "may 8, 1964" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
9988,
834,
858,
834,
532,
834,
1201,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1974,
47,
5539,
3417,
13,
8,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
814,
834,
858,
834,
532,
834,
1201,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
833,
3274,
96,
13726,
9478,
18969,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What races have gp2 series, 0 F.L. and a 17th position? | CREATE TABLE table_76661 (
"Season" text,
"Series" text,
"Team Name" text,
"Races" text,
"Wins" text,
"Poles" text,
"F.L." text,
"Podiums" text,
"Points" text,
"Position" text
) | SELECT "Races" FROM table_76661 WHERE "Series" = 'gp2 series' AND "F.L." = '0' AND "Position" = '17th' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3959,
3539,
536,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
12106,
7,
121,
1499,
6,
96,
18699,
5570,
121,
1499,
6,
96,
448,
9,
2319,
121,
1499,
6,
96,
18455,
7,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
448,
9,
2319,
121,
21680,
953,
834,
3959,
3539,
536,
549,
17444,
427,
96,
12106,
7,
121,
3274,
3,
31,
122,
102,
357,
939,
31,
3430,
96,
371,
5,
434,
535,
3274,
3,
31,
632,
31,
3430,
96,
345,
32,
7,
4749,
... |
What is the result of the book title firelands? | CREATE TABLE table_20193855_2 (
result VARCHAR,
book_title VARCHAR
) | SELECT result FROM table_20193855_2 WHERE book_title = "Firelands" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
8584,
3747,
3769,
834,
357,
41,
741,
584,
4280,
28027,
6,
484,
834,
21869,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
741,
13,
8,
484,
2233,
1472,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
21680,
953,
834,
8584,
3747,
3769,
834,
357,
549,
17444,
427,
484,
834,
21869,
3274,
96,
3183,
60,
6347,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What number of patients who were discharged to home had stayed in the hospital for more than 16 days? | 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 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 procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "HOME" AND demographic.days_stay > "16" | [
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,
549,
17444,
427,
14798,
5,
26,
159,
7993,
834,
14836,
3274,
96,
6299,
4369,
121,
3430,
14798,
5,
1135,
7,
834,
21545,
2490,
... |
Who was the incumbent in 1940? | CREATE TABLE table_1341690_9 (incumbent VARCHAR, first_elected VARCHAR) | SELECT incumbent FROM table_1341690_9 WHERE first_elected = 1940 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2938,
2394,
834,
1298,
41,
77,
75,
5937,
295,
584,
4280,
28027,
6,
166,
834,
19971,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
28406,
16,
15830,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
28406,
21680,
953,
834,
23747,
2938,
2394,
834,
1298,
549,
17444,
427,
166,
834,
19971,
3274,
15830,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the price for the manufacturer LETech? | CREATE TABLE table_31333 (
"Manufacturer" text,
"Model" text,
"Intro Date" text,
"Interface" text,
"OS" text,
"Price (USD)" real,
"Price" text,
"Throughput" text
) | SELECT "Price" FROM table_31333 WHERE "Manufacturer" = 'LETech' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3341,
23360,
41,
96,
7296,
76,
8717,
450,
49,
121,
1499,
6,
96,
24663,
121,
1499,
6,
96,
1570,
17,
52,
32,
7678,
121,
1499,
6,
96,
17555,
4861,
121,
1499,
6,
96,
3638,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
4920,
121,
21680,
953,
834,
3341,
23360,
549,
17444,
427,
96,
7296,
76,
8717,
450,
49,
121,
3274,
3,
31,
3765,
9542,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the earliest year having a length of 11:25? | CREATE TABLE table_39062 (
"Version" text,
"Length" text,
"Album" text,
"Remixed by" text,
"Year" real
) | SELECT MIN("Year") FROM table_39062 WHERE "Length" = '11:25' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2394,
4056,
41,
96,
5000,
1938,
121,
1499,
6,
96,
434,
4606,
189,
121,
1499,
6,
96,
25691,
440,
121,
1499,
6,
96,
1649,
13682,
15,
26,
57,
121,
1499,
6,
96,
476,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
476,
2741,
8512,
21680,
953,
834,
519,
2394,
4056,
549,
17444,
427,
96,
434,
4606,
189,
121,
3274,
3,
31,
2596,
10,
1828,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the 2010 figure for the district of Columbia where the 2004 figure is more than 12.3? | CREATE TABLE table_9823 (
"Division" text,
"1999" real,
"2000" real,
"2001" real,
"2002" real,
"2003" real,
"2004" real,
"2005" real,
"2006" real,
"2007" real,
"2008" real,
"2009" real,
"2010" real,
"2011" real
) | SELECT SUM("2010") FROM table_9823 WHERE "Division" = 'district of columbia' AND "2004" > '12.3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3916,
2773,
41,
96,
308,
23,
6610,
121,
1499,
6,
96,
2294,
3264,
121,
490,
6,
96,
13527,
121,
490,
6,
96,
23658,
121,
490,
6,
96,
24898,
121,
490,
6,
96,
23948,
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,
180,
6122,
599,
121,
14926,
8512,
21680,
953,
834,
3916,
2773,
549,
17444,
427,
96,
308,
23,
6610,
121,
3274,
3,
31,
26,
23,
20066,
13,
7632,
5937,
23,
9,
31,
3430,
96,
21653,
121,
2490,
3,
31,
9368,
519,
31,
1,... |
What bonus points have 448 as the points against? | CREATE TABLE table_name_47 (bonus_points VARCHAR, points_against VARCHAR) | SELECT bonus_points FROM table_name_47 WHERE points_against = "448" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
5407,
302,
834,
2700,
7,
584,
4280,
28027,
6,
979,
834,
9,
16720,
7,
17,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
4023,
979,
43,
314,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4023,
834,
2700,
7,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
979,
834,
9,
16720,
7,
17,
3274,
96,
591,
3707,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who is the runner-up for season 2011 12? | CREATE TABLE table_25058269_1 (
runner_up VARCHAR,
season VARCHAR
) | SELECT runner_up FROM table_25058269_1 WHERE season = "2011–12" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11434,
3449,
357,
3951,
834,
536,
41,
3,
10806,
834,
413,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
3,
10806,
18,
413,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
10806,
834,
413,
21680,
953,
834,
11434,
3449,
357,
3951,
834,
536,
549,
17444,
427,
774,
3274,
96,
13907,
104,
2122,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Goal Difference has 28 Points, and a Club of cd cartagena, more than 15 losses? | CREATE TABLE table_12770 (
"Position" real,
"Club" text,
"Played" real,
"Points" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Goals for" real,
"Goals against" real,
"Goal Difference" real
) | SELECT MAX("Goal Difference") FROM table_12770 WHERE "Points" = '28' AND "Club" = 'cd cartagena' AND "Losses" > '15' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22367,
2518,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
254,
11158,
121,
1499,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
22512,
7,
121,
490,
6,
96,
18455,
7,
121,
490,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
6221,
138,
27187,
8512,
21680,
953,
834,
22367,
2518,
549,
17444,
427,
96,
22512,
7,
121,
3274,
3,
31,
2577,
31,
3430,
96,
254,
11158,
121,
3274,
3,
31,
75,
26,
443,
22380,
9,
31,
3430,
96,
43... |
how many county with per capita income being $20,101 | CREATE TABLE table_1350350_2 (county VARCHAR, per_capita_income VARCHAR) | SELECT COUNT(county) FROM table_1350350_2 WHERE per_capita_income = "$20,101" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
1752,
16975,
834,
357,
41,
13362,
63,
584,
4280,
28027,
6,
399,
834,
4010,
155,
9,
834,
15759,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
149,
186,
5435,
28,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
13362,
63,
61,
21680,
953,
834,
2368,
1752,
16975,
834,
357,
549,
17444,
427,
399,
834,
4010,
155,
9,
834,
15759,
3274,
96,
3229,
1755,
6,
19621,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Where was the location when the record was 12-5? | CREATE TABLE table_name_89 (location VARCHAR, record VARCHAR) | SELECT location FROM table_name_89 WHERE record = "12-5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
14836,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2840,
47,
8,
1128,
116,
8,
1368,
47,
586,
4525,
58,
1,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
1368,
3274,
96,
2122,
18,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the fat for protein being 4 and calories 80 | CREATE TABLE table_3169 (
"Butter" text,
"Calories (1 tbsp .)" real,
"Protein (g)" text,
"Fat (g)" text,
"Calcium (mg)" text,
"Zinc (mg)" text
) | SELECT "Fat (g)" FROM table_3169 WHERE "Protein (g)" = '4' AND "Calories (1 tbsp .)" = '80' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3341,
3951,
41,
96,
279,
5108,
121,
1499,
6,
96,
14318,
32,
2593,
4077,
3,
17,
115,
7,
102,
3,
5,
61,
121,
490,
6,
96,
3174,
17,
2455,
41,
122,
61,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
371,
144,
41,
122,
61,
121,
21680,
953,
834,
3341,
3951,
549,
17444,
427,
96,
3174,
17,
2455,
41,
122,
61,
121,
3274,
3,
31,
591,
31,
3430,
96,
14318,
32,
2593,
4077,
3,
17,
115,
7,
102,
3,
5,
61,
121,
3... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.