instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
Would built the winning car in the IV J.C.C. Jersey Road Race? | SELECT constructor FROM table_1140119_5 WHERE race_name = "IV J.C.C. Jersey Road Race" | [
17353,
3170,
262,
5442,
1097,
287,
262,
8363,
449,
13,
34,
13,
34,
13,
8221,
5567,
12588,
30,
46506,
23772,
16034,
3084,
62,
16562,
486,
1129,
62,
20,
33411,
3234,
62,
3672,
796,
366,
3824,
449,
13,
34,
13,
34,
13,
8221,
5567,
125... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
17353,
3170,
262,
5442,
1097,
287,
262,
8363,
449,
13,
34,
13,
34,
13,
8221,
5567,
12588,
30,
46506,
23772,
16034,
3084,
62,
16562,
486,
1129,
62,
20,
33411,
3234,
62,
3672,
796,
366,
3824,
449,
13,
34,
13,
34,
13,
8221,
5567,
125... |
tell me the discharge time and days for which patient with patient id 45962 was hospitalized. | SELECT demographic.days_stay, demographic.dischtime FROM demographic WHERE demographic.subject_id = "45962" | [
33331,
502,
262,
17655,
640,
290,
1528,
329,
543,
5827,
351,
5827,
4686,
604,
3270,
5237,
373,
31736,
13,
46506,
16728,
13,
12545,
62,
31712,
11,
16728,
13,
6381,
354,
2435,
16034,
16728,
33411,
16728,
13,
32796,
62,
312,
796,
366,
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
] | [
33331,
502,
262,
17655,
640,
290,
1528,
329,
543,
5827,
351,
5827,
4686,
604,
3270,
5237,
373,
31736,
13,
46506,
16728,
13,
12545,
62,
31712,
11,
16728,
13,
6381,
354,
2435,
16034,
16728,
33411,
16728,
13,
32796,
62,
312,
796,
366,
22... |
What format is at frequency 99.5 FM? | SELECT "Format" FROM table_36861 WHERE "Frequency" = '99.5 fm' | [
2061,
5794,
318,
379,
8373,
7388,
13,
20,
18695,
30,
46506,
366,
26227,
1,
16034,
3084,
62,
2623,
4521,
16,
33411,
366,
37,
28707,
1,
796,
705,
2079,
13,
20,
277,
76,
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
] | [
2061,
5794,
318,
379,
8373,
7388,
13,
20,
18695,
30,
46506,
366,
26227,
1,
16034,
3084,
62,
2623,
4521,
16,
33411,
366,
37,
28707,
1,
796,
705,
2079,
13,
20,
277,
76,
6
] |
How many different nationalities do the players of New Jersey Devils come from? | SELECT COUNT(nationality) FROM table_1013129_3 WHERE nhl_team = "New Jersey Devils" | [
2437,
867,
1180,
2260,
871,
466,
262,
1938,
286,
968,
8221,
26199,
1282,
422,
30,
46506,
327,
28270,
7,
14648,
414,
8,
16034,
3084,
62,
8784,
18,
18741,
62,
18,
33411,
299,
18519,
62,
15097,
796,
366,
3791,
8221,
26199,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1180,
2260,
871,
466,
262,
1938,
286,
968,
8221,
26199,
1282,
422,
30,
46506,
327,
28270,
7,
14648,
414,
8,
16034,
3084,
62,
8784,
18,
18741,
62,
18,
33411,
299,
18519,
62,
15097,
796,
366,
3791,
8221,
26199,
1
] |
What is the number of bronze medals when the total is greater than 1, more than 2 silver medals are won, and the rank is 2? | SELECT bronze FROM table_name_94 WHERE total > 1 AND silver > "2" AND rank = "2" | [
2061,
318,
262,
1271,
286,
22101,
28057,
618,
262,
2472,
318,
3744,
621,
352,
11,
517,
621,
362,
8465,
28057,
389,
1839,
11,
290,
262,
4279,
318,
362,
30,
46506,
22101,
16034,
3084,
62,
3672,
62,
5824,
33411,
2472,
1875,
352,
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,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1271,
286,
22101,
28057,
618,
262,
2472,
318,
3744,
621,
352,
11,
517,
621,
362,
8465,
28057,
389,
1839,
11,
290,
262,
4279,
318,
362,
30,
46506,
22101,
16034,
3084,
62,
3672,
62,
5824,
33411,
2472,
1875,
352,
5357,
... |
Can you tell me the English Translation that has the Articles of 24? | SELECT english_translation FROM table_name_44 WHERE articles = 24 | [
6090,
345,
1560,
502,
262,
3594,
33322,
326,
468,
262,
22698,
286,
1987,
30,
46506,
46932,
62,
41519,
16034,
3084,
62,
3672,
62,
2598,
33411,
6685,
796,
1987
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
6090,
345,
1560,
502,
262,
3594,
33322,
326,
468,
262,
22698,
286,
1987,
30,
46506,
46932,
62,
41519,
16034,
3084,
62,
3672,
62,
2598,
33411,
6685,
796,
1987
] |
let's count the number of times patient 027-41381 has had a cl flush: coated catheter, pressure/power inj ij r intake during the last hospital visit. | SELECT COUNT(*) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-41381' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.... | [
1616,
338,
954,
262,
1271,
286,
1661,
5827,
657,
1983,
12,
44103,
6659,
468,
550,
257,
537,
24773,
25,
30267,
3797,
43332,
11,
3833,
14,
6477,
2529,
1312,
73,
374,
10337,
1141,
262,
938,
4436,
3187,
13,
46506,
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... | [
1616,
338,
954,
262,
1271,
286,
1661,
5827,
657,
1983,
12,
44103,
6659,
468,
550,
257,
537,
24773,
25,
30267,
3797,
43332,
11,
3833,
14,
6477,
2529,
1312,
73,
374,
10337,
1141,
262,
938,
4436,
3187,
13,
46506,
327,
28270,
7,
28104,
... |
which morgan creek film grossed the most worldwide ? | SELECT "title" FROM table_203_98 ORDER BY "gross (worldwide)" DESC LIMIT 1 | [
4758,
2146,
1030,
39459,
2646,
10319,
276,
262,
749,
8688,
5633,
46506,
366,
7839,
1,
16034,
3084,
62,
22416,
62,
4089,
38678,
11050,
366,
47181,
357,
6894,
4421,
16725,
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
] | [
4758,
2146,
1030,
39459,
2646,
10319,
276,
262,
749,
8688,
5633,
46506,
366,
7839,
1,
16034,
3084,
62,
22416,
62,
4089,
38678,
11050,
366,
47181,
357,
6894,
4421,
16725,
22196,
34,
27564,
2043,
352
] |
Find the number of products for each manufacturer, showing the name of each company Show bar chart, display by the bar in desc. | SELECT T2.Name, COUNT(*) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T2.Name DESC | [
16742,
262,
1271,
286,
3186,
329,
1123,
11554,
11,
4478,
262,
1438,
286,
1123,
1664,
5438,
2318,
8262,
11,
3359,
416,
262,
2318,
287,
1715,
13,
46506,
309,
17,
13,
5376,
11,
327,
28270,
7,
28104,
16034,
18675,
7054,
309,
16,
32357,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
1271,
286,
3186,
329,
1123,
11554,
11,
4478,
262,
1438,
286,
1123,
1664,
5438,
2318,
8262,
11,
3359,
416,
262,
2318,
287,
1715,
13,
46506,
309,
17,
13,
5376,
11,
327,
28270,
7,
28104,
16034,
18675,
7054,
309,
16,
32357,
... |
What is the number of lost games when 2 were drawn, and there were 6 bonus points? | SELECT "Lost" FROM table_65098 WHERE "Drawn" = '2' AND "Bonus points" = '6' | [
2061,
318,
262,
1271,
286,
2626,
1830,
618,
362,
547,
7428,
11,
290,
612,
547,
718,
7202,
2173,
30,
46506,
366,
31042,
1,
16034,
3084,
62,
17544,
4089,
33411,
366,
35,
5791,
1,
796,
705,
17,
6,
5357,
366,
29435,
2173,
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
] | [
2061,
318,
262,
1271,
286,
2626,
1830,
618,
362,
547,
7428,
11,
290,
612,
547,
718,
7202,
2173,
30,
46506,
366,
31042,
1,
16034,
3084,
62,
17544,
4089,
33411,
366,
35,
5791,
1,
796,
705,
17,
6,
5357,
366,
29435,
2173,
1,
796,
705,... |
what name comes next fairfield ? | SELECT "name" FROM table_204_476 WHERE id = (SELECT id FROM table_204_476 WHERE "name" = 'fairfield') + 1 | [
10919,
1438,
2058,
1306,
3148,
3245,
5633,
46506,
366,
3672,
1,
16034,
3084,
62,
18638,
62,
35435,
33411,
4686,
796,
357,
46506,
4686,
16034,
3084,
62,
18638,
62,
35435,
33411,
366,
3672,
1,
796,
705,
22043,
3245,
11537,
1343,
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,
1,
1
] | [
10919,
1438,
2058,
1306,
3148,
3245,
5633,
46506,
366,
3672,
1,
16034,
3084,
62,
18638,
62,
35435,
33411,
4686,
796,
357,
46506,
4686,
16034,
3084,
62,
18638,
62,
35435,
33411,
366,
3672,
1,
796,
705,
22043,
3245,
11537,
1343,
352
] |
What shows for ICAO when the IATA is sin? | SELECT icao FROM table_name_83 WHERE iata = "sin" | [
2061,
2523,
329,
314,
8141,
46,
618,
262,
314,
13563,
318,
7813,
30,
46506,
220,
3970,
78,
16034,
3084,
62,
3672,
62,
5999,
33411,
1312,
1045,
796,
366,
31369,
1
] | [
1,
1,
1,
1,
1,
1,
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,
2523,
329,
314,
8141,
46,
618,
262,
314,
13563,
318,
7813,
30,
46506,
220,
3970,
78,
16034,
3084,
62,
3672,
62,
5999,
33411,
1312,
1045,
796,
366,
31369,
1
] |
Name the number of spring enrollment for sioux falls seminary | SELECT COUNT(enrollment__spring_2012_) FROM table_2076557_2 WHERE school = "Sioux Falls Seminary" | [
5376,
262,
1271,
286,
6076,
20753,
329,
33721,
22193,
8953,
5026,
3219,
46506,
327,
28270,
7,
268,
48108,
834,
16469,
62,
6999,
62,
8,
16034,
3084,
62,
1238,
4304,
41948,
62,
17,
33411,
1524,
796,
366,
42801,
22193,
17930,
12449,
3219,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6076,
20753,
329,
33721,
22193,
8953,
5026,
3219,
46506,
327,
28270,
7,
268,
48108,
834,
16469,
62,
6999,
62,
8,
16034,
3084,
62,
1238,
4304,
41948,
62,
17,
33411,
1524,
796,
366,
42801,
22193,
17930,
12449,
3219,
... |
how did patient 5849 go into the hospital the first time. | SELECT admissions.admission_type FROM admissions WHERE admissions.subject_id = 5849 ORDER BY admissions.admittime LIMIT 1 | [
4919,
750,
5827,
7618,
2920,
467,
656,
262,
4436,
262,
717,
640,
13,
46506,
25349,
13,
324,
3411,
62,
4906,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
7618,
2920,
38678,
11050,
25349,
13,
324,
20124,
524,
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,
1,
1,
1
] | [
4919,
750,
5827,
7618,
2920,
467,
656,
262,
4436,
262,
717,
640,
13,
46506,
25349,
13,
324,
3411,
62,
4906,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
7618,
2920,
38678,
11050,
25349,
13,
324,
20124,
524,
27564,
2043,
352
] |
Which airport is in Tokyo and has an ICAO of rjtt? | SELECT "Airport" FROM table_14651 WHERE "City" = 'tokyo' AND "ICAO" = 'rjtt' | [
13828,
9003,
318,
287,
11790,
290,
468,
281,
314,
8141,
46,
286,
374,
73,
926,
30,
46506,
366,
16170,
634,
1,
16034,
3084,
62,
1415,
40639,
33411,
366,
14941,
1,
796,
705,
83,
482,
8226,
6,
5357,
366,
25241,
46,
1,
796,
705,
81,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9003,
318,
287,
11790,
290,
468,
281,
314,
8141,
46,
286,
374,
73,
926,
30,
46506,
366,
16170,
634,
1,
16034,
3084,
62,
1415,
40639,
33411,
366,
14941,
1,
796,
705,
83,
482,
8226,
6,
5357,
366,
25241,
46,
1,
796,
705,
81,
... |
Who was the leading scorer in the match when the Golden State Warriors were visiting the Dallas Mavericks? | SELECT "Leading scorer" FROM table_10450 WHERE "Visitor" = 'golden state warriors' AND "Home" = 'dallas mavericks' | [
8241,
373,
262,
3756,
30664,
287,
262,
2872,
618,
262,
8407,
1812,
12090,
547,
10013,
262,
8533,
36002,
30,
46506,
366,
20451,
278,
30664,
1,
16034,
3084,
62,
13464,
1120,
33411,
366,
15854,
2072,
1,
796,
705,
24267,
268,
1181,
17119,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3756,
30664,
287,
262,
2872,
618,
262,
8407,
1812,
12090,
547,
10013,
262,
8533,
36002,
30,
46506,
366,
20451,
278,
30664,
1,
16034,
3084,
62,
13464,
1120,
33411,
366,
15854,
2072,
1,
796,
705,
24267,
268,
1181,
17119,
... |
what is procedure short title of subject id 2560? | SELECT procedures.short_title FROM procedures WHERE procedures.subject_id = "2560" | [
10919,
318,
8771,
1790,
3670,
286,
2426,
4686,
1679,
1899,
30,
46506,
9021,
13,
19509,
62,
7839,
16034,
9021,
33411,
9021,
13,
32796,
62,
312,
796,
366,
1495,
1899,
1
] | [
1,
1,
1,
1,
1,
1,
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,
8771,
1790,
3670,
286,
2426,
4686,
1679,
1899,
30,
46506,
9021,
13,
19509,
62,
7839,
16034,
9021,
33411,
9021,
13,
32796,
62,
312,
796,
366,
1495,
1899,
1
] |
Whate place has 18 points with lost less than 8? | SELECT COUNT("Place") FROM table_13093 WHERE "Points" = '18' AND "Lost" < '8' | [
1199,
378,
1295,
468,
1248,
2173,
351,
2626,
1342,
621,
807,
30,
46506,
327,
28270,
7203,
27271,
4943,
16034,
3084,
62,
12952,
6052,
33411,
366,
40710,
1,
796,
705,
1507,
6,
5357,
366,
31042,
1,
1279,
705,
23,
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
] | [
1199,
378,
1295,
468,
1248,
2173,
351,
2626,
1342,
621,
807,
30,
46506,
327,
28270,
7203,
27271,
4943,
16034,
3084,
62,
12952,
6052,
33411,
366,
40710,
1,
796,
705,
1507,
6,
5357,
366,
31042,
1,
1279,
705,
23,
6
] |
how many asian ethnic background patients were born before the year 2152? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "ASIAN" AND demographic.dob_year < "2152" | [
4919,
867,
355,
666,
9450,
4469,
3871,
547,
4642,
878,
262,
614,
362,
17827,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
38546,
414,
796,
366,
1921,
16868,
1,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4919,
867,
355,
666,
9450,
4469,
3871,
547,
4642,
878,
262,
614,
362,
17827,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
38546,
414,
796,
366,
1921,
16868,
1,
5357,
1... |
Which car won the 1.4litre to 1.8litre award in 2001? | SELECT "2001" FROM table_15086 WHERE "category" = '1.4litre to 1.8litre' | [
13828,
1097,
1839,
262,
352,
13,
19,
18250,
260,
284,
352,
13,
23,
18250,
260,
5764,
287,
5878,
30,
46506,
366,
14585,
1,
16034,
3084,
62,
8628,
4521,
33411,
366,
22872,
1,
796,
705,
16,
13,
19,
18250,
260,
284,
352,
13,
23,
18250... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1097,
1839,
262,
352,
13,
19,
18250,
260,
284,
352,
13,
23,
18250,
260,
5764,
287,
5878,
30,
46506,
366,
14585,
1,
16034,
3084,
62,
8628,
4521,
33411,
366,
22872,
1,
796,
705,
16,
13,
19,
18250,
260,
284,
352,
13,
23,
18250... |
For those records from the products and each product's manufacturer, find name and code , and group by attribute headquarter, and visualize them by a bar chart, sort from high to low by the Y-axis. | SELECT T1.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter, T1.Name ORDER BY T1.Code DESC | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1064,
1438,
290,
2438,
837,
290,
1448,
416,
11688,
1182,
24385,
11,
290,
38350,
606,
416,
257,
2318,
8262,
11,
3297,
422,
1029,
284,
1877,
416,
262,
575,
12,
22704,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1064,
1438,
290,
2438,
837,
290,
1448,
416,
11688,
1182,
24385,
11,
290,
38350,
606,
416,
257,
2318,
8262,
11,
3297,
422,
1029,
284,
1877,
416,
262,
575,
12,
22704,
1... |
What draft pick number was Andy Brereton? | SELECT MIN(pick__number) FROM table_28059992_5 WHERE player = "Andy Brereton" | [
2061,
4538,
2298,
1271,
373,
12382,
3719,
260,
1122,
30,
46506,
20625,
7,
27729,
834,
17618,
8,
16034,
3084,
62,
21033,
43452,
5892,
62,
20,
33411,
2137,
796,
366,
35314,
3719,
260,
1122,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4538,
2298,
1271,
373,
12382,
3719,
260,
1122,
30,
46506,
20625,
7,
27729,
834,
17618,
8,
16034,
3084,
62,
21033,
43452,
5892,
62,
20,
33411,
2137,
796,
366,
35314,
3719,
260,
1122,
1
] |
give me the number of patients whose admission year is less than 2152 and diagnoses short title is bph w/o urinary obs/luts? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2152" AND diagnoses.short_title = "BPH w/o urinary obs/LUTS" | [
26535,
502,
262,
1271,
286,
3871,
3025,
13938,
614,
318,
1342,
621,
362,
17827,
290,
40567,
1790,
3670,
318,
275,
746,
266,
14,
78,
38628,
10201,
14,
75,
5500,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
26535,
502,
262,
1271,
286,
3871,
3025,
13938,
614,
318,
1342,
621,
362,
17827,
290,
40567,
1790,
3670,
318,
275,
746,
266,
14,
78,
38628,
10201,
14,
75,
5500,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
31... |
Which Time has an Opponent of shamil abdurahimov? | SELECT time FROM table_name_39 WHERE opponent = "shamil abdurahimov" | [
13828,
3862,
468,
281,
9385,
3471,
286,
23565,
346,
450,
67,
333,
993,
44273,
30,
46506,
640,
16034,
3084,
62,
3672,
62,
2670,
33411,
6125,
796,
366,
1477,
321,
346,
450,
67,
333,
993,
44273,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3862,
468,
281,
9385,
3471,
286,
23565,
346,
450,
67,
333,
993,
44273,
30,
46506,
640,
16034,
3084,
62,
3672,
62,
2670,
33411,
6125,
796,
366,
1477,
321,
346,
450,
67,
333,
993,
44273,
1
] |
show me the number of patients whose discharge location is home health care and hospital stay is more than 7 days. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "HOME HEALTH CARE" AND demographic.days_stay > "7" | [
12860,
502,
262,
1271,
286,
3871,
3025,
17655,
4067,
318,
1363,
1535,
1337,
290,
4436,
2652,
318,
517,
621,
767,
1528,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
6381,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
12860,
502,
262,
1271,
286,
3871,
3025,
17655,
4067,
318,
1363,
1535,
1337,
290,
4436,
2652,
318,
517,
621,
767,
1528,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
6381,... |
In heat 4, what is Byun Hye-young's Nationality? | SELECT "Nationality" FROM table_68207 WHERE "Heat" = '4' AND "Name" = 'byun hye-young' | [
818,
4894,
604,
11,
644,
318,
2750,
403,
367,
5948,
12,
35465,
338,
2351,
414,
30,
46506,
366,
16186,
414,
1,
16034,
3084,
62,
3104,
22745,
33411,
366,
39596,
1,
796,
705,
19,
6,
5357,
366,
5376,
1,
796,
705,
1525,
403,
2537,
68,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4894,
604,
11,
644,
318,
2750,
403,
367,
5948,
12,
35465,
338,
2351,
414,
30,
46506,
366,
16186,
414,
1,
16034,
3084,
62,
3104,
22745,
33411,
366,
39596,
1,
796,
705,
19,
6,
5357,
366,
5376,
1,
796,
705,
1525,
403,
2537,
68,
... |
tell me when was the last time that patient 021-239662 measured heartrate until 28 days ago? | SELECT vitalperiodic.observationtime FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '021-239662')) AND NOT vitalperiodic.heartrate IS NU... | [
33331,
502,
618,
373,
262,
938,
640,
326,
5827,
657,
2481,
12,
23516,
39380,
8630,
2612,
4873,
1566,
2579,
1528,
2084,
30,
46506,
9204,
41007,
291,
13,
672,
3168,
341,
2435,
16034,
9204,
41007,
291,
33411,
9204,
41007,
291,
13,
26029,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
618,
373,
262,
938,
640,
326,
5827,
657,
2481,
12,
23516,
39380,
8630,
2612,
4873,
1566,
2579,
1528,
2084,
30,
46506,
9204,
41007,
291,
13,
672,
3168,
341,
2435,
16034,
9204,
41007,
291,
33411,
9204,
41007,
291,
13,
26029,
... |
How many positions had jersey number 32 | SELECT COUNT("Position") FROM table_17155 WHERE "No.(s)" = '32' | [
2437,
867,
6116,
550,
22383,
1271,
3933,
46506,
327,
28270,
7203,
26545,
4943,
16034,
3084,
62,
1558,
18742,
33411,
366,
2949,
12195,
82,
16725,
796,
705,
2624,
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
] | [
2437,
867,
6116,
550,
22383,
1271,
3933,
46506,
327,
28270,
7203,
26545,
4943,
16034,
3084,
62,
1558,
18742,
33411,
366,
2949,
12195,
82,
16725,
796,
705,
2624,
6
] |
How many networks are listed when the year is 2008? | SELECT COUNT("Network") FROM table_74387 WHERE "Year" = '2008' | [
2437,
867,
7686,
389,
5610,
618,
262,
614,
318,
3648,
30,
46506,
327,
28270,
7203,
26245,
4943,
16034,
3084,
62,
4524,
32220,
33411,
366,
17688,
1,
796,
705,
11528,
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
] | [
2437,
867,
7686,
389,
5610,
618,
262,
614,
318,
3648,
30,
46506,
327,
28270,
7203,
26245,
4943,
16034,
3084,
62,
4524,
32220,
33411,
366,
17688,
1,
796,
705,
11528,
6
] |
For the channel smaller than 63.2, what was the programming? | SELECT programming FROM table_name_16 WHERE channel < 63.2 | [
1890,
262,
6518,
4833,
621,
8093,
13,
17,
11,
644,
373,
262,
8300,
30,
46506,
8300,
16034,
3084,
62,
3672,
62,
1433,
33411,
6518,
1279,
8093,
13,
17
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1890,
262,
6518,
4833,
621,
8093,
13,
17,
11,
644,
373,
262,
8300,
30,
46506,
8300,
16034,
3084,
62,
3672,
62,
1433,
33411,
6518,
1279,
8093,
13,
17
] |
Name the landesliga sud for sg quelle f rth | SELECT "Landesliga S\u00fcd" FROM table_23596 WHERE "Bayernliga" = 'SG Quelle Fürth' | [
5376,
262,
1956,
274,
38910,
424,
67,
329,
264,
70,
627,
13485,
277,
374,
400,
46506,
366,
22342,
274,
38910,
311,
59,
84,
405,
69,
10210,
1,
16034,
3084,
62,
1954,
45734,
33411,
366,
15262,
1142,
38910,
1,
796,
705,
38475,
2264,
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
] | [
5376,
262,
1956,
274,
38910,
424,
67,
329,
264,
70,
627,
13485,
277,
374,
400,
46506,
366,
22342,
274,
38910,
311,
59,
84,
405,
69,
10210,
1,
16034,
3084,
62,
1954,
45734,
33411,
366,
15262,
1142,
38910,
1,
796,
705,
38475,
2264,
13... |
What position did the celebrity finish that entered on day 1 and exited on day 15? | SELECT finished FROM table_name_41 WHERE entered = "day 1" AND exited = "day 15" | [
2061,
2292,
750,
262,
16527,
5461,
326,
5982,
319,
1110,
352,
290,
34710,
319,
1110,
1315,
30,
46506,
5201,
16034,
3084,
62,
3672,
62,
3901,
33411,
5982,
796,
366,
820,
352,
1,
5357,
34710,
796,
366,
820,
1315,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2292,
750,
262,
16527,
5461,
326,
5982,
319,
1110,
352,
290,
34710,
319,
1110,
1315,
30,
46506,
5201,
16034,
3084,
62,
3672,
62,
3901,
33411,
5982,
796,
366,
820,
352,
1,
5357,
34710,
796,
366,
820,
1315,
1
] |
Find the first names and last names of the authors whose institution affiliation is 'Google'. | SELECT DISTINCT t1.fname, t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = "Google" | [
16742,
262,
717,
3891,
290,
938,
3891,
286,
262,
7035,
3025,
9901,
26218,
318,
705,
11708,
4458,
46506,
360,
8808,
1268,
4177,
256,
16,
13,
69,
3672,
11,
256,
16,
13,
75,
3672,
16034,
7035,
7054,
256,
16,
32357,
1268,
7035,
1056,
70... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
16742,
262,
717,
3891,
290,
938,
3891,
286,
262,
7035,
3025,
9901,
26218,
318,
705,
11708,
4458,
46506,
360,
8808,
1268,
4177,
256,
16,
13,
69,
3672,
11,
256,
16,
13,
75,
3672,
16034,
7035,
7054,
256,
16,
32357,
1268,
7035,
1056,
70... |
Where did the away team score 10.11 (71)? | SELECT "Venue" FROM table_53984 WHERE "Away team score" = '10.11 (71)' | [
8496,
750,
262,
1497,
1074,
4776,
838,
13,
1157,
357,
4869,
19427,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
20,
2670,
5705,
33411,
366,
32,
1014,
1074,
4776,
1,
796,
705,
940,
13,
1157,
357,
4869,
33047
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8496,
750,
262,
1497,
1074,
4776,
838,
13,
1157,
357,
4869,
19427,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
20,
2670,
5705,
33411,
366,
32,
1014,
1074,
4776,
1,
796,
705,
940,
13,
1157,
357,
4869,
33047
] |
What are the facility codes of the apartments with more than four bedrooms, and count them by a bar chart, I want to list by the y-axis from high to low. | SELECT facility_code, COUNT(facility_code) FROM Apartment_Facilities AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.bedroom_count > 4 GROUP BY facility_code ORDER BY COUNT(facility_code) DESC | [
2061,
389,
262,
6841,
12416,
286,
262,
19592,
351,
517,
621,
1440,
38529,
11,
290,
954,
606,
416,
257,
2318,
8262,
11,
314,
765,
284,
1351,
416,
262,
331,
12,
22704,
422,
1029,
284,
1877,
13,
46506,
6841,
62,
8189,
11,
327,
28270,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6841,
12416,
286,
262,
19592,
351,
517,
621,
1440,
38529,
11,
290,
954,
606,
416,
257,
2318,
8262,
11,
314,
765,
284,
1351,
416,
262,
331,
12,
22704,
422,
1029,
284,
1877,
13,
46506,
6841,
62,
8189,
11,
327,
28270,
... |
tell me about flights from ATLANTA to CHARLOTTE NORTH CAROLINA leaving on monday and arriving in CHARLOTTE | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight, state WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'CHARLOTTE' AND date_day.day_number = 21 AND date_day.month_number ... | [
33331,
502,
546,
13956,
422,
5161,
25697,
5603,
284,
28521,
43,
2394,
9328,
25273,
4221,
17368,
3535,
28893,
4305,
319,
285,
3204,
290,
14820,
287,
28521,
43,
29089,
33635,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
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... | [
33331,
502,
546,
13956,
422,
5161,
25697,
5603,
284,
28521,
43,
2394,
9328,
25273,
4221,
17368,
3535,
28893,
4305,
319,
285,
3204,
290,
14820,
287,
28521,
43,
29089,
33635,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
... |
What player has t3 as the place, with england united states as the country? | SELECT player FROM table_name_57 WHERE place = "t3" AND country = "england united states" | [
2061,
2137,
468,
256,
18,
355,
262,
1295,
11,
351,
1786,
1044,
16503,
2585,
355,
262,
1499,
30,
46506,
2137,
16034,
3084,
62,
3672,
62,
3553,
33411,
1295,
796,
366,
83,
18,
1,
5357,
1499,
796,
366,
1516,
1044,
16503,
2585,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2137,
468,
256,
18,
355,
262,
1295,
11,
351,
1786,
1044,
16503,
2585,
355,
262,
1499,
30,
46506,
2137,
16034,
3084,
62,
3672,
62,
3553,
33411,
1295,
796,
366,
83,
18,
1,
5357,
1499,
796,
366,
1516,
1044,
16503,
2585,
1
] |
What is the issue date of the volume with the minimum weeks on top? | SELECT Issue_Date FROM volume ORDER BY Weeks_on_Top LIMIT 1 | [
2061,
318,
262,
2071,
3128,
286,
262,
6115,
351,
262,
5288,
2745,
319,
1353,
30,
46506,
18232,
62,
10430,
16034,
6115,
38678,
11050,
33259,
62,
261,
62,
9126,
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
] | [
2061,
318,
262,
2071,
3128,
286,
262,
6115,
351,
262,
5288,
2745,
319,
1353,
30,
46506,
18232,
62,
10430,
16034,
6115,
38678,
11050,
33259,
62,
261,
62,
9126,
27564,
2043,
352
] |
How many sales took place with a peak of 1 for Boris? | SELECT COUNT(sales) FROM table_name_81 WHERE peak = 1 AND artist = "boris" | [
2437,
867,
4200,
1718,
1295,
351,
257,
9103,
286,
352,
329,
25026,
30,
46506,
327,
28270,
7,
82,
2040,
8,
16034,
3084,
62,
3672,
62,
6659,
33411,
9103,
796,
352,
5357,
6802,
796,
366,
2865,
271,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4200,
1718,
1295,
351,
257,
9103,
286,
352,
329,
25026,
30,
46506,
327,
28270,
7,
82,
2040,
8,
16034,
3084,
62,
3672,
62,
6659,
33411,
9103,
796,
352,
5357,
6802,
796,
366,
2865,
271,
1
] |
what is the surface for the week of october 25? | SELECT "Surface" FROM table_9218 WHERE "Week" = 'october 25' | [
10919,
318,
262,
4417,
329,
262,
1285,
286,
19318,
2023,
1679,
30,
46506,
366,
14214,
2550,
1,
16034,
3084,
62,
5892,
1507,
33411,
366,
20916,
1,
796,
705,
38441,
2023,
1679,
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
] | [
10919,
318,
262,
4417,
329,
262,
1285,
286,
19318,
2023,
1679,
30,
46506,
366,
14214,
2550,
1,
16034,
3084,
62,
5892,
1507,
33411,
366,
20916,
1,
796,
705,
38441,
2023,
1679,
6
] |
What event had the opponent Ryan Bow? | SELECT event FROM table_name_89 WHERE opponent = "ryan bow" | [
2061,
1785,
550,
262,
6125,
6047,
9740,
30,
46506,
1785,
16034,
3084,
62,
3672,
62,
4531,
33411,
6125,
796,
366,
29038,
9563,
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,
1785,
550,
262,
6125,
6047,
9740,
30,
46506,
1785,
16034,
3084,
62,
3672,
62,
4531,
33411,
6125,
796,
366,
29038,
9563,
1
] |
Which 2nd leg has pamesa valencia for team #2? | SELECT 2 AS nd_leg FROM table_name_52 WHERE team__number2 = "pamesa valencia" | [
13828,
362,
358,
1232,
468,
279,
1047,
64,
1188,
29634,
329,
1074,
1303,
17,
30,
46506,
362,
7054,
299,
67,
62,
1455,
16034,
3084,
62,
3672,
62,
4309,
33411,
1074,
834,
17618,
17,
796,
366,
79,
1047,
64,
1188,
29634,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
362,
358,
1232,
468,
279,
1047,
64,
1188,
29634,
329,
1074,
1303,
17,
30,
46506,
362,
7054,
299,
67,
62,
1455,
16034,
3084,
62,
3672,
62,
4309,
33411,
1074,
834,
17618,
17,
796,
366,
79,
1047,
64,
1188,
29634,
1
] |
when was patient 027-61708 given a procedure for the first time during the current hospital encounter? | 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 = '027-61708' AND patient.hospitaldischargetime IS NULL)) ORDER BY t... | [
12518,
373,
5827,
657,
1983,
12,
47941,
2919,
1813,
257,
8771,
329,
262,
717,
640,
1141,
262,
1459,
4436,
8791,
30,
46506,
3513,
13,
42487,
2435,
16034,
3513,
33411,
3513,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
12518,
373,
5827,
657,
1983,
12,
47941,
2919,
1813,
257,
8771,
329,
262,
717,
640,
1141,
262,
1459,
4436,
8791,
30,
46506,
3513,
13,
42487,
2435,
16034,
3513,
33411,
3513,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,... |
count the number of patients whose discharge location is left against medical advi and diagnoses short title is other pulmonary insuff? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.discharge_location = "LEFT AGAINST MEDICAL ADVI" AND diagnoses.short_title = "Other pulmonary insuff" | [
9127,
262,
1271,
286,
3871,
3025,
17655,
4067,
318,
1364,
1028,
3315,
1354,
72,
290,
40567,
1790,
3670,
318,
584,
45105,
1035,
1648,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
214... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3871,
3025,
17655,
4067,
318,
1364,
1028,
3315,
1354,
72,
290,
40567,
1790,
3670,
318,
584,
45105,
1035,
1648,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
214... |
Which Lost has Points smaller than 12, and a Drawn larger than 1? | SELECT COUNT(lost) FROM table_name_39 WHERE points < 12 AND drawn > 1 | [
13828,
9164,
468,
11045,
4833,
621,
1105,
11,
290,
257,
50061,
4025,
621,
352,
30,
46506,
327,
28270,
7,
33224,
8,
16034,
3084,
62,
3672,
62,
2670,
33411,
2173,
1279,
1105,
5357,
7428,
1875,
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
] | [
13828,
9164,
468,
11045,
4833,
621,
1105,
11,
290,
257,
50061,
4025,
621,
352,
30,
46506,
327,
28270,
7,
33224,
8,
16034,
3084,
62,
3672,
62,
2670,
33411,
2173,
1279,
1105,
5357,
7428,
1875,
352
] |
Which Away team has the Home team of Carlton? | SELECT away_team FROM table_name_2 WHERE home_team = "carlton" | [
13828,
21986,
1074,
468,
262,
5995,
1074,
286,
44348,
30,
46506,
1497,
62,
15097,
16034,
3084,
62,
3672,
62,
17,
33411,
1363,
62,
15097,
796,
366,
66,
7063,
1122,
1
] | [
1,
1,
1,
1,
1,
1,
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,
21986,
1074,
468,
262,
5995,
1074,
286,
44348,
30,
46506,
1497,
62,
15097,
16034,
3084,
62,
3672,
62,
17,
33411,
1363,
62,
15097,
796,
366,
66,
7063,
1122,
1
] |
what flights depart BALTIMORE on friday and arrive in SAN FRANCISCO by 2000 | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE ((date_day.day_number = 25 AND date_day.month_number = 6 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.arrival_time <... | [
10919,
13956,
6313,
347,
31429,
3955,
6965,
319,
1216,
2567,
290,
9240,
287,
37376,
8782,
20940,
1797,
8220,
416,
4751,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13956,
6313,
347,
31429,
3955,
6965,
319,
1216,
2567,
290,
9240,
287,
37376,
8782,
20940,
1797,
8220,
416,
4751,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
... |
tell me the cost of a prescription drug called lorazepam 0.5 mg tab? | SELECT DISTINCT cost.cost FROM cost WHERE cost.eventtype = 'medication' AND cost.eventid IN (SELECT medication.medicationid FROM medication WHERE medication.drugname = 'lorazepam 0.5 mg tab') | [
33331,
502,
262,
1575,
286,
257,
15077,
2563,
1444,
300,
273,
1031,
538,
321,
657,
13,
20,
10527,
7400,
30,
46506,
360,
8808,
1268,
4177,
1575,
13,
15805,
16034,
1575,
33411,
1575,
13,
15596,
4906,
796,
705,
1150,
3299,
6,
5357,
1575,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1575,
286,
257,
15077,
2563,
1444,
300,
273,
1031,
538,
321,
657,
13,
20,
10527,
7400,
30,
46506,
360,
8808,
1268,
4177,
1575,
13,
15805,
16034,
1575,
33411,
1575,
13,
15596,
4906,
796,
705,
1150,
3299,
6,
5357,
1575,... |
Which Frequency MHz is the highest one that has a Call sign of k241an? | SELECT MAX("Frequency MHz") FROM table_38059 WHERE "Call sign" = 'k241an' | [
13828,
31902,
19805,
318,
262,
4511,
530,
326,
468,
257,
4889,
1051,
286,
479,
28872,
272,
30,
46506,
25882,
7203,
37,
28707,
19805,
4943,
16034,
3084,
62,
23734,
3270,
33411,
366,
14134,
1051,
1,
796,
705,
74,
28872,
272,
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,
31902,
19805,
318,
262,
4511,
530,
326,
468,
257,
4889,
1051,
286,
479,
28872,
272,
30,
46506,
25882,
7203,
37,
28707,
19805,
4943,
16034,
3084,
62,
23734,
3270,
33411,
366,
14134,
1051,
1,
796,
705,
74,
28872,
272,
6
] |
Name the average round for jacksonville | SELECT AVG(round) FROM table_name_89 WHERE place = "jacksonville" | [
5376,
262,
2811,
2835,
329,
14509,
1559,
4244,
46506,
35224,
7,
744,
8,
16034,
3084,
62,
3672,
62,
4531,
33411,
1295,
796,
366,
19650,
1559,
4244,
1
] | [
1,
1,
1,
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,
2811,
2835,
329,
14509,
1559,
4244,
46506,
35224,
7,
744,
8,
16034,
3084,
62,
3672,
62,
4531,
33411,
1295,
796,
366,
19650,
1559,
4244,
1
] |
ground transportation in DENVER | SELECT DISTINCT ground_service.transport_type FROM city, ground_service WHERE city.city_name = 'DENVER' AND ground_service.city_code = city.city_code | [
2833,
9358,
287,
37692,
28884,
36,
16779,
360,
8808,
1268,
4177,
2323,
62,
15271,
13,
7645,
634,
62,
4906,
16034,
1748,
11,
2323,
62,
15271,
33411,
1748,
13,
19205,
62,
3672,
796,
705,
41819,
5959,
6,
5357,
2323,
62,
15271,
13,
19205,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2833,
9358,
287,
37692,
28884,
36,
16779,
360,
8808,
1268,
4177,
2323,
62,
15271,
13,
7645,
634,
62,
4906,
16034,
1748,
11,
2323,
62,
15271,
33411,
1748,
13,
19205,
62,
3672,
796,
705,
41819,
5959,
6,
5357,
2323,
62,
15271,
13,
19205,... |
What is the Date for the game at michie stadium west point, ny? | SELECT "Date" FROM table_40983 WHERE "Location" = 'michie stadium • west point, ny' | [
2061,
318,
262,
7536,
329,
262,
983,
379,
285,
488,
494,
10308,
7421,
966,
11,
299,
88,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
1821,
4089,
18,
33411,
366,
14749,
1,
796,
705,
76,
488,
494,
10308,
5595,
7421,
966,
11,
299,
88,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7536,
329,
262,
983,
379,
285,
488,
494,
10308,
7421,
966,
11,
299,
88,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
1821,
4089,
18,
33411,
366,
14749,
1,
796,
705,
76,
488,
494,
10308,
5595,
7421,
966,
11,
299,
88,
... |
what is the number of patients whose marital status is married and procedure icd9 code is 3607? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.marital_status = "MARRIED" AND procedures.icd9_code = "3607" | [
10919,
318,
262,
1271,
286,
3871,
3025,
29555,
3722,
318,
6405,
290,
8771,
14158,
67,
24,
2438,
318,
11470,
22,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1271,
286,
3871,
3025,
29555,
3722,
318,
6405,
290,
8771,
14158,
67,
24,
2438,
318,
11470,
22,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021... |
Which 2011 has a 2004 smaller than 271,691, and a Country or territory of vietnam, and a 2009 larger than 265,414? | SELECT AVG("2011") FROM table_65193 WHERE "2004" < '271,691' AND "Country or territory" = 'vietnam' AND "2009" > '265,414' | [
13828,
2813,
468,
257,
5472,
4833,
621,
33797,
11,
49541,
11,
290,
257,
12946,
393,
7674,
286,
410,
1155,
7402,
11,
290,
257,
3717,
4025,
621,
32090,
11,
37309,
30,
46506,
35224,
7203,
9804,
4943,
16034,
3084,
62,
2996,
24943,
33411,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2813,
468,
257,
5472,
4833,
621,
33797,
11,
49541,
11,
290,
257,
12946,
393,
7674,
286,
410,
1155,
7402,
11,
290,
257,
3717,
4025,
621,
32090,
11,
37309,
30,
46506,
35224,
7203,
9804,
4943,
16034,
3084,
62,
2996,
24943,
33411,
... |
How many people lived in the district with a code GP in 2011? | SELECT MIN("Population (2011 Census)") FROM table_3954 WHERE "Code" = 'GP' | [
2437,
867,
661,
5615,
287,
262,
4783,
351,
257,
2438,
14714,
287,
2813,
30,
46506,
20625,
7203,
45251,
357,
9804,
20962,
8,
4943,
16034,
3084,
62,
2670,
4051,
33411,
366,
10669,
1,
796,
705,
16960,
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
] | [
2437,
867,
661,
5615,
287,
262,
4783,
351,
257,
2438,
14714,
287,
2813,
30,
46506,
20625,
7203,
45251,
357,
9804,
20962,
8,
4943,
16034,
3084,
62,
2670,
4051,
33411,
366,
10669,
1,
796,
705,
16960,
6
] |
who are all the players for armwood high school | SELECT "Player" FROM table_17093 WHERE "School" = 'Armwood High School' | [
8727,
389,
477,
262,
1938,
329,
3211,
3822,
1029,
1524,
46506,
366,
14140,
1,
16034,
3084,
62,
1558,
2931,
18,
33411,
366,
26130,
1,
796,
705,
26560,
3822,
3334,
3961,
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
] | [
8727,
389,
477,
262,
1938,
329,
3211,
3822,
1029,
1524,
46506,
366,
14140,
1,
16034,
3084,
62,
1558,
2931,
18,
33411,
366,
26130,
1,
796,
705,
26560,
3822,
3334,
3961,
6
] |
Between EECS 540 and EECS 628 ; which is the easiest ? | SELECT DISTINCT course.number FROM course INNER JOIN program_course ON program_course.course_id = course.course_id WHERE (course.number = 540 OR course.number = 628) AND program_course.workload = (SELECT MIN(PROGRAM_COURSEalias1.workload) FROM program_course AS PROGRAM_COURSEalias1 INNER JOIN course AS COURSEalias1 ON ... | [
25262,
412,
2943,
50,
38190,
290,
412,
2943,
50,
718,
2078,
2162,
543,
318,
262,
16638,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
17618,
16034,
1781,
3268,
21479,
32357,
1268,
1430,
62,
17319,
6177,
1430,
62,
17319,
13,
17319,
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... | [
25262,
412,
2943,
50,
38190,
290,
412,
2943,
50,
718,
2078,
2162,
543,
318,
262,
16638,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
17618,
16034,
1781,
3268,
21479,
32357,
1268,
1430,
62,
17319,
6177,
1430,
62,
17319,
13,
17319,
62,
... |
Questions answered before they were asked. | SELECT a.Id AS "post_link" FROM Posts AS q JOIN Posts AS a ON a.ParentId = q.Id WHERE q.CreationDate > a.CreationDate ORDER BY a.CreationDate DESC | [
35741,
9373,
878,
484,
547,
1965,
13,
46506,
257,
13,
7390,
7054,
366,
7353,
62,
8726,
1,
16034,
12043,
7054,
10662,
32357,
1268,
12043,
7054,
257,
6177,
257,
13,
24546,
7390,
796,
10662,
13,
7390,
33411,
10662,
13,
12443,
341,
10430,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
35741,
9373,
878,
484,
547,
1965,
13,
46506,
257,
13,
7390,
7054,
366,
7353,
62,
8726,
1,
16034,
12043,
7054,
10662,
32357,
1268,
12043,
7054,
257,
6177,
257,
13,
24546,
7390,
796,
10662,
13,
7390,
33411,
10662,
13,
12443,
341,
10430,
... |
How many residents does each property have? List property id and resident count with a scatter chart. | SELECT T1.property_id, COUNT(*) FROM Properties AS T1 JOIN Residents AS T2 ON T1.property_id = T2.property_id GROUP BY T1.property_id | [
2437,
867,
5085,
857,
1123,
3119,
423,
30,
7343,
3119,
4686,
290,
6623,
954,
351,
257,
41058,
8262,
13,
46506,
309,
16,
13,
26745,
62,
312,
11,
327,
28270,
7,
28104,
16034,
24946,
7054,
309,
16,
32357,
1268,
29602,
7054,
309,
17,
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... | [
2437,
867,
5085,
857,
1123,
3119,
423,
30,
7343,
3119,
4686,
290,
6623,
954,
351,
257,
41058,
8262,
13,
46506,
309,
16,
13,
26745,
62,
312,
11,
327,
28270,
7,
28104,
16034,
24946,
7054,
309,
16,
32357,
1268,
29602,
7054,
309,
17,
61... |
What is the nickname of Drexel University? | SELECT nickname FROM table_19210115_1 WHERE institution = "Drexel University" | [
2061,
318,
262,
21814,
286,
360,
21510,
417,
2059,
30,
46506,
21814,
16034,
3084,
62,
1129,
2481,
486,
1314,
62,
16,
33411,
9901,
796,
366,
35,
21510,
417,
2059,
1
] | [
1,
1,
1,
1,
1,
1,
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,
21814,
286,
360,
21510,
417,
2059,
30,
46506,
21814,
16034,
3084,
62,
1129,
2481,
486,
1314,
62,
16,
33411,
9901,
796,
366,
35,
21510,
417,
2059,
1
] |
is the e code less than 1950 ? | SELECT (SELECT "year" FROM table_203_248 WHERE "code" = 'e') < 1950 | [
271,
262,
304,
2438,
1342,
621,
11445,
5633,
46506,
357,
46506,
366,
1941,
1,
16034,
3084,
62,
22416,
62,
23045,
33411,
366,
8189,
1,
796,
705,
68,
11537,
1279,
11445
] | [
1,
1,
1,
1,
1,
1,
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,
304,
2438,
1342,
621,
11445,
5633,
46506,
357,
46506,
366,
1941,
1,
16034,
3084,
62,
22416,
62,
23045,
33411,
366,
8189,
1,
796,
705,
68,
11537,
1279,
11445
] |
Top 1000 developers of Pakistan. | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation FROM Users WHERE LOWER(Location) LIKE '%germany%' OR UPPER(Location) LIKE '%DE%' ORDER BY Reputation DESC LIMIT 1000 | [
9126,
8576,
6505,
286,
7648,
13,
46506,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
1432,
7094,
22196,
34,
8,
7054,
25113,
1600,
5121,
7054,
366,
7220,
62,
8726,
1600,
1432,
7094,
16034,
18987,
33411,
406,
36048,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
9126,
8576,
6505,
286,
7648,
13,
46506,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
1432,
7094,
22196,
34,
8,
7054,
25113,
1600,
5121,
7054,
366,
7220,
62,
8726,
1600,
1432,
7094,
16034,
18987,
33411,
406,
36048,
... |
how many tables are in asia ? | SELECT COUNT(*) FROM table_204_277 WHERE "region" = 'asia' | [
4919,
867,
8893,
389,
287,
355,
544,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
18638,
62,
27019,
33411,
366,
36996,
1,
796,
705,
23218,
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
] | [
4919,
867,
8893,
389,
287,
355,
544,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
18638,
62,
27019,
33411,
366,
36996,
1,
796,
705,
23218,
6
] |
what is the total number of locations ? | SELECT COUNT("location") FROM table_204_338 | [
10919,
318,
262,
2472,
1271,
286,
7064,
5633,
46506,
327,
28270,
7203,
24886,
4943,
16034,
3084,
62,
18638,
62,
28460
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
2472,
1271,
286,
7064,
5633,
46506,
327,
28270,
7203,
24886,
4943,
16034,
3084,
62,
18638,
62,
28460
] |
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, a line chart shows the trend of employee_id over hire_date , and rank by the X-axis in ascending. | SELECT HIRE_DATE, EMPLOYEE_ID FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 ORDER BY HIRE_DATE | [
1890,
883,
4409,
3025,
9588,
318,
287,
262,
2837,
286,
38055,
290,
1105,
830,
290,
5810,
318,
407,
9242,
393,
5011,
1271,
857,
407,
4961,
284,
2319,
11,
257,
1627,
8262,
2523,
262,
5182,
286,
6538,
62,
312,
625,
11078,
62,
4475,
837... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4409,
3025,
9588,
318,
287,
262,
2837,
286,
38055,
290,
1105,
830,
290,
5810,
318,
407,
9242,
393,
5011,
1271,
857,
407,
4961,
284,
2319,
11,
257,
1627,
8262,
2523,
262,
5182,
286,
6538,
62,
312,
625,
11078,
62,
4475,
837... |
What was the minimum attendance against the New Orleans Saints? | SELECT MIN("Attendance") FROM table_20486 WHERE "Opponent" = 'New Orleans Saints' | [
2061,
373,
262,
5288,
14858,
1028,
262,
968,
12255,
13048,
30,
46506,
20625,
7203,
8086,
437,
590,
4943,
16034,
3084,
62,
1238,
34251,
33411,
366,
27524,
3471,
1,
796,
705,
3791,
12255,
13048,
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,
5288,
14858,
1028,
262,
968,
12255,
13048,
30,
46506,
20625,
7203,
8086,
437,
590,
4943,
16034,
3084,
62,
1238,
34251,
33411,
366,
27524,
3471,
1,
796,
705,
3791,
12255,
13048,
6
] |
Tell me the distinct block codes where some rooms are available. | SELECT DISTINCT blockcode FROM room WHERE unavailable = 0 | [
24446,
502,
262,
7310,
2512,
12416,
810,
617,
9519,
389,
1695,
13,
46506,
360,
8808,
1268,
4177,
2512,
8189,
16034,
2119,
33411,
23485,
796,
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
] | [
24446,
502,
262,
7310,
2512,
12416,
810,
617,
9519,
389,
1695,
13,
46506,
360,
8808,
1268,
4177,
2512,
8189,
16034,
2119,
33411,
23485,
796,
657
] |
What number is on the car that Geoffrey Bodine drives? | SELECT MIN(_number) FROM table_2182170_1 WHERE driver_s_ = "Geoffrey Bodine" | [
2061,
1271,
318,
319,
262,
1097,
326,
42803,
26285,
500,
10182,
30,
46506,
20625,
28264,
17618,
8,
16034,
3084,
62,
17,
24294,
17279,
62,
16,
33411,
4639,
62,
82,
62,
796,
366,
10082,
2364,
4364,
26285,
500,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1271,
318,
319,
262,
1097,
326,
42803,
26285,
500,
10182,
30,
46506,
20625,
28264,
17618,
8,
16034,
3084,
62,
17,
24294,
17279,
62,
16,
33411,
4639,
62,
82,
62,
796,
366,
10082,
2364,
4364,
26285,
500,
1
] |
when do planes leave BOSTON for SAN FRANCISCO | SELECT DISTINCT flight.departure_time FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BOSTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SA... | [
12518,
466,
13016,
2666,
347,
10892,
1340,
329,
37376,
8782,
20940,
37719,
14058,
16779,
360,
8808,
1268,
4177,
5474,
13,
10378,
433,
495,
62,
2435,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
152... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
12518,
466,
13016,
2666,
347,
10892,
1340,
329,
37376,
8782,
20940,
37719,
14058,
16779,
360,
8808,
1268,
4177,
5474,
13,
10378,
433,
495,
62,
2435,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
152... |
how many patients whose diagnoses short title is schizophrenia nos-unspec and lab test abnormal status is abnormal? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.short_title = "Schizophrenia NOS-unspec" AND lab.flag = "abnormal" | [
4919,
867,
3871,
3025,
40567,
1790,
3670,
318,
22794,
43630,
12,
403,
16684,
290,
2248,
1332,
18801,
3722,
318,
18801,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
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,
1,
1,
1,
1... | [
4919,
867,
3871,
3025,
40567,
1790,
3670,
318,
22794,
43630,
12,
403,
16684,
290,
2248,
1332,
18801,
3722,
318,
18801,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,... |
Questions answered by more than 3 'Top N' users. Thanks to https://codereview.stackexchange.com/a/244191/103675 for the improvements! | SELECT Q.Id AS "post_link", Q.AnswerCount FROM Posts AS Q WHERE Q.AnswerCount >= 3 AND (SELECT COUNT(DISTINCT A.OwnerUserId) FROM Posts AS A WHERE A.ParentId = Q.Id AND A.OwnerUserId IN (SELECT TOP(100) AS Id FROM Users ORDER BY Reputation DESC)) = 3 | [
35741,
9373,
416,
517,
621,
513,
705,
9126,
399,
6,
2985,
13,
6930,
284,
3740,
1378,
19815,
567,
1177,
13,
301,
330,
365,
87,
3803,
13,
785,
14,
64,
14,
25707,
26492,
14,
940,
2623,
2425,
329,
262,
8561,
0,
46506,
1195,
13,
7390,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
35741,
9373,
416,
517,
621,
513,
705,
9126,
399,
6,
2985,
13,
6930,
284,
3740,
1378,
19815,
567,
1177,
13,
301,
330,
365,
87,
3803,
13,
785,
14,
64,
14,
25707,
26492,
14,
940,
2623,
2425,
329,
262,
8561,
0,
46506,
1195,
13,
7390,
... |
what were the top four most commonly prescribed drugs to patients in the same hospital visit after they were diagnosed with fracture two ribs-closed? | SELECT t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime, admissions.hadm_id FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_... | [
10919,
547,
262,
1353,
1440,
749,
8811,
14798,
5010,
284,
3871,
287,
262,
976,
4436,
3187,
706,
484,
547,
14641,
351,
31846,
734,
27105,
12,
20225,
30,
46506,
256,
18,
13,
30349,
16034,
357,
46506,
256,
17,
13,
30349,
11,
360,
24290,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
547,
262,
1353,
1440,
749,
8811,
14798,
5010,
284,
3871,
287,
262,
976,
4436,
3187,
706,
484,
547,
14641,
351,
31846,
734,
27105,
12,
20225,
30,
46506,
256,
18,
13,
30349,
16034,
357,
46506,
256,
17,
13,
30349,
11,
360,
24290,
... |
What is the average number of goals for a player who had a Leeds career from 1960 1964 and made fewer than 120 appearances? | SELECT AVG(goals) FROM table_name_68 WHERE leeds_career = "1960–1964" AND appearances < 120 | [
2061,
318,
262,
2811,
1271,
286,
4661,
329,
257,
2137,
508,
550,
257,
29293,
3451,
422,
9507,
17575,
290,
925,
7380,
621,
7982,
11057,
30,
46506,
35224,
7,
2188,
874,
8,
16034,
3084,
62,
3672,
62,
3104,
33411,
443,
5379,
62,
6651,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2811,
1271,
286,
4661,
329,
257,
2137,
508,
550,
257,
29293,
3451,
422,
9507,
17575,
290,
925,
7380,
621,
7982,
11057,
30,
46506,
35224,
7,
2188,
874,
8,
16034,
3084,
62,
3672,
62,
3104,
33411,
443,
5379,
62,
6651,
2... |
what specimen test has been given on their last hospital visit to patient 025-19271 for the first time? | SELECT microlab.culturesite FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '025-19271' AND NOT patient.hospitaldischargetime IS NULL ORDER BY pati... | [
10919,
31674,
1332,
468,
587,
1813,
319,
511,
938,
4436,
3187,
284,
5827,
657,
1495,
12,
1129,
28977,
329,
262,
717,
640,
30,
46506,
4580,
23912,
13,
40820,
942,
578,
16034,
4580,
23912,
33411,
4580,
23912,
13,
26029,
20850,
31712,
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... | [
10919,
31674,
1332,
468,
587,
1813,
319,
511,
938,
4436,
3187,
284,
5827,
657,
1495,
12,
1129,
28977,
329,
262,
717,
640,
30,
46506,
4580,
23912,
13,
40820,
942,
578,
16034,
4580,
23912,
33411,
4580,
23912,
13,
26029,
20850,
31712,
312,... |
List the names of all distinct races in reversed lexicographic order? | SELECT DISTINCT name FROM races ORDER BY name DESC | [
8053,
262,
3891,
286,
477,
7310,
9558,
287,
17687,
31191,
291,
6826,
1502,
30,
46506,
360,
8808,
1268,
4177,
1438,
16034,
9558,
38678,
11050,
1438,
22196,
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
] | [
8053,
262,
3891,
286,
477,
7310,
9558,
287,
17687,
31191,
291,
6826,
1502,
30,
46506,
360,
8808,
1268,
4177,
1438,
16034,
9558,
38678,
11050,
1438,
22196,
34
] |
What station has a genre of talk music and is in Malay English language? | SELECT "Station" FROM table_40808 WHERE "Genre" = 'talk music' AND "Language" = 'malay english' | [
2061,
4429,
468,
257,
12121,
286,
1561,
2647,
290,
318,
287,
4434,
323,
3594,
3303,
30,
46506,
366,
12367,
1,
16034,
3084,
62,
1821,
28362,
33411,
366,
13746,
260,
1,
796,
705,
16620,
2647,
6,
5357,
366,
32065,
1,
796,
705,
7617,
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
] | [
2061,
4429,
468,
257,
12121,
286,
1561,
2647,
290,
318,
287,
4434,
323,
3594,
3303,
30,
46506,
366,
12367,
1,
16034,
3084,
62,
1821,
28362,
33411,
366,
13746,
260,
1,
796,
705,
16620,
2647,
6,
5357,
366,
32065,
1,
796,
705,
7617,
32... |
find the number of patients who were admitted to the hospital. | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient | [
19796,
262,
1271,
286,
3871,
508,
547,
6848,
284,
262,
4436,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
5827,
13,
403,
1557,
538,
312,
8,
16034,
5827
] | [
1,
1,
1,
1,
1,
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,
262,
1271,
286,
3871,
508,
547,
6848,
284,
262,
4436,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
5827,
13,
403,
1557,
538,
312,
8,
16034,
5827
] |
where is a good arabic in mountain view ? | SELECT location.house_number, restaurant.name FROM location, restaurant WHERE location.city_name = 'mountain view' AND restaurant.food_type = 'arabic' AND restaurant.id = location.restaurant_id AND restaurant.rating > 2.5 | [
3003,
318,
257,
922,
610,
397,
291,
287,
8598,
1570,
5633,
46506,
4067,
13,
4803,
62,
17618,
11,
7072,
13,
3672,
16034,
4067,
11,
7072,
33411,
4067,
13,
19205,
62,
3672,
796,
705,
14948,
391,
1570,
6,
5357,
7072,
13,
19425,
62,
4906... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3003,
318,
257,
922,
610,
397,
291,
287,
8598,
1570,
5633,
46506,
4067,
13,
4803,
62,
17618,
11,
7072,
13,
3672,
16034,
4067,
11,
7072,
33411,
4067,
13,
19205,
62,
3672,
796,
705,
14948,
391,
1570,
6,
5357,
7072,
13,
19425,
62,
4906... |
what is the number of patients whose death status is 1 and drug name is rosiglitazone maleate? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.expire_flag = "1" AND prescriptions.drug = "Rosiglitazone Maleate" | [
10919,
318,
262,
1271,
286,
3871,
3025,
1918,
3722,
318,
352,
290,
2563,
1438,
318,
686,
82,
328,
18250,
1031,
505,
4257,
378,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1271,
286,
3871,
3025,
1918,
3722,
318,
352,
290,
2563,
1438,
318,
686,
82,
328,
18250,
1031,
505,
4257,
378,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
... |
Where was the FC match with a score of 12 played? | SELECT location FROM table_name_45 WHERE fc_matches = "12" | [
8496,
373,
262,
10029,
2872,
351,
257,
4776,
286,
1105,
2826,
30,
46506,
4067,
16034,
3084,
62,
3672,
62,
2231,
33411,
277,
66,
62,
6759,
2052,
796,
366,
1065,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8496,
373,
262,
10029,
2872,
351,
257,
4776,
286,
1105,
2826,
30,
46506,
4067,
16034,
3084,
62,
3672,
62,
2231,
33411,
277,
66,
62,
6759,
2052,
796,
366,
1065,
1
] |
Find the title of course that is provided by Statistics but not Psychology departments. | SELECT title FROM course WHERE dept_name = 'Statistics' EXCEPT SELECT title FROM course WHERE dept_name = 'Psychology' | [
16742,
262,
3670,
286,
1781,
326,
318,
2810,
416,
14370,
475,
407,
18430,
13346,
13,
46506,
3670,
16034,
1781,
33411,
390,
457,
62,
3672,
796,
705,
48346,
6,
7788,
42006,
33493,
3670,
16034,
1781,
33411,
390,
457,
62,
3672,
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
] | [
16742,
262,
3670,
286,
1781,
326,
318,
2810,
416,
14370,
475,
407,
18430,
13346,
13,
46506,
3670,
16034,
1781,
33411,
390,
457,
62,
3672,
796,
705,
48346,
6,
7788,
42006,
33493,
3670,
16034,
1781,
33411,
390,
457,
62,
3672,
796,
705,
... |
What type of surface was used for the game played on September 20, 1993? | SELECT "Surface" FROM table_6977 WHERE "Date" = 'september 20, 1993' | [
2061,
2099,
286,
4417,
373,
973,
329,
262,
983,
2826,
319,
2693,
1160,
11,
9656,
30,
46506,
366,
14214,
2550,
1,
16034,
3084,
62,
3388,
3324,
33411,
366,
10430,
1,
796,
705,
325,
457,
1491,
1160,
11,
9656,
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
] | [
2061,
2099,
286,
4417,
373,
973,
329,
262,
983,
2826,
319,
2693,
1160,
11,
9656,
30,
46506,
366,
14214,
2550,
1,
16034,
3084,
62,
3388,
3324,
33411,
366,
10430,
1,
796,
705,
325,
457,
1491,
1160,
11,
9656,
6
] |
what is the number of patients whose gender is f and admission type is newborn? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = "F" AND demographic.admission_type = "NEWBORN" | [
10919,
318,
262,
1271,
286,
3871,
3025,
5279,
318,
277,
290,
13938,
2099,
318,
23856,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
8388,
796,
366,
37,
1,
5357,
16728,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1271,
286,
3871,
3025,
5279,
318,
277,
290,
13938,
2099,
318,
23856,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
8388,
796,
366,
37,
1,
5357,
16728,
... |
R Trends (# Questions per Tag per Month) nunit vs. xunit. | SELECT DATEADD(mm, (YEAR(Posts.CreationDate) - 1900) * 12 + MONTH(Posts.CreationDate), 0) AS Month, Tags.TagName, COUNT(*) AS Questions FROM Tags LEFT JOIN PostTags ON PostTags.TagId = Tags.Id LEFT JOIN Posts ON Posts.Id = PostTags.PostId LEFT JOIN PostTypes ON PostTypes.Id = Posts.PostTypeId WHERE Tags.TagName IN ('nu... | [
49,
34308,
17426,
20396,
583,
17467,
583,
16061,
8,
299,
20850,
3691,
13,
2124,
20850,
13,
46506,
360,
6158,
29266,
7,
3020,
11,
357,
56,
17133,
7,
21496,
13,
12443,
341,
10430,
8,
532,
21489,
8,
1635,
1105,
1343,
25000,
4221,
7,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
49,
34308,
17426,
20396,
583,
17467,
583,
16061,
8,
299,
20850,
3691,
13,
2124,
20850,
13,
46506,
360,
6158,
29266,
7,
3020,
11,
357,
56,
17133,
7,
21496,
13,
12443,
341,
10430,
8,
532,
21489,
8,
1635,
1105,
1343,
25000,
4221,
7,
21... |
What was the decision of the Kings game when Chicago was the visiting team? | SELECT decision FROM table_name_71 WHERE visitor = "chicago" | [
2061,
373,
262,
2551,
286,
262,
10578,
983,
618,
4842,
373,
262,
10013,
1074,
30,
46506,
2551,
16034,
3084,
62,
3672,
62,
4869,
33411,
21493,
796,
366,
354,
4549,
1
] | [
1,
1,
1,
1,
1,
1,
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,
2551,
286,
262,
10578,
983,
618,
4842,
373,
262,
10013,
1074,
30,
46506,
2551,
16034,
3084,
62,
3672,
62,
4869,
33411,
21493,
796,
366,
354,
4549,
1
] |
What location shows round was 1, and against Ricky Shivers? | SELECT location FROM table_name_43 WHERE round = 1 AND opponent = "ricky shivers" | [
2061,
4067,
2523,
2835,
373,
352,
11,
290,
1028,
31668,
911,
1191,
30,
46506,
4067,
16034,
3084,
62,
3672,
62,
3559,
33411,
2835,
796,
352,
5357,
6125,
796,
366,
5557,
88,
427,
1191,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4067,
2523,
2835,
373,
352,
11,
290,
1028,
31668,
911,
1191,
30,
46506,
4067,
16034,
3084,
62,
3672,
62,
3559,
33411,
2835,
796,
352,
5357,
6125,
796,
366,
5557,
88,
427,
1191,
1
] |
how many times is the week # is audition? | SELECT COUNT(original_artist) FROM table_27075510_1 WHERE week__number = "Audition" | [
4919,
867,
1661,
318,
262,
1285,
1303,
318,
31678,
30,
46506,
327,
28270,
7,
14986,
62,
49016,
8,
16034,
3084,
62,
20233,
2425,
33690,
62,
16,
33411,
1285,
834,
17618,
796,
366,
16353,
653,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
318,
262,
1285,
1303,
318,
31678,
30,
46506,
327,
28270,
7,
14986,
62,
49016,
8,
16034,
3084,
62,
20233,
2425,
33690,
62,
16,
33411,
1285,
834,
17618,
796,
366,
16353,
653,
1
] |
Who published the title in the pet-raising simulator genre? | SELECT publisher FROM table_21458142_1 WHERE genre = "Pet-raising simulator" | [
8241,
3199,
262,
3670,
287,
262,
4273,
12,
32741,
35375,
12121,
30,
46506,
9991,
16034,
3084,
62,
22291,
3365,
23726,
62,
16,
33411,
12121,
796,
366,
25803,
12,
32741,
35375,
1
] | [
1,
1,
1,
1,
1,
1,
1,
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,
3199,
262,
3670,
287,
262,
4273,
12,
32741,
35375,
12121,
30,
46506,
9991,
16034,
3084,
62,
22291,
3365,
23726,
62,
16,
33411,
12121,
796,
366,
25803,
12,
32741,
35375,
1
] |
Who loss the game when the record was 3-10? | SELECT "Loss" FROM table_11437 WHERE "Record" = '3-10' | [
8241,
2994,
262,
983,
618,
262,
1700,
373,
513,
12,
940,
30,
46506,
366,
43,
793,
1,
16034,
3084,
62,
16562,
2718,
33411,
366,
23739,
1,
796,
705,
18,
12,
940,
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
] | [
8241,
2994,
262,
983,
618,
262,
1700,
373,
513,
12,
940,
30,
46506,
366,
43,
793,
1,
16034,
3084,
62,
16562,
2718,
33411,
366,
23739,
1,
796,
705,
18,
12,
940,
6
] |
Which round was Tom Morris picked in? | SELECT COUNT("Round") FROM table_78540 WHERE "Player" = 'tom morris' | [
13828,
2835,
373,
4186,
14433,
6497,
287,
30,
46506,
327,
28270,
7203,
22685,
4943,
16034,
3084,
62,
3695,
35005,
33411,
366,
14140,
1,
796,
705,
39532,
2146,
2442,
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
] | [
13828,
2835,
373,
4186,
14433,
6497,
287,
30,
46506,
327,
28270,
7203,
22685,
4943,
16034,
3084,
62,
3695,
35005,
33411,
366,
14140,
1,
796,
705,
39532,
2146,
2442,
6
] |
how many towns or villages have a population of at least 5 but less than 10 ? | SELECT COUNT("town/village") FROM table_203_568 WHERE "population" >= 5 AND "population" < 10 | [
4919,
867,
11684,
393,
15425,
423,
257,
3265,
286,
379,
1551,
642,
475,
1342,
621,
838,
5633,
46506,
327,
28270,
7203,
12735,
14,
41082,
496,
4943,
16034,
3084,
62,
22416,
62,
49211,
33411,
366,
39748,
1,
18189,
642,
5357,
366,
39748,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11684,
393,
15425,
423,
257,
3265,
286,
379,
1551,
642,
475,
1342,
621,
838,
5633,
46506,
327,
28270,
7203,
12735,
14,
41082,
496,
4943,
16034,
3084,
62,
22416,
62,
49211,
33411,
366,
39748,
1,
18189,
642,
5357,
366,
39748,
... |
What is the number of the faculty members for each rank? Visualize in bar chart. | SELECT Rank, COUNT(Rank) FROM Faculty GROUP BY Rank | [
2061,
318,
262,
1271,
286,
262,
12829,
1866,
329,
1123,
4279,
30,
15612,
1096,
287,
2318,
8262,
13,
46506,
10916,
11,
327,
28270,
7,
27520,
8,
16034,
35262,
44441,
11050,
10916
] | [
1,
1,
1,
1,
1,
1,
1,
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,
1271,
286,
262,
12829,
1866,
329,
1123,
4279,
30,
15612,
1096,
287,
2318,
8262,
13,
46506,
10916,
11,
327,
28270,
7,
27520,
8,
16034,
35262,
44441,
11050,
10916
] |
what is the number of patients whose primary disease is sigmoid diverticulitis, colovestical fistula/sda and days of hospital stay is greater than 26? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "SIGMOID DIVERTICULITIS, COLOVESTICAL FISTULA/SDA" AND demographic.days_stay > "26" | [
10919,
318,
262,
1271,
286,
3871,
3025,
4165,
4369,
318,
264,
17225,
1868,
12312,
13370,
377,
11815,
11,
951,
709,
395,
605,
18606,
4712,
14,
82,
6814,
290,
1528,
286,
4436,
2652,
318,
3744,
621,
2608,
30,
46506,
327,
28270,
7,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
1271,
286,
3871,
3025,
4165,
4369,
318,
264,
17225,
1868,
12312,
13370,
377,
11815,
11,
951,
709,
395,
605,
18606,
4712,
14,
82,
6814,
290,
1528,
286,
4436,
2652,
318,
3744,
621,
2608,
30,
46506,
327,
28270,
7,
35,
... |
If the position is FB, what is the Copa Del Rey? | SELECT "Copa del Rey" FROM table_25568 WHERE "Position" = 'FB' | [
1532,
262,
2292,
318,
13186,
11,
644,
318,
262,
6955,
64,
4216,
24448,
30,
46506,
366,
13379,
64,
1619,
24448,
1,
16034,
3084,
62,
13381,
3104,
33411,
366,
26545,
1,
796,
705,
26001,
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
] | [
1532,
262,
2292,
318,
13186,
11,
644,
318,
262,
6955,
64,
4216,
24448,
30,
46506,
366,
13379,
64,
1619,
24448,
1,
16034,
3084,
62,
13381,
3104,
33411,
366,
26545,
1,
796,
705,
26001,
6
] |
How many points did the Toronto Downtown Dingos score? | SELECT MIN("Points For") FROM table_28426 WHERE "Club" = 'Toronto Downtown Dingos' | [
2437,
867,
2173,
750,
262,
6586,
25657,
46980,
418,
4776,
30,
46506,
20625,
7203,
40710,
1114,
4943,
16034,
3084,
62,
30336,
2075,
33411,
366,
42350,
1,
796,
705,
31359,
25657,
46980,
418,
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
] | [
2437,
867,
2173,
750,
262,
6586,
25657,
46980,
418,
4776,
30,
46506,
20625,
7203,
40710,
1114,
4943,
16034,
3084,
62,
30336,
2075,
33411,
366,
42350,
1,
796,
705,
31359,
25657,
46980,
418,
6
] |
How many wins did Glenelg FL of bahgallah have when there were more than 3 byes? | SELECT COUNT("Wins") FROM table_58902 WHERE "Glenelg FL" = 'bahgallah' AND "Byes" > '3' | [
2437,
867,
7864,
750,
20716,
417,
70,
9977,
286,
275,
993,
70,
31840,
423,
618,
612,
547,
517,
621,
513,
416,
274,
30,
46506,
327,
28270,
7203,
54,
1040,
4943,
16034,
3084,
62,
44169,
2999,
33411,
366,
9861,
268,
417,
70,
9977,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7864,
750,
20716,
417,
70,
9977,
286,
275,
993,
70,
31840,
423,
618,
612,
547,
517,
621,
513,
416,
274,
30,
46506,
327,
28270,
7203,
54,
1040,
4943,
16034,
3084,
62,
44169,
2999,
33411,
366,
9861,
268,
417,
70,
9977,
1,
... |
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, give me the comparison about the sum of employee_id over the hire_date bin hire_date by time. | SELECT HIRE_DATE, SUM(EMPLOYEE_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 | [
1890,
883,
4409,
3025,
9588,
318,
287,
262,
2837,
286,
38055,
290,
1105,
830,
290,
5810,
318,
407,
9242,
393,
5011,
1271,
857,
407,
4961,
284,
2319,
11,
1577,
502,
262,
7208,
546,
262,
2160,
286,
6538,
62,
312,
625,
262,
11078,
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... | [
1890,
883,
4409,
3025,
9588,
318,
287,
262,
2837,
286,
38055,
290,
1105,
830,
290,
5810,
318,
407,
9242,
393,
5011,
1271,
857,
407,
4961,
284,
2319,
11,
1577,
502,
262,
7208,
546,
262,
2160,
286,
6538,
62,
312,
625,
262,
11078,
62,
... |
what was the least number of points scored in a win ? | SELECT MIN("result/score") FROM table_203_383 WHERE "result/score" = 'w' | [
10919,
373,
262,
1551,
1271,
286,
2173,
7781,
287,
257,
1592,
5633,
46506,
20625,
7203,
20274,
14,
26675,
4943,
16034,
3084,
62,
22416,
62,
34741,
33411,
366,
20274,
14,
26675,
1,
796,
705,
86,
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
] | [
10919,
373,
262,
1551,
1271,
286,
2173,
7781,
287,
257,
1592,
5633,
46506,
20625,
7203,
20274,
14,
26675,
4943,
16034,
3084,
62,
22416,
62,
34741,
33411,
366,
20274,
14,
26675,
1,
796,
705,
86,
6
] |
What date that was the league position was 1st, and the result F A was 5 0? | SELECT "Date" FROM table_9672 WHERE "League position" = '1st' AND "Result F \u2013 A" = '5 – 0' | [
2061,
3128,
326,
373,
262,
4652,
2292,
373,
352,
301,
11,
290,
262,
1255,
376,
317,
373,
642,
657,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
24,
43864,
33411,
366,
24623,
2292,
1,
796,
705,
16,
301,
6,
5357,
366,
23004,
376,
3467... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
326,
373,
262,
4652,
2292,
373,
352,
301,
11,
290,
262,
1255,
376,
317,
373,
642,
657,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
24,
43864,
33411,
366,
24623,
2292,
1,
796,
705,
16,
301,
6,
5357,
366,
23004,
376,
3467... |
What was the total purse in the years after 1996 with a score of 272 (-16) when frank nobilo won? | SELECT SUM("Purse ( $ )") FROM table_80308 WHERE "Score" = '272 (-16)' AND "Winner" = 'frank nobilo' AND "Year" > '1996' | [
2061,
373,
262,
2472,
27517,
287,
262,
812,
706,
8235,
351,
257,
4776,
286,
38107,
13841,
1433,
8,
618,
14346,
31801,
18526,
1839,
30,
46506,
35683,
7203,
47,
12321,
357,
720,
1267,
4943,
16034,
3084,
62,
1795,
21495,
33411,
366,
26595,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2472,
27517,
287,
262,
812,
706,
8235,
351,
257,
4776,
286,
38107,
13841,
1433,
8,
618,
14346,
31801,
18526,
1839,
30,
46506,
35683,
7203,
47,
12321,
357,
720,
1267,
4943,
16034,
3084,
62,
1795,
21495,
33411,
366,
26595,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.