NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What was the record for December 5, 1948? | CREATE TABLE table_77155 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Record" text
) | SELECT "Record" FROM table_77155 WHERE "Date" = 'december 5, 1948' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
20896,
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,
1649,
7621,
121,
1499,
3,
61,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
1649,
7621,
121,
21680,
953,
834,
4013,
20896,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
221,
75,
18247,
7836,
21474,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is Record, when Date is "December 30"? | CREATE TABLE table_name_22 (record VARCHAR, date VARCHAR) | SELECT record FROM table_name_22 WHERE date = "december 30" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
60,
7621,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
11392,
6,
116,
7678,
19,
96,
29835,
604,
121,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
833,
3274,
96,
221,
75,
18247,
604,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which date has a competition type of friendly and a score of 2-1? | CREATE TABLE table_name_3 (
date VARCHAR,
competition VARCHAR,
score VARCHAR
) | SELECT date FROM table_name_3 WHERE competition = "friendly" AND score = "2-1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
833,
584,
4280,
28027,
6,
2259,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
833,
65,
3,
9,
2259,
686,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
2259,
3274,
96,
4905,
121,
3430,
2604,
3274,
96,
17234,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is the number of patients whose procedure icd9 code is 8960 and drug type is base? | 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 procedures ON demographic.hadm_id = procedures.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE procedures.icd9_code = "8960" AND prescriptions.drug_type = "BASE" | [
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,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
3388,
18206... |
What season had a downhill of 35 and overall greater than 21? | CREATE TABLE table_name_53 (season VARCHAR, downhill VARCHAR, overall VARCHAR) | SELECT COUNT(season) FROM table_name_53 WHERE downhill = "35" AND overall > 21 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
9476,
584,
4280,
28027,
6,
323,
6321,
584,
4280,
28027,
6,
1879,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
774,
141,
3,
9,
323,
6321,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
9476,
61,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
323,
6321,
3274,
96,
2469,
121,
3430,
1879,
2490,
1401,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Show the census ranking of cities whose status are not 'Village'. | CREATE TABLE farm (
farm_id number,
year number,
total_horses number,
working_horses number,
total_cattle number,
oxen number,
bulls number,
cows number,
pigs number,
sheep_and_goats number
)
CREATE TABLE city (
city_id number,
official_name text,
status text,
ar... | SELECT census_ranking FROM city WHERE status <> "Village" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3797,
41,
3797,
834,
23,
26,
381,
6,
215,
381,
6,
792,
834,
107,
127,
2260,
381,
6,
464,
834,
107,
127,
2260,
381,
6,
792,
834,
658,
8692,
381,
6,
3,
32,
226,
35,
381,
6,
8434,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
23087,
834,
6254,
53,
21680,
690,
549,
17444,
427,
2637,
3,
2,
3155,
96,
553,
17614,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
On what day did the team play the Indianapolis Colts? | CREATE TABLE table_name_26 (
date VARCHAR,
opponent VARCHAR
) | SELECT date FROM table_name_26 WHERE opponent = "indianapolis colts" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
833,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
239,
410,
8,
372,
577,
8,
23385,
3043,
17,
7,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
15264,
3274,
96,
77,
8603,
9,
15621,
7632,
17,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What township is 34.781 square miles? | CREATE TABLE table_18600760_18 (
township VARCHAR,
land___sqmi__ VARCHAR
) | SELECT township FROM table_18600760_18 WHERE land___sqmi__ = "34.781" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24700,
4560,
3328,
834,
2606,
41,
1511,
2009,
584,
4280,
28027,
6,
1322,
834,
834,
834,
7,
1824,
51,
23,
834,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1511,
2009,
21680,
953,
834,
24700,
4560,
3328,
834,
2606,
549,
17444,
427,
1322,
834,
834,
834,
7,
1824,
51,
23,
834,
834,
3274,
96,
519,
25211,
4959,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
In how many districts was the incumbent David Delano Glover? | CREATE TABLE table_1342338_5 (
district VARCHAR,
incumbent VARCHAR
) | SELECT COUNT(district) FROM table_1342338_5 WHERE incumbent = "David Delano Glover" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2773,
3747,
834,
755,
41,
3939,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
86,
149,
186,
14126,
47,
8,
28406,
1955,
374,
1618,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3747,
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 was the home team score when North Melbourne was the away team? | CREATE TABLE table_name_8 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team AS score FROM table_name_8 WHERE away_team = "north melbourne" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
5515,
834,
11650,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
234,
372,
2604,
116,
1117,
9396,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
550,
834,
11650,
3274,
96,
29,
127,
189,
3,
2341,
26255,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest number of total championships of the University of Santo Tomas, which has less than 2 men's? | CREATE TABLE table_40126 (
"University" text,
"Men's" real,
"Women's" real,
"Runner-up" real,
"Total Championships" real
) | SELECT MIN("Total Championships") FROM table_40126 WHERE "University" = 'university of santo tomas' AND "Men's" < '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20016,
2688,
41,
96,
8313,
485,
121,
1499,
6,
96,
329,
35,
31,
7,
121,
490,
6,
96,
518,
32,
904,
31,
7,
121,
490,
6,
96,
23572,
18,
413,
121,
490,
6,
96,
3696,
1947,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3696,
1947,
7666,
7,
8512,
21680,
953,
834,
20016,
2688,
549,
17444,
427,
96,
8313,
485,
121,
3274,
3,
31,
7846,
485,
13,
3,
7,
288,
32,
12,
2754,
31,
3430,
96,
329,
35,
31,
7,
121,
3,
2,
... |
what is the circuit where the fastest lap is sam lowes and the winning rider is luca scassa? | CREATE TABLE table_29686983_1 (
circuit VARCHAR,
fastest_lap VARCHAR,
winning_rider VARCHAR
) | SELECT circuit FROM table_29686983_1 WHERE fastest_lap = "Sam Lowes" AND winning_rider = "Luca Scassa" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
3651,
3951,
4591,
834,
536,
41,
4558,
584,
4280,
28027,
6,
10391,
834,
8478,
584,
4280,
28027,
6,
3447,
834,
4055,
49,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4558,
21680,
953,
834,
3166,
3651,
3951,
4591,
834,
536,
549,
17444,
427,
10391,
834,
8478,
3274,
96,
134,
265,
5586,
15,
7,
121,
3430,
3447,
834,
4055,
49,
3274,
96,
11748,
9,
4712,
9,
7,
7,
9,
121,
1,
-100,
-1... |
What was the air date in the U.S. for the episode that had 1.452 million Canadian viewers? | CREATE TABLE table_18424435_4 (
us_air_date VARCHAR,
canadian_viewers__million_ VARCHAR
) | SELECT us_air_date FROM table_18424435_4 WHERE canadian_viewers__million_ = "1.452" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
4165,
3628,
2469,
834,
591,
41,
178,
834,
2256,
834,
5522,
584,
4280,
28027,
6,
54,
9,
8603,
834,
4576,
277,
834,
834,
17030,
834,
584,
4280,
28027,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
178,
834,
2256,
834,
5522,
21680,
953,
834,
2606,
4165,
3628,
2469,
834,
591,
549,
17444,
427,
54,
9,
8603,
834,
4576,
277,
834,
834,
17030,
834,
3274,
96,
14912,
5373,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Give me the names of customers who have placed orders between 2009-01-01 and 2010-01-01. | CREATE TABLE orders (customer_id VARCHAR, date_order_placed VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR) | SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.date_order_placed >= "2009-01-01" AND T2.date_order_placed <= "2010-01-01" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5022,
41,
25697,
49,
834,
23,
26,
584,
4280,
28027,
6,
833,
834,
9397,
834,
4687,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
722,
41,
25697,
49,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
25697,
49,
834,
4350,
21680,
722,
6157,
332,
536,
3,
15355,
3162,
5022,
6157,
332,
357,
9191,
332,
5411,
25697,
49,
834,
23,
26,
3274,
332,
4416,
25697,
49,
834,
23,
26,
549,
17444,
427,
332,
4416,
5522,
... |
which circuit has less screens than bow tie cinemas ? | CREATE TABLE table_203_752 (
id number,
"rank" number,
"circuit" text,
"headquarters" text,
"screens" number,
"sites" number
) | SELECT "circuit" FROM table_203_752 WHERE "screens" < (SELECT "screens" FROM table_203_752 WHERE "circuit" = 'bow tie cinemas') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
3072,
357,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
15357,
21560,
121,
1499,
6,
96,
3313,
19973,
7,
121,
1499,
6,
96,
8527,
7,
121,
381,
6,
96,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15357,
21560,
121,
21680,
953,
834,
23330,
834,
3072,
357,
549,
17444,
427,
96,
8527,
7,
121,
3,
2,
41,
23143,
14196,
96,
8527,
7,
121,
21680,
953,
834,
23330,
834,
3072,
357,
549,
17444,
427,
96,
15357,
21560,
... |
What is the total Rank for mit karan when Apps is more than 39 and Rate is more than 0.58? | CREATE TABLE table_name_15 (
rank INTEGER,
rate VARCHAR,
apps VARCHAR,
player VARCHAR
) | SELECT SUM(rank) FROM table_name_15 WHERE apps > 39 AND player = "ümit karan" AND rate > 0.58 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
11003,
3,
21342,
17966,
6,
1080,
584,
4280,
28027,
6,
4050,
584,
4280,
28027,
6,
1959,
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,
180,
6122,
599,
6254,
61,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
4050,
2490,
6352,
3430,
1959,
3274,
96,
1272,
1538,
3,
4031,
152,
121,
3430,
1080,
2490,
4097,
3449,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Away team at Mansfield Town's Home game? | CREATE TABLE table_12491 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) | SELECT "Away team" FROM table_12491 WHERE "Home team" = 'mansfield town' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22504,
4729,
41,
96,
382,
23,
15,
150,
121,
1499,
6,
96,
19040,
372,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
308,
342,
121,
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,
188,
1343,
372,
121,
21680,
953,
834,
22504,
4729,
549,
17444,
427,
96,
19040,
372,
121,
3274,
3,
31,
348,
7,
1846,
1511,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the largest foreign population when the 2004 population is 7641? | CREATE TABLE table_15037 (
"Name" text,
"Geographic code" text,
"Type" text,
"Households" real,
"Population (2004)" real,
"Foreign population" real,
"Moroccan population" real
) | SELECT MAX("Foreign population") FROM table_15037 WHERE "Population (2004)" = '7641' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
12278,
4118,
41,
96,
23954,
121,
1499,
6,
96,
517,
15,
16587,
1081,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
4489,
1074,
6134,
7,
121,
490,
6,
96,
27773,
7830,
29428,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
3809,
15,
3191,
2074,
8512,
21680,
953,
834,
12278,
4118,
549,
17444,
427,
96,
27773,
7830,
29428,
121,
3274,
3,
31,
3959,
4853,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the result for the game against the Pittsburgh Steelers? | CREATE TABLE table_name_85 (result VARCHAR, opponent VARCHAR) | SELECT result FROM table_name_85 WHERE opponent = "pittsburgh steelers" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
741,
21,
8,
467,
581,
8,
16226,
6349,
277... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
15264,
3274,
96,
5230,
17,
7289,
107,
2470,
277,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many Januarys had records of 22-15-6? | CREATE TABLE table_name_14 (
january VARCHAR,
record VARCHAR
) | SELECT COUNT(january) FROM table_name_14 WHERE record = "22-15-6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
3,
7066,
76,
1208,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1762,
7,
141,
3187,
13,
1630,
10106,
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,
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,
7066,
76,
1208,
61,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
1368,
3274,
96,
2884,
10106,
5783,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the drawn when there are 402 points? | CREATE TABLE table_47109 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text
) | SELECT "Drawn" FROM table_47109 WHERE "Points for" = '402' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4177,
17304,
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,
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,
308,
10936,
29,
121,
21680,
953,
834,
4177,
17304,
549,
17444,
427,
96,
22512,
7,
21,
121,
3274,
3,
31,
2445,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
For those records from the products and each product's manufacturer, return a bar chart about the distribution of name and the amount of name , and group by attribute name, order x axis in ascending order. | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT T1.Name, COUNT(T1.Name) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15248,
7,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
3642,
19973,
584,
4280,
28027,
599,
25502,
201,
3,
19145,
584,
4280,
28027,
599,
25502,
201,
19764,
17833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
23954,
6,
2847,
17161,
599,
382,
5411,
23954,
61,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
... |
What was the score of the Browns game against the San Francisco 49ers? | CREATE TABLE table_name_7 (result VARCHAR, opponent VARCHAR) | SELECT result FROM table_name_7 WHERE opponent = "san francisco 49ers" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
13,
8,
3899,
7,
467,
581,
8,
1051,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
15264,
3274,
96,
7,
152,
2515,
11389,
3523,
9526,
277,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the original are date of series number 71? | CREATE TABLE table_21997 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Country" text,
"Project" text,
"Status at production" text,
"Original air date" text
) | SELECT "Original air date" FROM table_21997 WHERE "No. in series" = '71' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2294,
4327,
41,
96,
4168,
5,
16,
939,
121,
490,
6,
96,
4168,
5,
16,
774,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
3174,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
3380,
10270,
799,
833,
121,
21680,
953,
834,
357,
2294,
4327,
549,
17444,
427,
96,
4168,
5,
16,
939,
121,
3274,
3,
31,
4450,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the name of the team from Derbyshire county? | CREATE TABLE table_18461635_1 (team VARCHAR, county VARCHAR) | SELECT team FROM table_18461635_1 WHERE county = "Derbyshire" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
4448,
2938,
2469,
834,
536,
41,
11650,
584,
4280,
28027,
6,
5435,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
13,
8,
372,
45,
21485,
5718,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
21680,
953,
834,
2606,
4448,
2938,
2469,
834,
536,
549,
17444,
427,
5435,
3274,
96,
308,
49,
969,
5718,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Return the id of the project that has the fewest corresponding documents. | CREATE TABLE accounts (
account_id number,
statement_id number,
account_details text
)
CREATE TABLE projects (
project_id number,
project_details text
)
CREATE TABLE statements (
statement_id number,
statement_details text
)
CREATE TABLE ref_budget_codes (
budget_type_code text,
b... | SELECT project_id FROM documents GROUP BY project_id ORDER BY COUNT(*) LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3744,
41,
905,
834,
23,
26,
381,
6,
2493,
834,
23,
26,
381,
6,
905,
834,
221,
5756,
7,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1195,
41,
516,
834,
23,
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,
516,
834,
23,
26,
21680,
2691,
350,
4630,
6880,
272,
476,
516,
834,
23,
26,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Can you tell me the lowest Round that has the Location of indiana, united states, and the Method of submission (guillotine choke)? | CREATE TABLE table_name_6 (round INTEGER, location VARCHAR, method VARCHAR) | SELECT MIN(round) FROM table_name_6 WHERE location = "indiana, united states" AND method = "submission (guillotine choke)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
7775,
3,
21342,
17966,
6,
1128,
584,
4280,
28027,
6,
1573,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
1072,
25,
817,
140,
8,
7402,
9609,
24,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
7775,
61,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
1128,
3274,
96,
77,
8603,
9,
6,
18279,
2315,
121,
3430,
1573,
3274,
96,
7304,
5451,
41,
7938,
195,
32,
4070,
29787,
61,
121,
1,
-100,
-100... |
which is the only creek to be 1 mile in length ? | CREATE TABLE table_203_41 (
id number,
"name" text,
"variant name(s)" text,
"source" text,
"source coordinates" text,
"length" text,
"mouth" text,
"mouth coordinates" text
) | SELECT "name" FROM table_203_41 WHERE "length" = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
4853,
41,
3,
23,
26,
381,
6,
96,
4350,
121,
1499,
6,
96,
9504,
288,
564,
599,
7,
61,
121,
1499,
6,
96,
7928,
121,
1499,
6,
96,
7928,
11639,
7,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4350,
121,
21680,
953,
834,
23330,
834,
4853,
549,
17444,
427,
96,
19457,
121,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest value of Total Goals? | CREATE TABLE table_10240125_1 (total_goals INTEGER) | SELECT MAX(total_goals) FROM table_10240125_1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1714,
11944,
10124,
834,
536,
41,
235,
1947,
834,
839,
5405,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
701,
13,
9273,
17916,
7,
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,
4800,
4,
599,
235,
1947,
834,
839,
5405,
61,
21680,
953,
834,
1714,
11944,
10124,
834,
536,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what's the total number of species in the peruvian amazon with 8411 species in the world | CREATE TABLE table_11727969_1 (species_in_the_peruvian_amazon VARCHAR, species_in_the_world VARCHAR) | SELECT COUNT(species_in_the_peruvian_amazon) FROM table_11727969_1 WHERE species_in_the_world = 8411 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20275,
357,
4440,
3951,
834,
536,
41,
7576,
725,
834,
77,
834,
532,
834,
883,
76,
5907,
29,
834,
9,
18983,
106,
584,
4280,
28027,
6,
3244,
834,
77,
834,
532,
834,
7276,
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,
2847,
17161,
599,
7576,
725,
834,
77,
834,
532,
834,
883,
76,
5907,
29,
834,
9,
18983,
106,
61,
21680,
953,
834,
20275,
357,
4440,
3951,
834,
536,
549,
17444,
427,
3244,
834,
77,
834,
532,
834,
7276,
3274,
3,
4608... |
What are the 2fm's for erp 16? | CREATE TABLE table_18475946_2 (
erp__kw_ VARCHAR
) | SELECT 2 AS fm__mhz_ FROM table_18475946_2 WHERE erp__kw_ = "16" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
4177,
3390,
4448,
834,
357,
41,
3,
49,
102,
834,
834,
157,
210,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
204,
89,
51,
31,
7,
21,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
204,
6157,
3,
89,
51,
834,
834,
51,
107,
172,
834,
21680,
953,
834,
2606,
4177,
3390,
4448,
834,
357,
549,
17444,
427,
3,
49,
102,
834,
834,
157,
210,
834,
3274,
96,
2938,
121,
1,
-100,
-100,
-100,
-100,
-100,
-... |
What number does the player who was with the grizzles in 1999 wear? | CREATE TABLE table_16494599_4 (no INTEGER, years_for_grizzlies VARCHAR) | SELECT MIN(no) FROM table_16494599_4 WHERE years_for_grizzlies = "1999" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
3647,
2128,
3264,
834,
591,
41,
29,
32,
3,
21342,
17966,
6,
203,
834,
1161,
834,
3496,
5271,
4664,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
381,
405,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
29,
32,
61,
21680,
953,
834,
2938,
3647,
2128,
3264,
834,
591,
549,
17444,
427,
203,
834,
1161,
834,
3496,
5271,
4664,
3274,
96,
2294,
3264,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which schools do not have any player? Give me the school locations. | CREATE TABLE school (
school_id number,
school text,
location text,
enrollment number,
founded number,
denomination text,
boys_or_girls text,
day_or_boarding text,
year_entered_competition number,
school_colors text
)
CREATE TABLE school_details (
school_id number,
nickn... | SELECT location FROM school WHERE NOT school_id IN (SELECT school_id FROM player) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
496,
41,
496,
834,
23,
26,
381,
6,
496,
1499,
6,
1128,
1499,
6,
17938,
381,
6,
5710,
381,
6,
28730,
1499,
6,
5234,
834,
127,
834,
18722,
7,
1499,
6,
239,
834,
127,
834,
13993,
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,
1128,
21680,
496,
549,
17444,
427,
4486,
496,
834,
23,
26,
3388,
41,
23143,
14196,
496,
834,
23,
26,
21680,
1959,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When the week # is listed as Hollywood, and the Theme is N/A, what song is listed? | CREATE TABLE table_name_82 (
song_choice VARCHAR,
theme VARCHAR,
week__number VARCHAR
) | SELECT song_choice FROM table_name_82 WHERE theme = "n/a" AND week__number = "hollywood" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
2324,
834,
3995,
867,
584,
4280,
28027,
6,
3800,
584,
4280,
28027,
6,
471,
834,
834,
5525,
1152,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2324,
834,
3995,
867,
21680,
953,
834,
4350,
834,
4613,
549,
17444,
427,
3800,
3274,
96,
29,
87,
9,
121,
3430,
471,
834,
834,
5525,
1152,
3274,
96,
107,
30322,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which image is of the woman married to william iv? | CREATE TABLE table_name_86 (image VARCHAR, husband VARCHAR) | SELECT image FROM table_name_86 WHERE husband = "william iv" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
8221,
584,
4280,
28027,
6,
2553,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1023,
19,
13,
8,
2335,
4464,
12,
56,
23,
265,
3,
23,
208,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1023,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
2553,
3274,
96,
8894,
23,
265,
3,
23,
208,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
On what surface did Katarina Srebotnik play Paola Suárez? | CREATE TABLE table_name_83 (surface VARCHAR, opponent_in_final VARCHAR) | SELECT surface FROM table_name_83 WHERE opponent_in_final = "paola suárez" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
26899,
584,
4280,
28027,
6,
15264,
834,
77,
834,
12406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
1774,
410,
7482,
291,
77,
9,
180,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1774,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
15264,
834,
77,
834,
12406,
3274,
96,
102,
9,
32,
521,
2629,
2975,
2638,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the venue when the Round shows after extra time, chelsea won on 4-1 on penalties? | CREATE TABLE table_name_64 (venue VARCHAR, round VARCHAR) | SELECT venue FROM table_name_64 WHERE round = "after extra time, chelsea won on 4-1 on penalties" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
15098,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
5669,
116,
8,
9609,
1267,
227,
996,
97,
6,
3,
8738,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5669,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
1751,
3274,
96,
10245,
996,
97,
6,
3,
8738,
7,
15,
9,
751,
30,
314,
2292,
30,
17524,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What year was Stephen Pace elected? | CREATE TABLE table_1342256_11 (
first_elected INTEGER,
incumbent VARCHAR
) | SELECT MIN(first_elected) FROM table_1342256_11 WHERE incumbent = "Stephen Pace" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
4165,
19337,
834,
2596,
41,
166,
834,
19971,
3,
21342,
17966,
6,
28406,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
215,
47,
7872,
11790,
15,
8160,
58,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
14672,
834,
19971,
61,
21680,
953,
834,
2368,
4165,
19337,
834,
2596,
549,
17444,
427,
28406,
3274,
96,
14337,
19017,
11790,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the last year a sponsorship ended? | CREATE TABLE table_28005160_2 (sponsorship INTEGER) | SELECT MAX(sponsorship) AS Ended FROM table_28005160_2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17518,
3076,
19129,
834,
357,
41,
7,
5041,
7,
127,
2009,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
336,
215,
3,
9,
19284,
3492,
58,
1,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
7,
5041,
7,
127,
2009,
61,
6157,
4925,
26,
21680,
953,
834,
17518,
3076,
19129,
834,
357,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was Robert Doornbos' Best? | CREATE TABLE table_name_47 (best VARCHAR, name VARCHAR) | SELECT best FROM table_name_47 WHERE name = "robert doornbos" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
9606,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
2715,
11080,
29,
115,
32,
7,
31,
1648,
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,
200,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
564,
3274,
96,
5840,
49,
17,
1365,
29,
115,
32,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the position in 1959-1960 for the club that had 14 seasons at this level? | CREATE TABLE table_name_45 (
position_in_1959_1960 VARCHAR,
seasons_at_this_level VARCHAR
) | SELECT position_in_1959_1960 FROM table_name_45 WHERE seasons_at_this_level = "14 seasons" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
1102,
834,
77,
834,
2294,
3390,
834,
2294,
3328,
584,
4280,
28027,
6,
9385,
834,
144,
834,
8048,
834,
4563,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1102,
834,
77,
834,
2294,
3390,
834,
2294,
3328,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
9385,
834,
144,
834,
8048,
834,
4563,
3274,
96,
2534,
9385,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Play-Off has Events of , and a Season of a-6? | CREATE TABLE table_6064 (
"Year" text,
"League" text,
"Season" text,
"Play-Off" text,
"Baltic" text,
"Events" text,
"European" text
) | SELECT "Play-Off" FROM table_6064 WHERE "Events" = '–' AND "Season" = 'a-6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
4389,
41,
96,
476,
2741,
121,
1499,
6,
96,
2796,
9,
5398,
121,
1499,
6,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
15800,
18,
21265,
121,
1499,
6,
96,
279,
138,
1225,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18,
21265,
121,
21680,
953,
834,
3328,
4389,
549,
17444,
427,
96,
427,
2169,
7,
121,
3274,
3,
31,
104,
31,
3430,
96,
134,
15,
9,
739,
121,
3274,
3,
31,
9,
5783,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
What is the saturated fat when the total fat is 100g, and polyunsaturated fat is 69g (4g in high oleic variety)? | CREATE TABLE table_59546 (
"Total fat" text,
"Saturated fat" text,
"Monounsaturated fat" text,
"Polyunsaturated fat" text,
"Smoke point" text
) | SELECT "Saturated fat" FROM table_59546 WHERE "Total fat" = '100g' AND "Polyunsaturated fat" = '69g (4g in high oleic variety)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3301,
4448,
41,
96,
3696,
1947,
2886,
121,
1499,
6,
96,
134,
6010,
920,
2886,
121,
1499,
6,
96,
9168,
32,
202,
7,
6010,
920,
2886,
121,
1499,
6,
96,
8931,
63,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6010,
920,
2886,
121,
21680,
953,
834,
755,
3301,
4448,
549,
17444,
427,
96,
3696,
1947,
2886,
121,
3274,
3,
31,
2915,
122,
31,
3430,
96,
8931,
63,
202,
7,
6010,
920,
2886,
121,
3274,
3,
31,
3951,
122,
... |
How many overs bowled for muttiah muralitharan? | CREATE TABLE table_15700367_6 (overs_bowled VARCHAR, name VARCHAR) | SELECT COUNT(overs_bowled) FROM table_15700367_6 WHERE name = "Muttiah Muralitharan" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
9295,
519,
3708,
834,
948,
41,
1890,
7,
834,
17710,
1361,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
147,
7,
3047,
15,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1890,
7,
834,
17710,
1361,
61,
21680,
953,
834,
1808,
9295,
519,
3708,
834,
948,
549,
17444,
427,
564,
3274,
96,
329,
31944,
9,
107,
8054,
9,
18800,
9,
2002,
121,
1,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest number of silver when there is 1 bronze and less than 4 golds? | CREATE TABLE table_name_38 (silver INTEGER, bronze VARCHAR, gold VARCHAR) | SELECT MAX(silver) FROM table_name_38 WHERE bronze = 1 AND gold < 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
7,
173,
624,
3,
21342,
17966,
6,
13467,
584,
4280,
28027,
6,
2045,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
381,
13,
4294... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7,
173,
624,
61,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
13467,
3274,
209,
3430,
2045,
3,
2,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many patients with left internal jugular vein thrombosis left arm edema as their primary disease had continuous invasive mechanical ventilation for 96 consecutive hours or more? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.diagnosis = "LEFT INTERNAL JUGULAR VEIN THROMBOSIS;LEFT ARM EDEMA" AND procedures.short_title = "Cont inv mec ven 96+ hrs" | [
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 was the victory margin for a finish of 1st with a rider of Kent Desormeaux, with a time of 1:35.66? | CREATE TABLE table_46435 (
"Finish" text,
"Race" text,
"Distance" text,
"Jockey" text,
"Time" text,
"Victory Margin (in lengths)" text,
"Runner up" text,
"Track" text,
"Surface" text,
"Date" text
) | SELECT "Victory Margin (in lengths)" FROM table_46435 WHERE "Finish" = '1st' AND "Jockey" = 'kent desormeaux' AND "Time" = '1:35.66' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4389,
2469,
41,
96,
371,
77,
1273,
121,
1499,
6,
96,
448,
3302,
121,
1499,
6,
96,
308,
23,
8389,
121,
1499,
6,
96,
683,
3961,
15,
63,
121,
1499,
6,
96,
13368,
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,
553,
447,
10972,
16409,
77,
41,
77,
2475,
7,
61,
121,
21680,
953,
834,
591,
4389,
2469,
549,
17444,
427,
96,
371,
77,
1273,
121,
3274,
3,
31,
536,
7,
17,
31,
3430,
96,
683,
3961,
15,
63,
121,
3274,
3,
31,
... |
Who was Director John Ramster's Composer? | CREATE TABLE table_name_3 (composer VARCHAR, director VARCHAR) | SELECT composer FROM table_name_3 WHERE director = "john ramster" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
287,
2748,
49,
584,
4280,
28027,
6,
2090,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
2578,
1079,
4425,
1370,
31,
7,
2570,
2748,
49,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
13075,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
2090,
3274,
96,
27341,
3,
2375,
1370,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many players were drafted from laval? | CREATE TABLE table_20170644_5 (
cfl_team VARCHAR,
college VARCHAR
) | SELECT COUNT(cfl_team) FROM table_20170644_5 WHERE college = "Laval" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9887,
5176,
3628,
834,
755,
41,
3,
75,
89,
40,
834,
11650,
584,
4280,
28027,
6,
1900,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1508,
130,
3,
23505,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
75,
89,
40,
834,
11650,
61,
21680,
953,
834,
9887,
5176,
3628,
834,
755,
549,
17444,
427,
1900,
3274,
96,
3612,
2165,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the average DDR3 speed for model e-350 | CREATE TABLE table_name_15 (ddr3_speed INTEGER, model VARCHAR) | SELECT AVG(ddr3_speed) FROM table_name_15 WHERE model = "e-350" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
26,
26,
52,
519,
834,
9993,
3,
21342,
17966,
6,
825,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1348,
309,
3913,
519,
1634,
21,
825,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
26,
26,
52,
519,
834,
9993,
61,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
825,
3274,
96,
15,
18,
16975,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the most recent final result for the years (won in bold) 1979? | CREATE TABLE table_1463332_2 (
most_recent_final VARCHAR,
years__won_in_bold_ VARCHAR
) | SELECT most_recent_final FROM table_1463332_2 WHERE years__won_in_bold_ = "1979" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24300,
4201,
2668,
834,
357,
41,
167,
834,
60,
3728,
834,
12406,
584,
4280,
28027,
6,
203,
834,
834,
210,
106,
834,
77,
834,
4243,
26,
834,
584,
4280,
28027,
3,
61,
3,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
167,
834,
60,
3728,
834,
12406,
21680,
953,
834,
24300,
4201,
2668,
834,
357,
549,
17444,
427,
203,
834,
834,
210,
106,
834,
77,
834,
4243,
26,
834,
3274,
96,
2294,
4440,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total number of runs when the average was less than 31.25 and there were fewer than 24 innings? | CREATE TABLE table_name_51 (
runs VARCHAR,
average VARCHAR,
innings VARCHAR
) | SELECT COUNT(runs) FROM table_name_51 WHERE average > 31.25 AND innings < 24 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
3154,
584,
4280,
28027,
6,
1348,
584,
4280,
28027,
6,
19714,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
381,
13,
3154,
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,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
4312,
7,
61,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
1348,
2490,
2664,
5,
1828,
3430,
19714,
3,
2,
997,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the 2000 value if the 1998 value is 1.5? | CREATE TABLE table_name_67 (Id VARCHAR) | SELECT 2000 FROM table_name_67 WHERE 1998 = "1.5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2766,
701,
3,
99,
8,
6260,
701,
19,
8613,
58,
1,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2766,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
6260,
3274,
96,
16593,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
since 10/2105 has patient 015-58787 been prescribed percocet. | CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate n... | SELECT COUNT(*) > 0 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '015-58787')) AND medication.drugname = 'percocet' AND STRFTIME('%y-%m', me... | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
583,
41,
583,
23,
26,
381,
6,
775,
12417,
1499,
6,
1868,
15878,
3734,
21545,
23,
26,
381,
6,
605,
6137,
1499,
6,
605,
23,
26,
381,
6,
1567,
715,
97,
6,
583,
381,
3,
61,
3,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
2490,
3,
632,
21680,
7757,
549,
17444,
427,
7757,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,... |
Please show the number of films for each type in a bar chart, display x-axis from low to high order. | CREATE TABLE film_market_estimation (
Estimation_ID int,
Low_Estimate real,
High_Estimate real,
Film_ID int,
Type text,
Market_ID int,
Year int
)
CREATE TABLE film (
Film_ID int,
Title text,
Studio text,
Director text,
Gross_in_dollar int
)
CREATE TABLE market (
Mar... | SELECT Type, COUNT(Type) FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID = T2.Film_ID GROUP BY Type ORDER BY Type | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
814,
834,
8809,
834,
3340,
51,
257,
41,
23621,
23,
106,
834,
4309,
16,
17,
6,
5586,
834,
14997,
23,
5058,
490,
6,
1592,
834,
14997,
23,
5058,
490,
6,
3417,
834,
4309,
16,
17,
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,
6632,
6,
2847,
17161,
599,
25160,
61,
21680,
814,
6157,
332,
536,
3,
15355,
3162,
814,
834,
8809,
834,
3340,
51,
257,
6157,
332,
357,
9191,
332,
5411,
371,
173,
51,
834,
4309,
3274,
332,
4416,
371,
173,
51,
834,
4... |
For those employees who did not have any job in the past, a line chart shows the trend of department_id over hire_date , and list x axis from high to low order please. | CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
... | SELECT HIRE_DATE, DEPARTMENT_ID FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) ORDER BY HIRE_DATE DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10521,
41,
3396,
19846,
11810,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3396,
19846,
11810,
834,
567,
17683,
3,
4331,
4059,
599,
1458,
201,
283,
15610,
17966,
834,
4309,
7908,
1982,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
3396,
19846,
11810,
834,
4309,
21680,
1652,
549,
17444,
427,
4486,
262,
5244,
5017,
476,
5080,
834,
4309,
3388,
41,
23143,
14196,
262,
5244,
5017,
476,
5080,
834,
4309,
21680,
613,
834,
... |
What is Fractievoorzitter, when Lijsttrekker is "No Elections", and when Year is after 2005? | CREATE TABLE table_name_80 (fractievoorzitter VARCHAR, lijsttrekker VARCHAR, year VARCHAR) | SELECT fractievoorzitter FROM table_name_80 WHERE lijsttrekker = "no elections" AND year > 2005 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
9880,
17,
23,
15,
1621,
127,
702,
17,
449,
584,
4280,
28027,
6,
3,
40,
23,
354,
7,
17,
929,
8511,
49,
584,
4280,
28027,
6,
215,
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,
3,
9880,
17,
23,
15,
1621,
127,
702,
17,
449,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
3,
40,
23,
354,
7,
17,
929,
8511,
49,
3274,
96,
29,
32,
9768,
121,
3430,
215,
2490,
3105,
1,
-100,
-100,
-100,
-... |
Which winner of stage 1 was not awarded a mountains classification? | CREATE TABLE table_name_70 (winner VARCHAR, mountains_classification VARCHAR, stage VARCHAR) | SELECT winner FROM table_name_70 WHERE mountains_classification = "not awarded" AND stage = "1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
3757,
687,
584,
4280,
28027,
6,
8022,
834,
4057,
2420,
584,
4280,
28027,
6,
1726,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
4668,
13,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4668,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
8022,
834,
4057,
2420,
3274,
96,
2264,
5539,
121,
3430,
1726,
3274,
96,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the most wins with a rank of 5 and less than $1,537,571 in earnings? | CREATE TABLE table_54370 (
"Rank" real,
"Player" text,
"Country" text,
"Earnings ( $ )" real,
"Events" real,
"Wins" real
) | SELECT MAX("Wins") FROM table_54370 WHERE "Rank" = '5' AND "Earnings ( $ )" > '1,537,571' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5062,
22520,
41,
96,
22557,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
427,
291,
29,
53,
7,
41,
1514,
3,
61,
121,
490,
6,
96,
427,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
18455,
7,
8512,
21680,
953,
834,
5062,
22520,
549,
17444,
427,
96,
22557,
121,
3274,
3,
31,
755,
31,
3430,
96,
427,
291,
29,
53,
7,
41,
1514,
3,
61,
121,
2490,
3,
31,
4347,
755,
4118,
6,
343... |
Can you tell me the 2009 that has the 2011 of A? | CREATE TABLE table_60384 (
"Tournament" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
) | SELECT "2009" FROM table_60384 WHERE "2011" = 'a' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
3747,
591,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
16128,
121,
1499,
6,
96,
16660,
121,
1499,
6,
96,
14926,
121,
1499,
6,
96,
13907,
121,
1499,
6,
96,
12172... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
16660,
121,
21680,
953,
834,
3328,
3747,
591,
549,
17444,
427,
96,
13907,
121,
3274,
3,
31,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
At the match which took place in arden street oval, how much did the away team score? | CREATE TABLE table_10975 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Away team score" FROM table_10975 WHERE "Venue" = 'arden street oval' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17304,
3072,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
1343,
372,
2604,
121,
21680,
953,
834,
17304,
3072,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
986,
35,
2815,
17986,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is every conflict in Iraq? | CREATE TABLE table_22889 (
"Start of conflict" real,
"End of conflict" text,
"Conflict" text,
"Continent" text,
"Location" text,
"Branches involved" text
) | SELECT "Conflict" FROM table_22889 WHERE "Location" = 'Iraq' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2577,
3914,
41,
96,
7681,
17,
13,
4129,
121,
490,
6,
96,
8532,
26,
13,
4129,
121,
1499,
6,
96,
4302,
89,
2176,
17,
121,
1499,
6,
96,
16798,
295,
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,
4302,
89,
2176,
17,
121,
21680,
953,
834,
357,
2577,
3914,
549,
17444,
427,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
196,
52,
9,
1824,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the position when the round is higher than 3, the nationality is united states and the player is nick pryor? | CREATE TABLE table_62231 (
"Round" real,
"Player" text,
"Position" text,
"Nationality" text,
"College/Junior/Club Team (League)" text
) | SELECT "Position" FROM table_62231 WHERE "Round" > '3' AND "Nationality" = 'united states' AND "Player" = 'nick pryor' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4056,
357,
3341,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
9939,
7883,
87,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
32,
7,
4749,
121,
21680,
953,
834,
4056,
357,
3341,
549,
17444,
427,
96,
448,
32,
1106,
121,
2490,
3,
31,
519,
31,
3430,
96,
24732,
485,
121,
3274,
3,
31,
15129,
15,
26,
2315,
31,
3430,
96,
15800,
49,
... |
what is admission type of subject id 9271? | 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 lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,... | SELECT demographic.admission_type FROM demographic WHERE demographic.subject_id = "9271" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
9,
26,
5451,
834,
6137,
21680,
14798,
549,
17444,
427,
14798,
5,
7304,
11827,
834,
23,
26,
3274,
96,
4508,
4450,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What away team did Horsham play? | CREATE TABLE table_name_30 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team FROM table_name_30 WHERE home_team = "horsham" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
8006,
834,
11650,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
550,
372,
410,
6766,
7,
1483,
577,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
550,
834,
11650,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
234,
834,
11650,
3274,
96,
107,
127,
7,
1483,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which March 3 has a Poll of baseball america (top 25)? | CREATE TABLE table_name_35 (
mar_3 VARCHAR,
poll VARCHAR
) | SELECT mar_3 FROM table_name_35 WHERE poll = "baseball america (top 25)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
3157,
834,
519,
584,
4280,
28027,
6,
5492,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1332,
220,
65,
3,
9,
14457,
13,
9600,
3,
23064... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3157,
834,
519,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
5492,
3274,
96,
10925,
3184,
3,
23064,
41,
2916,
944,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is listed as the Favorite Professional Sport that has a 2008 of 8.9%? | CREATE TABLE table_37729 (
"Favorite professional sport" text,
"2005" text,
"2008" text,
"2011" text,
"2012" text
) | SELECT "Favorite professional sport" FROM table_37729 WHERE "2008" = '8.9%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
4013,
3166,
41,
96,
371,
9,
1621,
5730,
771,
2600,
121,
1499,
6,
96,
22594,
121,
1499,
6,
96,
16128,
121,
1499,
6,
96,
13907,
121,
1499,
6,
96,
12172,
121,
1499,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
371,
9,
1621,
5730,
771,
2600,
121,
21680,
953,
834,
519,
4013,
3166,
549,
17444,
427,
96,
16128,
121,
3274,
3,
31,
927,
5,
7561,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What institution is located in athens, ga, us? | CREATE TABLE table_name_55 (institution VARCHAR, location VARCHAR) | SELECT institution FROM table_name_55 WHERE location = "athens, ga, us" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
77,
17448,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
6568,
19,
1069,
16,
44,
3225,
7,
6,
7922,
6,
178,
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,
6568,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
1128,
3274,
96,
9,
189,
35,
7,
6,
7922,
6,
178,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What home team has coventry city as the away team? | CREATE TABLE table_name_45 (
home_team VARCHAR,
away_team VARCHAR
) | SELECT home_team FROM table_name_45 WHERE away_team = "coventry city" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
234,
834,
11650,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
234,
372,
65,
576,
2169,
651,
690,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
11650,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
550,
834,
11650,
3274,
96,
509,
2169,
651,
690,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
On what day was Utah Blaze the opponent? | CREATE TABLE table_name_6 (date VARCHAR, opponent VARCHAR) | SELECT date FROM table_name_6 WHERE opponent = "utah blaze" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
5522,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
239,
47,
12339,
6942,
776,
8,
15264,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
15264,
3274,
96,
76,
17,
9,
107,
3,
21020,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
provide the number of patients whose ethnicity is black/haitian and year of birth is less than 2087? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "BLACK/HAITIAN" AND demographic.dob_year < "2087" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
15,
189,
2532,
485,
3274,
96,
8775,
15339,
87,
5478,
3177,
21758,
121,
3430,
14798,
5,
26,
32,
1... |
Show all the buildings along with the number of faculty members the buildings have Plot them as bar chart, and show from high to low by the x-axis. | CREATE TABLE Faculty (
FacID INTEGER,
Lname VARCHAR(15),
Fname VARCHAR(15),
Rank VARCHAR(15),
Sex VARCHAR(1),
Phone INTEGER,
Room VARCHAR(5),
Building VARCHAR(13)
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1... | SELECT Building, COUNT(*) FROM Faculty GROUP BY Building ORDER BY Building DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
16896,
41,
1699,
75,
4309,
3,
21342,
17966,
6,
301,
4350,
584,
4280,
28027,
599,
1808,
201,
377,
4350,
584,
4280,
28027,
599,
1808,
201,
3,
22557,
584,
4280,
28027,
599,
1808,
201,
679... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5450,
6,
2847,
17161,
599,
1935,
61,
21680,
16896,
350,
4630,
6880,
272,
476,
5450,
4674,
11300,
272,
476,
5450,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Draw a bar chart of name versus height, could you sort by the bar in desc? | CREATE TABLE candidate (
Candidate_ID int,
People_ID int,
Poll_Source text,
Date text,
Support_rate real,
Consider_rate real,
Oppose_rate real,
Unsure_rate real
)
CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height real,
Weight re... | SELECT Name, Height FROM people ORDER BY Name DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4775,
41,
25833,
17,
15,
834,
4309,
16,
17,
6,
2449,
834,
4309,
16,
17,
6,
14457,
834,
23799,
1499,
6,
7678,
1499,
6,
4224,
834,
2206,
490,
6,
9151,
834,
2206,
490,
6,
4495,
2748,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5570,
6,
24231,
21680,
151,
4674,
11300,
272,
476,
5570,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
how many locomotives were built after 1900 ? | CREATE TABLE table_203_213 (
id number,
"name" text,
"builder" text,
"type" text,
"date" text,
"works number" number,
"notes" text
) | SELECT COUNT("builder") FROM table_203_213 WHERE "date" > 1900 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
357,
2368,
41,
3,
23,
26,
381,
6,
96,
4350,
121,
1499,
6,
96,
16422,
49,
121,
1499,
6,
96,
6137,
121,
1499,
6,
96,
5522,
121,
1499,
6,
96,
13631,
381,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
16422,
49,
8512,
21680,
953,
834,
23330,
834,
357,
2368,
549,
17444,
427,
96,
5522,
121,
2490,
19036,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
List names for drivers from Hartford city and younger than 40. | CREATE TABLE school_bus (
school_id number,
driver_id number,
years_working number,
if_full_time others
)
CREATE TABLE school (
school_id number,
grade text,
school text,
location text,
type text
)
CREATE TABLE driver (
driver_id number,
name text,
party text,
home_... | SELECT name FROM driver WHERE home_city = 'Hartford' AND age < 40 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
496,
834,
3465,
41,
496,
834,
23,
26,
381,
6,
2535,
834,
23,
26,
381,
6,
203,
834,
9238,
381,
6,
3,
99,
834,
1329,
40,
834,
715,
717,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
564,
21680,
2535,
549,
17444,
427,
234,
834,
6726,
3274,
3,
31,
15537,
17,
2590,
31,
3430,
1246,
3,
2,
1283,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the district for carolyn mccarthy | CREATE TABLE table_18111 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Results" text,
"Candidates" text
) | SELECT "District" FROM table_18111 WHERE "Incumbent" = 'Carolyn McCarthy' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
15866,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
490,
6,
96,
20119,
7,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
23,
20066,
121,
21680,
953,
834,
2606,
15866,
549,
17444,
427,
96,
1570,
75,
5937,
295,
121,
3274,
3,
31,
6936,
32,
120,
29,
30757,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who had the high rebounds for the game on april 23? | CREATE TABLE table_11961582_10 (
high_rebounds VARCHAR,
date VARCHAR
) | SELECT high_rebounds FROM table_11961582_10 WHERE date = "April 23" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
4314,
1808,
4613,
834,
1714,
41,
306,
834,
23768,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
141,
8,
306,
3,
23768,
21,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
306,
834,
23768,
21680,
953,
834,
2596,
4314,
1808,
4613,
834,
1714,
549,
17444,
427,
833,
3274,
96,
23323,
1902,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many employees have certificate. | CREATE TABLE Certificate (
eid VARCHAR
) | SELECT COUNT(DISTINCT eid) FROM Certificate | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11305,
41,
3,
15,
23,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1652,
43,
6017,
5,
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,
15438,
25424,
6227,
3,
15,
23,
26,
61,
21680,
11305,
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,
... |
When 'i feel good' is the title and joe sachs is the writer how many series numbers are there? | CREATE TABLE table_24287 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text
) | SELECT COUNT("Series #") FROM table_24287 WHERE "Written by" = 'Joe Sachs' AND "Title" = 'I Feel Good' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
357,
4225,
41,
96,
12106,
7,
1713,
121,
490,
6,
96,
134,
15,
9,
739,
1713,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
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... | [
3,
23143,
14196,
2847,
17161,
599,
121,
12106,
7,
1713,
8512,
21680,
953,
834,
2266,
357,
4225,
549,
17444,
427,
96,
24965,
324,
57,
121,
3274,
3,
31,
683,
32,
15,
13547,
7,
31,
3430,
96,
382,
155,
109,
121,
3274,
3,
31,
196,
89... |
How may championships were won by the team that started in 1950? | CREATE TABLE table_21564794_3 (championships_in_st_louis VARCHAR, began_in_st_louis VARCHAR) | SELECT championships_in_st_louis FROM table_21564794_3 WHERE began_in_st_louis = 1950 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
4834,
4177,
4240,
834,
519,
41,
17788,
12364,
2009,
7,
834,
77,
834,
7,
17,
834,
40,
1063,
159,
584,
4280,
28027,
6,
1553,
834,
77,
834,
7,
17,
834,
40,
1063,
159,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
10183,
7,
834,
77,
834,
7,
17,
834,
40,
1063,
159,
21680,
953,
834,
2658,
4834,
4177,
4240,
834,
519,
549,
17444,
427,
1553,
834,
77,
834,
7,
17,
834,
40,
1063,
159,
3274,
10247,
1,
-100,
-100,
-100,
-100,
-100,
... |
when the total is 8 and copa del rey is 0 what is the minimum league | CREATE TABLE table_17505751_5 (
league INTEGER,
total VARCHAR,
copa_del_rey VARCHAR
) | SELECT MIN(league) FROM table_17505751_5 WHERE total = 8 AND copa_del_rey = 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
1752,
3436,
5553,
834,
755,
41,
5533,
3,
21342,
17966,
6,
792,
584,
4280,
28027,
6,
7326,
9,
834,
221,
40,
834,
60,
63,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
29512,
61,
21680,
953,
834,
2517,
1752,
3436,
5553,
834,
755,
549,
17444,
427,
792,
3274,
505,
3430,
7326,
9,
834,
221,
40,
834,
60,
63,
3274,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is the number of patients whose diagnoses long title is pressure ulcer, stage iv and lab test abnormal status is delta? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.long_title = "Pressure ulcer, stage IV" AND lab.flag = "delta" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
What Date had a Partner of urszula radwa ska? | CREATE TABLE table_name_87 (
date VARCHAR,
partner VARCHAR
) | SELECT date FROM table_name_87 WHERE partner = "urszula radwańska" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
833,
584,
4280,
28027,
6,
2397,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
7678,
141,
3,
9,
5793,
13,
3,
3589,
1000,
521,
3,
5672,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
2397,
3274,
96,
3589,
1000,
521,
3,
5672,
210,
9,
2,
10717,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the event in a year before 1989? | CREATE TABLE table_name_37 (event VARCHAR, year INTEGER) | SELECT event FROM table_name_37 WHERE year < 1989 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
15,
2169,
584,
4280,
28027,
6,
215,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
605,
16,
3,
9,
215,
274,
9975,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
605,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
215,
3,
2,
9975,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
who weighs more , dexter fields or ovie soko ? | CREATE TABLE table_204_534 (
id number,
"#" number,
"name" text,
"height" text,
"weight (lbs.)" number,
"position" text,
"class" text,
"hometown" text,
"previous team(s)" text
) | SELECT "name" FROM table_204_534 WHERE "name" IN ('dexter fields', 'ovie soko') ORDER BY "weight (lbs.)" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
755,
3710,
41,
3,
23,
26,
381,
6,
96,
4663,
121,
381,
6,
96,
4350,
121,
1499,
6,
96,
88,
2632,
121,
1499,
6,
96,
9378,
41,
9949,
5,
61,
121,
381,
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,
4350,
121,
21680,
953,
834,
26363,
834,
755,
3710,
549,
17444,
427,
96,
4350,
121,
3388,
41,
31,
26,
10398,
49,
4120,
31,
6,
3,
31,
9881,
15,
3,
7,
12948,
31,
61,
4674,
11300,
272,
476,
96,
9378,
41,
9949,
... |
How many appearances did the player for the Rayo Vallecano club that scored more than 37 goals make? | CREATE TABLE table_name_15 (
appearances VARCHAR,
club VARCHAR,
goals VARCHAR
) | SELECT COUNT(appearances) FROM table_name_15 WHERE club = "rayo vallecano" AND goals > 37 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
3179,
7,
584,
4280,
28027,
6,
1886,
584,
4280,
28027,
6,
1766,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
3179,
7,
410,
8,
1959,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
3096,
2741,
663,
7,
61,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
1886,
3274,
96,
2866,
32,
3,
2165,
109,
1608,
32,
121,
3430,
1766,
2490,
6862,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the To par when the finish is 66? | CREATE TABLE table_name_32 (
to_par VARCHAR,
finish VARCHAR
) | SELECT to_par FROM table_name_32 WHERE finish = "66" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
12,
834,
1893,
584,
4280,
28027,
6,
1992,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
304,
260,
116,
8,
1992,
19,
3,
3539,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
12,
834,
1893,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
1992,
3274,
96,
3539,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many champions were there in 2009? | CREATE TABLE table_1167698_1 (champion VARCHAR, season VARCHAR) | SELECT COUNT(champion) FROM table_1167698_1 WHERE season = "2009" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20159,
3959,
3916,
834,
536,
41,
17788,
12364,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
6336,
7,
130,
132,
16,
2464,
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,
2847,
17161,
599,
17788,
12364,
61,
21680,
953,
834,
20159,
3959,
3916,
834,
536,
549,
17444,
427,
774,
3274,
96,
16660,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
On what date did the Rockets play Memphis? | CREATE TABLE table_17288825_9 (date VARCHAR, team VARCHAR) | SELECT date FROM table_17288825_9 WHERE team = "Memphis" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27156,
10927,
1828,
834,
1298,
41,
5522,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
833,
410,
8,
22176,
7,
577,
22715,
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,
833,
21680,
953,
834,
27156,
10927,
1828,
834,
1298,
549,
17444,
427,
372,
3274,
96,
329,
15,
7656,
159,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What year was incumbent barratt o'hara first elected? | CREATE TABLE table_1342198_13 (first_elected VARCHAR, incumbent VARCHAR) | SELECT first_elected FROM table_1342198_13 WHERE incumbent = "Barratt O'Hara" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
4165,
24151,
834,
2368,
41,
14672,
834,
19971,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
215,
47,
28406,
1207,
1795,
17,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
166,
834,
19971,
21680,
953,
834,
2368,
4165,
24151,
834,
2368,
549,
17444,
427,
28406,
3274,
96,
14851,
1795,
17,
411,
31,
15537,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
WHAT IS THE TAMIL WITH A SUKRAVAR ? | CREATE TABLE table_47559 (
"Malayalam" text,
"\u0d2e\u0d32\u0d2f\u0d3e\u0d33\u0d02" text,
"English" text,
"Kannada" text,
"Tamil" text,
"Hindi" text
) | SELECT "Tamil" FROM table_47559 WHERE "Hindi" = 'sukravar' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3072,
3390,
41,
96,
329,
22858,
40,
265,
121,
1499,
6,
96,
2,
76,
632,
26,
357,
15,
2,
76,
632,
26,
2668,
2,
76,
632,
26,
357,
89,
2,
76,
632,
26,
519,
15,
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,
382,
265,
173,
121,
21680,
953,
834,
591,
3072,
3390,
549,
17444,
427,
96,
566,
8482,
121,
3274,
3,
31,
7,
76,
9669,
4331,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many attended during the game with a score of 80-94? | CREATE TABLE table_name_52 (
attendance INTEGER,
score VARCHAR
) | SELECT SUM(attendance) FROM table_name_52 WHERE score = "80-94" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
11364,
3,
21342,
17966,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
5526,
383,
8,
467,
28,
3,
9,
2604,
13,
2775,
18,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
2604,
3274,
96,
2079,
18,
4240,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What date did the episode 'the killing (part two)' originally air? | CREATE TABLE table_26285 (
"Episode #" real,
"Prod #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Originalairdate" text,
"Filmed" text
) | SELECT "Originalairdate" FROM table_26285 WHERE "Title" = 'The Killing (part two)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
357,
4433,
41,
96,
427,
102,
159,
32,
221,
1713,
121,
490,
6,
96,
3174,
26,
1713,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
3380,
10270,
2256,
5522,
121,
21680,
953,
834,
2688,
357,
4433,
549,
17444,
427,
96,
382,
155,
109,
121,
3274,
3,
31,
634,
14450,
53,
41,
2274,
192,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the Score of the match on a clay surface with an outcome of winner, at the tournament ciudad ju rez, and an Opponent in the final of estefania craci n? | CREATE TABLE table_name_48 (
score VARCHAR,
opponent_in_the_final VARCHAR,
tournament VARCHAR,
surface VARCHAR,
outcome VARCHAR
) | SELECT score FROM table_name_48 WHERE surface = "clay" AND outcome = "winner" AND tournament = "ciudad juárez" AND opponent_in_the_final = "estefania craciún" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
2604,
584,
4280,
28027,
6,
15264,
834,
77,
834,
532,
834,
12406,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
6,
1774,
584,
4280,
28027,
6,
6138,
584,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
1774,
3274,
96,
4651,
63,
121,
3430,
6138,
3274,
96,
3757,
687,
121,
3430,
5892,
3274,
96,
8469,
14677,
3,
2047,
2975,
2638,
121,
3430,
15264,
834,
77,
834,
5... |
what is the lowest laps when the grid is smaller than 5 and the driver is juan manuel fangio? | CREATE TABLE table_name_45 (
laps INTEGER,
grid VARCHAR,
driver VARCHAR
) | SELECT MIN(laps) FROM table_name_45 WHERE grid < 5 AND driver = "juan manuel fangio" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
14941,
7,
3,
21342,
17966,
6,
8634,
584,
4280,
28027,
6,
2535,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
7402,
14941,
7,
116,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
8478,
7,
61,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
8634,
3,
2,
305,
3430,
2535,
3274,
96,
2047,
152,
19901,
1819,
10253,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
In what venue does Footscray play? | CREATE TABLE table_57725 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Venue" FROM table_57725 WHERE "Home team" = 'footscray' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
4013,
1828,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
553,
35,
76,
15,
121,
21680,
953,
834,
755,
4013,
1828,
549,
17444,
427,
96,
19040,
372,
121,
3274,
3,
31,
6259,
7,
2935,
63,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many years saw 3 hurricanes wherein the strongest storm was level three? | CREATE TABLE table_31080 (
"Year" real,
"Number of tropical storms" real,
"Number of hurricanes" real,
"Number of major hurricanes" real,
"Deaths" text,
"Strongest storm" text
) | SELECT COUNT("Year") FROM table_31080 WHERE "Number of hurricanes" = '3' AND "Strongest storm" = 'Three' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19947,
2079,
41,
96,
476,
2741,
121,
490,
6,
96,
567,
5937,
49,
13,
10468,
5536,
7,
121,
490,
6,
96,
567,
5937,
49,
13,
20818,
7,
121,
490,
6,
96,
567,
5937,
49,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
476,
2741,
8512,
21680,
953,
834,
19947,
2079,
549,
17444,
427,
96,
567,
5937,
49,
13,
20818,
7,
121,
3274,
3,
31,
519,
31,
3430,
96,
11500,
2444,
222,
5536,
121,
3274,
3,
31,
11889,
15,
15,... |
Nme the most cuts made for wins being 0 | CREATE TABLE table_1697190_1 (cuts_made INTEGER, wins VARCHAR) | SELECT MAX(cuts_made) FROM table_1697190_1 WHERE wins = 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
4327,
11776,
834,
536,
41,
3044,
7,
834,
4725,
3,
21342,
17966,
6,
9204,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
445,
526,
8,
167,
8620,
263,
21,
9204,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
3044,
7,
834,
4725,
61,
21680,
953,
834,
2938,
4327,
11776,
834,
536,
549,
17444,
427,
9204,
3274,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the pick number for round 2? | CREATE TABLE table_14209245_9 (pick__number VARCHAR, round VARCHAR) | SELECT pick__number FROM table_14209245_9 WHERE round = 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
1755,
4508,
2128,
834,
1298,
41,
17967,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1432,
381,
21,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1432,
834,
834,
5525,
1152,
21680,
953,
834,
2534,
1755,
4508,
2128,
834,
1298,
549,
17444,
427,
1751,
3274,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the writer of the episode title 'Divine Intervention'? | CREATE TABLE table_30041 (
"Episode No." real,
"Series No." real,
"Episode" text,
"Director" text,
"Writer(s)" text,
"Original airdate" text,
"Viewers (millions)" text
) | SELECT "Writer(s)" FROM table_30041 WHERE "Episode" = 'Divine Intervention' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5426,
4853,
41,
96,
427,
102,
159,
32,
221,
465,
535,
490,
6,
96,
12106,
7,
465,
535,
490,
6,
96,
427,
102,
159,
32,
221,
121,
1499,
6,
96,
23620,
127,
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,
24965,
49,
599,
7,
61,
121,
21680,
953,
834,
5426,
4853,
549,
17444,
427,
96,
427,
102,
159,
32,
221,
121,
3274,
3,
31,
21313,
630,
28499,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.