instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
Which team was the home team when Colorado was the visitor and the record became 26 15 9? | SELECT "Home" FROM table_58601 WHERE "Visitor" = 'colorado' AND "Record" = '26–15–9' | [
13828,
1074,
373,
262,
1363,
1074,
618,
7492,
373,
262,
21493,
290,
262,
1700,
2627,
2608,
1315,
860,
30,
46506,
366,
16060,
1,
16034,
3084,
62,
29796,
486,
33411,
366,
15854,
2072,
1,
796,
705,
8043,
4533,
6,
5357,
366,
23739,
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
] | [
13828,
1074,
373,
262,
1363,
1074,
618,
7492,
373,
262,
21493,
290,
262,
1700,
2627,
2608,
1315,
860,
30,
46506,
366,
16060,
1,
16034,
3084,
62,
29796,
486,
33411,
366,
15854,
2072,
1,
796,
705,
8043,
4533,
6,
5357,
366,
23739,
1,
7... |
what type of school is the institution nicknamed seminoles? | SELECT school_type FROM table_28744929_1 WHERE nickname = "Seminoles" | [
10919,
2099,
286,
1524,
318,
262,
9901,
35786,
36870,
4316,
30,
46506,
1524,
62,
4906,
16034,
3084,
62,
27800,
31911,
1959,
62,
16,
33411,
21814,
796,
366,
13900,
259,
4316,
1
] | [
1,
1,
1,
1,
1,
1,
1,
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,
2099,
286,
1524,
318,
262,
9901,
35786,
36870,
4316,
30,
46506,
1524,
62,
4906,
16034,
3084,
62,
27800,
31911,
1959,
62,
16,
33411,
21814,
796,
366,
13900,
259,
4316,
1
] |
What Slalom was Switzerland in? | SELECT "Slalom" FROM table_62084 WHERE "Country" = 'switzerland' | [
2061,
3454,
282,
296,
373,
14679,
287,
30,
46506,
366,
11122,
282,
296,
1,
16034,
3084,
62,
38850,
5705,
33411,
366,
33921,
1,
796,
705,
2032,
13947,
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,
3454,
282,
296,
373,
14679,
287,
30,
46506,
366,
11122,
282,
296,
1,
16034,
3084,
62,
38850,
5705,
33411,
366,
33921,
1,
796,
705,
2032,
13947,
6
] |
How many assets can each parts be used in? List the part name and the number with a bar chart, and show by the y axis from low to high. | SELECT part_name, COUNT(*) FROM Parts AS T1 JOIN Asset_Parts AS T2 ON T1.part_id = T2.part_id GROUP BY T1.part_name ORDER BY COUNT(*) | [
2437,
867,
6798,
460,
1123,
3354,
307,
973,
287,
30,
7343,
262,
636,
1438,
290,
262,
1271,
351,
257,
2318,
8262,
11,
290,
905,
416,
262,
331,
16488,
422,
1877,
284,
1029,
13,
46506,
636,
62,
3672,
11,
327,
28270,
7,
28104,
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... | [
2437,
867,
6798,
460,
1123,
3354,
307,
973,
287,
30,
7343,
262,
636,
1438,
290,
262,
1271,
351,
257,
2318,
8262,
11,
290,
905,
416,
262,
331,
16488,
422,
1877,
284,
1029,
13,
46506,
636,
62,
3672,
11,
327,
28270,
7,
28104,
16034,
... |
What year saw a score of 8-5? | SELECT year FROM table_name_9 WHERE score = "8-5" | [
2061,
614,
2497,
257,
4776,
286,
807,
12,
20,
30,
46506,
614,
16034,
3084,
62,
3672,
62,
24,
33411,
4776,
796,
366,
23,
12,
20,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
614,
2497,
257,
4776,
286,
807,
12,
20,
30,
46506,
614,
16034,
3084,
62,
3672,
62,
24,
33411,
4776,
796,
366,
23,
12,
20,
1
] |
What RECNet has 40 watts of power and temagami as the city of license? | SELECT recnet FROM table_name_20 WHERE power = "40 watts" AND city_of_license = "temagami" | [
2061,
19644,
7934,
468,
2319,
36416,
286,
1176,
290,
2169,
363,
6277,
355,
262,
1748,
286,
5964,
30,
46506,
664,
3262,
16034,
3084,
62,
3672,
62,
1238,
33411,
1176,
796,
366,
1821,
36416,
1,
5357,
1748,
62,
1659,
62,
43085,
796,
366,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19644,
7934,
468,
2319,
36416,
286,
1176,
290,
2169,
363,
6277,
355,
262,
1748,
286,
5964,
30,
46506,
664,
3262,
16034,
3084,
62,
3672,
62,
1238,
33411,
1176,
796,
366,
1821,
36416,
1,
5357,
1748,
62,
1659,
62,
43085,
796,
366,
... |
WHAT IS THE COUNTRY WITH SUMMER TRANSFER WINDOW? | SELECT "Country" FROM table_48487 WHERE "Transfer window" = 'summer' | [
32971,
3180,
3336,
31404,
40405,
13315,
35683,
29296,
44069,
24302,
370,
12115,
3913,
30,
46506,
366,
33921,
1,
16034,
3084,
62,
2780,
35133,
33411,
366,
43260,
4324,
1,
796,
705,
16345,
647,
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
] | [
32971,
3180,
3336,
31404,
40405,
13315,
35683,
29296,
44069,
24302,
370,
12115,
3913,
30,
46506,
366,
33921,
1,
16034,
3084,
62,
2780,
35133,
33411,
366,
43260,
4324,
1,
796,
705,
16345,
647,
6
] |
What engine did the porsche 718 chassis use? | SELECT "Engine" FROM table_80211 WHERE "Chassis" = 'porsche 718' | [
2061,
3113,
750,
262,
279,
26164,
767,
1507,
24587,
779,
30,
46506,
366,
13798,
1,
16034,
3084,
62,
1795,
21895,
33411,
366,
1925,
20297,
1,
796,
705,
79,
26164,
767,
1507,
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
] | [
2061,
3113,
750,
262,
279,
26164,
767,
1507,
24587,
779,
30,
46506,
366,
13798,
1,
16034,
3084,
62,
1795,
21895,
33411,
366,
1925,
20297,
1,
796,
705,
79,
26164,
767,
1507,
6
] |
Which incumbent was first elected in 1940? | SELECT "Incumbent" FROM table_18593 WHERE "First elected" = '1940' | [
13828,
23526,
373,
717,
7018,
287,
16236,
30,
46506,
366,
25517,
2178,
298,
1,
16034,
3084,
62,
1507,
49051,
33411,
366,
5962,
7018,
1,
796,
705,
1129,
1821,
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,
23526,
373,
717,
7018,
287,
16236,
30,
46506,
366,
25517,
2178,
298,
1,
16034,
3084,
62,
1507,
49051,
33411,
366,
5962,
7018,
1,
796,
705,
1129,
1821,
6
] |
find the number of female patients who have long term care hospital discharge. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = "F" AND demographic.discharge_location = "LONG TERM CARE HOSPITAL" | [
19796,
262,
1271,
286,
4048,
3871,
508,
423,
890,
3381,
1337,
4436,
17655,
13,
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,
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
] | [
19796,
262,
1271,
286,
4048,
3871,
508,
423,
890,
3381,
1337,
4436,
17655,
13,
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,
13,
6381,
1... |
What percentage was the others vote when McCain had 52.9% and less than 45205.0 voters? | SELECT others_percentage FROM table_20693870_1 WHERE mccain_percentage = "52.9%" AND mccain_number < 45205.0 | [
2061,
5873,
373,
262,
1854,
3015,
618,
14264,
550,
6740,
13,
24,
4,
290,
1342,
621,
4153,
21261,
13,
15,
4446,
30,
46506,
1854,
62,
25067,
496,
16034,
3084,
62,
1238,
3388,
2548,
2154,
62,
16,
33411,
285,
535,
391,
62,
25067,
496,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5873,
373,
262,
1854,
3015,
618,
14264,
550,
6740,
13,
24,
4,
290,
1342,
621,
4153,
21261,
13,
15,
4446,
30,
46506,
1854,
62,
25067,
496,
16034,
3084,
62,
1238,
3388,
2548,
2154,
62,
16,
33411,
285,
535,
391,
62,
25067,
496,
... |
What was the home teams score at Victoria Park? | SELECT "Home team score" FROM table_33229 WHERE "Venue" = 'victoria park' | [
2061,
373,
262,
1363,
3466,
4776,
379,
12313,
3250,
30,
46506,
366,
16060,
1074,
4776,
1,
16034,
3084,
62,
2091,
23539,
33411,
366,
37522,
518,
1,
796,
705,
32433,
7661,
3952,
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
] | [
2061,
373,
262,
1363,
3466,
4776,
379,
12313,
3250,
30,
46506,
366,
16060,
1074,
4776,
1,
16034,
3084,
62,
2091,
23539,
33411,
366,
37522,
518,
1,
796,
705,
32433,
7661,
3952,
6
] |
who is the founder where date is c. 1900 | SELECT "Founder" FROM table_16607 WHERE "Date" = 'c. 1900' | [
8727,
318,
262,
9119,
810,
3128,
318,
269,
13,
21489,
46506,
366,
21077,
263,
1,
16034,
3084,
62,
1433,
31980,
33411,
366,
10430,
1,
796,
705,
66,
13,
21489,
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
] | [
8727,
318,
262,
9119,
810,
3128,
318,
269,
13,
21489,
46506,
366,
21077,
263,
1,
16034,
3084,
62,
1433,
31980,
33411,
366,
10430,
1,
796,
705,
66,
13,
21489,
6
] |
what is spike when 2008 club is vc nova? | SELECT "Spike" FROM table_65255 WHERE "2008 club" = 'vc nova' | [
10919,
318,
20240,
618,
3648,
3430,
318,
410,
66,
645,
6862,
30,
46506,
366,
4561,
522,
1,
16034,
3084,
62,
2996,
13381,
33411,
366,
11528,
3430,
1,
796,
705,
28435,
645,
6862,
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
] | [
10919,
318,
20240,
618,
3648,
3430,
318,
410,
66,
645,
6862,
30,
46506,
366,
4561,
522,
1,
16034,
3084,
62,
2996,
13381,
33411,
366,
11528,
3430,
1,
796,
705,
28435,
645,
6862,
6
] |
What date did the player from Santo Andr debut? | SELECT date_joined FROM table_name_27 WHERE from__club_ = "santo andré" | [
2061,
3128,
750,
262,
2137,
422,
10844,
78,
843,
81,
8886,
30,
46506,
3128,
62,
46416,
16034,
3084,
62,
3672,
62,
1983,
33411,
422,
834,
18664,
62,
796,
366,
82,
14723,
290,
29350,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
750,
262,
2137,
422,
10844,
78,
843,
81,
8886,
30,
46506,
3128,
62,
46416,
16034,
3084,
62,
3672,
62,
1983,
33411,
422,
834,
18664,
62,
796,
366,
82,
14723,
290,
29350,
1
] |
On what date was the result w 26 20? | SELECT "Date" FROM table_45365 WHERE "Result" = 'w 26–20' | [
2202,
644,
3128,
373,
262,
1255,
266,
2608,
1160,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
2231,
24760,
33411,
366,
23004,
1,
796,
705,
86,
2608,
1906,
1238,
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
] | [
2202,
644,
3128,
373,
262,
1255,
266,
2608,
1160,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
2231,
24760,
33411,
366,
23004,
1,
796,
705,
86,
2608,
1906,
1238,
6
] |
Scatter. what are the staff ids and genders of all staffs whose job title is Department Manager? | SELECT T1.staff_id, T1.staff_gender FROM Staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.job_title_code = "Department Manager" | [
3351,
1436,
13,
644,
389,
262,
3085,
220,
2340,
290,
38054,
286,
477,
3085,
82,
3025,
1693,
3670,
318,
2732,
9142,
30,
46506,
309,
16,
13,
28120,
62,
312,
11,
309,
16,
13,
28120,
62,
8388,
16034,
9983,
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,
1,
1,
1,
1... | [
3351,
1436,
13,
644,
389,
262,
3085,
220,
2340,
290,
38054,
286,
477,
3085,
82,
3025,
1693,
3670,
318,
2732,
9142,
30,
46506,
309,
16,
13,
28120,
62,
312,
11,
309,
16,
13,
28120,
62,
8388,
16034,
9983,
7054,
309,
16,
32357,
1268,
... |
what is the last ward identifier of patient 29540 until 2104? | SELECT transfers.wardid FROM transfers WHERE transfers.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 29540) AND NOT transfers.wardid IS NULL AND STRFTIME('%y', transfers.intime) <= '2104' ORDER BY transfers.intime DESC LIMIT 1 | [
10919,
318,
262,
938,
15305,
27421,
286,
5827,
34772,
1821,
1566,
362,
13464,
30,
46506,
16395,
13,
904,
312,
16034,
16395,
33411,
16395,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
312,
16034,
25349,
33411,
2534... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
938,
15305,
27421,
286,
5827,
34772,
1821,
1566,
362,
13464,
30,
46506,
16395,
13,
904,
312,
16034,
16395,
33411,
16395,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
312,
16034,
25349,
33411,
2534... |
who is the constructor when the laps is more than 72 and the driver is eddie irvine? | SELECT constructor FROM table_name_33 WHERE laps > 72 AND driver = "eddie irvine" | [
8727,
318,
262,
23772,
618,
262,
24590,
318,
517,
621,
7724,
290,
262,
4639,
318,
1225,
11979,
4173,
26818,
30,
46506,
23772,
16034,
3084,
62,
3672,
62,
2091,
33411,
24590,
1875,
7724,
5357,
4639,
796,
366,
6048,
494,
4173,
26818,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
318,
262,
23772,
618,
262,
24590,
318,
517,
621,
7724,
290,
262,
4639,
318,
1225,
11979,
4173,
26818,
30,
46506,
23772,
16034,
3084,
62,
3672,
62,
2091,
33411,
24590,
1875,
7724,
5357,
4639,
796,
366,
6048,
494,
4173,
26818,
1
] |
Can you give me each end station's latitude and minimum duration for trips ended there with a scatter chart? | SELECT lat, MIN(T2.duration) FROM station AS T1 JOIN trip AS T2 ON T1.id = T2.end_station_id GROUP BY lat | [
6090,
345,
1577,
502,
1123,
886,
4429,
338,
32477,
290,
5288,
9478,
329,
13229,
4444,
612,
351,
257,
41058,
8262,
30,
46506,
3042,
11,
20625,
7,
51,
17,
13,
32257,
8,
16034,
4429,
7054,
309,
16,
32357,
1268,
5296,
7054,
309,
17,
617... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1577,
502,
1123,
886,
4429,
338,
32477,
290,
5288,
9478,
329,
13229,
4444,
612,
351,
257,
41058,
8262,
30,
46506,
3042,
11,
20625,
7,
51,
17,
13,
32257,
8,
16034,
4429,
7054,
309,
16,
32357,
1268,
5296,
7054,
309,
17,
617... |
Name the chassis of 147 points and engine of ford cosworth dfx | SELECT "Chassis" FROM table_67308 WHERE "Points" = '147' AND "Engine" = 'ford cosworth dfx' | [
5376,
262,
24587,
286,
22909,
2173,
290,
3113,
286,
329,
67,
8615,
9268,
288,
21373,
46506,
366,
1925,
20297,
1,
16034,
3084,
62,
3134,
21495,
33411,
366,
40710,
1,
796,
705,
20198,
6,
5357,
366,
13798,
1,
796,
705,
3841,
8615,
9268,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24587,
286,
22909,
2173,
290,
3113,
286,
329,
67,
8615,
9268,
288,
21373,
46506,
366,
1925,
20297,
1,
16034,
3084,
62,
3134,
21495,
33411,
366,
40710,
1,
796,
705,
20198,
6,
5357,
366,
13798,
1,
796,
705,
3841,
8615,
9268,
... |
In which album can Dil De De Nahin Nahin Dil Le Le be found? | SELECT "Movie/Album" FROM table_27513 WHERE "Song" = 'Dil De De Nahin Nahin Dil Le Le' | [
818,
543,
5062,
460,
29328,
1024,
1024,
35201,
259,
35201,
259,
29328,
1004,
1004,
307,
1043,
30,
46506,
366,
25097,
14,
2348,
4435,
1,
16034,
3084,
62,
23195,
1485,
33411,
366,
44241,
1,
796,
705,
35,
346,
1024,
1024,
35201,
259,
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,
1,
1,
1,
1,
1,
1
] | [
818,
543,
5062,
460,
29328,
1024,
1024,
35201,
259,
35201,
259,
29328,
1004,
1004,
307,
1043,
30,
46506,
366,
25097,
14,
2348,
4435,
1,
16034,
3084,
62,
23195,
1485,
33411,
366,
44241,
1,
796,
705,
35,
346,
1024,
1024,
35201,
259,
352... |
Who was Canada's lead? | SELECT lead FROM table_name_76 WHERE country = "canada" | [
8241,
373,
3340,
338,
1085,
30,
46506,
1085,
16034,
3084,
62,
3672,
62,
4304,
33411,
1499,
796,
366,
5171,
4763,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
373,
3340,
338,
1085,
30,
46506,
1085,
16034,
3084,
62,
3672,
62,
4304,
33411,
1499,
796,
366,
5171,
4763,
1
] |
tell me the four most frequent medical diagnoses until 2100? | SELECT t1.diagnosisname FROM (SELECT diagnosis.diagnosisname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM diagnosis WHERE STRFTIME('%y', diagnosis.diagnosistime) <= '2100' GROUP BY diagnosis.diagnosisname) AS t1 WHERE t1.c1 <= 4 | [
33331,
502,
262,
1440,
749,
10792,
3315,
40567,
1566,
38123,
30,
46506,
256,
16,
13,
47356,
5958,
3672,
16034,
357,
46506,
13669,
13,
47356,
5958,
3672,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
11050,
327,
28270,
7,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
33331,
502,
262,
1440,
749,
10792,
3315,
40567,
1566,
38123,
30,
46506,
256,
16,
13,
47356,
5958,
3672,
16034,
357,
46506,
13669,
13,
47356,
5958,
3672,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
11050,
327,
28270,
7,... |
When was the match that had Shaun Murphy as runner-up? | SELECT date FROM table_name_31 WHERE runner_up = "shaun murphy" | [
2215,
373,
262,
2872,
326,
550,
35188,
14424,
355,
17490,
12,
929,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
3132,
33411,
17490,
62,
929,
796,
366,
1477,
1942,
4636,
6883,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
2872,
326,
550,
35188,
14424,
355,
17490,
12,
929,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
3132,
33411,
17490,
62,
929,
796,
366,
1477,
1942,
4636,
6883,
1
] |
What place has manfred kokot as the athlete? | SELECT place FROM table_name_7 WHERE athlete = "manfred kokot" | [
2061,
1295,
468,
582,
39193,
479,
482,
313,
355,
262,
16076,
30,
46506,
1295,
16034,
3084,
62,
3672,
62,
22,
33411,
16076,
796,
366,
805,
39193,
479,
482,
313,
1
] | [
1,
1,
1,
1,
1,
1,
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,
1295,
468,
582,
39193,
479,
482,
313,
355,
262,
16076,
30,
46506,
1295,
16034,
3084,
62,
3672,
62,
22,
33411,
16076,
796,
366,
805,
39193,
479,
482,
313,
1
] |
Can you tell me the average Average that has the Rank larger than 4, and the Player of dean minors? | SELECT AVG("Average") FROM table_59735 WHERE "Rank" > '4' AND "Player" = 'dean minors' | [
6090,
345,
1560,
502,
262,
2811,
13475,
326,
468,
262,
10916,
4025,
621,
604,
11,
290,
262,
7853,
286,
34798,
21423,
30,
46506,
35224,
7203,
26287,
4943,
16034,
3084,
62,
43239,
2327,
33411,
366,
27520,
1,
1875,
705,
19,
6,
5357,
366,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2811,
13475,
326,
468,
262,
10916,
4025,
621,
604,
11,
290,
262,
7853,
286,
34798,
21423,
30,
46506,
35224,
7203,
26287,
4943,
16034,
3084,
62,
43239,
2327,
33411,
366,
27520,
1,
1875,
705,
19,
6,
5357,
366,... |
What was the record on April 22? | SELECT record FROM table_name_1 WHERE date = "april 22" | [
2061,
373,
262,
1700,
319,
3035,
2534,
30,
46506,
1700,
16034,
3084,
62,
3672,
62,
16,
33411,
3128,
796,
366,
499,
22379,
2534,
1
] | [
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,
1700,
319,
3035,
2534,
30,
46506,
1700,
16034,
3084,
62,
3672,
62,
16,
33411,
3128,
796,
366,
499,
22379,
2534,
1
] |
count the number of mechanical ventilation - tidal volume 6-10 ml/kg procedures performed since 2 years ago. | SELECT COUNT(*) FROM treatment WHERE treatment.treatmentname = 'mechanical ventilation - tidal volume 6-10 ml/kg' AND DATETIME(treatment.treatmenttime) >= DATETIME(CURRENT_TIME(), '-2 year') | [
9127,
262,
1271,
286,
12370,
34834,
532,
40738,
6115,
718,
12,
940,
25962,
14,
10025,
9021,
6157,
1201,
362,
812,
2084,
13,
46506,
327,
28270,
7,
28104,
16034,
3513,
33411,
3513,
13,
42487,
3672,
796,
705,
1326,
3147,
605,
34834,
532,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12370,
34834,
532,
40738,
6115,
718,
12,
940,
25962,
14,
10025,
9021,
6157,
1201,
362,
812,
2084,
13,
46506,
327,
28270,
7,
28104,
16034,
3513,
33411,
3513,
13,
42487,
3672,
796,
705,
1326,
3147,
605,
34834,
532,
... |
Which away team scored 13.13 (91)? | SELECT "Away team" FROM table_52440 WHERE "Away team score" = '13.13 (91)' | [
13828,
1497,
1074,
7781,
1511,
13,
1485,
357,
6420,
19427,
46506,
366,
32,
1014,
1074,
1,
16034,
3084,
62,
48057,
1821,
33411,
366,
32,
1014,
1074,
4776,
1,
796,
705,
1485,
13,
1485,
357,
6420,
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
] | [
13828,
1497,
1074,
7781,
1511,
13,
1485,
357,
6420,
19427,
46506,
366,
32,
1014,
1074,
1,
16034,
3084,
62,
48057,
1821,
33411,
366,
32,
1014,
1074,
4776,
1,
796,
705,
1485,
13,
1485,
357,
6420,
33047
] |
How many totals have brazil as the nation, and a bronze less than 2? | SELECT SUM(total) FROM table_name_89 WHERE nation = "brazil" AND bronze < 2 | [
2437,
867,
26310,
423,
275,
7098,
355,
262,
3277,
11,
290,
257,
22101,
1342,
621,
362,
30,
46506,
35683,
7,
23350,
8,
16034,
3084,
62,
3672,
62,
4531,
33411,
3277,
796,
366,
65,
7098,
1,
5357,
22101,
1279,
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
] | [
2437,
867,
26310,
423,
275,
7098,
355,
262,
3277,
11,
290,
257,
22101,
1342,
621,
362,
30,
46506,
35683,
7,
23350,
8,
16034,
3084,
62,
3672,
62,
4531,
33411,
3277,
796,
366,
65,
7098,
1,
5357,
22101,
1279,
362
] |
List all questions by a user. | SELECT * FROM Posts WHERE OwnerUserId = @UserId AND PostTypeId = 1 | [
8053,
477,
2683,
416,
257,
2836,
13,
46506,
1635,
16034,
12043,
33411,
23853,
12982,
7390,
796,
2488,
12982,
7390,
5357,
2947,
6030,
7390,
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
] | [
8053,
477,
2683,
416,
257,
2836,
13,
46506,
1635,
16034,
12043,
33411,
23853,
12982,
7390,
796,
2488,
12982,
7390,
5357,
2947,
6030,
7390,
796,
352
] |
How many films are there in each category? List the genre name and the count with a bar chart, and rank in descending by the X-axis. | SELECT name, COUNT(*) FROM film_category AS T1 JOIN category AS T2 ON T1.category_id = T2.category_id GROUP BY T1.category_id ORDER BY name DESC | [
2437,
867,
7328,
389,
612,
287,
1123,
6536,
30,
7343,
262,
12121,
1438,
290,
262,
954,
351,
257,
2318,
8262,
11,
290,
4279,
287,
31491,
416,
262,
1395,
12,
22704,
13,
46506,
1438,
11,
327,
28270,
7,
28104,
16034,
2646,
62,
22872,
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... | [
2437,
867,
7328,
389,
612,
287,
1123,
6536,
30,
7343,
262,
12121,
1438,
290,
262,
954,
351,
257,
2318,
8262,
11,
290,
4279,
287,
31491,
416,
262,
1395,
12,
22704,
13,
46506,
1438,
11,
327,
28270,
7,
28104,
16034,
2646,
62,
22872,
70... |
What number of patients whose diagnoses was hypertension but not coronary artery disease or cardiac cath and died in or before the year 2189? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "HYPERTENSION;RULE OUT CORONARY ARTERY DISEASE\CARDIAC CATH" AND demographic.dod_year <= "2180.0" | [
2061,
1271,
286,
3871,
3025,
40567,
373,
37454,
475,
407,
37151,
37646,
4369,
393,
26077,
32171,
290,
3724,
287,
393,
878,
262,
614,
362,
23362,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
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... | [
2061,
1271,
286,
3871,
3025,
40567,
373,
37454,
475,
407,
37151,
37646,
4369,
393,
26077,
32171,
290,
3724,
287,
393,
878,
262,
614,
362,
23362,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
1672... |
What date in October did the Flyers play against the Toronto Maple Leafs? | SELECT october FROM table_name_11 WHERE opponent = "toronto maple leafs" | [
2061,
3128,
287,
3267,
750,
262,
30652,
711,
1028,
262,
6586,
21249,
25479,
30,
46506,
19318,
2023,
16034,
3084,
62,
3672,
62,
1157,
33411,
6125,
796,
366,
13165,
5957,
31377,
12835,
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
] | [
2061,
3128,
287,
3267,
750,
262,
30652,
711,
1028,
262,
6586,
21249,
25479,
30,
46506,
19318,
2023,
16034,
3084,
62,
3672,
62,
1157,
33411,
6125,
796,
366,
13165,
5957,
31377,
12835,
82,
1
] |
How many teams were established at University of Maryland? | SELECT COUNT(established) FROM table_16432543_3 WHERE institution = "University of Maryland" | [
2437,
867,
3466,
547,
4920,
379,
2059,
286,
10769,
30,
46506,
327,
28270,
7,
27718,
8,
16034,
3084,
62,
1433,
3559,
1495,
3559,
62,
18,
33411,
9901,
796,
366,
21009,
286,
10769,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3466,
547,
4920,
379,
2059,
286,
10769,
30,
46506,
327,
28270,
7,
27718,
8,
16034,
3084,
62,
1433,
3559,
1495,
3559,
62,
18,
33411,
9901,
796,
366,
21009,
286,
10769,
1
] |
If the enrollment is 3584, what's the largest founded? | SELECT MAX("Founded") FROM table_17220 WHERE "Enrollment" = '3584' | [
1532,
262,
20753,
318,
41761,
19,
11,
644,
338,
262,
4387,
9393,
30,
46506,
25882,
7203,
37,
6302,
4943,
16034,
3084,
62,
1558,
17572,
33411,
366,
4834,
48108,
1,
796,
705,
2327,
5705,
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,
20753,
318,
41761,
19,
11,
644,
338,
262,
4387,
9393,
30,
46506,
25882,
7203,
37,
6302,
4943,
16034,
3084,
62,
1558,
17572,
33411,
366,
4834,
48108,
1,
796,
705,
2327,
5705,
6
] |
What was the category of the project name Mighty No. 9? | SELECT category FROM table_27155990_1 WHERE project_name = "Mighty No. 9" | [
2061,
373,
262,
6536,
286,
262,
1628,
1438,
25532,
1400,
13,
860,
30,
46506,
6536,
16034,
3084,
62,
1983,
18742,
34155,
62,
16,
33411,
1628,
62,
3672,
796,
366,
44,
14400,
1400,
13,
860,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6536,
286,
262,
1628,
1438,
25532,
1400,
13,
860,
30,
46506,
6536,
16034,
3084,
62,
1983,
18742,
34155,
62,
16,
33411,
1628,
62,
3672,
796,
366,
44,
14400,
1400,
13,
860,
1
] |
What was the preliminary average for Miss Mississippi? | SELECT preliminary_average FROM table_16323766_3 WHERE state = "Mississippi" | [
2061,
373,
262,
15223,
2811,
329,
4544,
13797,
30,
46506,
15223,
62,
23913,
16034,
3084,
62,
24136,
24693,
2791,
62,
18,
33411,
1181,
796,
366,
17140,
747,
12715,
1
] | [
1,
1,
1,
1,
1,
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,
15223,
2811,
329,
4544,
13797,
30,
46506,
15223,
62,
23913,
16034,
3084,
62,
24136,
24693,
2791,
62,
18,
33411,
1181,
796,
366,
17140,
747,
12715,
1
] |
Among the least difficult MDE courses , which has the largest class size ? | SELECT DISTINCT department, name, number FROM course WHERE course_id IN (SELECT PROGRAM_COURSE_ID FROM program_course AS PROGRAM_COURSE WHERE PROGRAM_WORKLOAD = (SELECT MIN(PROGRAM_COURSEalias1.workload) FROM program_course AS PROGRAM_COURSEalias1 WHERE PROGRAM_COURSEalias1.category LIKE '%MDE%')) AND num_enrolled = (S... | [
14311,
262,
1551,
2408,
337,
7206,
10902,
837,
543,
468,
262,
4387,
1398,
2546,
5633,
46506,
360,
8808,
1268,
4177,
5011,
11,
1438,
11,
1271,
16034,
1781,
33411,
1781,
62,
312,
3268,
357,
46506,
46805,
62,
34,
11698,
5188,
62,
2389,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
14311,
262,
1551,
2408,
337,
7206,
10902,
837,
543,
468,
262,
4387,
1398,
2546,
5633,
46506,
360,
8808,
1268,
4177,
5011,
11,
1438,
11,
1271,
16034,
1781,
33411,
1781,
62,
312,
3268,
357,
46506,
46805,
62,
34,
11698,
5188,
62,
2389,
1... |
count the number of patients whose drug code is oxym15? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.formulary_drug_cd = "OXYM15" | [
9127,
262,
1271,
286,
3871,
3025,
2563,
2438,
318,
12018,
4948,
1314,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
76,
62,
312,
79... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2563,
2438,
318,
12018,
4948,
1314,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
76,
62,
312,
79... |
What is the population percentage of the group where the rural sex ratio is 953? | SELECT "Population %" FROM table_16263 WHERE "Sex ratio (rural)" = '953' | [
2061,
318,
262,
3265,
5873,
286,
262,
1448,
810,
262,
10016,
1714,
8064,
318,
860,
4310,
30,
46506,
366,
45251,
4064,
1,
16034,
3084,
62,
1433,
29558,
33411,
366,
23398,
8064,
357,
81,
1523,
16725,
796,
705,
49649,
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,
318,
262,
3265,
5873,
286,
262,
1448,
810,
262,
10016,
1714,
8064,
318,
860,
4310,
30,
46506,
366,
45251,
4064,
1,
16034,
3084,
62,
1433,
29558,
33411,
366,
23398,
8064,
357,
81,
1523,
16725,
796,
705,
49649,
6
] |
Which host university is based in Missoula? | SELECT host FROM table_name_40 WHERE city = "missoula" | [
13828,
2583,
6403,
318,
1912,
287,
4544,
2852,
64,
30,
46506,
2583,
16034,
3084,
62,
3672,
62,
1821,
33411,
1748,
796,
366,
3927,
2852,
64,
1
] | [
1,
1,
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,
2583,
6403,
318,
1912,
287,
4544,
2852,
64,
30,
46506,
2583,
16034,
3084,
62,
3672,
62,
1821,
33411,
1748,
796,
366,
3927,
2852,
64,
1
] |
What is Headquarter, when Type is Government-Owned, and when Newspaper/Magazine is Al-Jumhuriya? | SELECT headquarter FROM table_name_11 WHERE type = "government-owned" AND newspaper_magazine = "al-jumhuriya" | [
2061,
318,
7123,
24385,
11,
618,
5994,
318,
5070,
12,
23858,
276,
11,
290,
618,
49598,
14,
36028,
318,
978,
12,
41,
388,
71,
9900,
3972,
30,
46506,
1182,
24385,
16034,
3084,
62,
3672,
62,
1157,
33411,
2099,
796,
366,
14480,
12,
1199... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7123,
24385,
11,
618,
5994,
318,
5070,
12,
23858,
276,
11,
290,
618,
49598,
14,
36028,
318,
978,
12,
41,
388,
71,
9900,
3972,
30,
46506,
1182,
24385,
16034,
3084,
62,
3672,
62,
1157,
33411,
2099,
796,
366,
14480,
12,
1199... |
I 'm looking for the easiest class I can take to fulfill the Core requirement . | SELECT DISTINCT course.department, course.name, course.number, program_course.workload, program_course.workload FROM course, program_course WHERE program_course.category LIKE '%Core%' AND program_course.course_id = course.course_id AND program_course.workload = (SELECT MIN(PROGRAM_COURSEalias1.workload) FROM program_co... | [
40,
705,
76,
2045,
329,
262,
16638,
1398,
314,
460,
1011,
284,
14658,
262,
7231,
9079,
764,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
11,
1430,
62,
17319,
13,
1818,
2220,
11,
1430,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
40,
705,
76,
2045,
329,
262,
16638,
1398,
314,
460,
1011,
284,
14658,
262,
7231,
9079,
764,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
11,
1430,
62,
17319,
13,
1818,
2220,
11,
1430,... |
Show different types of ships and the number of ships of each type in a bar chart, and show Type in desc order. | SELECT Type, COUNT(*) FROM ship GROUP BY Type ORDER BY Type DESC | [
15307,
1180,
3858,
286,
7937,
290,
262,
1271,
286,
7937,
286,
1123,
2099,
287,
257,
2318,
8262,
11,
290,
905,
5994,
287,
1715,
1502,
13,
46506,
5994,
11,
327,
28270,
7,
28104,
16034,
4074,
44441,
11050,
5994,
38678,
11050,
5994,
22196,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3858,
286,
7937,
290,
262,
1271,
286,
7937,
286,
1123,
2099,
287,
257,
2318,
8262,
11,
290,
905,
5994,
287,
1715,
1502,
13,
46506,
5994,
11,
327,
28270,
7,
28104,
16034,
4074,
44441,
11050,
5994,
38678,
11050,
5994,
22196,
... |
How many totals does cork have whose rank is larger than 2? | SELECT SUM("Total") FROM table_64992 WHERE "County" = 'cork' AND "Rank" > '2' | [
2437,
867,
26310,
857,
269,
967,
423,
3025,
4279,
318,
4025,
621,
362,
30,
46506,
35683,
7203,
14957,
4943,
16034,
3084,
62,
2414,
41561,
33411,
366,
12332,
88,
1,
796,
705,
66,
967,
6,
5357,
366,
27520,
1,
1875,
705,
17,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
26310,
857,
269,
967,
423,
3025,
4279,
318,
4025,
621,
362,
30,
46506,
35683,
7203,
14957,
4943,
16034,
3084,
62,
2414,
41561,
33411,
366,
12332,
88,
1,
796,
705,
66,
967,
6,
5357,
366,
27520,
1,
1875,
705,
17,
6
] |
What is the series episode where Segment B is popcorn ? | SELECT "Series Ep." FROM table_19880 WHERE "Segment B" = 'Popcorn' | [
2061,
318,
262,
2168,
4471,
810,
1001,
5154,
347,
318,
38914,
5633,
46506,
366,
27996,
4551,
526,
16034,
3084,
62,
22337,
1795,
33411,
366,
41030,
434,
347,
1,
796,
705,
16979,
20772,
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,
318,
262,
2168,
4471,
810,
1001,
5154,
347,
318,
38914,
5633,
46506,
366,
27996,
4551,
526,
16034,
3084,
62,
22337,
1795,
33411,
366,
41030,
434,
347,
1,
796,
705,
16979,
20772,
6
] |
What was the surface during wimbledon in 1974? | SELECT surface FROM table_23258574_2 WHERE championship = "Wimbledon" AND year = 1974 | [
2061,
373,
262,
4417,
1141,
266,
320,
49258,
287,
16489,
30,
46506,
4417,
16034,
3084,
62,
1954,
25600,
46900,
62,
17,
33411,
12184,
796,
366,
54,
320,
49258,
1,
5357,
614,
796,
16489
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4417,
1141,
266,
320,
49258,
287,
16489,
30,
46506,
4417,
16034,
3084,
62,
1954,
25600,
46900,
62,
17,
33411,
12184,
796,
366,
54,
320,
49258,
1,
5357,
614,
796,
16489
] |
Which team of the team 1 column, has a 2nd leg of 1-0? | SELECT "Team 1" FROM table_66944 WHERE "2nd leg" = '1-0' | [
13828,
1074,
286,
262,
1074,
352,
5721,
11,
468,
257,
362,
358,
1232,
286,
352,
12,
15,
30,
46506,
366,
15592,
352,
1,
16034,
3084,
62,
36657,
2598,
33411,
366,
17,
358,
1232,
1,
796,
705,
16,
12,
15,
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,
1074,
286,
262,
1074,
352,
5721,
11,
468,
257,
362,
358,
1232,
286,
352,
12,
15,
30,
46506,
366,
15592,
352,
1,
16034,
3084,
62,
36657,
2598,
33411,
366,
17,
358,
1232,
1,
796,
705,
16,
12,
15,
6
] |
Which To par has a Year(s) won of 1983? | SELECT to_par FROM table_name_15 WHERE year_s__won = "1983" | [
13828,
1675,
1582,
468,
257,
6280,
7,
82,
8,
1839,
286,
13540,
30,
46506,
284,
62,
1845,
16034,
3084,
62,
3672,
62,
1314,
33411,
614,
62,
82,
834,
26502,
796,
366,
29279,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1675,
1582,
468,
257,
6280,
7,
82,
8,
1839,
286,
13540,
30,
46506,
284,
62,
1845,
16034,
3084,
62,
3672,
62,
1314,
33411,
614,
62,
82,
834,
26502,
796,
366,
29279,
1
] |
Show the total number of the first year of parties with the theme 'Spring' or 'Teqnology' with a bar chart. | SELECT First_year, COUNT(First_year) FROM party WHERE Party_Theme = "Spring" OR Party_Theme = "Teqnology" GROUP BY First_year | [
15307,
262,
2472,
1271,
286,
262,
717,
614,
286,
4671,
351,
262,
7505,
705,
30387,
6,
393,
705,
6767,
80,
77,
1435,
6,
351,
257,
2318,
8262,
13,
46506,
3274,
62,
1941,
11,
327,
28270,
7,
5962,
62,
1941,
8,
16034,
2151,
33411,
3615... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
2472,
1271,
286,
262,
717,
614,
286,
4671,
351,
262,
7505,
705,
30387,
6,
393,
705,
6767,
80,
77,
1435,
6,
351,
257,
2318,
8262,
13,
46506,
3274,
62,
1941,
11,
327,
28270,
7,
5962,
62,
1941,
8,
16034,
2151,
33411,
3615... |
What is the Country of the T2 Place Player with a Score of 69-69-69=207? | SELECT "Country" FROM table_12806 WHERE "Place" = 't2' AND "Score" = '69-69-69=207' | [
2061,
318,
262,
12946,
286,
262,
309,
17,
8474,
7853,
351,
257,
15178,
286,
8644,
12,
3388,
12,
3388,
28,
22745,
30,
46506,
366,
33921,
1,
16034,
3084,
62,
1065,
37988,
33411,
366,
27271,
1,
796,
705,
83,
17,
6,
5357,
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
] | [
2061,
318,
262,
12946,
286,
262,
309,
17,
8474,
7853,
351,
257,
15178,
286,
8644,
12,
3388,
12,
3388,
28,
22745,
30,
46506,
366,
33921,
1,
16034,
3084,
62,
1065,
37988,
33411,
366,
27271,
1,
796,
705,
83,
17,
6,
5357,
366,
26595,
... |
did patient 162 get tested in the po2 lab in 04/last year? | SELECT COUNT(*) > 0 FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'po2') AND labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 162) AND DATETIME(labevents.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'sta... | [
20839,
5827,
25090,
651,
6789,
287,
262,
745,
17,
2248,
287,
8702,
14,
12957,
614,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
2248,
31534,
33411,
2248,
31534,
13,
9186,
312,
3268,
357,
46506,
288,
62,
23912,
23814,
13,
9186,
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... | [
20839,
5827,
25090,
651,
6789,
287,
262,
745,
17,
2248,
287,
8702,
14,
12957,
614,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
2248,
31534,
33411,
2248,
31534,
13,
9186,
312,
3268,
357,
46506,
288,
62,
23912,
23814,
13,
9186,
3... |
Visualize a bar chart for how many workshops did each author submit to? Return the author name and the number of workshops, sort workshop_id) in ascending order. | SELECT Author, COUNT(DISTINCT T1.Workshop_ID) FROM Acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID ORDER BY COUNT(DISTINCT T1.Workshop_ID) | [
36259,
1096,
257,
2318,
8262,
329,
703,
867,
25982,
750,
1123,
1772,
9199,
284,
30,
8229,
262,
1772,
1438,
290,
262,
1271,
286,
25982,
11,
3297,
20243,
62,
312,
8,
287,
41988,
1502,
13,
46506,
6434,
11,
327,
28270,
7,
35,
8808,
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... | [
36259,
1096,
257,
2318,
8262,
329,
703,
867,
25982,
750,
1123,
1772,
9199,
284,
30,
8229,
262,
1772,
1438,
290,
262,
1271,
286,
25982,
11,
3297,
20243,
62,
312,
8,
287,
41988,
1502,
13,
46506,
6434,
11,
327,
28270,
7,
35,
8808,
1268... |
What is the result of the match with clyde as the opponent in the h venue? | SELECT "Result" FROM table_7937 WHERE "Opponent" = 'clyde' AND "Venue" = 'h' | [
2061,
318,
262,
1255,
286,
262,
2872,
351,
269,
306,
2934,
355,
262,
6125,
287,
262,
289,
14359,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
3720,
2718,
33411,
366,
27524,
3471,
1,
796,
705,
66,
306,
2934,
6,
5357,
366,
37522,
518,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1255,
286,
262,
2872,
351,
269,
306,
2934,
355,
262,
6125,
287,
262,
289,
14359,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
3720,
2718,
33411,
366,
27524,
3471,
1,
796,
705,
66,
306,
2934,
6,
5357,
366,
37522,
518,
... |
For Fall and Winter courses which ones meet the ULCS requirement ? | SELECT DISTINCT course.department, course.name, course.number, semester.semester FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_id = course_offering.semester INNER JOIN program_course ON program_course.course_id = course_offering.course_id... | [
1890,
7218,
290,
10633,
10902,
543,
3392,
1826,
262,
471,
29814,
9079,
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,
3268,
21479,
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... | [
1890,
7218,
290,
10633,
10902,
543,
3392,
1826,
262,
471,
29814,
9079,
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,
3268,
21479,
32357,
... |
how many hours has it been since the first time patient 027-61708 was diagnosed during their current hospital encounter with obstructive sleep apnea? | SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', diagnosis.diagnosistime)) FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-61708... | [
4919,
867,
2250,
468,
340,
587,
1201,
262,
717,
640,
5827,
657,
1983,
12,
47941,
2919,
373,
14641,
1141,
511,
1459,
4436,
8791,
351,
26520,
425,
3993,
2471,
39718,
30,
46506,
1987,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
2250,
468,
340,
587,
1201,
262,
717,
640,
5827,
657,
1983,
12,
47941,
2919,
373,
14641,
1141,
511,
1459,
4436,
8791,
351,
26520,
425,
3993,
2471,
39718,
30,
46506,
1987,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
32... |
what were the five most frequent microbiological tests that followed within 2 months for patients who received glucose - d50 since 2101? | SELECT t3.culturesite FROM (SELECT t2.culturesite, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'glucose - d50' AND STRFTIME('%y', treatment.... | [
10919,
547,
262,
1936,
749,
10792,
24559,
2770,
5254,
326,
3940,
1626,
362,
1933,
329,
3871,
508,
2722,
15701,
532,
288,
1120,
1201,
2310,
486,
30,
46506,
256,
18,
13,
40820,
942,
578,
16034,
357,
46506,
256,
17,
13,
40820,
942,
578,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1936,
749,
10792,
24559,
2770,
5254,
326,
3940,
1626,
362,
1933,
329,
3871,
508,
2722,
15701,
532,
288,
1120,
1201,
2310,
486,
30,
46506,
256,
18,
13,
40820,
942,
578,
16034,
357,
46506,
256,
17,
13,
40820,
942,
578,
... |
what is the number of patients whose language is engl and diagnoses short title is bipol i cur depres nos? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.language = "ENGL" AND diagnoses.short_title = "Bipol I cur depres NOS" | [
10919,
318,
262,
1271,
286,
3871,
3025,
3303,
318,
1786,
75,
290,
40567,
1790,
3670,
318,
14141,
349,
1312,
1090,
1207,
411,
43630,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
2147... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3303,
318,
1786,
75,
290,
40567,
1790,
3670,
318,
14141,
349,
1312,
1090,
1207,
411,
43630,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
2147... |
Where was the competition on August 15, 2012? | SELECT venue FROM table_name_60 WHERE date = "august 15, 2012" | [
8496,
373,
262,
5449,
319,
2932,
1315,
11,
2321,
30,
46506,
14359,
16034,
3084,
62,
3672,
62,
1899,
33411,
3128,
796,
366,
7493,
436,
1315,
11,
2321,
1
] | [
1,
1,
1,
1,
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,
5449,
319,
2932,
1315,
11,
2321,
30,
46506,
14359,
16034,
3084,
62,
3672,
62,
1899,
33411,
3128,
796,
366,
7493,
436,
1315,
11,
2321,
1
] |
what are the three most frequently performed surgeries for patients 40s a year before? | SELECT t1.treatmentname FROM (SELECT treatment.treatmentname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.age BETWEEN 40 AND 49) AND DATETIME(treatment.treatmenttime, 'start of year') = DATETIME(CURRENT... | [
10919,
389,
262,
1115,
749,
6777,
6157,
33624,
329,
3871,
2319,
82,
257,
614,
878,
30,
46506,
256,
16,
13,
42487,
3672,
16034,
357,
46506,
3513,
13,
42487,
3672,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
11050,
327... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1115,
749,
6777,
6157,
33624,
329,
3871,
2319,
82,
257,
614,
878,
30,
46506,
256,
16,
13,
42487,
3672,
16034,
357,
46506,
3513,
13,
42487,
3672,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
11050,
327... |
What is Party, when Results is 'Re-Elected', when First Elected is greater than 1990, and when District is 'Minnesota 4'? | SELECT "Party" FROM table_58742 WHERE "Results" = 're-elected' AND "First elected" > '1990' AND "District" = 'minnesota 4' | [
2061,
318,
3615,
11,
618,
15691,
318,
705,
3041,
12,
36,
12609,
3256,
618,
3274,
5903,
276,
318,
3744,
621,
6303,
11,
290,
618,
5665,
318,
705,
45670,
604,
30960,
46506,
366,
33553,
1,
16034,
3084,
62,
44617,
3682,
33411,
366,
25468,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3615,
11,
618,
15691,
318,
705,
3041,
12,
36,
12609,
3256,
618,
3274,
5903,
276,
318,
3744,
621,
6303,
11,
290,
618,
5665,
318,
705,
45670,
604,
30960,
46506,
366,
33553,
1,
16034,
3084,
62,
44617,
3682,
33411,
366,
25468,
... |
Accepted answers with lower scores. | SELECT Ans.Id AS "post_link", * FROM Posts AS Ans INNER JOIN (SELECT ParentId, MAX(Score) AS Score FROM Posts GROUP BY ParentId) AS Highest ON Ans.ParentId = Highest.ParentId INNER JOIN Posts AS Parent ON Ans.ParentId = Parent.ParentId WHERE Ans.Id = Parent.AcceptedAnswerId AND Ans.Score <= Highest.Score AND Parent.Cre... | [
38855,
276,
7429,
351,
2793,
8198,
13,
46506,
28038,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
1635,
16034,
12043,
7054,
28038,
3268,
21479,
32357,
1268,
357,
46506,
16774,
7390,
11,
25882,
7,
26595,
8,
7054,
15178,
16034,
12043,
44441,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
38855,
276,
7429,
351,
2793,
8198,
13,
46506,
28038,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
1635,
16034,
12043,
7054,
28038,
3268,
21479,
32357,
1268,
357,
46506,
16774,
7390,
11,
25882,
7,
26595,
8,
7054,
15178,
16034,
12043,
44441,
... |
calculate the number of times patient 015-52724 has been prescribed pantoprazole in the current hospital encounter. | SELECT COUNT(*) FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '015-52724' AND patient.hospitaldischargetime IS NULL)) AND medication.drugname... | [
9948,
3129,
378,
262,
1271,
286,
1661,
5827,
5534,
20,
12,
20,
1983,
1731,
468,
587,
14798,
15857,
404,
3247,
2305,
287,
262,
1459,
4436,
8791,
13,
46506,
327,
28270,
7,
28104,
16034,
14103,
33411,
14103,
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... | [
9948,
3129,
378,
262,
1271,
286,
1661,
5827,
5534,
20,
12,
20,
1983,
1731,
468,
587,
14798,
15857,
404,
3247,
2305,
287,
262,
1459,
4436,
8791,
13,
46506,
327,
28270,
7,
28104,
16034,
14103,
33411,
14103,
13,
26029,
20850,
31712,
312,
... |
since 4 years ago, how many patients were prescribed 0.9% sodium chloride within 2 months after they were diagnosed with end stage renal disease? | SELECT COUNT(DISTINCT t1.subject_id) FROM (SELECT admissions.subject_id, diagnoses_icd.charttime 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_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'end stage renal di... | [
20777,
604,
812,
2084,
11,
703,
867,
3871,
547,
14798,
657,
13,
24,
4,
21072,
44921,
1626,
362,
1933,
706,
484,
547,
14641,
351,
886,
3800,
44375,
4369,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
256,
16,
13,
32796,
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... | [
20777,
604,
812,
2084,
11,
703,
867,
3871,
547,
14798,
657,
13,
24,
4,
21072,
44921,
1626,
362,
1933,
706,
484,
547,
14641,
351,
886,
3800,
44375,
4369,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
256,
16,
13,
32796,
62,
312,
... |
where was sun 09/12/93 record made | SELECT stadium FROM table_21436373_12 WHERE date_year = "Sun 09/12/93" | [
3003,
373,
4252,
7769,
14,
1065,
14,
6052,
1700,
925,
46506,
10308,
16034,
3084,
62,
22291,
2623,
34770,
62,
1065,
33411,
3128,
62,
1941,
796,
366,
16012,
7769,
14,
1065,
14,
6052,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
373,
4252,
7769,
14,
1065,
14,
6052,
1700,
925,
46506,
10308,
16034,
3084,
62,
22291,
2623,
34770,
62,
1065,
33411,
3128,
62,
1941,
796,
366,
16012,
7769,
14,
1065,
14,
6052,
1
] |
On what surface did Katarina Srebotnik play Paola Su rez? | SELECT surface FROM table_name_83 WHERE opponent_in_final = "paola suárez" | [
2202,
644,
4417,
750,
8595,
283,
1437,
311,
260,
13645,
17187,
711,
11243,
5708,
1778,
302,
89,
30,
46506,
4417,
16034,
3084,
62,
3672,
62,
5999,
33411,
6125,
62,
259,
62,
20311,
796,
366,
8957,
5708,
424,
6557,
21107,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4417,
750,
8595,
283,
1437,
311,
260,
13645,
17187,
711,
11243,
5708,
1778,
302,
89,
30,
46506,
4417,
16034,
3084,
62,
3672,
62,
5999,
33411,
6125,
62,
259,
62,
20311,
796,
366,
8957,
5708,
424,
6557,
21107,
1
] |
When did sla ana peji , who was evicted on day 29, enter the house? | SELECT entered_the_house FROM table_name_82 WHERE evicted = "day 29" AND name = "slađana pejić" | [
2215,
750,
1017,
64,
44763,
613,
7285,
837,
508,
373,
819,
5722,
319,
1110,
2808,
11,
3802,
262,
2156,
30,
46506,
5982,
62,
1169,
62,
4803,
16034,
3084,
62,
3672,
62,
6469,
33411,
819,
5722,
796,
366,
820,
2808,
1,
5357,
1438,
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
] | [
2215,
750,
1017,
64,
44763,
613,
7285,
837,
508,
373,
819,
5722,
319,
1110,
2808,
11,
3802,
262,
2156,
30,
46506,
5982,
62,
1169,
62,
4803,
16034,
3084,
62,
3672,
62,
6469,
33411,
819,
5722,
796,
366,
820,
2808,
1,
5357,
1438,
796,
... |
What is the latest year rafael nadal was in the French Open, Roger Federer was in Wimbledon, and Roger Federer was in the Australian Open? | SELECT MAX(year) FROM table_name_71 WHERE french_open = "rafael nadal" AND wimbledon = "roger federer" AND australian_open = "roger federer" | [
2061,
318,
262,
3452,
614,
374,
1878,
3010,
299,
31682,
373,
287,
262,
4141,
4946,
11,
13637,
10169,
11882,
373,
287,
39999,
49258,
11,
290,
13637,
10169,
11882,
373,
287,
262,
6638,
4946,
30,
46506,
25882,
7,
1941,
8,
16034,
3084,
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... | [
2061,
318,
262,
3452,
614,
374,
1878,
3010,
299,
31682,
373,
287,
262,
4141,
4946,
11,
13637,
10169,
11882,
373,
287,
39999,
49258,
11,
290,
13637,
10169,
11882,
373,
287,
262,
6638,
4946,
30,
46506,
25882,
7,
1941,
8,
16034,
3084,
62... |
Count the number of local authorities by the local authority, and order Y-axis from low to high order. | SELECT local_authority, COUNT(local_authority) FROM station GROUP BY local_authority ORDER BY COUNT(local_authority) | [
12332,
262,
1271,
286,
1957,
4773,
416,
262,
1957,
4934,
11,
290,
1502,
575,
12,
22704,
422,
1877,
284,
1029,
1502,
13,
46506,
1957,
62,
9800,
414,
11,
327,
28270,
7,
12001,
62,
9800,
414,
8,
16034,
4429,
44441,
11050,
1957,
62,
980... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
12332,
262,
1271,
286,
1957,
4773,
416,
262,
1957,
4934,
11,
290,
1502,
575,
12,
22704,
422,
1877,
284,
1029,
1502,
13,
46506,
1957,
62,
9800,
414,
11,
327,
28270,
7,
12001,
62,
9800,
414,
8,
16034,
4429,
44441,
11050,
1957,
62,
980... |
For those employees who did not have any job in the past, what is the relationship between employee_id and commission_pct ? | SELECT EMPLOYEE_ID, COMMISSION_PCT FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) | [
1890,
883,
4409,
508,
750,
407,
423,
597,
1693,
287,
262,
1613,
11,
644,
318,
262,
2776,
1022,
6538,
62,
312,
290,
5810,
62,
79,
310,
5633,
46506,
17228,
6489,
21414,
6500,
62,
2389,
11,
22240,
40373,
62,
47,
4177,
16034,
4409,
3341... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
508,
750,
407,
423,
597,
1693,
287,
262,
1613,
11,
644,
318,
262,
2776,
1022,
6538,
62,
312,
290,
5810,
62,
79,
310,
5633,
46506,
17228,
6489,
21414,
6500,
62,
2389,
11,
22240,
40373,
62,
47,
4177,
16034,
4409,
3341... |
what are the total number of times the status is listed as roaming ? | SELECT COUNT(*) FROM table_203_868 WHERE "status" = 'roaming' | [
10919,
389,
262,
2472,
1271,
286,
1661,
262,
3722,
318,
5610,
355,
31665,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
22416,
62,
23,
3104,
33411,
366,
13376,
1,
796,
705,
305,
3723,
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,
389,
262,
2472,
1271,
286,
1661,
262,
3722,
318,
5610,
355,
31665,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
22416,
62,
23,
3104,
33411,
366,
13376,
1,
796,
705,
305,
3723,
6
] |
what is diagnoses short title and diagnoses long title of subject id 23733? | SELECT diagnoses.short_title, diagnoses.long_title FROM diagnoses WHERE diagnoses.subject_id = "23733" | [
10919,
318,
40567,
1790,
3670,
290,
40567,
890,
3670,
286,
2426,
4686,
34385,
2091,
30,
46506,
40567,
13,
19509,
62,
7839,
11,
40567,
13,
6511,
62,
7839,
16034,
40567,
33411,
40567,
13,
32796,
62,
312,
796,
366,
24693,
2091,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
40567,
1790,
3670,
290,
40567,
890,
3670,
286,
2426,
4686,
34385,
2091,
30,
46506,
40567,
13,
19509,
62,
7839,
11,
40567,
13,
6511,
62,
7839,
16034,
40567,
33411,
40567,
13,
32796,
62,
312,
796,
366,
24693,
2091,
1
] |
What year was the earliest first elected? | SELECT MIN(first_elected) FROM table_1341663_19 | [
2061,
614,
373,
262,
14555,
717,
7018,
30,
46506,
20625,
7,
11085,
62,
28604,
8,
16034,
3084,
62,
19880,
1433,
5066,
62,
1129
] | [
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,
373,
262,
14555,
717,
7018,
30,
46506,
20625,
7,
11085,
62,
28604,
8,
16034,
3084,
62,
19880,
1433,
5066,
62,
1129
] |
What is the highest number of people that attended a game at Moorabbin Oval? | SELECT MAX("Crowd") FROM table_51953 WHERE "Venue" = 'moorabbin oval' | [
2061,
318,
262,
4511,
1271,
286,
661,
326,
9141,
257,
983,
379,
31451,
6485,
259,
25165,
30,
46506,
25882,
7203,
34,
3986,
4943,
16034,
3084,
62,
47785,
4310,
33411,
366,
37522,
518,
1,
796,
705,
76,
2675,
6485,
259,
41186,
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
] | [
2061,
318,
262,
4511,
1271,
286,
661,
326,
9141,
257,
983,
379,
31451,
6485,
259,
25165,
30,
46506,
25882,
7203,
34,
3986,
4943,
16034,
3084,
62,
47785,
4310,
33411,
366,
37522,
518,
1,
796,
705,
76,
2675,
6485,
259,
41186,
6
] |
what was the enoxaparin sodium dose prescribed to patient 92846 last in 12/2105? | SELECT prescriptions.dose_val_rx FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 92846) AND prescriptions.drug = 'enoxaparin sodium' AND STRFTIME('%y-%m', prescriptions.startdate) = '2105-12' ORDER BY prescriptions.startdate DESC LIMIT 1 | [
10919,
373,
262,
551,
1140,
499,
17714,
21072,
10742,
14798,
284,
5827,
860,
2078,
3510,
938,
287,
1105,
14,
17,
13348,
30,
46506,
34092,
13,
34436,
62,
2100,
62,
40914,
16034,
34092,
33411,
34092,
13,
18108,
76,
62,
312,
3268,
357,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
373,
262,
551,
1140,
499,
17714,
21072,
10742,
14798,
284,
5827,
860,
2078,
3510,
938,
287,
1105,
14,
17,
13348,
30,
46506,
34092,
13,
34436,
62,
2100,
62,
40914,
16034,
34092,
33411,
34092,
13,
18108,
76,
62,
312,
3268,
357,
4... |
What is the total attendance before week 1? | SELECT SUM("Attendance") FROM table_66616 WHERE "Week" < '1' | [
2061,
318,
262,
2472,
14858,
878,
1285,
352,
30,
46506,
35683,
7203,
8086,
437,
590,
4943,
16034,
3084,
62,
27310,
1433,
33411,
366,
20916,
1,
1279,
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
] | [
2061,
318,
262,
2472,
14858,
878,
1285,
352,
30,
46506,
35683,
7203,
8086,
437,
590,
4943,
16034,
3084,
62,
27310,
1433,
33411,
366,
20916,
1,
1279,
705,
16,
6
] |
What were the points for a team that 414 points against? | SELECT "Points for" FROM table_37314 WHERE "Points against" = '414' | [
2061,
547,
262,
2173,
329,
257,
1074,
326,
45900,
2173,
1028,
30,
46506,
366,
40710,
329,
1,
16034,
3084,
62,
2718,
33638,
33411,
366,
40710,
1028,
1,
796,
705,
37309,
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
] | [
2061,
547,
262,
2173,
329,
257,
1074,
326,
45900,
2173,
1028,
30,
46506,
366,
40710,
329,
1,
16034,
3084,
62,
2718,
33638,
33411,
366,
40710,
1028,
1,
796,
705,
37309,
6
] |
what is the total number of date where visitor is new jersey nets | SELECT COUNT(date) FROM table_11964047_5 WHERE visitor = "New Jersey Nets" | [
10919,
318,
262,
2472,
1271,
286,
3128,
810,
21493,
318,
649,
22383,
31720,
46506,
327,
28270,
7,
4475,
8,
16034,
3084,
62,
16315,
31102,
2857,
62,
20,
33411,
21493,
796,
366,
3791,
8221,
27811,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2472,
1271,
286,
3128,
810,
21493,
318,
649,
22383,
31720,
46506,
327,
28270,
7,
4475,
8,
16034,
3084,
62,
16315,
31102,
2857,
62,
20,
33411,
21493,
796,
366,
3791,
8221,
27811,
1
] |
Which Particle has an Isospin I of 1 2, and a Symbol of 0 (1530)? | SELECT particle FROM table_name_37 WHERE isospin_i = "1⁄2" AND symbol = "ξ ∗0 (1530)" | [
13828,
2142,
1548,
468,
281,
1148,
2117,
259,
314,
286,
352,
362,
11,
290,
257,
38357,
286,
657,
357,
1314,
1270,
19427,
46506,
18758,
16034,
3084,
62,
3672,
62,
2718,
33411,
318,
2117,
259,
62,
72,
796,
366,
16,
46256,
226,
17,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
2142,
1548,
468,
281,
1148,
2117,
259,
314,
286,
352,
362,
11,
290,
257,
38357,
286,
657,
357,
1314,
1270,
19427,
46506,
18758,
16034,
3084,
62,
3672,
62,
2718,
33411,
318,
2117,
259,
62,
72,
796,
366,
16,
46256,
226,
17,
1,
... |
What is the sum of byes for losses larger than 14 for a Portland DFL of westerns? | SELECT SUM("Byes") FROM table_59316 WHERE "Portland DFL" = 'westerns' AND "Losses" > '14' | [
2061,
318,
262,
2160,
286,
416,
274,
329,
9089,
4025,
621,
1478,
329,
257,
10727,
360,
3697,
286,
8830,
82,
30,
46506,
35683,
7203,
3886,
274,
4943,
16034,
3084,
62,
3270,
33400,
33411,
366,
45330,
360,
3697,
1,
796,
705,
14197,
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
] | [
2061,
318,
262,
2160,
286,
416,
274,
329,
9089,
4025,
621,
1478,
329,
257,
10727,
360,
3697,
286,
8830,
82,
30,
46506,
35683,
7203,
3886,
274,
4943,
16034,
3084,
62,
3270,
33400,
33411,
366,
45330,
360,
3697,
1,
796,
705,
14197,
82,
... |
Which built by HM Dockyard has September 1830 as the laid down? | SELECT "Built by HM Dockyard" FROM table_7076 WHERE "Laid down" = 'september 1830' | [
13828,
3170,
416,
25904,
36444,
9413,
468,
2693,
45440,
355,
262,
8104,
866,
30,
46506,
366,
39582,
416,
25904,
36444,
9413,
1,
16034,
3084,
62,
2154,
4304,
33411,
366,
43,
1698,
866,
1,
796,
705,
325,
457,
1491,
45440,
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,
3170,
416,
25904,
36444,
9413,
468,
2693,
45440,
355,
262,
8104,
866,
30,
46506,
366,
39582,
416,
25904,
36444,
9413,
1,
16034,
3084,
62,
2154,
4304,
33411,
366,
43,
1698,
866,
1,
796,
705,
325,
457,
1491,
45440,
6
] |
Who was the home when the opponent was slovan liberec? | SELECT home FROM table_name_44 WHERE opponent = "slovan liberec" | [
8241,
373,
262,
1363,
618,
262,
6125,
373,
1017,
22590,
9195,
567,
66,
30,
46506,
1363,
16034,
3084,
62,
3672,
62,
2598,
33411,
6125,
796,
366,
6649,
22590,
9195,
567,
66,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
373,
262,
1363,
618,
262,
6125,
373,
1017,
22590,
9195,
567,
66,
30,
46506,
1363,
16034,
3084,
62,
3672,
62,
2598,
33411,
6125,
796,
366,
6649,
22590,
9195,
567,
66,
1
] |
Which Outcome has an Opponent in the final of simone colombo? | SELECT outcome FROM table_name_43 WHERE opponent_in_the_final = "simone colombo" | [
13828,
3806,
2958,
468,
281,
9385,
3471,
287,
262,
2457,
286,
985,
505,
951,
47265,
30,
46506,
8055,
16034,
3084,
62,
3672,
62,
3559,
33411,
6125,
62,
259,
62,
1169,
62,
20311,
796,
366,
14323,
505,
951,
47265,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3806,
2958,
468,
281,
9385,
3471,
287,
262,
2457,
286,
985,
505,
951,
47265,
30,
46506,
8055,
16034,
3084,
62,
3672,
62,
3559,
33411,
6125,
62,
259,
62,
1169,
62,
20311,
796,
366,
14323,
505,
951,
47265,
1
] |
Give me a bar chart, that just lists the participant ids as Y and their details as X-axis, and rank by the Participant_ID in descending. | SELECT Participant_Details, Participant_ID FROM Participants ORDER BY Participant_ID DESC | [
23318,
502,
257,
2318,
8262,
11,
326,
655,
8341,
262,
18399,
220,
2340,
355,
575,
290,
511,
3307,
355,
1395,
12,
22704,
11,
290,
4279,
416,
262,
29880,
62,
2389,
287,
31491,
13,
46506,
29880,
62,
24259,
11,
29880,
62,
2389,
16034,
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
] | [
23318,
502,
257,
2318,
8262,
11,
326,
655,
8341,
262,
18399,
220,
2340,
355,
575,
290,
511,
3307,
355,
1395,
12,
22704,
11,
290,
4279,
416,
262,
29880,
62,
2389,
287,
31491,
13,
46506,
29880,
62,
24259,
11,
29880,
62,
2389,
16034,
2... |
What is the total for Danny Pinheiro Rodrigues ( fra ), in a Position smaller than 7? | SELECT AVG(total) FROM table_name_37 WHERE gymnast = "danny pinheiro rodrigues ( fra )" AND position < 7 | [
2061,
318,
262,
2472,
329,
15105,
13727,
258,
7058,
16114,
947,
357,
5306,
10612,
287,
257,
23158,
4833,
621,
767,
30,
46506,
35224,
7,
23350,
8,
16034,
3084,
62,
3672,
62,
2718,
33411,
38581,
459,
796,
366,
67,
7737,
6757,
258,
7058,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2472,
329,
15105,
13727,
258,
7058,
16114,
947,
357,
5306,
10612,
287,
257,
23158,
4833,
621,
767,
30,
46506,
35224,
7,
23350,
8,
16034,
3084,
62,
3672,
62,
2718,
33411,
38581,
459,
796,
366,
67,
7737,
6757,
258,
7058,... |
How many points were there when the try bonus was 2? | SELECT "Points" FROM table_46793 WHERE "Try bonus" = '2' | [
2437,
867,
2173,
547,
612,
618,
262,
1949,
7202,
373,
362,
30,
46506,
366,
40710,
1,
16034,
3084,
62,
24669,
6052,
33411,
366,
23433,
7202,
1,
796,
705,
17,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
2173,
547,
612,
618,
262,
1949,
7202,
373,
362,
30,
46506,
366,
40710,
1,
16034,
3084,
62,
24669,
6052,
33411,
366,
23433,
7202,
1,
796,
705,
17,
6
] |
Which 20 Questions has a Cover model of rena mero , torrie wilson (two alternative covers)? | SELECT "20 Questions" FROM table_40537 WHERE "Cover model" = 'rena mero , torrie wilson (two alternative covers)' | [
13828,
1160,
20396,
468,
257,
17546,
2746,
286,
302,
2616,
285,
3529,
837,
7332,
5034,
39716,
1559,
357,
11545,
5559,
8698,
19427,
46506,
366,
1238,
20396,
1,
16034,
3084,
62,
26598,
2718,
33411,
366,
27245,
2746,
1,
796,
705,
918,
64,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1160,
20396,
468,
257,
17546,
2746,
286,
302,
2616,
285,
3529,
837,
7332,
5034,
39716,
1559,
357,
11545,
5559,
8698,
19427,
46506,
366,
1238,
20396,
1,
16034,
3084,
62,
26598,
2718,
33411,
366,
27245,
2746,
1,
796,
705,
918,
64,
... |
When is Home of chicago black hawks has a Record of 0 1? | SELECT date FROM table_name_57 WHERE home = "chicago black hawks" AND record = "0–1" | [
2215,
318,
5995,
286,
442,
4549,
2042,
23185,
591,
468,
257,
13266,
286,
657,
352,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
3553,
33411,
1363,
796,
366,
354,
4549,
2042,
23185,
591,
1,
5357,
1700,
796,
366,
15,
1906,
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
] | [
2215,
318,
5995,
286,
442,
4549,
2042,
23185,
591,
468,
257,
13266,
286,
657,
352,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
3553,
33411,
1363,
796,
366,
354,
4549,
2042,
23185,
591,
1,
5357,
1700,
796,
366,
15,
1906,
16,
1
] |
give me the number of patients whose discharge location is home health care and diagnoses short title is status-post ptca? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.discharge_location = "HOME HEALTH CARE" AND diagnoses.short_title = "Status-post ptca" | [
26535,
502,
262,
1271,
286,
3871,
3025,
17655,
4067,
318,
1363,
1535,
1337,
290,
40567,
1790,
3670,
318,
3722,
12,
7353,
42975,
6888,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
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... | [
26535,
502,
262,
1271,
286,
3871,
3025,
17655,
4067,
318,
1363,
1535,
1337,
290,
40567,
1790,
3670,
318,
3722,
12,
7353,
42975,
6888,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21... |
What was the earliest year for a car with 3 points and Cooper t20 chassis? | SELECT MIN(year) FROM table_name_36 WHERE points = 3 AND chassis = "cooper t20" | [
2061,
373,
262,
14555,
614,
329,
257,
1097,
351,
513,
2173,
290,
10382,
256,
1238,
24587,
30,
46506,
20625,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
2623,
33411,
2173,
796,
513,
5357,
24587,
796,
366,
1073,
3575,
256,
1238,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14555,
614,
329,
257,
1097,
351,
513,
2173,
290,
10382,
256,
1238,
24587,
30,
46506,
20625,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
2623,
33411,
2173,
796,
513,
5357,
24587,
796,
366,
1073,
3575,
256,
1238,
1
] |
What was week 5's result? | SELECT result FROM table_name_81 WHERE week = 5 | [
2061,
373,
1285,
642,
338,
1255,
30,
46506,
1255,
16034,
3084,
62,
3672,
62,
6659,
33411,
1285,
796,
642
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
1285,
642,
338,
1255,
30,
46506,
1255,
16034,
3084,
62,
3672,
62,
6659,
33411,
1285,
796,
642
] |
What is the number of patients who underwent (Aorto)coronary bypass of one coronary artery and died in or before 2138? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.dod_year <= "2138.0" AND procedures.short_title = "Aortocor bypas-1 cor art" | [
2061,
318,
262,
1271,
286,
3871,
508,
25289,
357,
32,
419,
78,
8,
10215,
261,
560,
17286,
286,
530,
37151,
37646,
290,
3724,
287,
393,
878,
362,
20107,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
318,
262,
1271,
286,
3871,
508,
25289,
357,
32,
419,
78,
8,
10215,
261,
560,
17286,
286,
530,
37151,
37646,
290,
3724,
287,
393,
878,
362,
20107,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
... |
What home team scored 10.14 (74)? | SELECT "Home team" FROM table_52814 WHERE "Home team score" = '10.14 (74)' | [
2061,
1363,
1074,
7781,
838,
13,
1415,
357,
4524,
19427,
46506,
366,
16060,
1074,
1,
16034,
3084,
62,
49351,
1415,
33411,
366,
16060,
1074,
4776,
1,
796,
705,
940,
13,
1415,
357,
4524,
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
] | [
2061,
1363,
1074,
7781,
838,
13,
1415,
357,
4524,
19427,
46506,
366,
16060,
1074,
1,
16034,
3084,
62,
49351,
1415,
33411,
366,
16060,
1074,
4776,
1,
796,
705,
940,
13,
1415,
357,
4524,
33047
] |
among patients aged below 64, how many of them had open reduc-int fix femur? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.age < "64" AND procedures.short_title = "Open reduc-int fix femur" | [
35131,
3871,
9722,
2174,
5598,
11,
703,
867,
286,
606,
550,
1280,
2027,
66,
12,
600,
4259,
2796,
333,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
35131,
3871,
9722,
2174,
5598,
11,
703,
867,
286,
606,
550,
1280,
2027,
66,
12,
600,
4259,
2796,
333,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
... |
How many afc titles were there when there were 2 super bowl wins? | SELECT MAX("AFC Titles") FROM table_2061 WHERE "Super Bowl Wins" = '2' | [
2437,
867,
6580,
66,
8714,
547,
612,
618,
612,
547,
362,
2208,
9396,
7864,
30,
46506,
25882,
7203,
32,
4851,
7659,
829,
4943,
16034,
3084,
62,
1238,
5333,
33411,
366,
12442,
8693,
24423,
1,
796,
705,
17,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
6580,
66,
8714,
547,
612,
618,
612,
547,
362,
2208,
9396,
7864,
30,
46506,
25882,
7203,
32,
4851,
7659,
829,
4943,
16034,
3084,
62,
1238,
5333,
33411,
366,
12442,
8693,
24423,
1,
796,
705,
17,
6
] |
What the name of Peter White's party? | SELECT party FROM table_name_31 WHERE member = "peter white" | [
2061,
262,
1438,
286,
5613,
2635,
338,
2151,
30,
46506,
2151,
16034,
3084,
62,
3672,
62,
3132,
33411,
2888,
796,
366,
79,
2357,
2330,
1
] | [
1,
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,
262,
1438,
286,
5613,
2635,
338,
2151,
30,
46506,
2151,
16034,
3084,
62,
3672,
62,
3132,
33411,
2888,
796,
366,
79,
2357,
2330,
1
] |
Which school has a quarterback? | SELECT school FROM table_name_94 WHERE position = "quarterback" | [
13828,
1524,
468,
257,
7880,
30,
46506,
1524,
16034,
3084,
62,
3672,
62,
5824,
33411,
2292,
796,
366,
24385,
1891,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
1524,
468,
257,
7880,
30,
46506,
1524,
16034,
3084,
62,
3672,
62,
5824,
33411,
2292,
796,
366,
24385,
1891,
1
] |
what is the number of days that have passed since the last time patient 007-15837 received a tube flush/meds intake on the current icu visit? | SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', intakeoutput.intakeoutputtime)) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid =... | [
10919,
318,
262,
1271,
286,
1528,
326,
423,
3804,
1201,
262,
938,
640,
5827,
3571,
22,
12,
21273,
2718,
2722,
257,
12403,
24773,
14,
1150,
82,
10337,
319,
262,
1459,
14158,
84,
3187,
30,
46506,
352,
1635,
357,
18601,
9792,
12789,
1078... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1528,
326,
423,
3804,
1201,
262,
938,
640,
5827,
3571,
22,
12,
21273,
2718,
2722,
257,
12403,
24773,
14,
1150,
82,
10337,
319,
262,
1459,
14158,
84,
3187,
30,
46506,
352,
1635,
357,
18601,
9792,
12789,
1078... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.