NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
For all employees who have the letters D or S in their first name, a bar chart shows the distribution of hire_date and the sum of employee_id bin hire_date by time. | 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(... | SELECT HIRE_DATE, SUM(EMPLOYEE_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1652,
41,
262,
5244,
5017,
476,
5080,
834,
4309,
7908,
1982,
599,
11071,
632,
201,
30085,
834,
567,
17683,
3,
4331,
4059,
599,
1755,
201,
301,
12510,
834,
567,
17683,
3,
4331,
4059,
59... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
180,
6122,
599,
6037,
345,
5017,
476,
5080,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
30085,
834,
567,
17683,
8729,
9914,
3,
31,
1454,
308,
1454,
31,
4674,
30085,
834,
567,
17683,
8... |
How many papers are published in total? | CREATE TABLE papers (
Id VARCHAR
) | SELECT COUNT(*) FROM papers | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5778,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
5778,
33,
1790,
16,
792,
58,
1,
0,
0,
0,
0,
0,
0,
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,
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,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
5778,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the pick number when Paul Krake was selected? | CREATE TABLE table_2897457_8 (pick__number INTEGER, player VARCHAR) | SELECT MIN(pick__number) FROM table_2897457_8 WHERE player = "Paul Krake" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3914,
4581,
3436,
834,
927,
41,
17967,
834,
834,
5525,
1152,
3,
21342,
17966,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1432,
381,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
17967,
834,
834,
5525,
1152,
61,
21680,
953,
834,
357,
3914,
4581,
3436,
834,
927,
549,
17444,
427,
1959,
3274,
96,
23183,
7356,
1050,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who was the opponent in week 14? | CREATE TABLE table_name_28 (opponent VARCHAR, week VARCHAR) | SELECT opponent FROM table_name_28 WHERE week = 14 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
32,
102,
9977,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
15264,
16,
471,
968,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
471,
3274,
968,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many prisons is Joan Leaven connected with? | CREATE TABLE table_31095 (
"Name" text,
"Occupation" text,
"Gender" text,
"Prison connection" text,
"Played by" text,
"Status" text
) | SELECT COUNT("Prison connection") FROM table_31095 WHERE "Name" = 'Joan Leaven' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19947,
3301,
41,
96,
23954,
121,
1499,
6,
96,
667,
75,
4658,
257,
121,
1499,
6,
96,
517,
3868,
121,
1499,
6,
96,
7855,
739,
2135,
121,
1499,
6,
96,
15800,
15,
26,
57,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
7855,
739,
2135,
8512,
21680,
953,
834,
19947,
3301,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
683,
32,
152,
11339,
29,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What event ended in 3:02 of round 1? | CREATE TABLE table_15581 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
) | SELECT "Event" FROM table_15581 WHERE "Round" = '1' AND "Time" = '3:02' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20896,
4959,
41,
96,
1649,
7,
535,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
23351,
107,
32,
26,
121,
1499,
6,
96,
427,
2169,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
427,
2169,
121,
21680,
953,
834,
20896,
4959,
549,
17444,
427,
96,
448,
32,
1106,
121,
3274,
3,
31,
536,
31,
3430,
96,
13368,
121,
3274,
3,
31,
519,
10,
4305,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When did Going for Gold return in BBC One? | CREATE TABLE table_name_67 (
date_s__of_return VARCHAR,
original_channel VARCHAR,
programme VARCHAR
) | SELECT date_s__of_return FROM table_name_67 WHERE original_channel = "bbc one" AND programme = "going for gold" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
833,
834,
7,
834,
834,
858,
834,
60,
7535,
584,
4280,
28027,
6,
926,
834,
19778,
584,
4280,
28027,
6,
2486,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
834,
7,
834,
834,
858,
834,
60,
7535,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
926,
834,
19778,
3274,
96,
115,
115,
75,
80,
121,
3430,
2486,
3274,
96,
9545,
21,
2045,
121,
1,
-100,
-100,
-100,
-100,... |
For those records from the products and each product's manufacturer, return a scatter chart about the correlation between code and revenue . | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT T1.Code, T2.Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
5312,
3396,
254,
26330,
434,
6,
15248,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
22737,
6,
332,
4416,
1649,
15098,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
1,
-100,
-100,
-100,
-100,
-100,
... |
Name the home for detroit visitor and date of february 29 | CREATE TABLE table_name_25 (home VARCHAR, visitor VARCHAR, date VARCHAR) | SELECT home FROM table_name_25 WHERE visitor = "detroit" AND date = "february 29" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
5515,
584,
4280,
28027,
6,
7019,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
234,
21,
3,
26,
15252,
155,
70... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
7019,
3274,
96,
26,
15252,
155,
121,
3430,
833,
3274,
96,
89,
15,
9052,
1208,
2838,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the smallest rank number of those used to rank the islands? | CREATE TABLE table_19033 (
"Rank" real,
"Islands Name" text,
"Area (sqmi)" real,
"Area (km 2 )" real,
"Location" text,
"Population (2000)" text
) | SELECT MIN("Rank") FROM table_19033 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11776,
4201,
41,
96,
22557,
121,
490,
6,
96,
196,
7,
6347,
5570,
121,
1499,
6,
96,
188,
864,
41,
7,
1824,
51,
23,
61,
121,
490,
6,
96,
188,
864,
41,
5848,
204,
3,
61,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
22557,
8512,
21680,
953,
834,
11776,
4201,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the score when they had a 25-41-9 record? | CREATE TABLE table_name_84 (score VARCHAR, record VARCHAR) | SELECT score FROM table_name_84 WHERE record = "25-41-9" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
7,
9022,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
116,
79,
141,
3,
9,
944,
18,
4853,
7141,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
1368,
3274,
96,
1828,
18,
4853,
7141,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the shirt sponsor for the manufacturer Nike? | CREATE TABLE table_14670 (
"Team" text,
"Manager" text,
"Captain" text,
"Kit manufacturer" text,
"Shirt sponsor" text
) | SELECT "Shirt sponsor" FROM table_14670 WHERE "Kit manufacturer" = 'nike' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24300,
2518,
41,
96,
18699,
121,
1499,
6,
96,
27272,
121,
1499,
6,
96,
19566,
17,
9,
77,
121,
1499,
6,
96,
439,
155,
4818,
121,
1499,
6,
96,
16671,
9037,
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,
0,
0,
0... | [
3,
23143,
14196,
96,
16671,
9037,
121,
21680,
953,
834,
24300,
2518,
549,
17444,
427,
96,
439,
155,
4818,
121,
3274,
3,
31,
4953,
15,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many races went for 10 rounds? | CREATE TABLE table_27986 (
"Rnd" text,
"Circuit" text,
"Location" text,
"Date" text,
"Pole position" text,
"Fastest lap" text,
"Most laps led" text,
"Winning driver" text,
"Winning team" text,
"Supporting" text
) | SELECT COUNT("Fastest lap") FROM table_27986 WHERE "Rnd" = '10' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4440,
3840,
41,
96,
448,
727,
121,
1499,
6,
96,
254,
23,
52,
21560,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
8931,
15,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
371,
9,
7,
4377,
14941,
8512,
21680,
953,
834,
357,
4440,
3840,
549,
17444,
427,
96,
448,
727,
121,
3274,
3,
31,
1714,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Stacked bar chart of the total number for with each Sex in each rank, could you rank in asc by the Y-axis? | CREATE TABLE Faculty_Participates_in (
FacID INTEGER,
actid INTEGER
)
CREATE TABLE Participates_in (
stuid INTEGER,
actid INTEGER
)
CREATE TABLE Activity (
actid INTEGER,
activity_name varchar(25)
)
CREATE TABLE Faculty (
FacID INTEGER,
Lname VARCHAR(15),
Fname VARCHAR(15),
Ra... | SELECT Rank, COUNT(*) FROM Faculty GROUP BY Sex, Rank ORDER BY COUNT(*) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
16896,
834,
13725,
23,
3389,
6203,
834,
77,
41,
1699,
75,
4309,
3,
21342,
17966,
6,
1810,
23,
26,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
15077,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22557,
6,
2847,
17161,
599,
1935,
61,
21680,
16896,
350,
4630,
6880,
272,
476,
679,
226,
6,
3,
22557,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the amount of Avg/G with a Name of blaine gabbert and a Long greater than 30? | CREATE TABLE table_name_79 (avg_g INTEGER, name VARCHAR, long VARCHAR) | SELECT SUM(avg_g) FROM table_name_79 WHERE name = "blaine gabbert" AND long > 30 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
9,
208,
122,
834,
122,
3,
21342,
17966,
6,
564,
584,
4280,
28027,
6,
307,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
866,
13,
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,
180,
6122,
599,
9,
208,
122,
834,
122,
61,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
564,
3274,
96,
4605,
630,
7852,
7041,
121,
3430,
307,
2490,
604,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the decision of the game on January 13? | CREATE TABLE table_name_24 (
decision VARCHAR,
date VARCHAR
) | SELECT decision FROM table_name_24 WHERE date = "january 13" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
1357,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1357,
13,
8,
467,
30,
1762,
1179,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1357,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
833,
3274,
96,
7066,
76,
1208,
1179,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which TNS-Sofres 5/26/09 has an Ipsos 5/25/09 of 1%? | CREATE TABLE table_name_82 (tns_sofres_5_26_09 VARCHAR, ipsos_5_25_09 VARCHAR) | SELECT tns_sofres_5_26_09 FROM table_name_82 WHERE ipsos_5_25_09 = "1%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
17,
29,
7,
834,
7,
858,
60,
7,
834,
755,
834,
2688,
834,
4198,
584,
4280,
28027,
6,
3,
15432,
32,
7,
834,
755,
834,
1828,
834,
4198,
584,
4280,
280... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17,
29,
7,
834,
7,
858,
60,
7,
834,
755,
834,
2688,
834,
4198,
21680,
953,
834,
4350,
834,
4613,
549,
17444,
427,
3,
15432,
32,
7,
834,
755,
834,
1828,
834,
4198,
3274,
96,
4704,
121,
1,
-100,
-100,
-100,
-... |
What is the Nationality of the Player with Jersey Number 6? | CREATE TABLE table_name_13 (
nationality VARCHAR,
jersey_number_s_ VARCHAR
) | SELECT nationality FROM table_name_13 WHERE jersey_number_s_ = 6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
1157,
485,
584,
4280,
28027,
6,
13426,
834,
5525,
1152,
834,
7,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
868,
485,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1157,
485,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
13426,
834,
5525,
1152,
834,
7,
834,
3274,
431,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the sum of To Par, when Year(s) Won is "1978 , 1985"? | CREATE TABLE table_name_35 (to_par INTEGER, year_s__won VARCHAR) | SELECT SUM(to_par) FROM table_name_35 WHERE year_s__won = "1978 , 1985" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
235,
834,
1893,
3,
21342,
17966,
6,
215,
834,
7,
834,
834,
210,
106,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
13,
304,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
235,
834,
1893,
61,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
215,
834,
7,
834,
834,
210,
106,
3274,
96,
2294,
3940,
3,
6,
13200,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the s default argument without a pseudorandom number generation and no eval function? | CREATE TABLE table_name_37 (
s_default_argument VARCHAR,
pseudorandom_number_generation VARCHAR,
eval_function VARCHAR
) | SELECT s_default_argument FROM table_name_37 WHERE pseudorandom_number_generation = "no" AND eval_function = "no" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
3,
7,
834,
31026,
834,
291,
1744,
297,
584,
4280,
28027,
6,
22726,
2002,
5012,
834,
5525,
1152,
834,
10877,
584,
4280,
28027,
6,
3,
15,
2165,
834,
2399... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7,
834,
31026,
834,
291,
1744,
297,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
22726,
2002,
5012,
834,
5525,
1152,
834,
10877,
3274,
96,
29,
32,
121,
3430,
3,
15,
2165,
834,
23993,
3274,
96,
29,
32,
121... |
For those employees who do not work in departments with managers that have ids between 100 and 200, return a scatter chart about the correlation between employee_id and salary . | CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),... | SELECT EMPLOYEE_ID, SALARY FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10521,
41,
3396,
19846,
11810,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3396,
19846,
11810,
834,
567,
17683,
3,
4331,
4059,
599,
1458,
201,
283,
15610,
17966,
834,
4309,
7908,
1982,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
262,
5244,
5017,
476,
5080,
834,
4309,
6,
180,
4090,
24721,
21680,
1652,
549,
17444,
427,
4486,
3396,
19846,
11810,
834,
4309,
3388,
41,
23143,
14196,
3396,
19846,
11810,
834,
4309,
21680,
10521,
549,
17444,
427,
283,
1... |
Which School/Club Team does Vince Carter Play for? | CREATE TABLE table_40971 (
"Player" text,
"Nationality" text,
"Position" text,
"Years in Orlando" text,
"School/Club Team" text
) | SELECT "School/Club Team" FROM table_40971 WHERE "Player" = 'vince carter' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
4327,
536,
41,
96,
15800,
49,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
476,
2741,
7,
16,
14374,
121,
1499,
6,
96,
29364... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
29364,
87,
254,
11158,
2271,
121,
21680,
953,
834,
2445,
4327,
536,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
2494,
565,
3329,
52,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Draw a bar chart about the distribution of ACC_Road and the sum of School_ID , and group by attribute ACC_Road. | CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Per... | SELECT ACC_Road, SUM(School_ID) FROM basketball_match GROUP BY ACC_Road | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3819,
41,
1121,
834,
4309,
16,
17,
6,
1121,
1499,
6,
10450,
1499,
6,
3,
20100,
490,
6,
71,
89,
8027,
23,
257,
1499,
6,
695,
4046,
297,
490,
6,
7486,
4350,
1499,
6,
14542,
834,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
14775,
834,
448,
32,
9,
26,
6,
180,
6122,
599,
29364,
834,
4309,
61,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
3,
14775,
834,
448,
32,
9,
26,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
provide the number of patients whose insurance is government and procedure long title is biopsy of tonsils and adenoids? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = "Government" AND procedures.long_title = "Biopsy of tonsils and adenoids" | [
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,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What player has a number of playoff games played greater than 0? | CREATE TABLE table_56168 (
"Rd #" real,
"Pick #" real,
"Player" text,
"Team (League)" text,
"Reg GP" real,
"Pl GP" real
) | SELECT "Player" FROM table_56168 WHERE "Pl GP" > '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4834,
24274,
41,
96,
448,
26,
1713,
121,
490,
6,
96,
345,
3142,
1713,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
18699,
41,
2796,
9,
5398,
61,
121,
1499,
6,
96,
1774... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15800,
49,
121,
21680,
953,
834,
4834,
24274,
549,
17444,
427,
96,
345,
40,
3,
8049,
121,
2490,
3,
31,
632,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the report for round 3? | CREATE TABLE table_193 (
"Round" real,
"Grand Prix" text,
"Pole Position" text,
"Fastest Lap" text,
"Winning Driver" text,
"Winning Constructor" text,
"Report" text
) | SELECT "Report" FROM table_193 WHERE "Round" = '3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
519,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
4744,
727,
12942,
121,
1499,
6,
96,
8931,
15,
14258,
121,
1499,
6,
96,
371,
9,
7,
4377,
325,
102,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
1493,
121,
21680,
953,
834,
2294,
519,
549,
17444,
427,
96,
448,
32,
1106,
121,
3274,
3,
31,
519,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what's the height with current club being dkv joventut | CREATE TABLE table_17895 (
"No" real,
"Player" text,
"Height" text,
"Position" text,
"Year born" real,
"Current Club" text
) | SELECT "Height" FROM table_17895 WHERE "Current Club" = 'DKV Joventut' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27640,
3301,
41,
96,
4168,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
3845,
2632,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
476,
2741,
2170,
121,
490,
6,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3845,
2632,
121,
21680,
953,
834,
27640,
3301,
549,
17444,
427,
96,
254,
450,
5320,
1949,
121,
3274,
3,
31,
308,
439,
553,
2194,
2169,
76,
17,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
get me the number of emergency hospital admitted patients who were administered nitric oxide inhalation. | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND procedures.long_title = "Administration of inhaled nitric oxide" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
How many players have more than 1000 hours of training? | CREATE TABLE Player (
HS INTEGER
) | SELECT COUNT(*) FROM Player WHERE HS > 1000 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
12387,
41,
3,
4950,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1508,
43,
72,
145,
5580,
716,
13,
761,
58,
1,
0,
0,
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,
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,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
12387,
549,
17444,
427,
3,
4950,
2490,
5580,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many patients have the admission location as clinic referral/premature and have their diagnoses short title as chr tot occlus cor artry? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_location = "CLINIC REFERRAL/PREMATURE" AND diagnoses.short_title = "Chr tot occlus cor artry" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
What was the race that was won by a Maserati being driven by Giuseppe Campari? | CREATE TABLE table_name_67 (circuit VARCHAR, winning_constructor VARCHAR, winning_drivers VARCHAR) | SELECT circuit FROM table_name_67 WHERE winning_constructor = "maserati" AND winning_drivers = "giuseppe campari" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
15357,
21560,
584,
4280,
28027,
6,
3447,
834,
15982,
5317,
584,
4280,
28027,
6,
3447,
834,
13739,
52,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4558,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
3447,
834,
15982,
5317,
3274,
96,
2754,
15,
6850,
121,
3430,
3447,
834,
13739,
52,
7,
3274,
96,
24930,
7,
15,
6811,
2856,
1665,
121,
1,
-100,
-100,
-100,
-100... |
How many cities are there that have more than 3 airports? | CREATE TABLE airports (city VARCHAR) | SELECT COUNT(*) FROM (SELECT city FROM airports GROUP BY city HAVING COUNT(*) > 3) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3761,
7,
41,
6726,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
3119,
33,
132,
24,
43,
72,
145,
220,
3761,
7,
58,
1,
0,
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,
2847,
17161,
599,
1935,
61,
21680,
41,
23143,
14196,
690,
21680,
3761,
7,
350,
4630,
6880,
272,
476,
690,
454,
6968,
2365,
2847,
17161,
599,
1935,
61,
2490,
3,
5268,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how long is the remix that was used in the movie 21 ? | CREATE TABLE table_203_289 (
id number,
"version" text,
"length" text,
"album" text,
"remixed by" text,
"year" number,
"comment" text
) | SELECT "length" FROM table_203_289 WHERE "comment" = 'used in a scene in the 2008 movie 21' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
357,
3914,
41,
3,
23,
26,
381,
6,
96,
8674,
121,
1499,
6,
96,
19457,
121,
1499,
6,
96,
23703,
121,
1499,
6,
96,
60,
13682,
15,
26,
57,
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,
1... | [
3,
23143,
14196,
96,
19457,
121,
21680,
953,
834,
23330,
834,
357,
3914,
549,
17444,
427,
96,
287,
297,
121,
3274,
3,
31,
10064,
16,
3,
9,
3112,
16,
8,
2628,
1974,
1401,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
On what date was the track Ballarat? | CREATE TABLE table_2896329_1 (date VARCHAR, track VARCHAR) | SELECT date FROM table_2896329_1 WHERE track = "Ballarat" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3914,
3891,
3166,
834,
536,
41,
5522,
584,
4280,
28027,
6,
1463,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
833,
47,
8,
1463,
4155,
9,
1795,
58,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
357,
3914,
3891,
3166,
834,
536,
549,
17444,
427,
1463,
3274,
96,
279,
1748,
9,
1795,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the Home team score when away team is hawthorn? | CREATE TABLE table_name_70 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team AS score FROM table_name_70 WHERE away_team = "hawthorn" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
5515,
834,
11650,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1210,
372,
2604,
116,
550,
372,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
234,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
550,
834,
11650,
3274,
96,
1024,
210,
17,
6293,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
how many teams are in the east region . | CREATE TABLE table_203_200 (
id number,
"region" text,
"seed" number,
"team" text,
"coach" text,
"finished" text,
"final opponent" text,
"score" text
) | SELECT COUNT("team") FROM table_203_200 WHERE "region" = 'east' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
3632,
41,
3,
23,
26,
381,
6,
96,
18145,
121,
1499,
6,
96,
7,
6958,
121,
381,
6,
96,
11650,
121,
1499,
6,
96,
509,
1836,
121,
1499,
6,
96,
19420,
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,
11650,
8512,
21680,
953,
834,
23330,
834,
3632,
549,
17444,
427,
96,
18145,
121,
3274,
3,
31,
11535,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the record following game 67? | CREATE TABLE table_name_37 (record VARCHAR, game VARCHAR) | SELECT record FROM table_name_37 WHERE game = 67 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
60,
7621,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1368,
826,
467,
3,
3708,
58,
1,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
467,
3274,
3,
3708,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show all countries and the number of people from each country in a pie chart. | CREATE TABLE people (
People_ID int,
Name text,
Country text,
Is_Male text,
Age int
)
CREATE TABLE wedding (
Church_ID int,
Male_ID int,
Female_ID int,
Year int
)
CREATE TABLE church (
Church_ID int,
Name text,
Organized_by text,
Open_Date int,
Continuation_of t... | SELECT Country, COUNT(*) FROM people GROUP BY Country | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
151,
41,
2449,
834,
4309,
16,
17,
6,
5570,
1499,
6,
6993,
1499,
6,
27,
7,
834,
329,
9,
109,
1499,
6,
7526,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
168... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
6993,
6,
2847,
17161,
599,
1935,
61,
21680,
151,
350,
4630,
6880,
272,
476,
6993,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was team #1 on 9 September 2006? | CREATE TABLE table_2015453_1 (
team__number1 VARCHAR,
date VARCHAR
) | SELECT team__number1 FROM table_2015453_1 WHERE date = "9 September 2006" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
8651,
2128,
519,
834,
536,
41,
372,
834,
834,
5525,
1152,
536,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
372,
7172,
30,
66... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
834,
834,
5525,
1152,
536,
21680,
953,
834,
8651,
2128,
519,
834,
536,
549,
17444,
427,
833,
3274,
96,
1298,
1600,
3581,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Goals have Apps smaller than 1? | CREATE TABLE table_name_41 (
goals INTEGER,
apps INTEGER
) | SELECT AVG(goals) FROM table_name_41 WHERE apps < 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
1766,
3,
21342,
17966,
6,
4050,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
17916,
7,
43,
2276,
7,
2755,
145,
209,
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,
71,
17217,
599,
839,
5405,
61,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
4050,
3,
2,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total number of Points- when the Sets- is larger than 51? | CREATE TABLE table_name_56 (
points_ VARCHAR,
sets_ INTEGER
) | SELECT COUNT(points_) FROM table_name_56 WHERE sets_ > 51 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4834,
41,
979,
834,
584,
4280,
28027,
6,
3369,
834,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
381,
13,
4564,
7,
18,
116,
8,
2821,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
2700,
7,
834,
61,
21680,
953,
834,
4350,
834,
4834,
549,
17444,
427,
3369,
834,
2490,
11696,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the highest value for multi lane if category wise is major district roads? | CREATE TABLE table_28723146_2 (
multi_lane INTEGER,
category_wise VARCHAR
) | SELECT MAX(multi_lane) FROM table_28723146_2 WHERE category_wise = "Major district roads" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4225,
2773,
24300,
834,
357,
41,
1249,
834,
8102,
3,
21342,
17966,
6,
3295,
834,
10684,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
23829,
834,
8102,
61,
21680,
953,
834,
357,
4225,
2773,
24300,
834,
357,
549,
17444,
427,
3295,
834,
10684,
3274,
96,
329,
9,
12775,
3939,
7540,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the total freights in metric tonnes when the total transit passengers is 147791? | CREATE TABLE table_19006 (
"Rank" real,
"Airport" text,
"Total Passengers" real,
"% Change 2007/2008" text,
"International Passengers" real,
"Domestic Passengers" real,
"Transit Passengers" real,
"Aircraft Movements" real,
"Freight ( Metric Tonnes )" real
) | SELECT "Freight ( Metric Tonnes )" FROM table_19006 WHERE "Transit Passengers" = '147791' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11776,
5176,
41,
96,
22557,
121,
490,
6,
96,
20162,
1493,
121,
1499,
6,
96,
3696,
1947,
3424,
4606,
277,
121,
490,
6,
96,
1454,
5968,
4101,
87,
16128,
121,
1499,
6,
96,
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,
96,
371,
60,
2632,
41,
1212,
3929,
8475,
1496,
3,
61,
121,
21680,
953,
834,
11776,
5176,
549,
17444,
427,
96,
18474,
155,
3424,
4606,
277,
121,
3274,
3,
31,
2534,
4013,
4729,
31,
1,
-100,
-100,
-100,
-100,
-100,
-... |
Which country is George Archer from? | CREATE TABLE table_77322 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
) | SELECT "Country" FROM table_77322 WHERE "Player" = 'george archer' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
2668,
357,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
490,
6,
96,
3696,
260,
121,
1499,
3,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
10628,
651,
121,
21680,
953,
834,
4013,
2668,
357,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
397,
1677,
15,
11508,
49,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which podiums have a final placing of 10th? | CREATE TABLE table_15852257_1 (
podiums VARCHAR,
final_placing VARCHAR
) | SELECT podiums FROM table_15852257_1 WHERE final_placing = "10th" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
4433,
2884,
3436,
834,
536,
41,
22828,
7,
584,
4280,
28027,
6,
804,
834,
6042,
75,
53,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
22828,
7,
43,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
22828,
7,
21680,
953,
834,
1808,
4433,
2884,
3436,
834,
536,
549,
17444,
427,
804,
834,
6042,
75,
53,
3274,
96,
1714,
189,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the ranks of captains that have no captain that are in the Third-rate ship of the line class? | CREATE TABLE ship (
ship_id number,
name text,
type text,
built_year number,
class text,
flag text
)
CREATE TABLE captain (
captain_id number,
name text,
ship_id number,
age text,
class text,
rank text
) | SELECT rank FROM captain EXCEPT SELECT rank FROM captain WHERE class = 'Third-rate ship of the line' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4383,
41,
4383,
834,
23,
26,
381,
6,
564,
1499,
6,
686,
1499,
6,
1192,
834,
1201,
381,
6,
853,
1499,
6,
5692,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1426... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
11003,
21680,
14268,
262,
4,
30416,
3,
23143,
14196,
11003,
21680,
14268,
549,
17444,
427,
853,
3274,
3,
31,
382,
9288,
26,
18,
2206,
4383,
13,
8,
689,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the power for the years 1975-84? | CREATE TABLE table_name_40 (power VARCHAR, years VARCHAR) | SELECT power FROM table_name_40 WHERE years = "1975-84" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
6740,
584,
4280,
28027,
6,
203,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
579,
21,
8,
203,
16312,
18,
4608,
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,
579,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
203,
3274,
96,
27181,
27698,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
When was the coin with the mass of 3.7 g first minted? | CREATE TABLE table_17976 (
"Value" text,
"Diameter" text,
"Thickness" text,
"Mass" text,
"Composition" text,
"Edge" text,
"Obverse" text,
"Reverse" text,
"first minting" real,
"issue" text,
"withdrawal" text,
"lapse" text
) | SELECT "first minting" FROM table_17976 WHERE "Mass" = '3.7 g' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26593,
3959,
41,
96,
18392,
76,
15,
121,
1499,
6,
96,
23770,
4401,
121,
1499,
6,
96,
8991,
3142,
655,
121,
1499,
6,
96,
27189,
121,
1499,
6,
96,
5890,
4718,
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,
14672,
13983,
53,
121,
21680,
953,
834,
26593,
3959,
549,
17444,
427,
96,
27189,
121,
3274,
3,
31,
25168,
3,
122,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What city is Garfield County Museum located in? | CREATE TABLE table_name_39 (town_city VARCHAR, name VARCHAR) | SELECT town_city FROM table_name_39 WHERE name = "garfield county museum" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
3540,
834,
6726,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
690,
19,
3121,
1846,
1334,
3312,
1069,
16,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1511,
834,
6726,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
564,
3274,
96,
1478,
1846,
5435,
7071,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
who is the voice actor with the birthday march 26? | CREATE TABLE table_26615633_1 (voice_actor VARCHAR, birthday VARCHAR) | SELECT voice_actor FROM table_26615633_1 WHERE birthday = "March 26" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3539,
25463,
4201,
834,
536,
41,
23235,
834,
9,
5317,
584,
4280,
28027,
6,
3591,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
113,
19,
8,
2249,
7556,
28,
8,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2249,
834,
9,
5317,
21680,
953,
834,
357,
3539,
25463,
4201,
834,
536,
549,
17444,
427,
3591,
3274,
96,
25019,
2208,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the record on October 13, when philadelphia was the home team? | CREATE TABLE table_name_47 (
record VARCHAR,
home VARCHAR,
date VARCHAR
) | SELECT record FROM table_name_47 WHERE home = "philadelphia" AND date = "october 13" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
1368,
584,
4280,
28027,
6,
234,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1368,
30,
1797,
10670,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1368,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
234,
3274,
96,
18118,
15311,
11692,
9,
121,
3430,
833,
3274,
96,
32,
75,
235,
1152,
1179,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the womens double winner when the womens singles winner was Ding Ning? | CREATE TABLE table_28138035_32 (
womens_doubles VARCHAR,
womens_singles VARCHAR
) | SELECT womens_doubles FROM table_28138035_32 WHERE womens_singles = "Ding Ning" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
2368,
2079,
2469,
834,
2668,
41,
887,
7,
834,
25761,
7,
584,
4280,
28027,
6,
887,
7,
834,
7,
53,
965,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
887,
7,
834,
25761,
7,
21680,
953,
834,
2577,
2368,
2079,
2469,
834,
2668,
549,
17444,
427,
887,
7,
834,
7,
53,
965,
3274,
96,
308,
53,
445,
53,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total year of release of the title what goes around comes around? | CREATE TABLE table_name_75 (year_of_release VARCHAR, title VARCHAR) | SELECT COUNT(year_of_release) FROM table_name_75 WHERE title = "what goes around comes around" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
1201,
834,
858,
834,
21019,
584,
4280,
28027,
6,
2233,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
215,
13,
1576,
13,
8,
2233... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1201,
834,
858,
834,
21019,
61,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
2233,
3274,
96,
9170,
1550,
300,
639,
300,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what are some good restaurants in the yosemite and mono lake area for french food ? | CREATE TABLE location (
restaurant_id int,
house_number int,
street_name varchar,
city_name varchar
)
CREATE TABLE geographic (
city_name varchar,
county varchar,
region varchar
)
CREATE TABLE restaurant (
id int,
name varchar,
food_type varchar,
city_name varchar,
rati... | SELECT location.house_number, restaurant.name FROM geographic, location, restaurant WHERE geographic.region = 'yosemite and mono lake area' AND restaurant.city_name = geographic.city_name AND restaurant.food_type = 'french' AND restaurant.id = location.restaurant_id AND restaurant.rating > 2.5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1128,
41,
2062,
834,
23,
26,
16,
17,
6,
629,
834,
5525,
1152,
16,
17,
6,
2815,
834,
4350,
3,
4331,
4059,
6,
690,
834,
4350,
3,
4331,
4059,
3,
61,
3,
32102,
32103,
32102,
205,
438... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1128,
5,
1840,
834,
5525,
1152,
6,
2062,
5,
4350,
21680,
20929,
6,
1128,
6,
2062,
549,
17444,
427,
20929,
5,
18145,
3274,
3,
31,
63,
32,
7,
15,
1538,
15,
11,
7414,
6957,
616,
31,
3430,
2062,
5,
6726,
834,
4350,
... |
how many district with incumbent being david delano glover | CREATE TABLE table_1342331_5 (district VARCHAR, incumbent VARCHAR) | SELECT COUNT(district) FROM table_1342331_5 WHERE incumbent = "David Delano Glover" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2773,
3341,
834,
755,
41,
26,
23,
20066,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
149,
186,
3939,
28,
28406,
271,
836,
6961,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
26,
23,
20066,
61,
21680,
953,
834,
23747,
2773,
3341,
834,
755,
549,
17444,
427,
28406,
3274,
96,
308,
9,
6961,
374,
1618,
32,
9840,
624,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is the number of patients whose gender is f and primary disease is pneumonia? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = "F" AND demographic.diagnosis = "PNEUMONIA" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
122,
3868,
3274,
96,
371,
121,
3430,
14798,
5,
25930,
4844,
159,
3274,
96,
15420,
12062,
5365,
260... |
When the team is lake superior state how many times did they place fourth? | CREATE TABLE table_1571238_2 (fourth_place INTEGER, team VARCHAR) | SELECT MIN(fourth_place) FROM table_1571238_2 WHERE team = "Lake Superior State" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27452,
2122,
3747,
834,
357,
41,
12521,
189,
834,
4687,
3,
21342,
17966,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
8,
372,
19,
6957,
4784,
538,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
12521,
189,
834,
4687,
61,
21680,
953,
834,
27452,
2122,
3747,
834,
357,
549,
17444,
427,
372,
3274,
96,
3612,
1050,
19463,
1015,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the highest rank of a nation with fewer than 0 silver medals? | CREATE TABLE table_name_43 (rank INTEGER, silver INTEGER) | SELECT MAX(rank) FROM table_name_43 WHERE silver < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
6254,
3,
21342,
17966,
6,
4294,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
11003,
13,
3,
9,
2982,
28,
3,
10643,
145,
3,
63... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
6254,
61,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
4294,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the position for the player born 2 november 1987 | CREATE TABLE table_37326 (
"Player" text,
"Position" text,
"Date of Birth (Age)" text,
"Caps" real,
"Club/province" text
) | SELECT "Position" FROM table_37326 WHERE "Date of Birth (Age)" = '2 november 1987' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4118,
519,
2688,
41,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
308,
342,
13,
26337,
41,
188,
397,
61,
121,
1499,
6,
96,
19566,
7,
121,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
32,
7,
4749,
121,
21680,
953,
834,
4118,
519,
2688,
549,
17444,
427,
96,
308,
342,
13,
26337,
41,
188,
397,
61,
121,
3274,
3,
31,
357,
3,
5326,
18247,
12701,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who was the visitor for Chicago Black Hawks on May 6? | CREATE TABLE table_name_7 (visitor VARCHAR, home VARCHAR, date VARCHAR) | SELECT visitor FROM table_name_7 WHERE home = "chicago black hawks" AND date = "may 6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
3466,
155,
127,
584,
4280,
28027,
6,
234,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
7019,
21,
3715,
15... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
7019,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
234,
3274,
96,
1436,
658,
839,
1001,
3,
14400,
7,
121,
3430,
833,
3274,
96,
13726,
431,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many accounts do we have? | CREATE TABLE Accounts (
Id VARCHAR
) | SELECT COUNT(*) FROM Accounts | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6288,
7,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
3744,
103,
62,
43,
58,
1,
0,
0,
0,
0,
0,
0,
0,
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,
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,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
6288,
7,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
I want the league one/second division for club of millwall | CREATE TABLE table_name_80 (
league_one_second_division VARCHAR,
club VARCHAR
) | SELECT league_one_second_division FROM table_name_80 WHERE club = "millwall" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
5533,
834,
782,
834,
12091,
834,
26,
23,
6610,
584,
4280,
28027,
6,
1886,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
27,
241,
8,
5533,
80,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5533,
834,
782,
834,
12091,
834,
26,
23,
6610,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
1886,
3274,
96,
12415,
10279,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What day did they play the New Orleans Saints? | CREATE TABLE table_33717 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) | SELECT "Date" FROM table_33717 WHERE "Opponent" = 'new orleans saints' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
4118,
2517,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
519,
4118,
2517,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
5534,
42,
109,
3247,
15528,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What interface is used on the scanner that has a 36 pages per minute? | CREATE TABLE table_16409745_1 (
interface VARCHAR,
pages_per_minute__color_ VARCHAR
) | SELECT interface FROM table_16409745_1 WHERE pages_per_minute__color_ = 36 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
2445,
4327,
2128,
834,
536,
41,
3459,
584,
4280,
28027,
6,
1688,
834,
883,
834,
6890,
834,
834,
9910,
834,
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,
3459,
21680,
953,
834,
2938,
2445,
4327,
2128,
834,
536,
549,
17444,
427,
1688,
834,
883,
834,
6890,
834,
834,
9910,
834,
3274,
4475,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
A bar chart shows the distribution of meter_700 and ID , I want to rank in ascending by the Y. | CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
CREATE TABLE swimme... | SELECT meter_700, ID FROM swimmer ORDER BY ID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
605,
41,
4699,
16,
17,
6,
5570,
1499,
6,
12750,
834,
4309,
16,
17,
6,
2929,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
14939,
41,
4699,
16,
17,
6,
564,
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,
4401,
834,
9295,
6,
4699,
21680,
27424,
4674,
11300,
272,
476,
4699,
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,
... |
Return a bar chart about the distribution of All_Home and Team_ID , and group by attribute ACC_Road, and rank y-axis in descending order. | CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Per... | SELECT All_Home, Team_ID FROM basketball_match GROUP BY ACC_Road, All_Home ORDER BY Team_ID DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3819,
41,
1121,
834,
4309,
16,
17,
6,
1121,
1499,
6,
10450,
1499,
6,
3,
20100,
490,
6,
71,
89,
8027,
23,
257,
1499,
6,
695,
4046,
297,
490,
6,
7486,
4350,
1499,
6,
14542,
834,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
432,
834,
19040,
6,
2271,
834,
4309,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
3,
14775,
834,
448,
32,
9,
26,
6,
432,
834,
19040,
4674,
11300,
272,
476,
2271,
834,
4309,
309,
25067,
1,
-100,
-100,
-100,
... |
Which season has the Werder Bremen Club and is in Round 2r? | CREATE TABLE table_44194 (
"Season" text,
"Competition" text,
"Round" text,
"Club" text,
"1st Leg" text,
"2nd Leg" text
) | SELECT "Season" FROM table_44194 WHERE "Club" = 'werder bremen' AND "Round" = '2r' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3628,
2294,
591,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
1499,
6,
96,
448,
32,
1106,
121,
1499,
6,
96,
254,
11158,
121,
1499,
6,
96,
536,
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,
134,
15,
9,
739,
121,
21680,
953,
834,
3628,
2294,
591,
549,
17444,
427,
96,
254,
11158,
121,
3274,
3,
31,
3321,
588,
3,
1999,
904,
31,
3430,
96,
448,
32,
1106,
121,
3274,
3,
31,
357,
52,
31,
1,
-100,
-100... |
Name the miles for june 7 | CREATE TABLE table_16493961_1 (miles__km_ VARCHAR, date VARCHAR) | SELECT miles__km_ FROM table_16493961_1 WHERE date = "June 7" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
3647,
3288,
4241,
834,
536,
41,
8770,
7,
834,
834,
5848,
834,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
2286,
21,
3,
695... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2286,
834,
834,
5848,
834,
21680,
953,
834,
2938,
3647,
3288,
4241,
834,
536,
549,
17444,
427,
833,
3274,
96,
683,
444,
489,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the months in Tamil that has an english transliteration of Mun-pani? | CREATE TABLE table_name_89 (
tamil_months VARCHAR,
english_transliteration VARCHAR
) | SELECT tamil_months FROM table_name_89 WHERE english_transliteration = "mun-pani" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
3,
17,
265,
173,
834,
7393,
7,
584,
4280,
28027,
6,
22269,
834,
7031,
9842,
257,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17,
265,
173,
834,
7393,
7,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
22269,
834,
7031,
9842,
257,
3274,
96,
51,
202,
18,
2837,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
In which year was a linebacker pick 17? | CREATE TABLE table_54139 (
"Year" real,
"Pick" text,
"Player name" text,
"Position" text,
"College" text
) | SELECT "Year" FROM table_54139 WHERE "Position" = 'linebacker' AND "Pick" = '17' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5062,
24090,
41,
96,
476,
2741,
121,
490,
6,
96,
345,
3142,
121,
1499,
6,
96,
15800,
49,
564,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
9939,
7883,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
476,
2741,
121,
21680,
953,
834,
5062,
24090,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
747,
1549,
49,
31,
3430,
96,
345,
3142,
121,
3274,
3,
31,
2517,
31,
1,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the brand of DXRE? | CREATE TABLE table_67470 (
"Branding" text,
"Callsign" text,
"Frequency" text,
"Power (kW)" text,
"Location" text
) | SELECT "Branding" FROM table_67470 WHERE "Callsign" = 'dxre' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
27760,
41,
96,
18304,
727,
53,
121,
1499,
6,
96,
254,
1748,
6732,
121,
1499,
6,
96,
371,
60,
835,
11298,
121,
1499,
6,
96,
23553,
41,
21729,
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,
18304,
727,
53,
121,
21680,
953,
834,
3708,
27760,
549,
17444,
427,
96,
254,
1748,
6732,
121,
3274,
3,
31,
26,
226,
60,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is minimum age of patients whose admission type is urgent and year of birth is greater than 2089? | 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 prescriptions (
subject_id text,
hadm_id... | SELECT MIN(demographic.age) FROM demographic WHERE demographic.admission_type = "URGENT" AND demographic.dob_year > "2089" | [
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,
3,
17684,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
6137,
3274,
96,
5905,
517,
6431,
121,
3430,
14798,
5,
26,
32,
115,
834,
1201,
2490,
96,
1755,
3914,
121,
1,
-100,
... |
How many times this institution was founded that was nicknamed Beavers? | CREATE TABLE table_255205_1 (founded VARCHAR, nickname VARCHAR) | SELECT COUNT(founded) FROM table_255205_1 WHERE nickname = "Beavers" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25502,
23201,
834,
536,
41,
23329,
584,
4280,
28027,
6,
24649,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
648,
48,
6568,
47,
5710,
24,
47,
24649,
26,
2814... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
23329,
61,
21680,
953,
834,
25502,
23201,
834,
536,
549,
17444,
427,
24649,
3274,
96,
2703,
9,
2660,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the outcome of the match with score 4 6, 3 6, 2 6? | CREATE TABLE table_25428 (
"Outcome" text,
"Year" real,
"Championship" text,
"Surface" text,
"Opponent in the final" text,
"Score in the final" text
) | SELECT "Outcome" FROM table_25428 WHERE "Score in the final" = '4–6, 3–6, 2–6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
591,
2577,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
476,
2741,
121,
490,
6,
96,
254,
1483,
12364,
2009,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
667,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15767,
287,
15,
121,
21680,
953,
834,
1828,
591,
2577,
549,
17444,
427,
96,
134,
9022,
16,
8,
804,
121,
3274,
3,
31,
591,
104,
11071,
220,
104,
11071,
204,
104,
948,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the drawn for tries for of 42 | CREATE TABLE table_68938 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text,
"Points" text
) | SELECT "Drawn" FROM table_68938 WHERE "Tries for" = '42' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
3914,
3747,
41,
96,
254,
11158,
121,
1499,
6,
96,
15800,
15,
26,
121,
1499,
6,
96,
308,
10936,
29,
121,
1499,
6,
96,
434,
3481,
121,
1499,
6,
96,
22512,
7,
21,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
10936,
29,
121,
21680,
953,
834,
948,
3914,
3747,
549,
17444,
427,
96,
382,
2593,
21,
121,
3274,
3,
31,
4165,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Loss has a Record of 30-32? | CREATE TABLE table_38338 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
) | SELECT "Loss" FROM table_38338 WHERE "Record" = '30-32' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3747,
519,
3747,
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,
434,
32,
7,
7,
121,
21680,
953,
834,
3747,
519,
3747,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
1458,
18,
2668,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who is performing in the back stage position for the song 'Der Kapitan'? Show the first name and last name. | CREATE TABLE vocals (
songid number,
bandmate number,
type text
)
CREATE TABLE tracklists (
albumid number,
position number,
songid number
)
CREATE TABLE albums (
aid number,
title text,
year number,
label text,
type text
)
CREATE TABLE performance (
songid number,
... | SELECT T2.firstname, T2.lastname FROM performance AS T1 JOIN band AS T2 ON T1.bandmate = T2.id JOIN songs AS T3 ON T3.songid = T1.songid WHERE T3.title = "Der Kapitan" AND T1.stageposition = "back" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6721,
7,
41,
2324,
23,
26,
381,
6,
1928,
5058,
381,
6,
686,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1463,
3350,
7,
41,
2306,
23,
26,
381,
6,
1102,
381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
14672,
4350,
6,
332,
4416,
5064,
4350,
21680,
821,
6157,
332,
536,
3,
15355,
3162,
1928,
6157,
332,
357,
9191,
332,
5411,
3348,
5058,
3274,
332,
4416,
23,
26,
3,
15355,
3162,
3605,
6157,
332,
519,
9191,
3... |
What country did Raymond Floyd play for? | CREATE TABLE table_79172 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "Country" FROM table_79172 WHERE "Player" = 'raymond floyd' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4440,
27156,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
10628,
651,
121,
21680,
953,
834,
4440,
27156,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
2866,
6764,
8882,
63,
26,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the total number of Jersey #, when the Position is W, and when the Birthdate is 17 October 1932? | CREATE TABLE table_name_56 (
jersey__number VARCHAR,
position VARCHAR,
birthdate VARCHAR
) | SELECT COUNT(jersey__number) FROM table_name_56 WHERE position = "w" AND birthdate = "17 october 1932" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4834,
41,
13426,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
6,
3879,
5522,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
12488,
7,
15,
63,
834,
834,
5525,
1152,
61,
21680,
953,
834,
4350,
834,
4834,
549,
17444,
427,
1102,
3274,
96,
210,
121,
3430,
3879,
5522,
3274,
96,
2517,
3,
32,
75,
235,
1152,
957,
2668,
121,
1,... |
How many people lived in san gabriel in the year 2000? | CREATE TABLE table_2004733_2 (
population__2000_ VARCHAR,
barangay VARCHAR
) | SELECT COUNT(population__2000_) FROM table_2004733_2 WHERE barangay = "San Gabriel" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3632,
4177,
4201,
834,
357,
41,
2074,
834,
834,
13527,
834,
584,
4280,
28027,
6,
1207,
1468,
9,
63,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
151,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
9791,
7830,
834,
834,
13527,
834,
61,
21680,
953,
834,
3632,
4177,
4201,
834,
357,
549,
17444,
427,
1207,
1468,
9,
63,
3274,
96,
134,
152,
11997,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the smallest crowd size for the match played at Junction Oval? | CREATE TABLE table_name_84 (crowd INTEGER, venue VARCHAR) | SELECT MIN(crowd) FROM table_name_84 WHERE venue = "junction oval" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
75,
3623,
26,
3,
21342,
17966,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
3,
17924,
4374,
812,
21,
8,
1588,
1944,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
75,
3623,
26,
61,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
5669,
3274,
96,
6959,
4985,
17986,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What date did 'getting even' originally air? | CREATE TABLE table_28327 (
"Episode #" real,
"Series #" real,
"Title" text,
"Director" text,
"Writer" text,
"Original airdate" text,
"Viewers (in millions)" text
) | SELECT "Original airdate" FROM table_28327 WHERE "Title" = 'Getting Even' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
519,
2555,
41,
96,
427,
102,
159,
32,
221,
1713,
121,
490,
6,
96,
12106,
7,
1713,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
127,
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,
667,
3380,
10270,
799,
5522,
121,
21680,
953,
834,
2577,
519,
2555,
549,
17444,
427,
96,
382,
155,
109,
121,
3274,
3,
31,
9349,
1441,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the institution for yellowjackets | CREATE TABLE table_23229 (
"Institution" text,
"Nickname" text,
"Location" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Joined" real
) | SELECT "Institution" FROM table_23229 WHERE "Nickname" = 'Yellowjackets' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23188,
3166,
41,
96,
1570,
17448,
121,
1499,
6,
96,
567,
3142,
4350,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
20100,
121,
490,
6,
96,
25160,
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,
1570,
17448,
121,
21680,
953,
834,
23188,
3166,
549,
17444,
427,
96,
567,
3142,
4350,
121,
3274,
3,
31,
476,
7126,
210,
9325,
15,
17,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For each user, return the name and the average rating of reviews given by them. | CREATE TABLE review (rating INTEGER, u_id VARCHAR); CREATE TABLE useracct (name VARCHAR, u_id VARCHAR) | SELECT T1.name, AVG(T2.rating) FROM useracct AS T1 JOIN review AS T2 ON T1.u_id = T2.u_id GROUP BY T2.u_id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1132,
41,
52,
1014,
3,
21342,
17966,
6,
3,
76,
834,
23,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1139,
6004,
17,
41,
4350,
584,
4280,
28027,
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,
332,
5411,
4350,
6,
71,
17217,
599,
382,
4416,
52,
1014,
61,
21680,
1139,
6004,
17,
6157,
332,
536,
3,
15355,
3162,
1132,
6157,
332,
357,
9191,
332,
5411,
76,
834,
23,
26,
3274,
332,
4416,
76,
834,
23,
26,
350,
... |
What is From Club, when Player is "Robinho"? | CREATE TABLE table_name_80 (from_club VARCHAR, player VARCHAR) | SELECT from_club FROM table_name_80 WHERE player = "robinho" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
7152,
834,
13442,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
1029,
1949,
6,
116,
12387,
19,
96,
24372,
2373... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
45,
834,
13442,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
1959,
3274,
96,
5840,
23738,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Where's the location for the opponent James Zikic and 3 rounds? | CREATE TABLE table_name_99 (location VARCHAR, round VARCHAR, opponent VARCHAR) | SELECT location FROM table_name_99 WHERE round = 3 AND opponent = "james zikic" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
14836,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2840,
31,
7,
8,
1128,
21,
8,
15264,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
1751,
3274,
220,
3430,
15264,
3274,
96,
1191,
2687,
3686,
157,
447,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Give me a histogram for how many rooms cost more than 120, for each different decor?, could you order from high to low by the Y-axis? | CREATE TABLE Rooms (
RoomId TEXT,
roomName TEXT,
beds INTEGER,
bedType TEXT,
maxOccupancy INTEGER,
basePrice INTEGER,
decor TEXT
)
CREATE TABLE Reservations (
Code INTEGER,
Room TEXT,
CheckIn TEXT,
CheckOut TEXT,
Rate REAL,
LastName TEXT,
FirstName TEXT,
Adul... | SELECT decor, COUNT(*) FROM Rooms WHERE basePrice > 120 GROUP BY decor ORDER BY COUNT(*) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4181,
7,
41,
4181,
196,
26,
3,
3463,
4,
382,
6,
562,
23954,
3,
3463,
4,
382,
6,
8326,
3,
21342,
17966,
6,
1953,
25160,
3,
3463,
4,
382,
6,
9858,
667,
75,
4658,
6833,
3,
21342,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4469,
6,
2847,
17161,
599,
1935,
61,
21680,
4181,
7,
549,
17444,
427,
1247,
345,
4920,
2490,
5864,
350,
4630,
6880,
272,
476,
4469,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
1,
-100,
-100,
-100,
... |
Manager of spencer abbott, and a Year of 1919 involves what playoffs? | CREATE TABLE table_35654 (
"Year" real,
"League" text,
"Class" text,
"Record" text,
"Finish" text,
"Manager" text,
"Playoffs" text
) | SELECT "Playoffs" FROM table_35654 WHERE "Manager" = 'spencer abbott' AND "Year" = '1919' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
4122,
591,
41,
96,
476,
2741,
121,
490,
6,
96,
2796,
9,
5398,
121,
1499,
6,
96,
21486,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
371,
77,
1273,
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,
15800,
1647,
7,
121,
21680,
953,
834,
2469,
4122,
591,
549,
17444,
427,
96,
27272,
121,
3274,
3,
31,
7,
3208,
2110,
703,
4045,
17,
31,
3430,
96,
476,
2741,
121,
3274,
3,
31,
2294,
2294,
31,
1,
-100,
-100,
-1... |
Which Venue has a Date of 21 june 2000? | CREATE TABLE table_name_46 (
venue VARCHAR,
date VARCHAR
) | SELECT venue FROM table_name_46 WHERE date = "21 june 2000" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
5669,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
29940,
65,
3,
9,
7678,
13,
1401,
3,
6959,
15,
2766,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5669,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
833,
3274,
96,
2658,
3,
6959,
15,
2766,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
In what venue was the away team South Melbourne? | CREATE TABLE table_name_62 (venue VARCHAR, away_team VARCHAR) | SELECT venue FROM table_name_62 WHERE away_team = "south melbourne" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
15098,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
86,
125,
5669,
47,
8,
550,
372,
1013,
9396,
58,
1,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5669,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
550,
834,
11650,
3274,
96,
7,
670,
107,
3,
2341,
26255,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the average Lead Margin on november 13-november 19, 2007? | CREATE TABLE table_name_86 (lead_margin INTEGER, dates_administered VARCHAR) | SELECT AVG(lead_margin) FROM table_name_86 WHERE dates_administered = "november 13-november 19, 2007" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
109,
9,
26,
834,
1635,
122,
77,
3,
21342,
17966,
6,
5128,
834,
9,
26,
17791,
15,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
109,
9,
26,
834,
1635,
122,
77,
61,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
5128,
834,
9,
26,
17791,
15,
26,
3274,
96,
5326,
18247,
1179,
18,
5326,
18247,
12370,
4101,
121,
1,
-100,
-100... |
Visualize a bar chart about the distribution of ACC_Road and the sum of School_ID , and group by attribute ACC_Road, and display names from low to high order. | CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Per... | SELECT ACC_Road, SUM(School_ID) FROM basketball_match GROUP BY ACC_Road ORDER BY ACC_Road | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3819,
41,
1121,
834,
4309,
16,
17,
6,
1121,
1499,
6,
10450,
1499,
6,
3,
20100,
490,
6,
71,
89,
8027,
23,
257,
1499,
6,
695,
4046,
297,
490,
6,
7486,
4350,
1499,
6,
14542,
834,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
14775,
834,
448,
32,
9,
26,
6,
180,
6122,
599,
29364,
834,
4309,
61,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
3,
14775,
834,
448,
32,
9,
26,
4674,
11300,
272,
476,
3,
14775,
834,
448,
32,
9,
26,
... |
Name the record for l 90 100 (ot) | CREATE TABLE table_22879323_9 (
record VARCHAR,
score VARCHAR
) | SELECT record FROM table_22879323_9 WHERE score = "L 90–100 (OT)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
4225,
4271,
2773,
834,
1298,
41,
1368,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1368,
21,
3,
40,
2777,
910,
41,
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,
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,
2884,
4225,
4271,
2773,
834,
1298,
549,
17444,
427,
2604,
3274,
96,
434,
2777,
104,
2915,
41,
6951,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
count the number of patients diagnosed with unspecified insomnia who were admitted in hospital before 2165. | 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,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2165" AND diagnoses.short_title = "Insomnia NOS" | [
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,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
Who was the opponent with a record of 14-4-1 and has a round of 1? | CREATE TABLE table_name_45 (
opponent VARCHAR,
round VARCHAR,
record VARCHAR
) | SELECT opponent FROM table_name_45 WHERE round = "1" AND record = "14-4-1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
15264,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
15264,
28,
3,
9,
1368... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
1751,
3274,
96,
536,
121,
3430,
1368,
3274,
96,
2534,
4278,
2292,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the total losses against 1412, and 10 wins, but draws less than 0? | CREATE TABLE table_39949 (
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
) | SELECT SUM("Losses") FROM table_39949 WHERE "Against" > '1412' AND "Wins" = '10' AND "Draws" < '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3264,
3647,
41,
96,
18455,
7,
121,
490,
6,
96,
279,
10070,
121,
490,
6,
96,
434,
13526,
7,
121,
490,
6,
96,
308,
10936,
7,
121,
490,
6,
96,
20749,
121,
490,
3,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
434,
13526,
7,
8512,
21680,
953,
834,
519,
3264,
3647,
549,
17444,
427,
96,
20749,
121,
2490,
3,
31,
2534,
2122,
31,
3430,
96,
18455,
7,
121,
3274,
3,
31,
1714,
31,
3430,
96,
308,
10936,
7,
... |
What opponent has December 6, 1964 as the date? | CREATE TABLE table_name_40 (
opponent VARCHAR,
date VARCHAR
) | SELECT opponent FROM table_name_40 WHERE date = "december 6, 1964" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
15264,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
15264,
65,
1882,
8580,
18969,
38,
8,
833,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15264,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
833,
3274,
96,
221,
75,
18247,
8580,
18969,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the nickname with age of 4.9 | CREATE TABLE table_67739 (
"Island" text,
"Nickname" text,
"Area" text,
"Population (as of 2010)" real,
"Highest point" text,
"Elevation" text,
"Age ( Ma )" text
) | SELECT "Nickname" FROM table_67739 WHERE "Age ( Ma )" = '4.9' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
940,
3288,
41,
96,
196,
7,
40,
232,
121,
1499,
6,
96,
567,
3142,
4350,
121,
1499,
6,
96,
188,
864,
121,
1499,
6,
96,
27773,
7830,
41,
9,
7,
13,
2735,
61,
121,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
567,
3142,
4350,
121,
21680,
953,
834,
3708,
940,
3288,
549,
17444,
427,
96,
188,
397,
41,
1534,
3,
61,
121,
3274,
3,
31,
27336,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
where births is 388 000 how many number is natural increase | CREATE TABLE table_21258_1 (
natural_increase VARCHAR,
births VARCHAR
) | SELECT COUNT(natural_increase) FROM table_21258_1 WHERE births = "388 000" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24837,
3449,
834,
536,
41,
793,
834,
77,
24706,
584,
4280,
28027,
6,
3879,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
213,
3879,
7,
19,
220,
4060,
6078,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
14884,
834,
77,
24706,
61,
21680,
953,
834,
24837,
3449,
834,
536,
549,
17444,
427,
3879,
7,
3274,
96,
519,
4060,
6078,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the home city for angelo massimino stadium? | CREATE TABLE table_name_7 (
home_city VARCHAR,
stadium VARCHAR
) | SELECT home_city FROM table_name_7 WHERE stadium = "angelo massimino" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
234,
834,
6726,
584,
4280,
28027,
6,
14939,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
234,
690,
21,
11831,
32,
3294,
23,
1109,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
6726,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
14939,
3274,
96,
3280,
40,
32,
3294,
23,
1109,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.