NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
Who did they play when the score was 95-118? | CREATE TABLE table_name_63 (opponent VARCHAR, score VARCHAR) | SELECT opponent FROM table_name_63 WHERE score = "95-118" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
32,
102,
9977,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
410,
79,
577,
116,
8,
2604,
47,
11923,
18,
20056,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15264,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
2604,
3274,
96,
3301,
18,
20056,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
when the q1+q2 time was 2.34.736, what was the total pos number? | CREATE TABLE table_1924975_1 (
pos VARCHAR,
q1 VARCHAR,
q2_time VARCHAR
) | SELECT COUNT(pos) FROM table_1924975_1 WHERE q1 + q2_time = "2.34.736" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19978,
3647,
3072,
834,
536,
41,
3,
2748,
584,
4280,
28027,
6,
3,
1824,
536,
584,
4280,
28027,
6,
3,
1824,
357,
834,
715,
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,
2847,
17161,
599,
2748,
61,
21680,
953,
834,
19978,
3647,
3072,
834,
536,
549,
17444,
427,
3,
1824,
536,
1768,
3,
1824,
357,
834,
715,
3274,
96,
18561,
25211,
3420,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the total number of Domestic Passengers of airports that contain the word 'London'. | CREATE TABLE airport (
Domestic_Passengers INTEGER,
Airport_Name VARCHAR
) | SELECT SUM(Domestic_Passengers) FROM airport WHERE Airport_Name LIKE "%London%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3761,
41,
23610,
834,
20192,
4606,
277,
3,
21342,
17966,
6,
5735,
834,
23954,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
792,
381,
13,
23610,
3424,
4606,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
4135,
2687,
1225,
834,
20192,
4606,
277,
61,
21680,
3761,
549,
17444,
427,
5735,
834,
23954,
8729,
9914,
96,
1454,
29712,
1454,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which vocal type has the band mate with first name "Marianne" played the most? | CREATE TABLE vocals (bandmate VARCHAR); CREATE TABLE band (id VARCHAR) | SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate = T2.id WHERE firstname = "Marianne" GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6721,
7,
41,
3348,
5058,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1928,
41,
23,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
6721,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
12016,
5668,
21680,
6721,
7,
6157,
332,
536,
3,
15355,
3162,
1928,
6157,
332,
357,
9191,
332,
5411,
3348,
5058,
3274,
332,
4416,
23,
26,
549,
17444,
427,
166,
4350,
3274,
96,
7286,
23,
4515,
121,
350,
4630,
6880,... |
List the names of editors in ascending order of age. | CREATE TABLE journal (
journal_id number,
date text,
theme text,
sales number
)
CREATE TABLE journal_committee (
editor_id number,
journal_id number,
work_type text
)
CREATE TABLE editor (
editor_id number,
name text,
age number
) | SELECT name FROM editor ORDER BY age | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6378,
41,
6378,
834,
23,
26,
381,
6,
833,
1499,
6,
3800,
1499,
6,
1085,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
6378,
834,
287,
1538,
17,
15,
15,
41,
6005,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6005,
4674,
11300,
272,
476,
1246,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What's the HC for the Euro I standard? | CREATE TABLE table_2780146_6 (hc__g_kwh_ VARCHAR, standard VARCHAR) | SELECT hc__g_kwh_ FROM table_2780146_6 WHERE standard = "Euro I" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
2079,
24300,
834,
948,
41,
107,
75,
834,
834,
122,
834,
157,
210,
107,
834,
584,
4280,
28027,
6,
1068,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
107,
75,
834,
834,
122,
834,
157,
210,
107,
834,
21680,
953,
834,
2555,
2079,
24300,
834,
948,
549,
17444,
427,
1068,
3274,
96,
25670,
27,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many of the writers had 5.35 viewers? | CREATE TABLE table_22053239_1 (
written_by VARCHAR,
us_viewers__millions_ VARCHAR
) | SELECT COUNT(written_by) FROM table_22053239_1 WHERE us_viewers__millions_ = "5.35" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
3076,
2668,
3288,
834,
536,
41,
1545,
834,
969,
584,
4280,
28027,
6,
178,
834,
4576,
277,
834,
834,
17030,
7,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
14973,
834,
969,
61,
21680,
953,
834,
2884,
3076,
2668,
3288,
834,
536,
549,
17444,
427,
178,
834,
4576,
277,
834,
834,
17030,
7,
834,
3274,
96,
26627,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest crude death rate when deaths are 3 433 and average population is greater than 298? | CREATE TABLE table_name_16 (
crude_death_rate__per_1000_ INTEGER,
deaths VARCHAR,
average_population__x_1000_ VARCHAR
) | SELECT MAX(crude_death_rate__per_1000_) FROM table_name_16 WHERE deaths = "3 433" AND average_population__x_1000_ > 298 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
19058,
834,
221,
9,
189,
834,
2206,
834,
834,
883,
834,
16824,
834,
3,
21342,
17966,
6,
14319,
584,
4280,
28027,
6,
1348,
834,
9791,
7830,
834,
834,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14127,
221,
834,
221,
9,
189,
834,
2206,
834,
834,
883,
834,
16824,
834,
61,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
14319,
3274,
96,
519,
314,
4201,
121,
3430,
1348,
834,
9791,
7830,
834,
... |
For those employees who did not have any job in the past, give me the comparison about the sum of manager_id over the hire_date bin hire_date by weekday by a bar chart, and order in desc by the total number of manager id 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 countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
... | SELECT HIRE_DATE, SUM(MANAGER_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) ORDER BY SUM(MANAGER_ID) 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,
180,
6122,
599,
9312,
188,
17966,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
4486,
262,
5244,
5017,
476,
5080,
834,
4309,
3388,
41,
23143,
14196,
262,
5244,
5017,
476,
5080,
834,
4309,... |
What is the average number lost when the PCT is more than 0.7334 and the total number of games is larger than 48? | CREATE TABLE table_name_22 (lost INTEGER, pct VARCHAR, total_games VARCHAR) | SELECT AVG(lost) FROM table_name_22 WHERE pct > 0.7334 AND total_games > 48 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
2298,
17,
3,
21342,
17966,
6,
3,
102,
75,
17,
584,
4280,
28027,
6,
792,
834,
7261,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
2298,
17,
61,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
3,
102,
75,
17,
2490,
4097,
4552,
3710,
3430,
792,
834,
7261,
7,
2490,
4678,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which channel had the game against the Minnesota Vikings? | CREATE TABLE table_16805 (
"Week" text,
"Date" text,
"Opponent" text,
"Result" text,
"Kickoff [a ]" text,
"Game site" text,
"TV" text,
"Attendance" text,
"Record" text
) | SELECT "TV" FROM table_16805 WHERE "Opponent" = 'Minnesota Vikings' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24274,
3076,
41,
96,
518,
10266,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
439,
3142,
1647,
784,
9,
3,
90... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4562,
121,
21680,
953,
834,
24274,
3076,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
12858,
1496,
32,
17,
9,
19476,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Event with a Time that is 3:06? | CREATE TABLE table_43311 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
) | SELECT "Event" FROM table_43311 WHERE "Time" = '3:06' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4906,
519,
2596,
41,
96,
1649,
7,
535,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
23351,
107,
32,
26,
121,
1499,
6,
96,
427,
2169,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
427,
2169,
121,
21680,
953,
834,
4906,
519,
2596,
549,
17444,
427,
96,
13368,
121,
3274,
3,
31,
519,
10,
5176,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the smallest position with less than 7 points piloted by Didier Hauss? | CREATE TABLE table_38560 (
"Position" real,
"Pilot" text,
"Country" text,
"Glider" text,
"Points" real
) | SELECT MIN("Position") FROM table_38560 WHERE "Points" < '7' AND "Pilot" = 'didier hauss' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
4433,
3328,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
345,
23,
3171,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
517,
8130,
49,
121,
1499,
6,
96,
22512,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
345,
32,
7,
4749,
8512,
21680,
953,
834,
519,
4433,
3328,
549,
17444,
427,
96,
22512,
7,
121,
3,
2,
3,
31,
940,
31,
3430,
96,
345,
23,
3171,
121,
3274,
3,
31,
12416,
972,
3,
2989,
7,
31,
... |
What is the playoff Game on April 30? | CREATE TABLE table_44832 (
"Game" text,
"Date" text,
"Team" text,
"Score" text,
"Location Attendance" text,
"Series" text
) | SELECT "Game" FROM table_44832 WHERE "Date" = 'april 30' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3628,
4591,
357,
41,
96,
23055,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
75,
257,
22497,
663,
121,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23055,
121,
21680,
953,
834,
3628,
4591,
357,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
9,
2246,
40,
604,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average number of rounds for winner Rafael Cavalcante? | CREATE TABLE table_name_37 (round INTEGER, winner VARCHAR) | SELECT AVG(round) FROM table_name_37 WHERE winner = "rafael cavalcante" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
7775,
3,
21342,
17966,
6,
4668,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
381,
13,
14419,
21,
4668,
29715,
17655,
138,
75,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
7775,
61,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
4668,
3274,
96,
52,
9,
89,
9,
15,
40,
212,
2165,
75,
1841,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who is the manufacturer for Henk Vd Lagemaat? | CREATE TABLE table_44668 (
"Rider" text,
"Manufacturer" text,
"Laps" text,
"Time/Retired" text,
"Grid" text
) | SELECT "Manufacturer" FROM table_44668 WHERE "Rider" = 'henk vd lagemaat' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4448,
3651,
41,
96,
448,
23,
588,
121,
1499,
6,
96,
7296,
76,
8717,
450,
49,
121,
1499,
6,
96,
3612,
102,
7,
121,
1499,
6,
96,
13368,
87,
1649,
11809,
26,
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,
7296,
76,
8717,
450,
49,
121,
21680,
953,
834,
591,
4448,
3651,
549,
17444,
427,
96,
448,
23,
588,
121,
3274,
3,
31,
3225,
157,
3,
208,
26,
3,
4855,
51,
9,
144,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the Score of Stewart Cink with a To par of +4? | CREATE TABLE table_name_50 (score VARCHAR, to_par VARCHAR, player VARCHAR) | SELECT score FROM table_name_50 WHERE to_par = "+4" AND player = "stewart cink" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
7,
9022,
584,
4280,
28027,
6,
12,
834,
1893,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
17763,
13,
164... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
12,
834,
1893,
3274,
96,
1220,
20364,
3430,
1959,
3274,
96,
849,
2910,
17,
3,
75,
6090,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What year was the 146 total? | CREATE TABLE table_60121 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" real
) | SELECT "Year(s) won" FROM table_60121 WHERE "Total" = '146' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
22011,
41,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
476,
2741,
599,
7,
61,
751,
121,
1499,
6,
96,
3696,
1947,
121,
490,
6,
96,
3696,
260,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
96,
476,
2741,
599,
7,
61,
751,
121,
21680,
953,
834,
3328,
22011,
549,
17444,
427,
96,
3696,
1947,
121,
3274,
3,
31,
24300,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the highest Pick for Lonnie Brockman before round 9? | CREATE TABLE table_name_30 (pick INTEGER, player VARCHAR, round VARCHAR) | SELECT MAX(pick) FROM table_name_30 WHERE player = "lonnie brockman" AND round < 9 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
17967,
3,
21342,
17966,
6,
1959,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2030,
8356,
21,
1815,
11113,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
17967,
61,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
1959,
3274,
96,
40,
32,
11113,
3,
115,
6133,
348,
121,
3430,
1751,
3,
2,
668,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
With an Overall less than 171, what is the Round pick of Lance Moon? | CREATE TABLE table_name_36 (
round INTEGER,
name VARCHAR,
overall VARCHAR
) | SELECT MIN(round) FROM table_name_36 WHERE name = "lance moon" AND overall < 171 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
1751,
3,
21342,
17966,
6,
564,
584,
4280,
28027,
6,
1879,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
438,
46,
9126,
705,
145,
1003,
4347,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
7775,
61,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
564,
3274,
96,
40,
663,
8114,
121,
3430,
1879,
3,
2,
1003,
536,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which 2nd Party has a Election of 1857? | CREATE TABLE table_name_17 (
election VARCHAR
) | SELECT 2 AS nd_party FROM table_name_17 WHERE election = "1857" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
4356,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
204,
727,
3450,
65,
3,
9,
19488,
13,
507,
3436,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
204,
6157,
3,
727,
834,
8071,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
4356,
3274,
96,
2606,
3436,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
how many patients are primary diagnosed for st elevated myocardial infarction or cardiac cath and have a lab test for blood? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.diagnosis = "ST ELEVATED MYOCARDIAL INFARCTION\CARDIAC CATH" AND lab.fluid = "Blood" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What was the overall pick number of the player selected before round 3? | CREATE TABLE table_name_40 (
overall_pick VARCHAR,
round INTEGER
) | SELECT COUNT(overall_pick) FROM table_name_40 WHERE round < 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
1879,
834,
17967,
584,
4280,
28027,
6,
1751,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1879,
1432,
381,
13,
8,
1959,
2639,
274... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1890,
1748,
834,
17967,
61,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
1751,
3,
2,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the MDR number of Rait Charhi Dharamshala? | CREATE TABLE table_28273 (
"Sr. No." real,
"Name of Road" text,
"Passes Through - District(s" text,
"Length (in km)" text,
"MDR No." real
) | SELECT MIN("MDR No.") FROM table_28273 WHERE "Name of Road" = 'Rait Charhi Dharamshala' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
2555,
519,
41,
96,
134,
52,
5,
465,
535,
490,
6,
96,
23954,
13,
2409,
121,
1499,
6,
96,
20192,
15,
7,
4582,
3,
18,
3570,
599,
7,
121,
1499,
6,
96,
434,
4606,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
329,
3913,
465,
5,
8512,
21680,
953,
834,
2577,
2555,
519,
549,
17444,
427,
96,
23954,
13,
2409,
121,
3274,
3,
31,
448,
9,
155,
4004,
16611,
309,
14888,
51,
7,
3828,
9,
31,
1,
-100,
-100,
-10... |
What is the lowest pick of a player for the SS, P Position for the Minnesota Twins? | CREATE TABLE table_name_51 (
pick INTEGER,
position VARCHAR,
team VARCHAR
) | SELECT MIN(pick) FROM table_name_51 WHERE position = "ss, p" AND team = "minnesota twins" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
1432,
3,
21342,
17966,
6,
1102,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
1432,
13,
3,
9,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
17967,
61,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
1102,
3274,
96,
7,
7,
6,
3,
102,
121,
3430,
372,
3274,
96,
1109,
1496,
32,
17,
9,
7390,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the smallest 08-09 GP/JGP 2nd value when WS points equals 3197? | CREATE TABLE table_23938357_7 (
ws_points VARCHAR
) | SELECT MIN(08 AS _09_gp_jgp_2nd) FROM table_23938357_7 WHERE ws_points = 3197 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
4271,
4591,
3436,
834,
940,
41,
3,
210,
7,
834,
2700,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
17924,
12046,
18,
4198,
3,
8049,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
4018,
6157,
3,
834,
4198,
834,
122,
102,
834,
354,
122,
102,
834,
357,
727,
61,
21680,
953,
834,
2773,
4271,
4591,
3436,
834,
940,
549,
17444,
427,
3,
210,
7,
834,
2700,
7,
3274,
220,
27181,
1,
-1... |
What is every party A with a constituency of Tiruchendur? | CREATE TABLE table_22753439_1 (
party VARCHAR,
constituency VARCHAR
) | SELECT party AS a FROM table_22753439_1 WHERE constituency = "Tiruchendur" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
3072,
3710,
3288,
834,
536,
41,
1088,
584,
4280,
28027,
6,
6439,
4392,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
334,
1088,
71,
28,
3,
9,
6439,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1088,
6157,
3,
9,
21680,
953,
834,
2884,
3072,
3710,
3288,
834,
536,
549,
17444,
427,
6439,
4392,
3274,
96,
382,
23,
11783,
3225,
13629,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the time/retired if the driver is Ed Carpenter? | CREATE TABLE table_17693171_1 (
time_retired VARCHAR,
driver VARCHAR
) | SELECT time_retired FROM table_17693171_1 WHERE driver = "Ed Carpenter" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
3951,
3341,
4450,
834,
536,
41,
97,
834,
10682,
1271,
584,
4280,
28027,
6,
2535,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
97,
87,
10682,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
97,
834,
10682,
1271,
21680,
953,
834,
2517,
3951,
3341,
4450,
834,
536,
549,
17444,
427,
2535,
3274,
96,
427,
26,
28337,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
who is the player when the position is p and the team is oakland athletics? | CREATE TABLE table_name_99 (
player VARCHAR,
position VARCHAR,
team VARCHAR
) | SELECT player FROM table_name_99 WHERE position = "p" AND team = "oakland athletics" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
1959,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
113,
19,
8,
1959,
116,
8,
1102,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
1102,
3274,
96,
102,
121,
3430,
372,
3274,
96,
32,
1639,
40,
232,
12217,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the surface for events held in 1983? | CREATE TABLE table_2151643_3 (
surface VARCHAR,
year VARCHAR
) | SELECT surface FROM table_2151643_3 WHERE year = 1983 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
1808,
2938,
4906,
834,
519,
41,
1774,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1774,
21,
984,
1213,
16,
15041,
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,
1774,
21680,
953,
834,
357,
1808,
2938,
4906,
834,
519,
549,
17444,
427,
215,
3274,
15041,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
In zip code 94107, on which day neither Fog nor Rain was not observed? | CREATE TABLE weather (date VARCHAR, EVENTS VARCHAR, zip_code VARCHAR) | SELECT date FROM weather WHERE zip_code = 94107 AND EVENTS <> "Fog" AND EVENTS <> "Rain" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1969,
41,
5522,
584,
4280,
28027,
6,
262,
24992,
134,
584,
4280,
28027,
6,
10658,
834,
4978,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
86,
10658,
1081,
3,
4240,
18057,
6,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
1969,
549,
17444,
427,
10658,
834,
4978,
3274,
3,
4240,
18057,
3430,
262,
24992,
134,
3,
2,
3155,
96,
371,
32,
122,
121,
3430,
262,
24992,
134,
3,
2,
3155,
96,
448,
9,
77,
121,
1,
-100,
-100,
-100,
-... |
In which yearly change was there a capacity of 78.4% and a rank smaller than 3? | CREATE TABLE table_41854 (
"Rank" real,
"Location" text,
"Total Passengers" real,
"Annual change" text,
"Capacity in use" text
) | SELECT "Annual change" FROM table_41854 WHERE "Rank" < '3' AND "Capacity in use" = '78.4%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2606,
5062,
41,
96,
22557,
121,
490,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
3696,
1947,
3424,
4606,
277,
121,
490,
6,
96,
17608,
3471,
483,
121,
1499,
6,
96,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
17608,
3471,
483,
121,
21680,
953,
834,
591,
2606,
5062,
549,
17444,
427,
96,
22557,
121,
3,
2,
3,
31,
519,
31,
3430,
96,
19566,
9,
6726,
16,
169,
121,
3274,
3,
31,
3940,
5,
5988,
31,
1,
-100,
-100,
-100,
... |
Which nominations are connected to the film Totalitarian Romance? | CREATE TABLE table_10236830_4 (nomination VARCHAR, film_name VARCHAR) | SELECT nomination FROM table_10236830_4 WHERE film_name = "Totalitarian Romance" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1714,
2773,
3651,
1458,
834,
591,
41,
29,
32,
14484,
584,
4280,
28027,
6,
814,
834,
4350,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
13588,
7,
33,
2895,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
13588,
21680,
953,
834,
1714,
2773,
3651,
1458,
834,
591,
549,
17444,
427,
814,
834,
4350,
3274,
96,
3696,
1947,
155,
6855,
3385,
565,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which game had less than 270 rebounds and a rank lower than 5? | CREATE TABLE table_name_36 (
games VARCHAR,
rebounds VARCHAR,
rank VARCHAR
) | SELECT games FROM table_name_36 WHERE rebounds < 270 AND rank < 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
1031,
584,
4280,
28027,
6,
3,
23768,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
467,
141,
705,
145,
3,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1031,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
3,
23768,
3,
2,
3,
17485,
3430,
11003,
3,
2,
305,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who was the away team when the home team scored 11.14 (80)? | CREATE TABLE table_32499 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Away team" FROM table_32499 WHERE "Home team score" = '11.14 (80)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2266,
3264,
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,
188,
1343,
372,
121,
21680,
953,
834,
519,
2266,
3264,
549,
17444,
427,
96,
19040,
372,
2604,
121,
3274,
3,
31,
10032,
2534,
41,
2079,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who is the lead of the team from Lockerbie? | CREATE TABLE table_43119 (
"Team" text,
"Country" text,
"Home" text,
"Skip" text,
"Third" text,
"Second" text,
"Lead" text
) | SELECT "Lead" FROM table_43119 WHERE "Home" = 'lockerbie' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4906,
19993,
41,
96,
18699,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
134,
2168,
102,
121,
1499,
6,
96,
382,
9288,
26,
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,
2796,
9,
26,
121,
21680,
953,
834,
4906,
19993,
549,
17444,
427,
96,
19040,
121,
3274,
3,
31,
4029,
49,
4232,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
I want the D 46 for D 45 of r 5 | CREATE TABLE table_77509 (
"D 49" text,
"D 48" text,
"D 47" text,
"D 46" text,
"D 45" text,
"D 44" text,
"D 43" text,
"D 42" text,
"D 41" text,
"D 40" text
) | SELECT "D 46" FROM table_77509 WHERE "D 45" = 'r 5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
1752,
1298,
41,
96,
308,
9526,
121,
1499,
6,
96,
308,
4678,
121,
1499,
6,
96,
308,
10635,
121,
1499,
6,
96,
308,
9668,
121,
1499,
6,
96,
308,
3479,
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,
308,
9668,
121,
21680,
953,
834,
4013,
1752,
1298,
549,
17444,
427,
96,
308,
3479,
121,
3274,
3,
31,
52,
305,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the us exclusive for miley cyrus | CREATE TABLE table_24600706_1 (us_exclusive VARCHAR, artist_band VARCHAR) | SELECT us_exclusive FROM table_24600706_1 WHERE artist_band = "Miley Cyrus" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
6007,
2518,
948,
834,
536,
41,
302,
834,
30810,
584,
4280,
28027,
6,
2377,
834,
3348,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
178,
3839,
21,
7728,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
178,
834,
30810,
21680,
953,
834,
2266,
6007,
2518,
948,
834,
536,
549,
17444,
427,
2377,
834,
3348,
3274,
96,
329,
23,
1306,
6400,
4502,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the Illinois Derby purse? | CREATE TABLE table_name_32 (purse___us$__ VARCHAR, race VARCHAR) | SELECT purse___us$__ FROM table_name_32 WHERE race = "illinois derby" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
3791,
7,
15,
834,
834,
834,
302,
3229,
834,
834,
584,
4280,
28027,
6,
1964,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
7659,
2148... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20717,
834,
834,
834,
302,
3229,
834,
834,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
1964,
3274,
96,
1092,
77,
32,
159,
74,
969,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
List the names of editors who are older than 25. | CREATE TABLE editor (
Name VARCHAR,
Age INTEGER
) | SELECT Name FROM editor WHERE Age > 25 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6005,
41,
5570,
584,
4280,
28027,
6,
7526,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
6792,
8,
3056,
13,
18008,
113,
33,
2749,
145,
944,
5,
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,
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,
5570,
21680,
6005,
549,
17444,
427,
7526,
2490,
944,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is Height, when Rank is less than 20, when Floors is greater than 9, when Built is 2005, and when Name is The Edge (C)? | CREATE TABLE table_75911 (
"Rank" real,
"Name" text,
"Built" real,
"Height" text,
"Floors" real
) | SELECT "Height" FROM table_75911 WHERE "Rank" < '20' AND "Floors" > '9' AND "Built" = '2005' AND "Name" = 'the edge (c)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
4729,
536,
41,
96,
22557,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
7793,
173,
17,
121,
490,
6,
96,
3845,
2632,
121,
1499,
6,
96,
11251,
127,
7,
121,
490,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3845,
2632,
121,
21680,
953,
834,
3072,
4729,
536,
549,
17444,
427,
96,
22557,
121,
3,
2,
3,
31,
1755,
31,
3430,
96,
11251,
127,
7,
121,
2490,
3,
31,
1298,
31,
3430,
96,
7793,
173,
17,
121,
3274,
3,
31,
22... |
Which Number of vehicles has a Type designation of u5-25 (bi-directional)? | CREATE TABLE table_37788 (
"City" text,
"Operator" text,
"Type designation" text,
"Number of vehicles" real,
"Width" text
) | SELECT "Number of vehicles" FROM table_37788 WHERE "Type designation" = 'u5-25 (bi-directional)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
4013,
4060,
41,
96,
254,
485,
121,
1499,
6,
96,
667,
883,
1016,
121,
1499,
6,
96,
25160,
21767,
121,
1499,
6,
96,
567,
5937,
49,
13,
3203,
121,
490,
6,
96,
518,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
567,
5937,
49,
13,
3203,
121,
21680,
953,
834,
519,
4013,
4060,
549,
17444,
427,
96,
25160,
21767,
121,
3274,
3,
31,
76,
755,
14855,
41,
115,
23,
18,
26352,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which building has 26 storeys? | CREATE TABLE table_5242 (
"Years" text,
"Building" text,
"City" text,
"Height" text,
"Storeys" real
) | SELECT "Building" FROM table_5242 WHERE "Storeys" = '26' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5373,
4165,
41,
96,
476,
2741,
7,
121,
1499,
6,
96,
24752,
53,
121,
1499,
6,
96,
254,
485,
121,
1499,
6,
96,
3845,
2632,
121,
1499,
6,
96,
28719,
63,
7,
121,
490,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
24752,
53,
121,
21680,
953,
834,
5373,
4165,
549,
17444,
427,
96,
28719,
63,
7,
121,
3274,
3,
31,
2688,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the percent for in manitoba? | CREATE TABLE table_120778_1 (
percent_for VARCHAR,
jurisdiction VARCHAR
) | SELECT percent_for FROM table_120778_1 WHERE jurisdiction = "Manitoba" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
4560,
3940,
834,
536,
41,
1093,
834,
1161,
584,
4280,
28027,
6,
10185,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1093,
21,
16,
388,
23,
235,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1093,
834,
1161,
21680,
953,
834,
2122,
4560,
3940,
834,
536,
549,
17444,
427,
10185,
3274,
96,
7296,
23,
235,
115,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the venue where the result was 12th? | CREATE TABLE table_name_73 (
venue VARCHAR,
result VARCHAR
) | SELECT venue FROM table_name_73 WHERE result = "12th" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
5669,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
5669,
213,
8,
741,
47,
586,
189,
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,
5669,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
741,
3274,
96,
2122,
189,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many entries are there for first driver for Canada? | CREATE TABLE table_13416000_3 (first_driver_s_ VARCHAR, country VARCHAR) | SELECT COUNT(first_driver_s_) FROM table_13416000_3 WHERE country = "Canada" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2938,
2313,
834,
519,
41,
14672,
834,
13739,
52,
834,
7,
834,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
10066,
33,
132,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
14672,
834,
13739,
52,
834,
7,
834,
61,
21680,
953,
834,
23747,
2938,
2313,
834,
519,
549,
17444,
427,
684,
3274,
96,
28811,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which round has more than 79 overall and a position of QB? | CREATE TABLE table_name_60 (
round VARCHAR,
position VARCHAR,
overall VARCHAR
) | SELECT round FROM table_name_60 WHERE position = "qb" AND overall > 79 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
1751,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
6,
1879,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1751,
65,
72,
145,
3,
4440,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1751,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
1102,
3274,
96,
1824,
115,
121,
3430,
1879,
2490,
3,
4440,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is average age of male for different job title Visualize by bar chart, list by the mean age in asc. | CREATE TABLE PersonFriend (
name varchar(20),
friend varchar(20),
year INTEGER
)
CREATE TABLE Person (
name varchar(20),
age INTEGER,
city TEXT,
gender TEXT,
job TEXT
) | SELECT job, AVG(age) FROM Person WHERE gender = 'male' GROUP BY job ORDER BY AVG(age) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5780,
17701,
41,
564,
3,
4331,
4059,
599,
1755,
201,
1565,
3,
4331,
4059,
599,
1755,
201,
215,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
5780,
41,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
613,
6,
71,
17217,
599,
545,
61,
21680,
5780,
549,
17444,
427,
7285,
3274,
3,
31,
13513,
31,
350,
4630,
6880,
272,
476,
613,
4674,
11300,
272,
476,
71,
17217,
599,
545,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is the number of patients whose gender is m and procedure icd9 code is 5110? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.gender = "M" AND procedures.icd9_code = "5110" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the lowest 2nd (m) when the points were larger than 251.6? | CREATE TABLE table_name_99 (points INTEGER) | SELECT MIN(2 AS nd__m_) FROM table_name_99 WHERE points > 251.6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
2700,
7,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
204,
727,
41,
51,
61,
116,
8,
979,
130,
2186,
145,
944,
15062,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
357,
6157,
3,
727,
834,
834,
51,
834,
61,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
979,
2490,
944,
15062,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Find the title of course whose prerequisite is course Differential Geometry. | CREATE TABLE prereq (
course_id VARCHAR,
prereq_id VARCHAR
)
CREATE TABLE course (
title VARCHAR,
course_id VARCHAR
) | SELECT title FROM course WHERE course_id IN (SELECT T1.course_id FROM prereq AS T1 JOIN course AS T2 ON T1.prereq_id = T2.course_id WHERE T2.title = 'Differential Geometry') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
554,
60,
1824,
41,
503,
834,
23,
26,
584,
4280,
28027,
6,
554,
60,
1824,
834,
23,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
503,
41,
2233,
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,
2233,
21680,
503,
549,
17444,
427,
503,
834,
23,
26,
3388,
41,
23143,
14196,
332,
5411,
19221,
834,
23,
26,
21680,
554,
60,
1824,
6157,
332,
536,
3,
15355,
3162,
503,
6157,
332,
357,
9191,
332,
5411,
2026,
60,
1824,... |
Can you tell me the highest Game that has the Opponent of atlanta hawks? | CREATE TABLE table_name_56 (
game INTEGER,
opponent VARCHAR
) | SELECT MAX(game) FROM table_name_56 WHERE opponent = "atlanta hawks" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4834,
41,
467,
3,
21342,
17966,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
1072,
25,
817,
140,
8,
2030,
4435,
24,
65,
8,
4495,
9977,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
7261,
61,
21680,
953,
834,
4350,
834,
4834,
549,
17444,
427,
15264,
3274,
96,
144,
6761,
9,
3,
14400,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
When was the Hon Ian Causley first elected? | CREATE TABLE table_32625 (
"Member" text,
"Party" text,
"Electorate" text,
"State" text,
"First elected" text
) | SELECT "First elected" FROM table_32625 WHERE "Member" = 'hon ian causley' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2688,
1828,
41,
96,
329,
18247,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
21543,
127,
342,
121,
1499,
6,
96,
134,
4748,
121,
1499,
6,
96,
25171,
8160,
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,
0,
0... | [
3,
23143,
14196,
96,
25171,
8160,
121,
21680,
953,
834,
519,
2688,
1828,
549,
17444,
427,
96,
329,
18247,
121,
3274,
3,
31,
107,
106,
3,
23,
152,
212,
302,
1306,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who is the home captain that played at Edgbaston? | CREATE TABLE table_name_22 (
home_captain VARCHAR,
venue VARCHAR
) | SELECT home_captain FROM table_name_22 WHERE venue = "edgbaston" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
234,
834,
4010,
17,
9,
77,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
234,
14268,
24,
1944,
44,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
4010,
17,
9,
77,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
5669,
3274,
96,
15,
26,
122,
115,
9,
4411,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
who came after borislav dimitrachkov and it 's time for slalom | CREATE TABLE table_204_169 (
id number,
"athlete" text,
"event" text,
"race 1\ntime" text,
"race 2\ntime" text,
"total\ntime" text,
"total\nrank" number
) | SELECT "athlete" FROM table_204_169 WHERE id = (SELECT id FROM table_204_169 WHERE "athlete" = 'borislav dimitrachkov' AND "event" = 'slalom') + 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
27096,
41,
3,
23,
26,
381,
6,
96,
26170,
15,
121,
1499,
6,
96,
15,
2169,
121,
1499,
6,
96,
12614,
209,
2,
29,
715,
121,
1499,
6,
96,
12614,
204,
2,
29,
71... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26170,
15,
121,
21680,
953,
834,
26363,
834,
27096,
549,
17444,
427,
3,
23,
26,
3274,
41,
23143,
14196,
3,
23,
26,
21680,
953,
834,
26363,
834,
27096,
549,
17444,
427,
96,
26170,
15,
121,
3274,
3,
31,
6693,
23... |
How many numbers correspond to the score in the final of 6 3, 6 4, 7 6 (13 11)? | CREATE TABLE table_26202940_6 (
no VARCHAR,
score_in_the_final VARCHAR
) | SELECT COUNT(no) FROM table_26202940_6 WHERE score_in_the_final = "6–3, 6–4, 7–6 (13–11)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
1755,
3166,
2445,
834,
948,
41,
150,
584,
4280,
28027,
6,
2604,
834,
77,
834,
532,
834,
12406,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
2302,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
29,
32,
61,
21680,
953,
834,
2688,
1755,
3166,
2445,
834,
948,
549,
17444,
427,
2604,
834,
77,
834,
532,
834,
12406,
3274,
96,
948,
104,
6355,
431,
104,
8525,
489,
104,
948,
41,
2368,
104,
2596,
... |
How many points did shahar pe'er score? | CREATE TABLE table_2357 (
"Sd" real,
"Player" text,
"Points" real,
"Points defending" real,
"Points won" real,
"New points" real,
"Status" text
) | SELECT "Points won" FROM table_2357 WHERE "Player" = 'Shahar Pe''er' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
3436,
41,
96,
134,
26,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
22512,
7,
121,
490,
6,
96,
22512,
7,
3,
20309,
121,
490,
6,
96,
22512,
7,
751,
121,
490,
6,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
22512,
7,
751,
121,
21680,
953,
834,
2773,
3436,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
10499,
9,
3272,
1276,
31,
31,
49,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Show the name of aircrafts with top three lowest distances. | CREATE TABLE Aircraft (
name VARCHAR,
distance VARCHAR
) | SELECT name FROM Aircraft ORDER BY distance LIMIT 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1761,
6696,
41,
564,
584,
4280,
28027,
6,
2357,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
3111,
8,
564,
13,
6442,
7,
28,
420,
386,
7402,
2357,
7,
5,
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,
564,
21680,
1761,
6696,
4674,
11300,
272,
476,
2357,
8729,
12604,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
WHAT IS THE TEAM FOR DECEMBER 30? | CREATE TABLE table_45758 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Team" FROM table_45758 WHERE "Date" = 'december 30' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
3072,
927,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18699,
121,
21680,
953,
834,
2128,
3072,
927,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
221,
75,
18247,
604,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Length has a Country of soviet union, and a Year larger than 1975? | CREATE TABLE table_37832 (
"Year" real,
"English title" text,
"Original title" text,
"Country" text,
"Length" text
) | SELECT "Length" FROM table_37832 WHERE "Country" = 'soviet union' AND "Year" > '1975' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3940,
2668,
41,
96,
476,
2741,
121,
490,
6,
96,
26749,
2233,
121,
1499,
6,
96,
667,
3380,
10270,
2233,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
434,
4606,
189... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
4606,
189,
121,
21680,
953,
834,
519,
3940,
2668,
549,
17444,
427,
96,
10628,
651,
121,
3274,
3,
31,
7,
9881,
15,
17,
7021,
31,
3430,
96,
476,
2741,
121,
2490,
3,
31,
2294,
3072,
31,
1,
-100,
-100,
-100... |
what is the rank of adam gilchrist | CREATE TABLE table_19870086_24 (rank VARCHAR, player VARCHAR) | SELECT COUNT(rank) FROM table_19870086_24 WHERE player = "Adam Gilchrist" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24151,
9295,
3840,
834,
2266,
41,
6254,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
11003,
13,
3,
9,
7812,
3,
122,
173,
1529... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
6254,
61,
21680,
953,
834,
24151,
9295,
3840,
834,
2266,
549,
17444,
427,
1959,
3274,
96,
188,
7812,
12798,
15294,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which date has 1 as the week? | CREATE TABLE table_name_22 (date VARCHAR, week VARCHAR) | SELECT date FROM table_name_22 WHERE week = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
5522,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
833,
65,
209,
38,
8,
471,
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,
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,
833,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
471,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the abbreviation of the district of Mahbubnagar? | CREATE TABLE table_1610301_1 (
code VARCHAR,
district VARCHAR
) | SELECT code FROM table_1610301_1 WHERE district = "Mahbubnagar" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
1714,
25626,
834,
536,
41,
1081,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
703,
1999,
2099,
257,
13,
8,
3939,
13,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1081,
21680,
953,
834,
2938,
1714,
25626,
834,
536,
549,
17444,
427,
3939,
3274,
96,
329,
9,
107,
3007,
115,
29,
9,
1478,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Venue has an Opposing Team of manchester united, and a Round of 5th round replay? | CREATE TABLE table_name_79 (
venue VARCHAR,
opposing_team VARCHAR,
round VARCHAR
) | SELECT venue FROM table_name_79 WHERE opposing_team = "manchester united" AND round = "5th round replay" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
5669,
584,
4280,
28027,
6,
10720,
53,
834,
11650,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
29940,
65,
46,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
5669,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
10720,
53,
834,
11650,
3274,
96,
348,
13263,
18279,
121,
3430,
1751,
3274,
96,
755,
189,
1751,
27204,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the tyres for the JBW type 2 chassis? | CREATE TABLE table_name_70 (
tyres VARCHAR,
chassis VARCHAR
) | SELECT tyres FROM table_name_70 WHERE chassis = "jbw type 2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
3,
17,
63,
60,
7,
584,
4280,
28027,
6,
22836,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
17,
63,
60,
7,
21,
8,
446,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17,
63,
60,
7,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
22836,
3274,
96,
354,
115,
210,
686,
204,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which song named Tan Dun was nominated? | CREATE TABLE table_name_76 (song VARCHAR, status VARCHAR, name VARCHAR) | SELECT song FROM table_name_76 WHERE status = "nominated" AND name = "tan dun" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
7,
2444,
584,
4280,
28027,
6,
2637,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
2324,
2650,
8331,
6393,
47,
150,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2324,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
2637,
3274,
96,
3114,
77,
920,
121,
3430,
564,
3274,
96,
17,
152,
146,
29,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What year has an extra of 8, and a result of 3rd? | CREATE TABLE table_name_12 (
year VARCHAR,
extra VARCHAR,
result VARCHAR
) | SELECT year FROM table_name_12 WHERE extra = 8 AND result = "3rd" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
215,
584,
4280,
28027,
6,
996,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
215,
65,
46,
996,
13,
9478,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
215,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
996,
3274,
505,
3430,
741,
3274,
96,
519,
52,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the enrollment number of misericordia university ? | CREATE TABLE table_203_518 (
id number,
"institution" text,
"location" text,
"nickname" text,
"founded" number,
"type" text,
"enrollment" number,
"joined\nmac" number
) | SELECT "enrollment" FROM table_203_518 WHERE "institution" = 'misericordia university' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
755,
2606,
41,
3,
23,
26,
381,
6,
96,
77,
17448,
121,
1499,
6,
96,
14836,
121,
1499,
6,
96,
11191,
4350,
121,
1499,
6,
96,
23329,
121,
381,
6,
96,
6137,
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,
35,
4046,
297,
121,
21680,
953,
834,
23330,
834,
755,
2606,
549,
17444,
427,
96,
77,
17448,
121,
3274,
3,
31,
51,
4901,
23,
7621,
23,
9,
3819,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Compare the average salary by each hire date (bin it into the day of week interval) of employees using a bar chart. | CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TI... | SELECT HIRE_DATE, AVG(SALARY) FROM employees | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1440,
41,
2847,
17161,
11824,
834,
4309,
3,
4331,
4059,
16426,
6,
2847,
17161,
11824,
834,
567,
17683,
3,
4331,
4059,
599,
2445,
201,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
1714,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
71,
17217,
599,
134,
4090,
24721,
61,
21680,
1652,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the number of patients whose diagnoses long title is unspecified essential hypertension? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.long_title = "Unspecified essential hypertension" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
Which Loss has a Record of 30-32? | CREATE TABLE table_name_85 (
loss VARCHAR,
record VARCHAR
) | SELECT loss FROM table_name_85 WHERE record = "30-32" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
1453,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
3144,
7,
65,
3,
9,
11392,
13,
12471,
2668,
58,
1,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1453,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
1368,
3274,
96,
1458,
18,
2668,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
WHAT IS THE NAME WITH A SUMMER TRANSFER WINDOW, AND COUNTRY SEN? | CREATE TABLE table_name_39 (name VARCHAR, transfer_window VARCHAR, country VARCHAR) | SELECT name FROM table_name_39 WHERE transfer_window = "summer" AND country = "sen" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
4350,
584,
4280,
28027,
6,
2025,
834,
5165,
2381,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
21665,
6827,
1853,
445,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
564,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
2025,
834,
5165,
2381,
3274,
96,
23541,
52,
121,
3430,
684,
3274,
96,
7,
35,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is average age of patients whose age is greater than or equal to 76 and admission year is greater than or equal to 2173? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
... | SELECT AVG(demographic.age) FROM demographic WHERE demographic.age >= "76" AND demographic.admityear >= "2173" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
545,
2490,
2423,
96,
3959,
121,
3430,
14798,
5,
20466,
17,
1201,
2490,
2423,
96,
2658,
4552,
121,
1,
-100,
-100,
-100,
-100,
-100,
-1... |
What is AAM Member, when AAM Accredited is No, when State is California, when ASTC Member is Yes, and when City is Sacramento? | CREATE TABLE table_42125 (
"City" text,
"State" text,
"AAM Accredited" text,
"AAM Member" text,
"ASTC Member" text
) | SELECT "AAM Member" FROM table_42125 WHERE "AAM Accredited" = 'no' AND "State" = 'california' AND "ASTC Member" = 'yes' AND "City" = 'sacramento' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4165,
10124,
41,
96,
254,
485,
121,
1499,
6,
96,
134,
4748,
121,
1499,
6,
96,
188,
4815,
4292,
16473,
121,
1499,
6,
96,
188,
4815,
8541,
121,
1499,
6,
96,
12510,
254,
854... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4815,
8541,
121,
21680,
953,
834,
4165,
10124,
549,
17444,
427,
96,
188,
4815,
4292,
16473,
121,
3274,
3,
31,
29,
32,
31,
3430,
96,
134,
4748,
121,
3274,
3,
31,
15534,
1161,
29,
23,
9,
31,
3430,
96,
125... |
Who is the player with a 76-67-71=214 score? | CREATE TABLE table_name_59 (player VARCHAR, score VARCHAR) | SELECT player FROM table_name_59 WHERE score = 76 - 67 - 71 = 214 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
20846,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
1959,
28,
3,
9,
3,
3959,
18,
3708,
18,
4450,
2423,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1959,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
2604,
3274,
3,
3959,
3,
18,
3,
3708,
3,
18,
3,
4450,
3274,
3,
27357,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
count the number of patients whose admission year is less than 2138 and procedure short title is tonsil&adenoid biopsy? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admityear < "2138" AND procedures.short_title = "Tonsil&adenoid biopsy" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
what is minimum age of patients whose marital status is divorced and admission location is emergency room admit? | 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 MIN(demographic.age) FROM demographic WHERE demographic.marital_status = "DIVORCED" AND demographic.admission_location = "EMERGENCY ROOM ADMIT" | [
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,
3,
17684,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
1635,
9538,
834,
8547,
302,
3274,
96,
308,
7589,
2990,
254,
2326,
121,
3430,
14798,
5,
9,
26,
5451,
834,
14836,
3274,
96,
427,
13098,
... |
Name the most pick number for guard and kansas city chiefs | CREATE TABLE table_2508633_2 (pick__number INTEGER, position VARCHAR, nfl_team VARCHAR) | SELECT MAX(pick__number) FROM table_2508633_2 WHERE position = "Guard" AND nfl_team = "Kansas City Chiefs" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11434,
3840,
4201,
834,
357,
41,
17967,
834,
834,
5525,
1152,
3,
21342,
17966,
6,
1102,
584,
4280,
28027,
6,
3,
29,
89,
40,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
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,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
17967,
834,
834,
5525,
1152,
61,
21680,
953,
834,
11434,
3840,
4201,
834,
357,
549,
17444,
427,
1102,
3274,
96,
9105,
986,
121,
3430,
3,
29,
89,
40,
834,
11650,
3274,
96,
439,
3247,
9,
7,
896,
5116,
... |
What is Winner, when Circuit is June 8? | CREATE TABLE table_name_33 (winner VARCHAR, circuit VARCHAR) | SELECT winner FROM table_name_33 WHERE circuit = "june 8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
3757,
687,
584,
4280,
28027,
6,
4558,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
18125,
6,
116,
17007,
19,
1515,
505,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4668,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
4558,
3274,
96,
6959,
15,
505,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the record for new orleans | CREATE TABLE table_17355408_4 (
record VARCHAR,
team VARCHAR
) | SELECT record FROM table_17355408_4 WHERE team = "New Orleans" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
2469,
5062,
4018,
834,
591,
41,
1368,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1368,
21,
126,
42,
109,
3247,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
2517,
2469,
5062,
4018,
834,
591,
549,
17444,
427,
372,
3274,
96,
6861,
14433,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What Game has a Location of Philadelphia Spectrum and a Date of April 1? | CREATE TABLE table_35195 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Record" text
) | SELECT "Game" FROM table_35195 WHERE "Location" = 'philadelphia spectrum' AND "Date" = 'april 1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
22464,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
75,
257,
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,
23055,
121,
21680,
953,
834,
2469,
22464,
549,
17444,
427,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
18118,
15311,
11692,
9,
10113,
31,
3430,
96,
308,
342,
121,
3274,
3,
31,
9,
2246,
40,
209,
31,
1,
-100,
-100... |
At the venue of panama city, on 11 Febrero 2006, how many goals were scored? | CREATE TABLE table_77793 (
"Goal" real,
"Date" text,
"Venue" text,
"Result" text,
"Competition" text
) | SELECT COUNT("Goal") FROM table_77793 WHERE "Venue" = 'panama city' AND "Date" = '11 febrero 2006' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26225,
4271,
41,
96,
6221,
138,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
5890,
4995,
4749,
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,
2847,
17161,
599,
121,
6221,
138,
8512,
21680,
953,
834,
26225,
4271,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
2837,
265,
9,
690,
31,
3430,
96,
308,
342,
121,
3274,
3,
31,
2596,
29976,
49,
32,
358... |
What is the Battle with Bulgarian Commander Ivan Asen II? | CREATE TABLE table_name_21 (battle VARCHAR, bulgarian_commander VARCHAR) | SELECT battle FROM table_name_21 WHERE bulgarian_commander = "ivan asen ii" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
115,
9,
8692,
584,
4280,
28027,
6,
25876,
6855,
834,
13695,
49,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
10141,
28,
15536,
29,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3392,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
25876,
6855,
834,
13695,
49,
3274,
96,
23,
2132,
38,
35,
3,
23,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what was the nominee of best musical | CREATE TABLE table_name_67 (
nominee VARCHAR,
category VARCHAR
) | SELECT nominee FROM table_name_67 WHERE category = "best musical" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
21077,
584,
4280,
28027,
6,
3295,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
47,
8,
21077,
13,
200,
4183,
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,
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,
21077,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
3295,
3274,
96,
9606,
4183,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
other than costa , name a swimmer from brazil . | CREATE TABLE table_204_433 (
id number,
"rank" number,
"name" text,
"nationality" text,
"time" text
) | SELECT "name" FROM table_204_433 WHERE "name" <> 'leonardo costa' AND "nationality" = 'brazil' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4906,
519,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
4350,
121,
1499,
6,
96,
16557,
485,
121,
1499,
6,
96,
715,
121,
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,
96,
4350,
121,
21680,
953,
834,
26363,
834,
4906,
519,
549,
17444,
427,
96,
4350,
121,
3,
2,
3155,
3,
31,
109,
106,
986,
32,
583,
9,
31,
3430,
96,
16557,
485,
121,
3274,
3,
31,
1939,
702,
40,
31,
1,
-100,
-100... |
What is the lowest age of an astronaut named Stu Roosa? | CREATE TABLE table_70781 (
"Name" text,
"Born" text,
"Age on mission" real,
"Mission" text,
"Mission dates" text,
"Service" text
) | SELECT MIN("Age on mission") FROM table_70781 WHERE "Name" = 'stu roosa' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2518,
3940,
536,
41,
96,
23954,
121,
1499,
6,
96,
279,
127,
29,
121,
1499,
6,
96,
188,
397,
30,
2253,
121,
490,
6,
96,
329,
159,
1938,
121,
1499,
6,
96,
329,
159,
1938,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
188,
397,
30,
2253,
8512,
21680,
953,
834,
2518,
3940,
536,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
7,
17,
76,
3,
52,
32,
32,
7,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
For those records from the products and each product's manufacturer, give me the comparison about the sum of revenue over the headquarter , and group by attribute headquarter by a bar chart, rank in ascending by the y-axis. | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT Headquarter, SUM(Revenue) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter ORDER BY SUM(Revenue) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
5312,
3396,
254,
26330,
434,
6,
15248,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3642,
19973,
6,
180,
6122,
599,
1649,
15098,
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,
272,
476,
36... |
What is the time when time is 10:46? | CREATE TABLE table_24484 (
"Day" text,
"Stage" text,
"Time (EET)" text,
"Name" text,
"Length" text,
"Winner" text,
"Time" text,
"Avg. spd." text,
"Rally leader" text
) | SELECT "Time" FROM table_24484 WHERE "Time (EET)" = '10:46' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
3707,
591,
41,
96,
16803,
121,
1499,
6,
96,
134,
6505,
121,
1499,
6,
96,
13368,
41,
26418,
61,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
434,
4606,
189,
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,
13368,
121,
21680,
953,
834,
2266,
3707,
591,
549,
17444,
427,
96,
13368,
41,
26418,
61,
121,
3274,
3,
31,
1714,
10,
4448,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Give me the comparison about Weight over the Date_of_Birth , and list by the bar in ascending. | 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 Date_of_Birth, Weight FROM people ORDER BY Date_of_Birth | [
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,
7678,
834,
858,
834,
279,
23,
52,
189,
6,
14230,
21680,
151,
4674,
11300,
272,
476,
7678,
834,
858,
834,
279,
23,
52,
189,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the result of the match on 3 March 2004? | CREATE TABLE table_38347 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Result" FROM table_38347 WHERE "Date" = '3 march 2004' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3747,
519,
4177,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
5890,
4995,
4749,
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,
20119,
121,
21680,
953,
834,
3747,
519,
4177,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
519,
10556,
4406,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the date for score of 95-101 | CREATE TABLE table_21679 (
"Date" text,
"Opponent" text,
"Home / Away" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location/Attendance" text,
"Record" text
) | SELECT "Date" FROM table_21679 WHERE "Score" = '95-101' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27184,
4440,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
19040,
3,
87,
71,
1343,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
27184,
4440,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
3301,
18,
19621,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is Norway's least ends lost? | CREATE TABLE table_16922657_2 (
Ends INTEGER,
country VARCHAR,
Norway VARCHAR
) | SELECT MIN(Ends) AS lost FROM table_16922657_2 WHERE country = Norway | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
4508,
2688,
3436,
834,
357,
41,
3720,
7,
3,
21342,
17966,
6,
684,
584,
4280,
28027,
6,
16491,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
16491,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
8532,
26,
7,
61,
6157,
1513,
21680,
953,
834,
2938,
4508,
2688,
3436,
834,
357,
549,
17444,
427,
684,
3274,
16491,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the location where ed c. kingsley was the runner-up in 1939? | CREATE TABLE table_name_63 (location VARCHAR, runner_up VARCHAR, year VARCHAR) | SELECT location FROM table_name_63 WHERE runner_up = "ed c. kingsley" AND year = "1939" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
14836,
584,
4280,
28027,
6,
3,
10806,
834,
413,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1128,
213,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
1128,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
3,
10806,
834,
413,
3274,
96,
15,
26,
3,
75,
5,
3,
1765,
8887,
121,
3430,
215,
3274,
96,
2294,
3288,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the pole position at the japanese grand prix when the fastest lap is damon hill | CREATE TABLE table_name_62 (pole_position VARCHAR, fastest_lap VARCHAR, grand_prix VARCHAR) | SELECT pole_position FROM table_name_62 WHERE fastest_lap = "damon hill" AND grand_prix = "japanese grand prix" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
14332,
834,
4718,
584,
4280,
28027,
6,
10391,
834,
8478,
584,
4280,
28027,
6,
1907,
834,
2246,
226,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
11148,
834,
4718,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
10391,
834,
8478,
3274,
96,
7812,
106,
9956,
121,
3430,
1907,
834,
2246,
226,
3274,
96,
1191,
2837,
15,
7,
15,
1907,
3407,
121,
1,
-100,
-100,
-10... |
Who were the opponents in the game that ended in a score of 116-106? | CREATE TABLE table_name_64 (
opponent VARCHAR,
score VARCHAR
) | SELECT opponent FROM table_name_64 WHERE score = "116-106" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
15264,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
130,
8,
16383,
16,
8,
467,
24,
3492,
16,
3,
9,
2604,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
2604,
3274,
96,
20159,
18,
16431,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Category in Black has a Brown of 6,54%? | CREATE TABLE table_42076 (
"Category" text,
"Frequency" text,
"White" text,
"Brown" text,
"Black" text,
"Amerindian" text,
"Yellow" text,
"Total" text,
"difference between White and Black" real
) | SELECT "Black" FROM table_42076 WHERE "Brown" = '6,54%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
21899,
3959,
41,
96,
18610,
6066,
651,
121,
1499,
6,
96,
371,
60,
835,
11298,
121,
1499,
6,
96,
25571,
121,
1499,
6,
96,
279,
3623,
29,
121,
1499,
6,
96,
20096,
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,
20096,
121,
21680,
953,
834,
21899,
3959,
549,
17444,
427,
96,
279,
3623,
29,
121,
3274,
3,
31,
11071,
755,
5988,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many rankings are associated with giuseppe meazza holding over 3 titles? | CREATE TABLE table_78018 (
"Rank" real,
"Player" text,
"Club" text,
"Country" text,
"Titles" real,
"Seasons" text
) | SELECT COUNT("Rank") FROM table_78018 WHERE "Player" = 'giuseppe meazza' AND "Titles" > '3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2079,
2606,
41,
96,
22557,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
254,
11158,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
382,
155,
965,
121,
490,
6,
96... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
22557,
8512,
21680,
953,
834,
940,
2079,
2606,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
24930,
7,
15,
6811,
140,
9,
19485,
31,
3430,
96,
382,
155,
965,
121,
2490,
3,
31,
519,
31,
... |
What is the Competition on July 7? | CREATE TABLE table_12815 (
"Date" text,
"Team" text,
"Competition" text,
"Round" text,
"Opponent" text,
"Location" text,
"Score" text
) | SELECT "Competition" FROM table_12815 WHERE "Date" = 'july 7' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
536,
2577,
1808,
41,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
1499,
6,
96,
448,
32,
1106,
121,
1499,
6,
96,
667,
102,
9977,
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,
5890,
4995,
4749,
121,
21680,
953,
834,
536,
2577,
1808,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
2047,
120,
489,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Att-Cmp has a TD-INT of 7-8? | CREATE TABLE table_name_21 (att_cmp VARCHAR, td_int VARCHAR) | SELECT att_cmp FROM table_name_21 WHERE td_int = "7-8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
144,
17,
834,
75,
1167,
584,
4280,
28027,
6,
3,
17,
26,
834,
77,
17,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
486,
17,
18,
254,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
44,
17,
834,
75,
1167,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
3,
17,
26,
834,
77,
17,
3274,
96,
25580,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total of Bronze with a total smaller than 3, and a nation of Poland, and a rank larger than 4? | CREATE TABLE table_name_52 (
bronze VARCHAR,
rank VARCHAR,
total VARCHAR,
nation VARCHAR
) | SELECT COUNT(bronze) FROM table_name_52 WHERE total < 3 AND nation = "poland" AND rank > 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
13467,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
6,
2982,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
13711,
776,
61,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
792,
3,
2,
220,
3430,
2982,
3274,
96,
3233,
232,
121,
3430,
11003,
2490,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.