instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
who was the top ranked competitor in this race ? | SELECT "cyclist" FROM table_204_552 WHERE "rank" = 1 | [
8727,
373,
262,
1353,
10307,
20319,
287,
428,
3234,
5633,
46506,
366,
15539,
396,
1,
16034,
3084,
62,
18638,
62,
40427,
33411,
366,
43027,
1,
796,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8727,
373,
262,
1353,
10307,
20319,
287,
428,
3234,
5633,
46506,
366,
15539,
396,
1,
16034,
3084,
62,
18638,
62,
40427,
33411,
366,
43027,
1,
796,
352
] |
Calculate the average age of patients who have left femur fracture primary disease and are 80 years or older. | SELECT AVG(demographic.age) FROM demographic WHERE demographic.diagnosis = "LEFT FEMUR FRACTURE" AND demographic.age >= "80" | [
9771,
3129,
378,
262,
2811,
2479,
286,
3871,
508,
423,
1364,
2796,
333,
31846,
4165,
4369,
290,
389,
4019,
812,
393,
4697,
13,
46506,
35224,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
47356,
5958,
796,
366,
2538,
9792,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
9771,
3129,
378,
262,
2811,
2479,
286,
3871,
508,
423,
1364,
2796,
333,
31846,
4165,
4369,
290,
389,
4019,
812,
393,
4697,
13,
46506,
35224,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
47356,
5958,
796,
366,
2538,
9792,... |
what are the names of people who did not participate in the candidate election. | SELECT name FROM people WHERE NOT people_id IN (SELECT people_id FROM candidate) | [
10919,
389,
262,
3891,
286,
661,
508,
750,
407,
8277,
287,
262,
4540,
3071,
13,
46506,
1438,
16034,
661,
33411,
5626,
661,
62,
312,
3268,
357,
46506,
661,
62,
312,
16034,
4540,
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
] | [
10919,
389,
262,
3891,
286,
661,
508,
750,
407,
8277,
287,
262,
4540,
3071,
13,
46506,
1438,
16034,
661,
33411,
5626,
661,
62,
312,
3268,
357,
46506,
661,
62,
312,
16034,
4540,
8
] |
give me the number of patients less than 89 years who have been diagnosed with candidiasis of vulva and vagina. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.age < "89" AND diagnoses.long_title = "Candidiasis of vulva and vagina" | [
26535,
502,
262,
1271,
286,
3871,
1342,
621,
9919,
812,
508,
423,
587,
14641,
351,
2960,
48455,
286,
24477,
6862,
290,
26150,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
323... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
26535,
502,
262,
1271,
286,
3871,
1342,
621,
9919,
812,
508,
423,
587,
14641,
351,
2960,
48455,
286,
24477,
6862,
290,
26150,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
323... |
Name the general classification of stage 15 | SELECT COUNT("General classification") FROM table_17566 WHERE "Stage" = '15' | [
5376,
262,
2276,
17923,
286,
3800,
1315,
46506,
327,
28270,
7203,
12218,
17923,
4943,
16034,
3084,
62,
17430,
2791,
33411,
366,
29391,
1,
796,
705,
1314,
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
] | [
5376,
262,
2276,
17923,
286,
3800,
1315,
46506,
327,
28270,
7203,
12218,
17923,
4943,
16034,
3084,
62,
17430,
2791,
33411,
366,
29391,
1,
796,
705,
1314,
6
] |
Display a bar chart for what are the different card types, and how many cards are there of each? | SELECT card_type_code, COUNT(*) FROM Customers_Cards GROUP BY card_type_code | [
23114,
257,
2318,
8262,
329,
644,
389,
262,
1180,
2657,
3858,
11,
290,
703,
867,
4116,
389,
612,
286,
1123,
30,
46506,
2657,
62,
4906,
62,
8189,
11,
327,
28270,
7,
28104,
16034,
36707,
62,
34,
1371,
44441,
11050,
2657,
62,
4906,
62,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
23114,
257,
2318,
8262,
329,
644,
389,
262,
1180,
2657,
3858,
11,
290,
703,
867,
4116,
389,
612,
286,
1123,
30,
46506,
2657,
62,
4906,
62,
8189,
11,
327,
28270,
7,
28104,
16034,
36707,
62,
34,
1371,
44441,
11050,
2657,
62,
4906,
62,... |
What is the average year for Ponce, Puerto Rico events? | SELECT AVG(year) FROM table_name_15 WHERE venue = "ponce, puerto rico" | [
2061,
318,
262,
2811,
614,
329,
350,
27078,
11,
15295,
16707,
2995,
30,
46506,
35224,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
1314,
33411,
14359,
796,
366,
79,
27078,
11,
47574,
13806,
374,
3713,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2811,
614,
329,
350,
27078,
11,
15295,
16707,
2995,
30,
46506,
35224,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
1314,
33411,
14359,
796,
366,
79,
27078,
11,
47574,
13806,
374,
3713,
1
] |
During what years was Christine Kehoe in Assembly? | SELECT "Years in Assembly" FROM table_59494 WHERE "Name" = 'christine kehoe' | [
7191,
644,
812,
373,
26088,
3873,
38979,
287,
10006,
30,
46506,
366,
40630,
287,
10006,
1,
16034,
3084,
62,
3270,
39449,
33411,
366,
5376,
1,
796,
705,
43533,
500,
885,
38979,
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
] | [
7191,
644,
812,
373,
26088,
3873,
38979,
287,
10006,
30,
46506,
366,
40630,
287,
10006,
1,
16034,
3084,
62,
3270,
39449,
33411,
366,
5376,
1,
796,
705,
43533,
500,
885,
38979,
6
] |
What is the Virtue of Temperance in Latin? | SELECT latin FROM table_name_64 WHERE virtue = "temperance" | [
2061,
318,
262,
39662,
286,
48125,
590,
287,
9133,
30,
46506,
3042,
259,
16034,
3084,
62,
3672,
62,
2414,
33411,
14675,
796,
366,
11498,
525,
590,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
39662,
286,
48125,
590,
287,
9133,
30,
46506,
3042,
259,
16034,
3084,
62,
3672,
62,
2414,
33411,
14675,
796,
366,
11498,
525,
590,
1
] |
what's the total dose of gentamicin sulfate that patient 40435 has been prescribed until 11/2105? | SELECT SUM(prescriptions.dose_val_rx) FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 40435) AND prescriptions.drug = 'gentamicin sulfate' AND STRFTIME('%y-%m', prescriptions.startdate) <= '2105-11' | [
10919,
338,
262,
2472,
10742,
286,
25049,
18127,
259,
22443,
378,
326,
5827,
32320,
2327,
468,
587,
14798,
1566,
1367,
14,
17,
13348,
30,
46506,
35683,
7,
18302,
24370,
13,
34436,
62,
2100,
62,
40914,
8,
16034,
34092,
33411,
34092,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
338,
262,
2472,
10742,
286,
25049,
18127,
259,
22443,
378,
326,
5827,
32320,
2327,
468,
587,
14798,
1566,
1367,
14,
17,
13348,
30,
46506,
35683,
7,
18302,
24370,
13,
34436,
62,
2100,
62,
40914,
8,
16034,
34092,
33411,
34092,
13,
... |
were there any clubs that had no losses ? | SELECT (SELECT COUNT("club") FROM table_204_135 WHERE "losses" = 0) > 0 | [
22474,
612,
597,
9784,
326,
550,
645,
9089,
5633,
46506,
357,
46506,
327,
28270,
7203,
18664,
4943,
16034,
3084,
62,
18638,
62,
17059,
33411,
366,
22462,
274,
1,
796,
657,
8,
1875,
657
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
22474,
612,
597,
9784,
326,
550,
645,
9089,
5633,
46506,
357,
46506,
327,
28270,
7203,
18664,
4943,
16034,
3084,
62,
18638,
62,
17059,
33411,
366,
22462,
274,
1,
796,
657,
8,
1875,
657
] |
What country is Bob Tway from? | SELECT country FROM table_name_93 WHERE player = "bob tway" | [
2061,
1499,
318,
5811,
309,
1014,
422,
30,
46506,
1499,
16034,
3084,
62,
3672,
62,
6052,
33411,
2137,
796,
366,
65,
672,
665,
323,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
1499,
318,
5811,
309,
1014,
422,
30,
46506,
1499,
16034,
3084,
62,
3672,
62,
6052,
33411,
2137,
796,
366,
65,
672,
665,
323,
1
] |
What is the sport of the La Liga league? | SELECT "Sport" FROM table_16343 WHERE "League" = 'La Liga' | [
2061,
318,
262,
6332,
286,
262,
4689,
39249,
4652,
30,
46506,
366,
42576,
1,
16034,
3084,
62,
1433,
32118,
33411,
366,
24623,
1,
796,
705,
14772,
39249,
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
] | [
2061,
318,
262,
6332,
286,
262,
4689,
39249,
4652,
30,
46506,
366,
42576,
1,
16034,
3084,
62,
1433,
32118,
33411,
366,
24623,
1,
796,
705,
14772,
39249,
6
] |
count the number of times patient 27703's rbc, csf test has been taken last month. | SELECT COUNT(*) FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'rbc, csf') AND labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 27703) AND DATETIME(labevents.charttime, 'start of month') = DATETIME(CURRENT_TIME(), ... | [
9127,
262,
1271,
286,
1661,
5827,
2681,
36809,
338,
374,
15630,
11,
269,
28202,
1332,
468,
587,
2077,
938,
1227,
13,
46506,
327,
28270,
7,
28104,
16034,
2248,
31534,
33411,
2248,
31534,
13,
9186,
312,
3268,
357,
46506,
288,
62,
23912,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
9127,
262,
1271,
286,
1661,
5827,
2681,
36809,
338,
374,
15630,
11,
269,
28202,
1332,
468,
587,
2077,
938,
1227,
13,
46506,
327,
28270,
7,
28104,
16034,
2248,
31534,
33411,
2248,
31534,
13,
9186,
312,
3268,
357,
46506,
288,
62,
23912,
... |
For those records from the products and each product's manufacturer, return a scatter chart about the correlation between price and manufacturer , and group by attribute founder. | SELECT Price, Manufacturer FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1441,
257,
41058,
8262,
546,
262,
16096,
1022,
2756,
290,
11554,
837,
290,
1448,
416,
11688,
9119,
13,
46506,
7886,
11,
40218,
16034,
18675,
7054,
309,
16,
32357,
1268,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1441,
257,
41058,
8262,
546,
262,
16096,
1022,
2756,
290,
11554,
837,
290,
1448,
416,
11688,
9119,
13,
46506,
7886,
11,
40218,
16034,
18675,
7054,
309,
16,
32357,
1268,
... |
how many patients having medicaid insurance are primarily diagnosed for mesentric ischemia? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.insurance = "Medicaid" AND demographic.diagnosis = "MESENTERIC ISCHEMIA" | [
4919,
867,
3871,
1719,
6924,
1698,
5096,
389,
7525,
14641,
329,
18842,
22317,
318,
15245,
544,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
1040,
3874,
796,
366,
39112,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4919,
867,
3871,
1719,
6924,
1698,
5096,
389,
7525,
14641,
329,
18842,
22317,
318,
15245,
544,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
1040,
3874,
796,
366,
39112,
... |
What are the notes of the patience theme? | SELECT "Notes" FROM table_62227 WHERE "Theme" = 'patience' | [
2061,
389,
262,
4710,
286,
262,
16336,
7505,
30,
46506,
366,
16130,
1,
16034,
3084,
62,
21,
1828,
1983,
33411,
366,
47863,
1,
796,
705,
8071,
1240,
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
] | [
2061,
389,
262,
4710,
286,
262,
16336,
7505,
30,
46506,
366,
16130,
1,
16034,
3084,
62,
21,
1828,
1983,
33411,
366,
47863,
1,
796,
705,
8071,
1240,
6
] |
For those records from the products and each product's manufacturer, return a scatter chart about the correlation between code and price , and group by attribute headquarter. | SELECT T1.Code, T1.Price FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1441,
257,
41058,
8262,
546,
262,
16096,
1022,
2438,
290,
2756,
837,
290,
1448,
416,
11688,
1182,
24385,
13,
46506,
309,
16,
13,
10669,
11,
309,
16,
13,
18124,
16034,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1441,
257,
41058,
8262,
546,
262,
16096,
1022,
2438,
290,
2756,
837,
290,
1448,
416,
11688,
1182,
24385,
13,
46506,
309,
16,
13,
10669,
11,
309,
16,
13,
18124,
16034,
... |
Name the total number of points for beta team march 1975 and chassis of march 751 | SELECT COUNT(points) FROM table_name_86 WHERE entrant = "beta team march" AND year = 1975 AND chassis = "march 751" | [
5376,
262,
2472,
1271,
286,
2173,
329,
12159,
1074,
9960,
15231,
290,
24587,
286,
9960,
767,
4349,
46506,
327,
28270,
7,
13033,
8,
16034,
3084,
62,
3672,
62,
4521,
33411,
920,
5250,
796,
366,
31361,
1074,
9960,
1,
5357,
614,
796,
1523... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
2472,
1271,
286,
2173,
329,
12159,
1074,
9960,
15231,
290,
24587,
286,
9960,
767,
4349,
46506,
327,
28270,
7,
13033,
8,
16034,
3084,
62,
3672,
62,
4521,
33411,
920,
5250,
796,
366,
31361,
1074,
9960,
1,
5357,
614,
796,
1523... |
can you list flights from BOSTON to WASHINGTON with the lowest one way fares that leave on saturday | SELECT DISTINCT FLIGHT_0.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, airport_service AS AIRPORT_SERVICE_2, airport_service AS AIRPORT_SERVICE_3, city AS CITY_0, city AS CITY_1, city AS CITY_2, city AS CITY_3, date_day AS DATE_DAY_0, date_day AS DATE_DAY_1, date_day AS DATE... | [
5171,
345,
1351,
13956,
422,
347,
10892,
1340,
284,
370,
19436,
351,
262,
9016,
530,
835,
33164,
326,
2666,
319,
264,
3658,
46506,
360,
8808,
1268,
4177,
9977,
9947,
62,
15,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
154... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
5171,
345,
1351,
13956,
422,
347,
10892,
1340,
284,
370,
19436,
351,
262,
9016,
530,
835,
33164,
326,
2666,
319,
264,
3658,
46506,
360,
8808,
1268,
4177,
9977,
9947,
62,
15,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
154... |
display users name and text comments. | SELECT DisplayName, 'text' FROM Users INNER JOIN Comments ON Users.Id = Comments.UserId WHERE Users.DisplayName LIKE 'Tawfik' | [
13812,
2985,
1438,
290,
2420,
3651,
13,
46506,
16531,
5376,
11,
705,
5239,
6,
16034,
18987,
3268,
21479,
32357,
1268,
19502,
6177,
18987,
13,
7390,
796,
19502,
13,
12982,
7390,
33411,
18987,
13,
23114,
5376,
34178,
705,
51,
707,
69,
113... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13812,
2985,
1438,
290,
2420,
3651,
13,
46506,
16531,
5376,
11,
705,
5239,
6,
16034,
18987,
3268,
21479,
32357,
1268,
19502,
6177,
18987,
13,
7390,
796,
19502,
13,
12982,
7390,
33411,
18987,
13,
23114,
5376,
34178,
705,
51,
707,
69,
113... |
get me the top five most frequent lab tests that patients took during the same hospital encounter after being diagnosed with signs and symptoms of sepsis (sirs) - due to infectious process with organ dysfunction until 2104. | SELECT t3.labname FROM (SELECT t2.labname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, diagnosis.diagnosistime, patient.patienthealthsystemstayid FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'signs and symptom... | [
1136,
502,
262,
1353,
1936,
749,
10792,
2248,
5254,
326,
3871,
1718,
1141,
262,
976,
4436,
8791,
706,
852,
14641,
351,
5895,
290,
7460,
286,
384,
862,
271,
357,
82,
17062,
8,
532,
2233,
284,
25246,
1429,
351,
1618,
19327,
1566,
362,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1136,
502,
262,
1353,
1936,
749,
10792,
2248,
5254,
326,
3871,
1718,
1141,
262,
976,
4436,
8791,
706,
852,
14641,
351,
5895,
290,
7460,
286,
384,
862,
271,
357,
82,
17062,
8,
532,
2233,
284,
25246,
1429,
351,
1618,
19327,
1566,
362,
... |
today, did patient 016-38131 have any bulb #2 output? | SELECT COUNT(*) > 0 FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '016-38131')) AND intakeoutput.cellpath LIKE '%output%' AND intakeoutpu... | [
40838,
11,
750,
5827,
5534,
21,
12,
2548,
22042,
423,
597,
28287,
1303,
17,
5072,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
10337,
22915,
33411,
10337,
22915,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
208... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
40838,
11,
750,
5827,
5534,
21,
12,
2548,
22042,
423,
597,
28287,
1303,
17,
5072,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
10337,
22915,
33411,
10337,
22915,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
208... |
What competition has a venue in Hampden Park, Glasgow? | SELECT competition FROM table_name_55 WHERE venue = "hampden park, glasgow" | [
2061,
5449,
468,
257,
14359,
287,
13039,
6559,
3250,
11,
23995,
30,
46506,
5449,
16034,
3084,
62,
3672,
62,
2816,
33411,
14359,
796,
366,
71,
696,
6559,
3952,
11,
1278,
292,
21175,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
5449,
468,
257,
14359,
287,
13039,
6559,
3250,
11,
23995,
30,
46506,
5449,
16034,
3084,
62,
3672,
62,
2816,
33411,
14359,
796,
366,
71,
696,
6559,
3952,
11,
1278,
292,
21175,
1
] |
What year had cargo tonnes of 13 585? | SELECT AVG(year) FROM table_name_32 WHERE cargo__tonnes_ = "13 585" | [
2061,
614,
550,
15892,
26840,
286,
1511,
642,
5332,
30,
46506,
35224,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
2624,
33411,
15892,
834,
1122,
2516,
62,
796,
366,
1485,
642,
5332,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
614,
550,
15892,
26840,
286,
1511,
642,
5332,
30,
46506,
35224,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
2624,
33411,
15892,
834,
1122,
2516,
62,
796,
366,
1485,
642,
5332,
1
] |
are any organisms found until 09/2102 in the first catheter tip-iv test of patient 28484? | SELECT COUNT(*) > 0 FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 28484) AND microbiologyevents.spec_type_desc = 'catheter tip-iv' AND NOT microbiologyevents.org_name IS NULL AND STRFTIME('%y-%m', microbiologyevents.charttime) <= '21... | [
533,
597,
20296,
1043,
1566,
7769,
14,
17,
15377,
287,
262,
717,
3797,
43332,
8171,
12,
452,
1332,
286,
5827,
2579,
34137,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
24559,
1435,
31534,
33411,
24559,
1435,
31534,
13,
18108,
76,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
533,
597,
20296,
1043,
1566,
7769,
14,
17,
15377,
287,
262,
717,
3797,
43332,
8171,
12,
452,
1332,
286,
5827,
2579,
34137,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
24559,
1435,
31534,
33411,
24559,
1435,
31534,
13,
18108,
76,
... |
List the names of aircrafts and the number of times it won matches Plot them as bar chart, and order by the X-axis in descending. | SELECT Aircraft, COUNT(*) FROM aircraft AS T1 JOIN match AS T2 ON T1.Aircraft_ID = T2.Winning_Aircraft GROUP BY T2.Winning_Aircraft ORDER BY Aircraft DESC | [
8053,
262,
3891,
286,
6215,
82,
290,
262,
1271,
286,
1661,
340,
1839,
7466,
28114,
606,
355,
2318,
8262,
11,
290,
1502,
416,
262,
1395,
12,
22704,
287,
31491,
13,
46506,
30767,
11,
327,
28270,
7,
28104,
16034,
6215,
7054,
309,
16,
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... | [
8053,
262,
3891,
286,
6215,
82,
290,
262,
1271,
286,
1661,
340,
1839,
7466,
28114,
606,
355,
2318,
8262,
11,
290,
1502,
416,
262,
1395,
12,
22704,
287,
31491,
13,
46506,
30767,
11,
327,
28270,
7,
28104,
16034,
6215,
7054,
309,
16,
3... |
what's the position with college being usc | SELECT position FROM table_14655985_1 WHERE college = "USC" | [
10919,
338,
262,
2292,
351,
4152,
852,
514,
66,
46506,
2292,
16034,
3084,
62,
20964,
2816,
42250,
62,
16,
33411,
4152,
796,
366,
2937,
34,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
338,
262,
2292,
351,
4152,
852,
514,
66,
46506,
2292,
16034,
3084,
62,
20964,
2816,
42250,
62,
16,
33411,
4152,
796,
366,
2937,
34,
1
] |
Tell me the highest laps for time/retired of +2 laps and driver of felice bonetto | SELECT MAX("Laps") FROM table_53369 WHERE "Time/retired" = '+2 laps' AND "Driver" = 'felice bonetto' | [
24446,
502,
262,
4511,
24590,
329,
640,
14,
1186,
1202,
286,
1343,
17,
24590,
290,
4639,
286,
10756,
501,
5351,
316,
1462,
46506,
25882,
7203,
43,
1686,
4943,
16034,
3084,
62,
44994,
3388,
33411,
366,
7575,
14,
1186,
1202,
1,
796,
705... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
24446,
502,
262,
4511,
24590,
329,
640,
14,
1186,
1202,
286,
1343,
17,
24590,
290,
4639,
286,
10756,
501,
5351,
316,
1462,
46506,
25882,
7203,
43,
1686,
4943,
16034,
3084,
62,
44994,
3388,
33411,
366,
7575,
14,
1186,
1202,
1,
796,
705... |
What visitor has tim duncan (16) as the leading scorer? | SELECT visitor FROM table_name_18 WHERE leading_scorer = "tim duncan (16)" | [
2061,
21493,
468,
4628,
12574,
5171,
357,
1433,
8,
355,
262,
3756,
30664,
30,
46506,
21493,
16034,
3084,
62,
3672,
62,
1507,
33411,
3756,
62,
1416,
11934,
796,
366,
16514,
12574,
5171,
357,
1433,
16725
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
21493,
468,
4628,
12574,
5171,
357,
1433,
8,
355,
262,
3756,
30664,
30,
46506,
21493,
16034,
3084,
62,
3672,
62,
1507,
33411,
3756,
62,
1416,
11934,
796,
366,
16514,
12574,
5171,
357,
1433,
16725
] |
What is the constructor for Brazilian Grand Prix? | SELECT "Constructor" FROM table_10983 WHERE "Grand Prix" = 'brazilian grand prix' | [
2061,
318,
262,
23772,
329,
17036,
5675,
23832,
30,
46506,
366,
42316,
273,
1,
16034,
3084,
62,
940,
4089,
18,
33411,
366,
23581,
23832,
1,
796,
705,
65,
7098,
666,
4490,
1293,
87,
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
] | [
2061,
318,
262,
23772,
329,
17036,
5675,
23832,
30,
46506,
366,
42316,
273,
1,
16034,
3084,
62,
940,
4089,
18,
33411,
366,
23581,
23832,
1,
796,
705,
65,
7098,
666,
4490,
1293,
87,
6
] |
is the are of saint helena more than that of nightingale island ? | SELECT (SELECT "area\nkm2" FROM table_204_332 WHERE "administrative\narea" = 'saint helena') > (SELECT "area\nkm2" FROM table_204_332 WHERE "administrative\narea" = 'nightingale island') | [
271,
262,
389,
286,
32292,
932,
8107,
517,
621,
326,
286,
1755,
278,
1000,
7022,
5633,
46506,
357,
46506,
366,
20337,
59,
77,
13276,
17,
1,
16034,
3084,
62,
18638,
62,
32148,
33411,
366,
39081,
13260,
59,
77,
20337,
1,
796,
705,
82,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
271,
262,
389,
286,
32292,
932,
8107,
517,
621,
326,
286,
1755,
278,
1000,
7022,
5633,
46506,
357,
46506,
366,
20337,
59,
77,
13276,
17,
1,
16034,
3084,
62,
18638,
62,
32148,
33411,
366,
39081,
13260,
59,
77,
20337,
1,
796,
705,
82,... |
Which opponent was played at Forbes Field after week 4? | SELECT "Opponent" FROM table_34555 WHERE "Game Site" = 'forbes field' AND "Week" > '4' | [
13828,
6125,
373,
2826,
379,
22720,
7663,
706,
1285,
604,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
27712,
2816,
33411,
366,
8777,
14413,
1,
796,
705,
1640,
12636,
2214,
6,
5357,
366,
20916,
1,
1875,
705,
19,
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
] | [
13828,
6125,
373,
2826,
379,
22720,
7663,
706,
1285,
604,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
27712,
2816,
33411,
366,
8777,
14413,
1,
796,
705,
1640,
12636,
2214,
6,
5357,
366,
20916,
1,
1875,
705,
19,
6
] |
What year did player payne stewart win? | SELECT year_s__won FROM table_name_84 WHERE player = "payne stewart" | [
2061,
614,
750,
2137,
1414,
710,
20798,
433,
1592,
30,
46506,
614,
62,
82,
834,
26502,
16034,
3084,
62,
3672,
62,
5705,
33411,
2137,
796,
366,
15577,
710,
20798,
433,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
614,
750,
2137,
1414,
710,
20798,
433,
1592,
30,
46506,
614,
62,
82,
834,
26502,
16034,
3084,
62,
3672,
62,
5705,
33411,
2137,
796,
366,
15577,
710,
20798,
433,
1
] |
Who is the first member in the 1868 election? | SELECT "First member" FROM table_59696 WHERE "Election" = '1868' | [
8241,
318,
262,
717,
2888,
287,
262,
1248,
3104,
3071,
30,
46506,
366,
5962,
2888,
1,
16034,
3084,
62,
3270,
38205,
33411,
366,
36,
1564,
1,
796,
705,
1507,
3104,
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
] | [
8241,
318,
262,
717,
2888,
287,
262,
1248,
3104,
3071,
30,
46506,
366,
5962,
2888,
1,
16034,
3084,
62,
3270,
38205,
33411,
366,
36,
1564,
1,
796,
705,
1507,
3104,
6
] |
how many times was the episode directed by maury geraghty originally aired? | SELECT COUNT(originalairdate) FROM table_2626495_1 WHERE directed_by = "Maury Geraghty" | [
4919,
867,
1661,
373,
262,
4471,
7924,
416,
17266,
1601,
27602,
10471,
774,
6198,
18530,
30,
46506,
327,
28270,
7,
14986,
958,
4475,
8,
16034,
3084,
62,
2075,
2075,
33781,
62,
16,
33411,
7924,
62,
1525,
796,
366,
21467,
1601,
13573,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4919,
867,
1661,
373,
262,
4471,
7924,
416,
17266,
1601,
27602,
10471,
774,
6198,
18530,
30,
46506,
327,
28270,
7,
14986,
958,
4475,
8,
16034,
3084,
62,
2075,
2075,
33781,
62,
16,
33411,
7924,
62,
1525,
796,
366,
21467,
1601,
13573,
1... |
Who wrote episode number 149 in the series? | SELECT written_by FROM table_25277363_2 WHERE no_in_series = 149 | [
8241,
2630,
4471,
1271,
24041,
287,
262,
2168,
30,
46506,
3194,
62,
1525,
16034,
3084,
62,
1495,
27019,
35447,
62,
17,
33411,
645,
62,
259,
62,
25076,
796,
24041
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
2630,
4471,
1271,
24041,
287,
262,
2168,
30,
46506,
3194,
62,
1525,
16034,
3084,
62,
1495,
27019,
35447,
62,
17,
33411,
645,
62,
259,
62,
25076,
796,
24041
] |
The Club of Ekranas was an away with a score of what? | SELECT "Away" FROM table_70041 WHERE "Club" = 'ekranas' | [
464,
6289,
286,
31873,
2596,
292,
373,
281,
1497,
351,
257,
4776,
286,
644,
30,
46506,
366,
32,
1014,
1,
16034,
3084,
62,
9879,
3901,
33411,
366,
42350,
1,
796,
705,
988,
2596,
292,
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
] | [
464,
6289,
286,
31873,
2596,
292,
373,
281,
1497,
351,
257,
4776,
286,
644,
30,
46506,
366,
32,
1014,
1,
16034,
3084,
62,
9879,
3901,
33411,
366,
42350,
1,
796,
705,
988,
2596,
292,
6
] |
What date was the district incumbent Saxby Chambliss elected? | SELECT MAX(elected) FROM table_26336739_1 WHERE incumbent = "Saxby Chambliss" | [
2061,
3128,
373,
262,
4783,
23526,
29242,
1525,
37790,
2436,
747,
7018,
30,
46506,
25882,
7,
28604,
8,
16034,
3084,
62,
2075,
2091,
3134,
2670,
62,
16,
33411,
23526,
796,
366,
41152,
1525,
37790,
2436,
747,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
3128,
373,
262,
4783,
23526,
29242,
1525,
37790,
2436,
747,
7018,
30,
46506,
25882,
7,
28604,
8,
16034,
3084,
62,
2075,
2091,
3134,
2670,
62,
16,
33411,
23526,
796,
366,
41152,
1525,
37790,
2436,
747,
1
] |
What is Li-FeS 2, when Type is Nominal Voltage? | SELECT "Li-FeS 2" FROM table_75749 WHERE "Type" = 'nominal voltage' | [
2061,
318,
7455,
12,
14304,
50,
362,
11,
618,
5994,
318,
21198,
1292,
45444,
30,
46506,
366,
32304,
12,
14304,
50,
362,
1,
16034,
3084,
62,
39251,
2920,
33411,
366,
6030,
1,
796,
705,
26601,
1292,
15004,
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
] | [
2061,
318,
7455,
12,
14304,
50,
362,
11,
618,
5994,
318,
21198,
1292,
45444,
30,
46506,
366,
32304,
12,
14304,
50,
362,
1,
16034,
3084,
62,
39251,
2920,
33411,
366,
6030,
1,
796,
705,
26601,
1292,
15004,
6
] |
What are all the different descriptions for the buttonholer with cardboard box for storage and a low shank type? | SELECT "Description" FROM table_74302 WHERE "Storage case" = 'cardboard box' AND "For shank type" = 'low' | [
2061,
389,
477,
262,
1180,
16969,
329,
262,
4936,
3937,
263,
351,
26819,
3091,
329,
6143,
290,
257,
1877,
427,
962,
2099,
30,
46506,
366,
11828,
1,
16034,
3084,
62,
4524,
22709,
33411,
366,
31425,
1339,
1,
796,
705,
9517,
3526,
3091,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
389,
477,
262,
1180,
16969,
329,
262,
4936,
3937,
263,
351,
26819,
3091,
329,
6143,
290,
257,
1877,
427,
962,
2099,
30,
46506,
366,
11828,
1,
16034,
3084,
62,
4524,
22709,
33411,
366,
31425,
1339,
1,
796,
705,
9517,
3526,
3091,
... |
on last month/17 what is the minimum systemicsystolic of patient 010-3286? | SELECT MIN(vitalperiodic.systemicsystolic) FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '010-3286')) AND NOT vitalperiodic.systemicsys... | [
261,
938,
1227,
14,
1558,
644,
318,
262,
5288,
1080,
873,
88,
301,
4160,
286,
5827,
5534,
15,
12,
18,
27033,
30,
46506,
20625,
7,
85,
1287,
41007,
291,
13,
10057,
873,
88,
301,
4160,
8,
16034,
9204,
41007,
291,
33411,
9204,
41007,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
261,
938,
1227,
14,
1558,
644,
318,
262,
5288,
1080,
873,
88,
301,
4160,
286,
5827,
5534,
15,
12,
18,
27033,
30,
46506,
20625,
7,
85,
1287,
41007,
291,
13,
10057,
873,
88,
301,
4160,
8,
16034,
9204,
41007,
291,
33411,
9204,
41007,
... |
5 answers containing inline `code` markup. | SELECT * FROM Posts WHERE PostTypeId = 2 AND (Body LIKE '%`_`%' OR Body LIKE '%`__`%' OR Body LIKE '%`___`%' OR Body LIKE '%`____`%' OR Body LIKE '%`_____`%') AND (LEFT(Body, 50) LIKE '%`_`%' OR LEFT(Body, 50) LIKE '%`__`%' OR LEFT(Body, 50) LIKE '%`___`%' OR LEFT(Body, 50) LIKE '%`____`%' OR LEFT(Body, 50) LIKE '%`___... | [
20,
7429,
7268,
26098,
4600,
8189,
63,
41485,
13,
46506,
1635,
16034,
12043,
33411,
2947,
6030,
7390,
796,
362,
5357,
357,
25842,
34178,
705,
4,
63,
62,
63,
4,
6,
6375,
12290,
34178,
705,
4,
63,
834,
63,
4,
6,
6375,
12290,
34178,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
20,
7429,
7268,
26098,
4600,
8189,
63,
41485,
13,
46506,
1635,
16034,
12043,
33411,
2947,
6030,
7390,
796,
362,
5357,
357,
25842,
34178,
705,
4,
63,
62,
63,
4,
6,
6375,
12290,
34178,
705,
4,
63,
834,
63,
4,
6,
6375,
12290,
34178,
... |
Over the course of the next 6 semesters , what classes will be available ? | SELECT DISTINCT course.name, course.number, semester.semester, semester.year FROM course, course_offering, semester WHERE ((semester.semester = 'FA' AND semester.year = 2016) OR (semester.semester = 'FA' AND semester.year = 2017) OR (semester.semester = 'FA' AND semester.year = 2018) OR (semester.semester = 'WN' AND se... | [
5886,
262,
1781,
286,
262,
1306,
718,
5026,
8586,
837,
644,
6097,
481,
307,
1695,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
3672,
11,
1781,
13,
17618,
11,
24878,
13,
325,
6880,
353,
11,
24878,
13,
1941,
16034,
1781,
11,
1781,
62... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
5886,
262,
1781,
286,
262,
1306,
718,
5026,
8586,
837,
644,
6097,
481,
307,
1695,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
3672,
11,
1781,
13,
17618,
11,
24878,
13,
325,
6880,
353,
11,
24878,
13,
1941,
16034,
1781,
11,
1781,
62... |
In what year was the ctc-3 model built? | SELECT year_built FROM table_name_41 WHERE model = "ctc-3" | [
818,
644,
614,
373,
262,
269,
23047,
12,
18,
2746,
3170,
30,
46506,
614,
62,
18780,
16034,
3084,
62,
3672,
62,
3901,
33411,
2746,
796,
366,
310,
66,
12,
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
] | [
818,
644,
614,
373,
262,
269,
23047,
12,
18,
2746,
3170,
30,
46506,
614,
62,
18780,
16034,
3084,
62,
3672,
62,
3901,
33411,
2746,
796,
366,
310,
66,
12,
18,
1
] |
What catalogue is the song It's Now or Never? | SELECT catalogue FROM table_name_86 WHERE song_title = "it's now or never" | [
2061,
34614,
318,
262,
3496,
632,
338,
2735,
393,
7236,
30,
46506,
34614,
16034,
3084,
62,
3672,
62,
4521,
33411,
3496,
62,
7839,
796,
366,
270,
338,
783,
393,
1239,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
34614,
318,
262,
3496,
632,
338,
2735,
393,
7236,
30,
46506,
34614,
16034,
3084,
62,
3672,
62,
4521,
33411,
3496,
62,
7839,
796,
366,
270,
338,
783,
393,
1239,
1
] |
is there any history of microbiology test results for patient 8116's stool on the current hospital visit? | SELECT COUNT(*) > 0 FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 8116 AND admissions.dischtime IS NULL) AND microbiologyevents.spec_type_desc = 'stool' | [
271,
612,
597,
2106,
286,
24559,
1435,
1332,
2482,
329,
5827,
807,
18298,
338,
38753,
319,
262,
1459,
4436,
3187,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
24559,
1435,
31534,
33411,
24559,
1435,
31534,
13,
18108,
76,
62,
312,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
271,
612,
597,
2106,
286,
24559,
1435,
1332,
2482,
329,
5827,
807,
18298,
338,
38753,
319,
262,
1459,
4436,
3187,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
24559,
1435,
31534,
33411,
24559,
1435,
31534,
13,
18108,
76,
62,
312,
... |
Show different nationalities along with the number of hosts of each nationality by a pie chart. | SELECT Nationality, COUNT(*) FROM host GROUP BY Nationality | [
15307,
1180,
2260,
871,
1863,
351,
262,
1271,
286,
11453,
286,
1123,
29835,
416,
257,
2508,
8262,
13,
46506,
2351,
414,
11,
327,
28270,
7,
28104,
16034,
2583,
44441,
11050,
2351,
414
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15307,
1180,
2260,
871,
1863,
351,
262,
1271,
286,
11453,
286,
1123,
29835,
416,
257,
2508,
8262,
13,
46506,
2351,
414,
11,
327,
28270,
7,
28104,
16034,
2583,
44441,
11050,
2351,
414
] |
in 2010 , who has the least amount of sales ? | SELECT "company (country)" FROM table_204_681 ORDER BY "2010 arms sales (us$ m.)" LIMIT 1 | [
259,
3050,
837,
508,
468,
262,
1551,
2033,
286,
4200,
5633,
46506,
366,
39722,
357,
19315,
16725,
16034,
3084,
62,
18638,
62,
48564,
38678,
11050,
366,
10333,
5101,
4200,
357,
385,
3,
285,
2014,
1,
27564,
2043,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
259,
3050,
837,
508,
468,
262,
1551,
2033,
286,
4200,
5633,
46506,
366,
39722,
357,
19315,
16725,
16034,
3084,
62,
18638,
62,
48564,
38678,
11050,
366,
10333,
5101,
4200,
357,
385,
3,
285,
2014,
1,
27564,
2043,
352
] |
What primary sponsor(s) owns ford fusion car(s) and the crew chief is Drew Blickensderfer? | SELECT "Primary Sponsor(s)" FROM table_15220 WHERE "Car(s)" = 'ford fusion' AND "Crew Chief" = 'drew blickensderfer' | [
2061,
4165,
17487,
7,
82,
8,
12216,
329,
67,
21748,
1097,
7,
82,
8,
290,
262,
5462,
4039,
318,
18624,
1086,
624,
641,
1082,
2232,
30,
46506,
366,
35170,
23389,
7,
82,
16725,
16034,
3084,
62,
1314,
17572,
33411,
366,
9914,
7,
82,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
4165,
17487,
7,
82,
8,
12216,
329,
67,
21748,
1097,
7,
82,
8,
290,
262,
5462,
4039,
318,
18624,
1086,
624,
641,
1082,
2232,
30,
46506,
366,
35170,
23389,
7,
82,
16725,
16034,
3084,
62,
1314,
17572,
33411,
366,
9914,
7,
82,
1... |
Who is the kitmaker for TPS? | SELECT "Kitmaker" FROM table_27415 WHERE "Club" = 'TPS' | [
8241,
318,
262,
6220,
10297,
329,
309,
3705,
30,
46506,
366,
20827,
10297,
1,
16034,
3084,
62,
28857,
1314,
33411,
366,
42350,
1,
796,
705,
28820,
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
] | [
8241,
318,
262,
6220,
10297,
329,
309,
3705,
30,
46506,
366,
20827,
10297,
1,
16034,
3084,
62,
28857,
1314,
33411,
366,
42350,
1,
796,
705,
28820,
6
] |
What is the Location of the Moulin Bertrand Mill? | SELECT "Location" FROM table_79590 WHERE "Name of mill" = 'moulin bertrand' | [
2061,
318,
262,
13397,
286,
262,
49902,
2815,
22108,
25192,
9212,
30,
46506,
366,
14749,
1,
16034,
3084,
62,
3720,
36993,
33411,
366,
5376,
286,
3939,
1,
796,
705,
76,
280,
2815,
275,
861,
25192,
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
] | [
2061,
318,
262,
13397,
286,
262,
49902,
2815,
22108,
25192,
9212,
30,
46506,
366,
14749,
1,
16034,
3084,
62,
3720,
36993,
33411,
366,
5376,
286,
3939,
1,
796,
705,
76,
280,
2815,
275,
861,
25192,
6
] |
What is the Tie number of when Wigan Athletic was the away team? | SELECT tie_no FROM table_name_34 WHERE away_team = "wigan athletic" | [
2061,
318,
262,
36286,
1271,
286,
618,
370,
5516,
29007,
373,
262,
1497,
1074,
30,
46506,
9839,
62,
3919,
16034,
3084,
62,
3672,
62,
2682,
33411,
1497,
62,
15097,
796,
366,
86,
5516,
15177,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
36286,
1271,
286,
618,
370,
5516,
29007,
373,
262,
1497,
1074,
30,
46506,
9839,
62,
3919,
16034,
3084,
62,
3672,
62,
2682,
33411,
1497,
62,
15097,
796,
366,
86,
5516,
15177,
1
] |
Find other users from a user's answer. | WITH CTE AS (SELECT Id AS "post_link", ParentId, Title, OwnerUserId AS "user_link" FROM Posts WHERE OwnerUserId = '##UserId##' AND PostTypeId = 2 UNION ALL SELECT p.Id AS "post_link", p.ParentId, p.Title, p.OwnerUserId AS "user_link" FROM CTE AS c INNER JOIN Posts AS p ON c.ParentId = p.Id AND PostTypeId = 1) SELECT * ... | [
16742,
584,
2985,
422,
257,
2836,
338,
3280,
13,
54,
10554,
327,
9328,
7054,
357,
46506,
5121,
7054,
366,
7353,
62,
8726,
1600,
16774,
7390,
11,
11851,
11,
23853,
12982,
7390,
7054,
366,
7220,
62,
8726,
1,
16034,
12043,
33411,
23853,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
16742,
584,
2985,
422,
257,
2836,
338,
3280,
13,
54,
10554,
327,
9328,
7054,
357,
46506,
5121,
7054,
366,
7353,
62,
8726,
1600,
16774,
7390,
11,
11851,
11,
23853,
12982,
7390,
7054,
366,
7220,
62,
8726,
1,
16034,
12043,
33411,
23853,
... |
Name the nationality for defender 201 | SELECT "Nationality\u00b2" FROM table_26950 WHERE "Position" = 'Defender' AND "Appearances\u00b9" = '201' | [
5376,
262,
29835,
329,
13191,
580,
46506,
366,
16186,
414,
59,
84,
405,
65,
17,
1,
16034,
3084,
62,
26276,
1120,
33411,
366,
26545,
1,
796,
705,
7469,
2194,
6,
5357,
366,
47569,
59,
84,
405,
65,
24,
1,
796,
705,
1264,
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
] | [
5376,
262,
29835,
329,
13191,
580,
46506,
366,
16186,
414,
59,
84,
405,
65,
17,
1,
16034,
3084,
62,
26276,
1120,
33411,
366,
26545,
1,
796,
705,
7469,
2194,
6,
5357,
366,
47569,
59,
84,
405,
65,
24,
1,
796,
705,
1264,
6
] |
List name of all amenities which Anonymous Donor Hall has, and sort the results in alphabetic order. | SELECT T1.amenity_name FROM dorm_amenity AS T1 JOIN has_amenity AS T2 ON T2.amenid = T1.amenid JOIN dorm AS T3 ON T2.dormid = T3.dormid WHERE T3.dorm_name = 'Anonymous Donor Hall' ORDER BY T1.amenity_name | [
8053,
1438,
286,
477,
35468,
543,
19200,
2094,
273,
4789,
468,
11,
290,
3297,
262,
2482,
287,
435,
746,
33312,
1502,
13,
46506,
309,
16,
13,
41763,
414,
62,
3672,
16034,
18586,
62,
41763,
414,
7054,
309,
16,
32357,
1268,
468,
62,
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... | [
8053,
1438,
286,
477,
35468,
543,
19200,
2094,
273,
4789,
468,
11,
290,
3297,
262,
2482,
287,
435,
746,
33312,
1502,
13,
46506,
309,
16,
13,
41763,
414,
62,
3672,
16034,
18586,
62,
41763,
414,
7054,
309,
16,
32357,
1268,
468,
62,
41... |
Which route has a terminus of pine Forest? | SELECT name FROM table_name_57 WHERE terminus = "pine forest" | [
13828,
6339,
468,
257,
5651,
385,
286,
20161,
9115,
30,
46506,
1438,
16034,
3084,
62,
3672,
62,
3553,
33411,
5651,
385,
796,
366,
23908,
8222,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
6339,
468,
257,
5651,
385,
286,
20161,
9115,
30,
46506,
1438,
16034,
3084,
62,
3672,
62,
3553,
33411,
5651,
385,
796,
366,
23908,
8222,
1
] |
what are the five most frequently ordered medications since 2101? | SELECT t1.drugname FROM (SELECT medication.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM medication WHERE STRFTIME('%y', medication.drugstarttime) >= '2101' GROUP BY medication.drugname) AS t1 WHERE t1.c1 <= 5 | [
10919,
389,
262,
1936,
749,
6777,
6149,
17638,
1201,
2310,
486,
30,
46506,
256,
16,
13,
30349,
3672,
16034,
357,
46506,
14103,
13,
30349,
3672,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
11050,
327,
28270,
7,
28104,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
389,
262,
1936,
749,
6777,
6149,
17638,
1201,
2310,
486,
30,
46506,
256,
16,
13,
30349,
3672,
16034,
357,
46506,
14103,
13,
30349,
3672,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
11050,
327,
28270,
7,
28104,
... |
Which Visitor has a Decision of myre, and a Record of 44 7 15? | SELECT visitor FROM table_name_32 WHERE decision = "myre" AND record = "44–7–15" | [
13828,
6911,
2072,
468,
257,
26423,
286,
616,
260,
11,
290,
257,
13266,
286,
5846,
767,
1315,
30,
46506,
21493,
16034,
3084,
62,
3672,
62,
2624,
33411,
2551,
796,
366,
1820,
260,
1,
5357,
1700,
796,
366,
2598,
1906,
22,
1906,
1314,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
6911,
2072,
468,
257,
26423,
286,
616,
260,
11,
290,
257,
13266,
286,
5846,
767,
1315,
30,
46506,
21493,
16034,
3084,
62,
3672,
62,
2624,
33411,
2551,
796,
366,
1820,
260,
1,
5357,
1700,
796,
366,
2598,
1906,
22,
1906,
1314,
... |
How many knots did the Ms Moby Vincent have when passengers was less than 1.6? | SELECT COUNT("Knots") FROM table_53871 WHERE "Ship" = 'ms moby vincent' AND "Passengers" < '1.6' | [
2437,
867,
33620,
750,
262,
6997,
16540,
88,
18653,
423,
618,
10405,
373,
1342,
621,
352,
13,
21,
30,
46506,
327,
28270,
7203,
42,
1662,
82,
4943,
16034,
3084,
62,
49561,
4869,
33411,
366,
25586,
1,
796,
705,
907,
7251,
88,
410,
428... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
33620,
750,
262,
6997,
16540,
88,
18653,
423,
618,
10405,
373,
1342,
621,
352,
13,
21,
30,
46506,
327,
28270,
7203,
42,
1662,
82,
4943,
16034,
3084,
62,
49561,
4869,
33411,
366,
25586,
1,
796,
705,
907,
7251,
88,
410,
428... |
How many points did Bob Gerard Racing have in 1965? | SELECT "Points" FROM table_49311 WHERE "Entrant" = 'bob gerard racing' AND "Year" = '1965' | [
2437,
867,
2173,
750,
5811,
41459,
14954,
423,
287,
17672,
30,
46506,
366,
40710,
1,
16034,
3084,
62,
2920,
36244,
33411,
366,
14539,
5250,
1,
796,
705,
65,
672,
27602,
446,
11717,
6,
5357,
366,
17688,
1,
796,
705,
45271,
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
] | [
2437,
867,
2173,
750,
5811,
41459,
14954,
423,
287,
17672,
30,
46506,
366,
40710,
1,
16034,
3084,
62,
2920,
36244,
33411,
366,
14539,
5250,
1,
796,
705,
65,
672,
27602,
446,
11717,
6,
5357,
366,
17688,
1,
796,
705,
45271,
6
] |
In which round was Gabriel Veiga the opponent? | SELECT round FROM table_name_42 WHERE opponent = "gabriel veiga" | [
818,
543,
2835,
373,
17371,
8016,
13827,
262,
6125,
30,
46506,
2835,
16034,
3084,
62,
3672,
62,
3682,
33411,
6125,
796,
366,
70,
397,
11719,
1569,
13827,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
818,
543,
2835,
373,
17371,
8016,
13827,
262,
6125,
30,
46506,
2835,
16034,
3084,
62,
3672,
62,
3682,
33411,
6125,
796,
366,
70,
397,
11719,
1569,
13827,
1
] |
100 -level classes , are they offered in the Spring or Summer term ? | SELECT DISTINCT course.department, course.name, course.number, semester.semester FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'EECS' AND course.number BETWEEN 100 AND 100 + 100 AND semester.semester IN ('SP', 'SS', 'SU') AND semester.semester_id = cou... | [
3064,
532,
5715,
6097,
837,
389,
484,
4438,
287,
262,
8225,
393,
10216,
3381,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
11,
24878,
13,
325,
6880,
353,
16034,
1781,
11,
1781,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3064,
532,
5715,
6097,
837,
389,
484,
4438,
287,
262,
8225,
393,
10216,
3381,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
11,
24878,
13,
325,
6880,
353,
16034,
1781,
11,
1781,
... |
what is the score when the country is united states and the player is george fazio? | SELECT "Score" FROM table_49973 WHERE "Country" = 'united states' AND "Player" = 'george fazio' | [
10919,
318,
262,
4776,
618,
262,
1499,
318,
16503,
2585,
290,
262,
2137,
318,
4903,
3643,
277,
1031,
952,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
28324,
4790,
33411,
366,
33921,
1,
796,
705,
41187,
2585,
6,
5357,
366,
14140,
1,
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
] | [
10919,
318,
262,
4776,
618,
262,
1499,
318,
16503,
2585,
290,
262,
2137,
318,
4903,
3643,
277,
1031,
952,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
28324,
4790,
33411,
366,
33921,
1,
796,
705,
41187,
2585,
6,
5357,
366,
14140,
1,
7... |
how many patients whose lab test name is nonsquamous epithelial cell? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.label = "NonSquamous Epithelial Cell" | [
4919,
867,
3871,
3025,
2248,
1332,
1438,
318,
14011,
421,
10877,
21240,
35566,
2685,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
76,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
3871,
3025,
2248,
1332,
1438,
318,
14011,
421,
10877,
21240,
35566,
2685,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
76,... |
Which Partner has Opponents in the final of john bromwich frank sedgman? | SELECT partner FROM table_name_20 WHERE opponents_in_the_final = "john bromwich frank sedgman" | [
13828,
35532,
468,
9385,
3906,
287,
262,
2457,
286,
45610,
275,
398,
11451,
14346,
10081,
70,
805,
30,
46506,
5212,
16034,
3084,
62,
3672,
62,
1238,
33411,
7691,
62,
259,
62,
1169,
62,
20311,
796,
366,
30686,
275,
398,
11451,
14346,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
35532,
468,
9385,
3906,
287,
262,
2457,
286,
45610,
275,
398,
11451,
14346,
10081,
70,
805,
30,
46506,
5212,
16034,
3084,
62,
3672,
62,
1238,
33411,
7691,
62,
259,
62,
1169,
62,
20311,
796,
366,
30686,
275,
398,
11451,
14346,
1... |
How many results were there on 19/06/2009? | SELECT COUNT(result) FROM table_21311525_1 WHERE date = "19/06/2009" | [
2437,
867,
2482,
547,
612,
319,
678,
14,
3312,
14,
10531,
30,
46506,
327,
28270,
7,
20274,
8,
16034,
3084,
62,
26427,
15363,
1495,
62,
16,
33411,
3128,
796,
366,
1129,
14,
3312,
14,
10531,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
2482,
547,
612,
319,
678,
14,
3312,
14,
10531,
30,
46506,
327,
28270,
7,
20274,
8,
16034,
3084,
62,
26427,
15363,
1495,
62,
16,
33411,
3128,
796,
366,
1129,
14,
3312,
14,
10531,
1
] |
Display a bar chart for what is total number of show times per dat for each cinema?, and could you sort by the Y-axis in desc? | SELECT Name, SUM(T1.Show_times_per_day) FROM schedule AS T1 JOIN cinema AS T2 ON T1.Cinema_ID = T2.Cinema_ID GROUP BY T1.Cinema_ID ORDER BY SUM(T1.Show_times_per_day) DESC | [
23114,
257,
2318,
8262,
329,
644,
318,
2472,
1271,
286,
905,
1661,
583,
4818,
329,
1123,
22041,
21747,
290,
714,
345,
3297,
416,
262,
575,
12,
22704,
287,
1715,
30,
46506,
6530,
11,
35683,
7,
51,
16,
13,
15307,
62,
22355,
62,
525,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
23114,
257,
2318,
8262,
329,
644,
318,
2472,
1271,
286,
905,
1661,
583,
4818,
329,
1123,
22041,
21747,
290,
714,
345,
3297,
416,
262,
575,
12,
22704,
287,
1715,
30,
46506,
6530,
11,
35683,
7,
51,
16,
13,
15307,
62,
22355,
62,
525,
... |
tell me the maximum cost of a hospital visit that involved a eosinophils lab test since 2101? | SELECT MAX(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.hadm_id IN (SELECT labevents.hadm_id FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'eosinophils')) AND STRFTIME('%y', cost.chargetime) >= '2101' GROUP BY cost.hadm_id) AS t1 | [
33331,
502,
262,
5415,
1575,
286,
257,
4436,
3187,
326,
2950,
257,
304,
418,
259,
2522,
4487,
2248,
1332,
1201,
2310,
486,
30,
46506,
25882,
7,
83,
16,
13,
66,
16,
8,
16034,
357,
46506,
35683,
7,
15805,
13,
15805,
8,
7054,
269,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
33331,
502,
262,
5415,
1575,
286,
257,
4436,
3187,
326,
2950,
257,
304,
418,
259,
2522,
4487,
2248,
1332,
1201,
2310,
486,
30,
46506,
25882,
7,
83,
16,
13,
66,
16,
8,
16034,
357,
46506,
35683,
7,
15805,
13,
15805,
8,
7054,
269,
16... |
Who was the opponent on 19 February 2011? | SELECT opponent FROM table_name_97 WHERE date = "19 february 2011" | [
8241,
373,
262,
6125,
319,
678,
3945,
2813,
30,
46506,
6125,
16034,
3084,
62,
3672,
62,
5607,
33411,
3128,
796,
366,
1129,
730,
65,
3728,
2813,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
373,
262,
6125,
319,
678,
3945,
2813,
30,
46506,
6125,
16034,
3084,
62,
3672,
62,
5607,
33411,
3128,
796,
366,
1129,
730,
65,
3728,
2813,
1
] |
which club has played in the most supercups without winning ? | SELECT "club" FROM table_203_125 ORDER BY "runner-ups" DESC LIMIT 1 | [
4758,
3430,
468,
2826,
287,
262,
749,
2208,
66,
4739,
1231,
5442,
5633,
46506,
366,
18664,
1,
16034,
3084,
62,
22416,
62,
11623,
38678,
11050,
366,
16737,
12,
4739,
1,
22196,
34,
27564,
2043,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4758,
3430,
468,
2826,
287,
262,
749,
2208,
66,
4739,
1231,
5442,
5633,
46506,
366,
18664,
1,
16034,
3084,
62,
22416,
62,
11623,
38678,
11050,
366,
16737,
12,
4739,
1,
22196,
34,
27564,
2043,
352
] |
Which Division that has a Reg Season of 1st, western, and Playoffs of champions, and a Year smaller than 2013? | SELECT AVG("Division") FROM table_37770 WHERE "Reg. Season" = '1st, western' AND "Playoffs" = 'champions' AND "Year" < '2013' | [
13828,
7458,
326,
468,
257,
3310,
7369,
286,
352,
301,
11,
8830,
11,
290,
42361,
286,
7827,
11,
290,
257,
6280,
4833,
621,
2211,
30,
46506,
35224,
7203,
24095,
1166,
4943,
16034,
3084,
62,
26514,
2154,
33411,
366,
8081,
13,
7369,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
13828,
7458,
326,
468,
257,
3310,
7369,
286,
352,
301,
11,
8830,
11,
290,
42361,
286,
7827,
11,
290,
257,
6280,
4833,
621,
2211,
30,
46506,
35224,
7203,
24095,
1166,
4943,
16034,
3084,
62,
26514,
2154,
33411,
366,
8081,
13,
7369,
1,
... |
Name the total number of 2010 for when 2009 is less than 14, 2008 is less than 15 and 2005 is 3 | SELECT COUNT("2010") FROM table_56913 WHERE "2009" < '14' AND "2008" < '15' AND "2005" = '3' | [
5376,
262,
2472,
1271,
286,
3050,
329,
618,
3717,
318,
1342,
621,
1478,
11,
3648,
318,
1342,
621,
1315,
290,
5075,
318,
513,
46506,
327,
28270,
7203,
10333,
4943,
16034,
3084,
62,
20,
3388,
1485,
33411,
366,
10531,
1,
1279,
705,
1415,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
2472,
1271,
286,
3050,
329,
618,
3717,
318,
1342,
621,
1478,
11,
3648,
318,
1342,
621,
1315,
290,
5075,
318,
513,
46506,
327,
28270,
7203,
10333,
4943,
16034,
3084,
62,
20,
3388,
1485,
33411,
366,
10531,
1,
1279,
705,
1415,... |
What was the score of the French Open? | SELECT score_in_the_final FROM table_name_7 WHERE championship = "french open" | [
2061,
373,
262,
4776,
286,
262,
4141,
4946,
30,
46506,
4776,
62,
259,
62,
1169,
62,
20311,
16034,
3084,
62,
3672,
62,
22,
33411,
12184,
796,
366,
69,
3532,
1280,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
4776,
286,
262,
4141,
4946,
30,
46506,
4776,
62,
259,
62,
1169,
62,
20311,
16034,
3084,
62,
3672,
62,
22,
33411,
12184,
796,
366,
69,
3532,
1280,
1
] |
Who scored the lowest with 8 gold medals and less than 4 silver medals? | SELECT MIN(total) FROM table_name_40 WHERE gold = 8 AND silver < 4 | [
8241,
7781,
262,
9016,
351,
807,
3869,
28057,
290,
1342,
621,
604,
8465,
28057,
30,
46506,
20625,
7,
23350,
8,
16034,
3084,
62,
3672,
62,
1821,
33411,
3869,
796,
807,
5357,
8465,
1279,
604
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
7781,
262,
9016,
351,
807,
3869,
28057,
290,
1342,
621,
604,
8465,
28057,
30,
46506,
20625,
7,
23350,
8,
16034,
3084,
62,
3672,
62,
1821,
33411,
3869,
796,
807,
5357,
8465,
1279,
604
] |
What is the Draw for match 10, and the team was skra warszawa? | SELECT draw FROM table_name_76 WHERE match = "10" AND team = "skra warszawa" | [
2061,
318,
262,
15315,
329,
2872,
838,
11,
290,
262,
1074,
373,
1341,
430,
9976,
89,
6909,
30,
46506,
3197,
16034,
3084,
62,
3672,
62,
4304,
33411,
2872,
796,
366,
940,
1,
5357,
1074,
796,
366,
8135,
430,
9976,
89,
6909,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
15315,
329,
2872,
838,
11,
290,
262,
1074,
373,
1341,
430,
9976,
89,
6909,
30,
46506,
3197,
16034,
3084,
62,
3672,
62,
4304,
33411,
2872,
796,
366,
940,
1,
5357,
1074,
796,
366,
8135,
430,
9976,
89,
6909,
1
] |
Which College/junior/club team has a Pick # of 1? | SELECT "College/junior/club team" FROM table_79871 WHERE "Pick #" = '1' | [
13828,
5535,
14,
29741,
1504,
14,
18664,
1074,
468,
257,
12346,
1303,
286,
352,
30,
46506,
366,
38951,
14,
29741,
1504,
14,
18664,
1074,
1,
16034,
3084,
62,
43240,
4869,
33411,
366,
31686,
1303,
1,
796,
705,
16,
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
] | [
13828,
5535,
14,
29741,
1504,
14,
18664,
1074,
468,
257,
12346,
1303,
286,
352,
30,
46506,
366,
38951,
14,
29741,
1504,
14,
18664,
1074,
1,
16034,
3084,
62,
43240,
4869,
33411,
366,
31686,
1303,
1,
796,
705,
16,
6
] |
Which Wins has a Top-5 of 6? | SELECT AVG("Wins") FROM table_41697 WHERE "Top-5" = '6' | [
13828,
24423,
468,
257,
5849,
12,
20,
286,
718,
30,
46506,
35224,
7203,
54,
1040,
4943,
16034,
3084,
62,
35218,
5607,
33411,
366,
9126,
12,
20,
1,
796,
705,
21,
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
] | [
13828,
24423,
468,
257,
5849,
12,
20,
286,
718,
30,
46506,
35224,
7203,
54,
1040,
4943,
16034,
3084,
62,
35218,
5607,
33411,
366,
9126,
12,
20,
1,
796,
705,
21,
6
] |
Which PF per game has a Rank of 5? | SELECT MIN("PF per game") FROM table_46178 WHERE "Rank" = '5' | [
13828,
28223,
583,
983,
468,
257,
10916,
286,
642,
30,
46506,
20625,
7203,
42668,
583,
983,
4943,
16034,
3084,
62,
3510,
23188,
33411,
366,
27520,
1,
796,
705,
20,
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
] | [
13828,
28223,
583,
983,
468,
257,
10916,
286,
642,
30,
46506,
20625,
7203,
42668,
583,
983,
4943,
16034,
3084,
62,
3510,
23188,
33411,
366,
27520,
1,
796,
705,
20,
6
] |
What is the highest sales All Saints had? | SELECT MAX(sales) FROM table_name_51 WHERE album_title = "all saints" | [
2061,
318,
262,
4511,
4200,
1439,
13048,
550,
30,
46506,
25882,
7,
82,
2040,
8,
16034,
3084,
62,
3672,
62,
4349,
33411,
5062,
62,
7839,
796,
366,
439,
31728,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4511,
4200,
1439,
13048,
550,
30,
46506,
25882,
7,
82,
2040,
8,
16034,
3084,
62,
3672,
62,
4349,
33411,
5062,
62,
7839,
796,
366,
439,
31728,
1
] |
How many numbers correspond to the score in the final of 6 3, 6 4, 7 6 (13 11)? | SELECT COUNT("No.") FROM table_3512 WHERE "Score in the final" = '6–3, 6–4, 7–6 (13–11)' | [
2437,
867,
3146,
6053,
284,
262,
4776,
287,
262,
2457,
286,
718,
513,
11,
718,
604,
11,
767,
718,
357,
1485,
1367,
19427,
46506,
327,
28270,
7203,
2949,
19570,
16034,
3084,
62,
2327,
1065,
33411,
366,
26595,
287,
262,
2457,
1,
796,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
3146,
6053,
284,
262,
4776,
287,
262,
2457,
286,
718,
513,
11,
718,
604,
11,
767,
718,
357,
1485,
1367,
19427,
46506,
327,
28270,
7203,
2949,
19570,
16034,
3084,
62,
2327,
1065,
33411,
366,
26595,
287,
262,
2457,
1,
796,
... |
What are the number of the names of all races held between 2009 and 2011?, display by the y-axis from high to low. | SELECT name, COUNT(name) FROM races WHERE year BETWEEN 2009 AND 2011 GROUP BY name ORDER BY COUNT(name) DESC | [
2061,
389,
262,
1271,
286,
262,
3891,
286,
477,
9558,
2714,
1022,
3717,
290,
2813,
21747,
3359,
416,
262,
331,
12,
22704,
422,
1029,
284,
1877,
13,
46506,
1438,
11,
327,
28270,
7,
3672,
8,
16034,
9558,
33411,
614,
38651,
8845,
1677,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
389,
262,
1271,
286,
262,
3891,
286,
477,
9558,
2714,
1022,
3717,
290,
2813,
21747,
3359,
416,
262,
331,
12,
22704,
422,
1029,
284,
1877,
13,
46506,
1438,
11,
327,
28270,
7,
3672,
8,
16034,
9558,
33411,
614,
38651,
8845,
1677,
... |
What is Record, when Team is '@ Atlanta'? | SELECT record FROM table_name_78 WHERE team = "@ atlanta" | [
2061,
318,
13266,
11,
618,
4816,
318,
705,
31,
9371,
30960,
46506,
1700,
16034,
3084,
62,
3672,
62,
3695,
33411,
1074,
796,
44212,
379,
75,
4910,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
13266,
11,
618,
4816,
318,
705,
31,
9371,
30960,
46506,
1700,
16034,
3084,
62,
3672,
62,
3695,
33411,
1074,
796,
44212,
379,
75,
4910,
1
] |
When was Dale Alford first elected in the Arkansas 5 district? | SELECT "First elected" FROM table_18437 WHERE "District" = 'Arkansas 5' | [
2215,
373,
20412,
978,
3841,
717,
7018,
287,
262,
14538,
642,
4783,
30,
46506,
366,
5962,
7018,
1,
16034,
3084,
62,
22883,
2718,
33411,
366,
44857,
1,
796,
705,
42007,
6618,
642,
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
] | [
2215,
373,
20412,
978,
3841,
717,
7018,
287,
262,
14538,
642,
4783,
30,
46506,
366,
5962,
7018,
1,
16034,
3084,
62,
22883,
2718,
33411,
366,
44857,
1,
796,
705,
42007,
6618,
642,
6
] |
Name the number of silver when gold is less than 1 and bronze is 0 when total is less than 2 | SELECT COUNT(silver) FROM table_name_18 WHERE gold < 1 AND bronze = 0 AND total < 2 | [
5376,
262,
1271,
286,
8465,
618,
3869,
318,
1342,
621,
352,
290,
22101,
318,
657,
618,
2472,
318,
1342,
621,
362,
46506,
327,
28270,
7,
40503,
8,
16034,
3084,
62,
3672,
62,
1507,
33411,
3869,
1279,
352,
5357,
22101,
796,
657,
5357,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
1271,
286,
8465,
618,
3869,
318,
1342,
621,
352,
290,
22101,
318,
657,
618,
2472,
318,
1342,
621,
362,
46506,
327,
28270,
7,
40503,
8,
16034,
3084,
62,
3672,
62,
1507,
33411,
3869,
1279,
352,
5357,
22101,
796,
657,
5357,
... |
What's the description of the buttonholer whose singer part number is 121795 kit 121908 buttonholer? | SELECT "Description" FROM table_74301 WHERE "Singer part number" = '121795 kit 121908 buttonholer' | [
2061,
338,
262,
6764,
286,
262,
4936,
3937,
263,
3025,
14015,
636,
1271,
318,
1105,
1558,
3865,
6220,
1105,
1129,
2919,
4936,
3937,
263,
30,
46506,
366,
11828,
1,
16034,
3084,
62,
22,
3559,
486,
33411,
366,
50,
3889,
636,
1271,
1,
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
] | [
2061,
338,
262,
6764,
286,
262,
4936,
3937,
263,
3025,
14015,
636,
1271,
318,
1105,
1558,
3865,
6220,
1105,
1129,
2919,
4936,
3937,
263,
30,
46506,
366,
11828,
1,
16034,
3084,
62,
22,
3559,
486,
33411,
366,
50,
3889,
636,
1271,
1,
7... |
What was the average crowd size when Melbourne was the home team? | SELECT AVG("Crowd") FROM table_33621 WHERE "Home team" = 'melbourne' | [
2061,
373,
262,
2811,
4315,
2546,
618,
14819,
373,
262,
1363,
1074,
30,
46506,
35224,
7203,
34,
3986,
4943,
16034,
3084,
62,
29211,
2481,
33411,
366,
16060,
1074,
1,
796,
705,
17694,
12544,
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
] | [
2061,
373,
262,
2811,
4315,
2546,
618,
14819,
373,
262,
1363,
1074,
30,
46506,
35224,
7203,
34,
3986,
4943,
16034,
3084,
62,
29211,
2481,
33411,
366,
16060,
1074,
1,
796,
705,
17694,
12544,
6
] |
until 2104 what are the five most frequently ordered medications for patients who have also been prescribed skelaxin at the same time? | SELECT t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, prescriptions.startdate FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE prescriptions.drug = 'skelaxin' AND STRFTIME('%y', prescriptions.startdate) <= '2104') ... | [
28446,
362,
13464,
644,
389,
262,
1936,
749,
6777,
6149,
17638,
329,
3871,
508,
423,
635,
587,
14798,
6146,
75,
897,
259,
379,
262,
976,
640,
30,
46506,
256,
18,
13,
30349,
16034,
357,
46506,
256,
17,
13,
30349,
11,
360,
24290,
62,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
28446,
362,
13464,
644,
389,
262,
1936,
749,
6777,
6149,
17638,
329,
3871,
508,
423,
635,
587,
14798,
6146,
75,
897,
259,
379,
262,
976,
640,
30,
46506,
256,
18,
13,
30349,
16034,
357,
46506,
256,
17,
13,
30349,
11,
360,
24290,
62,
... |
How many episodes in the season are episode 142 in the series? | SELECT COUNT(no_in_season) FROM table_25604014_8 WHERE no_in_series = 142 | [
2437,
867,
8640,
287,
262,
1622,
389,
4471,
25181,
287,
262,
2168,
30,
46506,
327,
28270,
7,
3919,
62,
259,
62,
6230,
8,
16034,
3084,
62,
1495,
1899,
21844,
19,
62,
23,
33411,
645,
62,
259,
62,
25076,
796,
25181
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
8640,
287,
262,
1622,
389,
4471,
25181,
287,
262,
2168,
30,
46506,
327,
28270,
7,
3919,
62,
259,
62,
6230,
8,
16034,
3084,
62,
1495,
1899,
21844,
19,
62,
23,
33411,
645,
62,
259,
62,
25076,
796,
25181
] |
What is Builder, when Country is 'United Kingdom', and when Location is 'Chatham, Kent'? | SELECT builder FROM table_name_35 WHERE country = "united kingdom" AND location = "chatham, kent" | [
2061,
318,
35869,
11,
618,
12946,
318,
705,
17013,
7526,
3256,
290,
618,
13397,
318,
705,
1925,
37520,
11,
8758,
30960,
46506,
27098,
16034,
3084,
62,
3672,
62,
2327,
33411,
1499,
796,
366,
41187,
13239,
1,
5357,
4067,
796,
366,
354,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
35869,
11,
618,
12946,
318,
705,
17013,
7526,
3256,
290,
618,
13397,
318,
705,
1925,
37520,
11,
8758,
30960,
46506,
27098,
16034,
3084,
62,
3672,
62,
2327,
33411,
1499,
796,
366,
41187,
13239,
1,
5357,
4067,
796,
366,
354,
... |
what was the organism found in the first nasopharynx test of patient 031-4987 when they visited the hospital first time? | SELECT microlab.organism FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-4987' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.... | [
10919,
373,
262,
26433,
1043,
287,
262,
717,
25221,
2522,
38621,
87,
1332,
286,
5827,
657,
3132,
12,
2920,
5774,
618,
484,
8672,
262,
4436,
717,
640,
30,
46506,
4580,
23912,
13,
9971,
1042,
16034,
4580,
23912,
33411,
4580,
23912,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
373,
262,
26433,
1043,
287,
262,
717,
25221,
2522,
38621,
87,
1332,
286,
5827,
657,
3132,
12,
2920,
5774,
618,
484,
8672,
262,
4436,
717,
640,
30,
46506,
4580,
23912,
13,
9971,
1042,
16034,
4580,
23912,
33411,
4580,
23912,
13,
... |
Users answering on python questions, located in France. | SELECT au.Id AS "UserId", au.DisplayName AS "Answerer", au.WebsiteUrl, au.Reputation, COUNT(a.Id) AS "Answers" FROM Posts AS p JOIN Posts AS a ON p.AcceptedAnswerId = a.Id JOIN Users AS au ON a.OwnerUserId = au.Id WHERE NOT p.AcceptedAnswerId IS NULL AND p.Tags LIKE '%##tag##%' AND au.Location LIKE '##location##' GROUP... | [
14490,
18877,
319,
21015,
2683,
11,
5140,
287,
4881,
13,
46506,
35851,
13,
7390,
7054,
366,
12982,
7390,
1600,
35851,
13,
23114,
5376,
7054,
366,
2025,
2032,
11882,
1600,
35851,
13,
33420,
28165,
11,
35851,
13,
6207,
7094,
11,
327,
2827... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
14490,
18877,
319,
21015,
2683,
11,
5140,
287,
4881,
13,
46506,
35851,
13,
7390,
7054,
366,
12982,
7390,
1600,
35851,
13,
23114,
5376,
7054,
366,
2025,
2032,
11882,
1600,
35851,
13,
33420,
28165,
11,
35851,
13,
6207,
7094,
11,
327,
2827... |
find out the time of admission and gender of patient with patient id 5027. | SELECT demographic.gender, demographic.admittime FROM demographic WHERE demographic.subject_id = "5027" | [
19796,
503,
262,
640,
286,
13938,
290,
5279,
286,
5827,
351,
5827,
4686,
2026,
1983,
13,
46506,
16728,
13,
8388,
11,
16728,
13,
324,
20124,
524,
16034,
16728,
33411,
16728,
13,
32796,
62,
312,
796,
366,
1120,
1983,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
19796,
503,
262,
640,
286,
13938,
290,
5279,
286,
5827,
351,
5827,
4686,
2026,
1983,
13,
46506,
16728,
13,
8388,
11,
16728,
13,
324,
20124,
524,
16034,
16728,
33411,
16728,
13,
32796,
62,
312,
796,
366,
1120,
1983,
1
] |
On what circuit is there a class gts-2 race that takes place on May 27? | SELECT circuit FROM table_name_68 WHERE date = "may 27" AND class = "gts-2" | [
2202,
644,
10349,
318,
612,
257,
1398,
308,
912,
12,
17,
3234,
326,
2753,
1295,
319,
1737,
2681,
30,
46506,
10349,
16034,
3084,
62,
3672,
62,
3104,
33411,
3128,
796,
366,
11261,
2681,
1,
5357,
1398,
796,
366,
70,
912,
12,
17,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2202,
644,
10349,
318,
612,
257,
1398,
308,
912,
12,
17,
3234,
326,
2753,
1295,
319,
1737,
2681,
30,
46506,
10349,
16034,
3084,
62,
3672,
62,
3104,
33411,
3128,
796,
366,
11261,
2681,
1,
5357,
1398,
796,
366,
70,
912,
12,
17,
1
] |
Last 3 months unanswered questions. | SELECT * FROM Posts INNER JOIN Users ON Users.Id = OwnerUserId WHERE Posts.PostTypeId = 1 AND Posts.CreationDate BETWEEN DATEADD(MONTH, -3, CURRENT_TIMESTAMP()) AND CURRENT_TIMESTAMP() AND AcceptedAnswerId IS NULL AND AnswerCount = 0 AND Score > -1 AND CommentCount = 0 AND Users.Reputation > 100 | [
5956,
513,
1933,
34001,
2683,
13,
46506,
1635,
16034,
12043,
3268,
21479,
32357,
1268,
18987,
6177,
18987,
13,
7390,
796,
23853,
12982,
7390,
33411,
12043,
13,
6307,
6030,
7390,
796,
352,
5357,
12043,
13,
12443,
341,
10430,
38651,
8845,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
5956,
513,
1933,
34001,
2683,
13,
46506,
1635,
16034,
12043,
3268,
21479,
32357,
1268,
18987,
6177,
18987,
13,
7390,
796,
23853,
12982,
7390,
33411,
12043,
13,
6307,
6030,
7390,
796,
352,
5357,
12043,
13,
12443,
341,
10430,
38651,
8845,
1... |
What is the percentage of registered voters in which the d-r spread is +10.4%? | SELECT "Registered voters" FROM table_29238 WHERE "D\u2013R spread" = '+10.4%' | [
2061,
318,
262,
5873,
286,
6823,
4446,
287,
543,
262,
288,
12,
81,
4104,
318,
1343,
940,
13,
19,
4,
30,
46506,
366,
47473,
4446,
1,
16034,
3084,
62,
1959,
23721,
33411,
366,
35,
59,
84,
6390,
49,
4104,
1,
796,
705,
10,
940,
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
] | [
2061,
318,
262,
5873,
286,
6823,
4446,
287,
543,
262,
288,
12,
81,
4104,
318,
1343,
940,
13,
19,
4,
30,
46506,
366,
47473,
4446,
1,
16034,
3084,
62,
1959,
23721,
33411,
366,
35,
59,
84,
6390,
49,
4104,
1,
796,
705,
10,
940,
13,
... |
Activity of SO Users with Time. | SELECT COUNT(*) AS "Number of Users", DATEDIFF(MONTH, 'creationdate', lastaccessdate) AS "Active Period (Months)" FROM Users GROUP BY DATEDIFF(MONTH, 'creationdate', lastaccessdate) ORDER BY DATEDIFF(MONTH, 'creationdate', lastaccessdate) | [
16516,
286,
12809,
18987,
351,
3862,
13,
46506,
327,
28270,
7,
28104,
7054,
366,
15057,
286,
18987,
1600,
360,
11617,
29267,
7,
27857,
4221,
11,
705,
38793,
4475,
3256,
938,
15526,
4475,
8,
7054,
366,
13739,
18581,
357,
9069,
9998,
1672... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
16516,
286,
12809,
18987,
351,
3862,
13,
46506,
327,
28270,
7,
28104,
7054,
366,
15057,
286,
18987,
1600,
360,
11617,
29267,
7,
27857,
4221,
11,
705,
38793,
4475,
3256,
938,
15526,
4475,
8,
7054,
366,
13739,
18581,
357,
9069,
9998,
1672... |
List the number of winery of the wines whose price is bigger than 100 in a bar chart, and I want to rank in asc by the Y-axis. | SELECT Winery, COUNT(Winery) FROM wine WHERE Price > 100 GROUP BY Winery ORDER BY COUNT(Winery) | [
8053,
262,
1271,
286,
1592,
1924,
286,
262,
30680,
3025,
2756,
318,
5749,
621,
1802,
287,
257,
2318,
8262,
11,
290,
314,
765,
284,
4279,
287,
10570,
416,
262,
575,
12,
22704,
13,
46506,
7178,
1924,
11,
327,
28270,
7,
54,
15451,
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
] | [
8053,
262,
1271,
286,
1592,
1924,
286,
262,
30680,
3025,
2756,
318,
5749,
621,
1802,
287,
257,
2318,
8262,
11,
290,
314,
765,
284,
4279,
287,
10570,
416,
262,
575,
12,
22704,
13,
46506,
7178,
1924,
11,
327,
28270,
7,
54,
15451,
8,
... |
what was the first time patient 003-83 had foley catheter's performed since 4 years ago? | SELECT treatment.treatmenttime FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '003-83')) AND treatment.treatmentname = 'foley catheter' AND DATE... | [
10919,
373,
262,
717,
640,
5827,
3571,
18,
12,
5999,
550,
11511,
1636,
3797,
43332,
338,
6157,
1201,
604,
812,
2084,
30,
46506,
3513,
13,
42487,
2435,
16034,
3513,
33411,
3513,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
373,
262,
717,
640,
5827,
3571,
18,
12,
5999,
550,
11511,
1636,
3797,
43332,
338,
6157,
1201,
604,
812,
2084,
30,
46506,
3513,
13,
42487,
2435,
16034,
3513,
33411,
3513,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
... |
How many total points were earned with ferrari 125 Chassis after 1952? | SELECT SUM(points) FROM table_name_77 WHERE chassis = "ferrari 125" AND year > 1952 | [
2437,
867,
2472,
2173,
547,
7366,
351,
277,
8056,
2743,
13151,
609,
20297,
706,
26352,
30,
46506,
35683,
7,
13033,
8,
16034,
3084,
62,
3672,
62,
3324,
33411,
24587,
796,
366,
2232,
81,
2743,
13151,
1,
5357,
614,
1875,
26352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
2472,
2173,
547,
7366,
351,
277,
8056,
2743,
13151,
609,
20297,
706,
26352,
30,
46506,
35683,
7,
13033,
8,
16034,
3084,
62,
3672,
62,
3324,
33411,
24587,
796,
366,
2232,
81,
2743,
13151,
1,
5357,
614,
1875,
26352
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.