instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
What home team had a record of 4-16-7? | SELECT "Home" FROM table_11729 WHERE "Record" = '4-16-7' | [
2061,
1363,
1074,
550,
257,
1700,
286,
604,
12,
1433,
12,
22,
30,
46506,
366,
16060,
1,
16034,
3084,
62,
17657,
1959,
33411,
366,
23739,
1,
796,
705,
19,
12,
1433,
12,
22,
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,
1363,
1074,
550,
257,
1700,
286,
604,
12,
1433,
12,
22,
30,
46506,
366,
16060,
1,
16034,
3084,
62,
17657,
1959,
33411,
366,
23739,
1,
796,
705,
19,
12,
1433,
12,
22,
6
] |
For those employees who was hired before 2002-06-21, draw a bar chart about the distribution of job_id and the sum of department_id , and group by attribute job_id. | SELECT JOB_ID, SUM(DEPARTMENT_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' GROUP BY JOB_ID | [
1890,
883,
4409,
508,
373,
9657,
878,
6244,
12,
3312,
12,
2481,
11,
3197,
257,
2318,
8262,
546,
262,
6082,
286,
1693,
62,
312,
290,
262,
2160,
286,
5011,
62,
312,
837,
290,
1448,
416,
11688,
1693,
62,
312,
13,
46506,
449,
9864,
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,
508,
373,
9657,
878,
6244,
12,
3312,
12,
2481,
11,
3197,
257,
2318,
8262,
546,
262,
6082,
286,
1693,
62,
312,
290,
262,
2160,
286,
5011,
62,
312,
837,
290,
1448,
416,
11688,
1693,
62,
312,
13,
46506,
449,
9864,
62... |
The plural word of hands uses what singular word? | SELECT "Singular Word" FROM table_58006 WHERE "Plural Word" = 'hands' | [
464,
22801,
1573,
286,
2832,
3544,
644,
18032,
1573,
30,
46506,
366,
29974,
934,
9678,
1,
16034,
3084,
62,
3365,
28041,
33411,
366,
3646,
1523,
9678,
1,
796,
705,
43365,
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
] | [
464,
22801,
1573,
286,
2832,
3544,
644,
18032,
1573,
30,
46506,
366,
29974,
934,
9678,
1,
16034,
3084,
62,
3365,
28041,
33411,
366,
3646,
1523,
9678,
1,
796,
705,
43365,
6
] |
had any organism found in the last fluid wound microbiology test of patient 23002 this year? | SELECT COUNT(*) > 0 FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 23002) AND microbiologyevents.spec_type_desc = 'fluid wound' AND NOT microbiologyevents.org_name IS NULL AND DATETIME(microbiologyevents.charttime, 'start of year') = ... | [
18108,
597,
26433,
1043,
287,
262,
938,
11711,
11699,
24559,
1435,
1332,
286,
5827,
2242,
21601,
428,
614,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
24559,
1435,
31534,
33411,
24559,
1435,
31534,
13,
18108,
76,
62,
312,
3268,
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... | [
18108,
597,
26433,
1043,
287,
262,
938,
11711,
11699,
24559,
1435,
1332,
286,
5827,
2242,
21601,
428,
614,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
24559,
1435,
31534,
33411,
24559,
1435,
31534,
13,
18108,
76,
62,
312,
3268,
3... |
What was the result of the game attended by 54,110? | SELECT "Result" FROM table_40702 WHERE "Attendance" = '54,110' | [
2061,
373,
262,
1255,
286,
262,
983,
9141,
416,
7175,
11,
11442,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
1821,
36680,
33411,
366,
8086,
437,
590,
1,
796,
705,
4051,
11,
11442,
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,
1255,
286,
262,
983,
9141,
416,
7175,
11,
11442,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
1821,
36680,
33411,
366,
8086,
437,
590,
1,
796,
705,
4051,
11,
11442,
6
] |
What is the relationship between Team_ID and All_Games_Percent , and group by attribute All_Games? | SELECT Team_ID, All_Games_Percent FROM basketball_match GROUP BY All_Games | [
2061,
318,
262,
2776,
1022,
4816,
62,
2389,
290,
1439,
62,
24474,
62,
31905,
837,
290,
1448,
416,
11688,
1439,
62,
24474,
30,
46506,
4816,
62,
2389,
11,
1439,
62,
24474,
62,
31905,
16034,
9669,
62,
15699,
44441,
11050,
1439,
62,
24474... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2776,
1022,
4816,
62,
2389,
290,
1439,
62,
24474,
62,
31905,
837,
290,
1448,
416,
11688,
1439,
62,
24474,
30,
46506,
4816,
62,
2389,
11,
1439,
62,
24474,
62,
31905,
16034,
9669,
62,
15699,
44441,
11050,
1439,
62,
24474... |
What is the whole of Points that has a Drawn smaller than 1? | SELECT SUM("Points") FROM table_8226 WHERE "Drawn" < '1' | [
2061,
318,
262,
2187,
286,
11045,
326,
468,
257,
50061,
4833,
621,
352,
30,
46506,
35683,
7203,
40710,
4943,
16034,
3084,
62,
23,
24909,
33411,
366,
35,
5791,
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,
1,
1,
1,
1
] | [
2061,
318,
262,
2187,
286,
11045,
326,
468,
257,
50061,
4833,
621,
352,
30,
46506,
35683,
7203,
40710,
4943,
16034,
3084,
62,
23,
24909,
33411,
366,
35,
5791,
1,
1279,
705,
16,
6
] |
Count the number of people of each sex who have a weight higher than 85. | SELECT Sex, COUNT(*) FROM people WHERE Weight > 85 GROUP BY Sex | [
12332,
262,
1271,
286,
661,
286,
1123,
1714,
508,
423,
257,
3463,
2440,
621,
7600,
13,
46506,
14419,
11,
327,
28270,
7,
28104,
16034,
661,
33411,
14331,
1875,
7600,
44441,
11050,
14419
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
661,
286,
1123,
1714,
508,
423,
257,
3463,
2440,
621,
7600,
13,
46506,
14419,
11,
327,
28270,
7,
28104,
16034,
661,
33411,
14331,
1875,
7600,
44441,
11050,
14419
] |
how many times a neurosurgery - therapeutic craniotomy has been taken until 1 year ago? | SELECT COUNT(*) FROM treatment WHERE treatment.treatmentname = 'neurosurgery - therapeutic craniotomy' AND DATETIME(treatment.treatmenttime) <= DATETIME(CURRENT_TIME(), '-1 year') | [
4919,
867,
1661,
257,
7669,
11793,
7076,
532,
21546,
1067,
3216,
38385,
468,
587,
2077,
1566,
352,
614,
2084,
30,
46506,
327,
28270,
7,
28104,
16034,
3513,
33411,
3513,
13,
42487,
3672,
796,
705,
710,
1434,
11793,
7076,
532,
21546,
1067... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
257,
7669,
11793,
7076,
532,
21546,
1067,
3216,
38385,
468,
587,
2077,
1566,
352,
614,
2084,
30,
46506,
327,
28270,
7,
28104,
16034,
3513,
33411,
3513,
13,
42487,
3672,
796,
705,
710,
1434,
11793,
7076,
532,
21546,
1067... |
My Total Posts View Count. | SELECT SUM(ViewCount) FROM Posts WHERE OwnerUserId = '##UserId##' | [
3666,
7472,
12043,
3582,
2764,
13,
46506,
35683,
7,
7680,
12332,
8,
16034,
12043,
33411,
23853,
12982,
7390,
796,
705,
2235,
12982,
7390,
2235,
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
] | [
3666,
7472,
12043,
3582,
2764,
13,
46506,
35683,
7,
7680,
12332,
8,
16034,
12043,
33411,
23853,
12982,
7390,
796,
705,
2235,
12982,
7390,
2235,
6
] |
Find the full names of faculties who are members of department with department number 520. | SELECT T1.Fname, T1.Lname FROM FACULTY AS T1 JOIN MEMBER_OF AS T2 ON T1.FacID = T2.FacID WHERE T2.DNO = 520 | [
16742,
262,
1336,
3891,
286,
47126,
508,
389,
1866,
286,
5011,
351,
5011,
1271,
36141,
13,
46506,
309,
16,
13,
37,
3672,
11,
309,
16,
13,
43,
3672,
16034,
44216,
6239,
9936,
7054,
309,
16,
32357,
1268,
337,
28952,
62,
19238,
7054,
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... | [
16742,
262,
1336,
3891,
286,
47126,
508,
389,
1866,
286,
5011,
351,
5011,
1271,
36141,
13,
46506,
309,
16,
13,
37,
3672,
11,
309,
16,
13,
43,
3672,
16034,
44216,
6239,
9936,
7054,
309,
16,
32357,
1268,
337,
28952,
62,
19238,
7054,
3... |
provide the number of patients whose religion is romanian east. orth and item id is 50878? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.religion = "ROMANIAN EAST. ORTH" AND lab.itemid = "50878" | [
15234,
485,
262,
1271,
286,
3871,
3025,
5737,
318,
374,
5185,
666,
7627,
13,
29617,
290,
2378,
4686,
318,
2026,
23,
3695,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
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... | [
15234,
485,
262,
1271,
286,
3871,
3025,
5737,
318,
374,
5185,
666,
7627,
13,
29617,
290,
2378,
4686,
318,
2026,
23,
3695,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
... |
which township has his population as 834 ? | SELECT "township" FROM table_203_459 WHERE "population" = 834 | [
4758,
42823,
468,
465,
3265,
355,
807,
2682,
5633,
46506,
366,
12735,
6720,
1,
16034,
3084,
62,
22416,
62,
33459,
33411,
366,
39748,
1,
796,
807,
2682
] | [
1,
1,
1,
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,
42823,
468,
465,
3265,
355,
807,
2682,
5633,
46506,
366,
12735,
6720,
1,
16034,
3084,
62,
22416,
62,
33459,
33411,
366,
39748,
1,
796,
807,
2682
] |
What is the sum of District, when Took Office is greater than 1981, and when Senator is Cyndi Taylor Krier? | SELECT SUM("District") FROM table_47117 WHERE "Took Office" > '1981' AND "Senator" = 'cyndi taylor krier' | [
2061,
318,
262,
2160,
286,
5665,
11,
618,
309,
566,
4452,
318,
3744,
621,
14745,
11,
290,
618,
8962,
318,
5934,
358,
72,
8121,
509,
5277,
30,
46506,
35683,
7203,
44857,
4943,
16034,
3084,
62,
2857,
17657,
33411,
366,
51,
566,
4452,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5665,
11,
618,
309,
566,
4452,
318,
3744,
621,
14745,
11,
290,
618,
8962,
318,
5934,
358,
72,
8121,
509,
5277,
30,
46506,
35683,
7203,
44857,
4943,
16034,
3084,
62,
2857,
17657,
33411,
366,
51,
566,
4452,
... |
Which organisation type hires most research staff? | SELECT T1.organisation_type FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id = T2.employer_organisation_id GROUP BY T1.organisation_type ORDER BY COUNT(*) DESC LIMIT 1 | [
13828,
12684,
2099,
37097,
749,
2267,
3085,
30,
46506,
309,
16,
13,
9971,
5612,
62,
4906,
16034,
7221,
38189,
7054,
309,
16,
32357,
1268,
4992,
62,
31449,
7054,
309,
17,
6177,
309,
16,
13,
9971,
5612,
62,
312,
796,
309,
17,
13,
7033... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12684,
2099,
37097,
749,
2267,
3085,
30,
46506,
309,
16,
13,
9971,
5612,
62,
4906,
16034,
7221,
38189,
7054,
309,
16,
32357,
1268,
4992,
62,
31449,
7054,
309,
17,
6177,
309,
16,
13,
9971,
5612,
62,
312,
796,
309,
17,
13,
7033... |
What is the lowest number of league cups associated with 0 FA cups? | SELECT MIN("League Cup") FROM table_69697 WHERE "FA Cup" < '0' | [
2061,
318,
262,
9016,
1271,
286,
4652,
14180,
3917,
351,
657,
9677,
14180,
30,
46506,
20625,
7203,
24623,
5454,
4943,
16034,
3084,
62,
3388,
40035,
33411,
366,
7708,
5454,
1,
1279,
705,
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
] | [
2061,
318,
262,
9016,
1271,
286,
4652,
14180,
3917,
351,
657,
9677,
14180,
30,
46506,
20625,
7203,
24623,
5454,
4943,
16034,
3084,
62,
3388,
40035,
33411,
366,
7708,
5454,
1,
1279,
705,
15,
6
] |
Which Destination has a Stopping pattern of [2777] mciver station platforms? | SELECT destination FROM table_name_47 WHERE stopping_pattern = "[2777] mciver station platforms" | [
13828,
45657,
468,
257,
22025,
2105,
3912,
286,
685,
1983,
3324,
60,
285,
979,
332,
4429,
9554,
30,
46506,
10965,
16034,
3084,
62,
3672,
62,
2857,
33411,
12225,
62,
33279,
796,
12878,
1983,
3324,
60,
285,
979,
332,
4429,
9554,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
45657,
468,
257,
22025,
2105,
3912,
286,
685,
1983,
3324,
60,
285,
979,
332,
4429,
9554,
30,
46506,
10965,
16034,
3084,
62,
3672,
62,
2857,
33411,
12225,
62,
33279,
796,
12878,
1983,
3324,
60,
285,
979,
332,
4429,
9554,
1
] |
Who were the MLB draft with the hometown Opa-locka, Fl? | SELECT "MLB Draft" FROM table_290 WHERE "Hometown" = 'Opa-locka, FL' | [
8241,
547,
262,
18532,
4538,
351,
262,
20994,
8670,
64,
12,
5354,
64,
11,
1610,
30,
46506,
366,
5805,
33,
13650,
1,
16034,
3084,
62,
24369,
33411,
366,
39,
19191,
1,
796,
705,
46,
8957,
12,
5354,
64,
11,
9977,
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
] | [
8241,
547,
262,
18532,
4538,
351,
262,
20994,
8670,
64,
12,
5354,
64,
11,
1610,
30,
46506,
366,
5805,
33,
13650,
1,
16034,
3084,
62,
24369,
33411,
366,
39,
19191,
1,
796,
705,
46,
8957,
12,
5354,
64,
11,
9977,
6
] |
For all employees who have the letters D or S in their first name, visualize a bar chart about the distribution of hire_date and the amount of hire_date bin hire_date by time, could you list by the Y in asc please? | SELECT HIRE_DATE, COUNT(HIRE_DATE) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY COUNT(HIRE_DATE) | [
1890,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
38350,
257,
2318,
8262,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2033,
286,
11078,
62,
4475,
9874,
11078,
62,
4475,
416,
640,
11,
714,
345,
1351,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
38350,
257,
2318,
8262,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2033,
286,
11078,
62,
4475,
9874,
11078,
62,
4475,
416,
640,
11,
714,
345,
1351,
... |
how did the match between zwick and william richley last ? | SELECT "time" FROM table_204_461 WHERE "opponent" = 'william richey' | [
4919,
750,
262,
2872,
1022,
1976,
16239,
290,
481,
1789,
5527,
1636,
938,
5633,
46506,
366,
2435,
1,
16034,
3084,
62,
18638,
62,
40652,
33411,
366,
10365,
3471,
1,
796,
705,
10594,
1789,
12410,
20342,
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
] | [
4919,
750,
262,
2872,
1022,
1976,
16239,
290,
481,
1789,
5527,
1636,
938,
5633,
46506,
366,
2435,
1,
16034,
3084,
62,
18638,
62,
40652,
33411,
366,
10365,
3471,
1,
796,
705,
10594,
1789,
12410,
20342,
6
] |
What country does robert allenby represent? | SELECT "Country" FROM table_22649 WHERE "Player" = 'Robert Allenby' | [
2061,
1499,
857,
686,
4835,
477,
268,
1525,
2380,
30,
46506,
366,
33921,
1,
16034,
3084,
62,
1828,
33300,
33411,
366,
14140,
1,
796,
705,
19156,
9659,
1525,
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,
1499,
857,
686,
4835,
477,
268,
1525,
2380,
30,
46506,
366,
33921,
1,
16034,
3084,
62,
1828,
33300,
33411,
366,
14140,
1,
796,
705,
19156,
9659,
1525,
6
] |
a current diagnosis of acute severe, or unstable asthmatic condition ( e.g., severe chronic obstructive pulmonary disease ( copd ) | SELECT * FROM table_train_121 WHERE acute_severe = 1 OR (unstable_asthmatic_condition = 1 OR chronic_obstructive_pulmonary_disease_copd = 1) | [
64,
1459,
13669,
286,
14352,
6049,
11,
393,
21354,
6468,
71,
13849,
4006,
357,
304,
13,
70,
1539,
6049,
10726,
26520,
425,
45105,
4369,
357,
2243,
67,
1267,
46506,
1635,
16034,
3084,
62,
27432,
62,
19244,
33411,
14352,
62,
43070,
796,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
64,
1459,
13669,
286,
14352,
6049,
11,
393,
21354,
6468,
71,
13849,
4006,
357,
304,
13,
70,
1539,
6049,
10726,
26520,
425,
45105,
4369,
357,
2243,
67,
1267,
46506,
1635,
16034,
3084,
62,
27432,
62,
19244,
33411,
14352,
62,
43070,
796,
... |
what is the number of unmarried patients who had po2 lab test? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.marital_status = "SINGLE" AND lab.label = "pO2" | [
10919,
318,
262,
1271,
286,
39183,
3871,
508,
550,
745,
17,
2248,
1332,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
76,
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... | [
10919,
318,
262,
1271,
286,
39183,
3871,
508,
550,
745,
17,
2248,
1332,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
76,
62,
312,
... |
What is the Date of the game with a Record of 1 2 4? | SELECT date FROM table_name_27 WHERE record = "1–2–4" | [
2061,
318,
262,
7536,
286,
262,
983,
351,
257,
13266,
286,
352,
362,
604,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
1983,
33411,
1700,
796,
366,
16,
1906,
17,
1906,
19,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
7536,
286,
262,
983,
351,
257,
13266,
286,
352,
362,
604,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
1983,
33411,
1700,
796,
366,
16,
1906,
17,
1906,
19,
1
] |
Compare the number of the local authority by the local authority, show the number of local authority in desc order please. | SELECT local_authority, COUNT(local_authority) FROM station GROUP BY local_authority ORDER BY COUNT(local_authority) DESC | [
41488,
262,
1271,
286,
262,
1957,
4934,
416,
262,
1957,
4934,
11,
905,
262,
1271,
286,
1957,
4934,
287,
1715,
1502,
3387,
13,
46506,
1957,
62,
9800,
414,
11,
327,
28270,
7,
12001,
62,
9800,
414,
8,
16034,
4429,
44441,
11050,
1957,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
41488,
262,
1271,
286,
262,
1957,
4934,
416,
262,
1957,
4934,
11,
905,
262,
1271,
286,
1957,
4934,
287,
1715,
1502,
3387,
13,
46506,
1957,
62,
9800,
414,
11,
327,
28270,
7,
12001,
62,
9800,
414,
8,
16034,
4429,
44441,
11050,
1957,
6... |
how many games had at least 10,000 people in attendance ? | SELECT COUNT(*) FROM table_203_775 WHERE "attendance" >= 10000 | [
4919,
867,
1830,
550,
379,
1551,
838,
11,
830,
661,
287,
14858,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
22416,
62,
34483,
33411,
366,
1078,
437,
590,
1,
18189,
33028
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
1830,
550,
379,
1551,
838,
11,
830,
661,
287,
14858,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
22416,
62,
34483,
33411,
366,
1078,
437,
590,
1,
18189,
33028
] |
Which Top 10 is the lowest one that has Winnings of $405,300, and an Avg Start smaller than 30? | SELECT MIN(top_10) FROM table_name_86 WHERE winnings = "$405,300" AND avg_start < 30 | [
13828,
5849,
838,
318,
262,
9016,
530,
326,
468,
19454,
654,
286,
720,
26598,
11,
6200,
11,
290,
281,
33455,
7253,
4833,
621,
1542,
30,
46506,
20625,
7,
4852,
62,
940,
8,
16034,
3084,
62,
3672,
62,
4521,
33411,
1592,
23400,
796,
179... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5849,
838,
318,
262,
9016,
530,
326,
468,
19454,
654,
286,
720,
26598,
11,
6200,
11,
290,
281,
33455,
7253,
4833,
621,
1542,
30,
46506,
20625,
7,
4852,
62,
940,
8,
16034,
3084,
62,
3672,
62,
4521,
33411,
1592,
23400,
796,
179... |
Visualize a bar chart for how many male and female assistant professors do we have?, and sort from low to high by the names. | SELECT Sex, COUNT(*) FROM Faculty WHERE Rank = "AsstProf" GROUP BY Sex ORDER BY Sex | [
36259,
1096,
257,
2318,
8262,
329,
703,
867,
4257,
290,
4048,
8796,
20339,
466,
356,
423,
21747,
290,
3297,
422,
1877,
284,
1029,
416,
262,
3891,
13,
46506,
14419,
11,
327,
28270,
7,
28104,
16034,
35262,
33411,
10916,
796,
366,
1722,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4257,
290,
4048,
8796,
20339,
466,
356,
423,
21747,
290,
3297,
422,
1877,
284,
1029,
416,
262,
3891,
13,
46506,
14419,
11,
327,
28270,
7,
28104,
16034,
35262,
33411,
10916,
796,
366,
1722,
... |
WHAT WAS THE JERSEY NUMBER OF THE ROSTER PLAYER FROM OKLAHOMA STATE WHO PLAYED GUARD? | SELECT "No." FROM table_1288 WHERE "Position" = 'Guard' AND "School/Club Team" = 'Oklahoma State' | [
32971,
21725,
3336,
449,
4877,
22348,
36871,
13246,
3963,
3336,
371,
10892,
1137,
28180,
1137,
16034,
7477,
13534,
39,
2662,
32,
35454,
19494,
28180,
1961,
19348,
9795,
30,
46506,
366,
2949,
526,
16034,
3084,
62,
1065,
3459,
33411,
366,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
32971,
21725,
3336,
449,
4877,
22348,
36871,
13246,
3963,
3336,
371,
10892,
1137,
28180,
1137,
16034,
7477,
13534,
39,
2662,
32,
35454,
19494,
28180,
1961,
19348,
9795,
30,
46506,
366,
2949,
526,
16034,
3084,
62,
1065,
3459,
33411,
366,
2... |
tell me the top three of the most common procedures this year? | SELECT t1.treatmentname FROM (SELECT treatment.treatmentname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM treatment WHERE DATETIME(treatment.treatmenttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') GROUP BY treatment.treatmentname) AS t1 WHERE t1.c1 <= 3 | [
33331,
502,
262,
1353,
1115,
286,
262,
749,
2219,
9021,
428,
614,
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,
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... | [
33331,
502,
262,
1353,
1115,
286,
262,
749,
2219,
9021,
428,
614,
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,
28270,
7,
28104... |
Name the concacaf for 2010 season | SELECT concacaf FROM table_245694_4 WHERE season = 2010 | [
5376,
262,
1673,
330,
1878,
329,
3050,
1622,
46506,
1673,
330,
1878,
16034,
3084,
62,
22995,
45214,
62,
19,
33411,
1622,
796,
3050
] | [
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,
1673,
330,
1878,
329,
3050,
1622,
46506,
1673,
330,
1878,
16034,
3084,
62,
22995,
45214,
62,
19,
33411,
1622,
796,
3050
] |
How many runs are there when the highest score is 228*? | SELECT MIN("Runs") FROM table_30784 WHERE "Highest Score" = '228*' | [
2437,
867,
4539,
389,
612,
618,
262,
4511,
4776,
318,
29041,
9,
30,
46506,
20625,
7203,
10987,
82,
4943,
16034,
3084,
62,
1270,
37688,
33411,
366,
36124,
3634,
15178,
1,
796,
705,
23815,
9,
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
] | [
2437,
867,
4539,
389,
612,
618,
262,
4511,
4776,
318,
29041,
9,
30,
46506,
20625,
7203,
10987,
82,
4943,
16034,
3084,
62,
1270,
37688,
33411,
366,
36124,
3634,
15178,
1,
796,
705,
23815,
9,
6
] |
When theora is 2.3, how much is the h.264? | SELECT "H.264" FROM table_28292 WHERE "Theora" = '2.3' | [
2215,
262,
5799,
318,
362,
13,
18,
11,
703,
881,
318,
262,
289,
13,
18897,
30,
46506,
366,
39,
13,
18897,
1,
16034,
3084,
62,
2078,
32759,
33411,
366,
464,
5799,
1,
796,
705,
17,
13,
18,
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
] | [
2215,
262,
5799,
318,
362,
13,
18,
11,
703,
881,
318,
262,
289,
13,
18897,
30,
46506,
366,
39,
13,
18897,
1,
16034,
3084,
62,
2078,
32759,
33411,
366,
464,
5799,
1,
796,
705,
17,
13,
18,
6
] |
What is the Population of the nation that has an Area (km ) of 70,273? | SELECT population FROM table_name_31 WHERE area__km²_ = "70,273" | [
2061,
318,
262,
20133,
286,
262,
3277,
326,
468,
281,
9498,
357,
13276,
1267,
286,
4317,
11,
27367,
30,
46506,
3265,
16034,
3084,
62,
3672,
62,
3132,
33411,
1989,
834,
13276,
31185,
62,
796,
366,
2154,
11,
27367,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20133,
286,
262,
3277,
326,
468,
281,
9498,
357,
13276,
1267,
286,
4317,
11,
27367,
30,
46506,
3265,
16034,
3084,
62,
3672,
62,
3132,
33411,
1989,
834,
13276,
31185,
62,
796,
366,
2154,
11,
27367,
1
] |
count the number of patients whose diagnoses icd9 code is 2749 and drug route is id? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.icd9_code = "2749" AND prescriptions.route = "ID" | [
9127,
262,
1271,
286,
3871,
3025,
40567,
14158,
67,
24,
2438,
318,
2681,
2920,
290,
2563,
6339,
318,
4686,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
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... | [
9127,
262,
1271,
286,
3871,
3025,
40567,
14158,
67,
24,
2438,
318,
2681,
2920,
290,
2563,
6339,
318,
4686,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
61... |
count the number of patients whose year of birth is less than 2121 and procedure long title is biopsy of tonsils and adenoids? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.dob_year < "2121" AND procedures.long_title = "Biopsy of tonsils and adenoids" | [
9127,
262,
1271,
286,
3871,
3025,
614,
286,
4082,
318,
1342,
621,
362,
19244,
290,
8771,
890,
3670,
318,
3182,
44522,
286,
10860,
4487,
290,
512,
268,
10994,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
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... | [
9127,
262,
1271,
286,
3871,
3025,
614,
286,
4082,
318,
1342,
621,
362,
19244,
290,
8771,
890,
3670,
318,
3182,
44522,
286,
10860,
4487,
290,
512,
268,
10994,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
... |
How many settlements were made on the claim with the most recent claim settlement date? List the number and the claim id. | SELECT COUNT(*), T1.claim_id FROM claims AS T1 JOIN settlements AS T2 ON T1.claim_id = T2.claim_id GROUP BY T1.claim_id ORDER BY T1.date_claim_settled DESC LIMIT 1 | [
2437,
867,
18573,
547,
925,
319,
262,
1624,
351,
262,
749,
2274,
1624,
9443,
3128,
30,
7343,
262,
1271,
290,
262,
1624,
4686,
13,
46506,
327,
28270,
46491,
828,
309,
16,
13,
6604,
62,
312,
16034,
3667,
7054,
309,
16,
32357,
1268,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2437,
867,
18573,
547,
925,
319,
262,
1624,
351,
262,
749,
2274,
1624,
9443,
3128,
30,
7343,
262,
1271,
290,
262,
1624,
4686,
13,
46506,
327,
28270,
46491,
828,
309,
16,
13,
6604,
62,
312,
16034,
3667,
7054,
309,
16,
32357,
1268,
18... |
What is the lowest Bronze with a Ranking of 22nd of 32 and Gold larger than 4? | SELECT MIN(bronze) FROM table_name_2 WHERE ranking = "22nd of 32" AND gold > 4 | [
2061,
318,
262,
9016,
19461,
351,
257,
45407,
286,
2534,
358,
286,
3933,
290,
3561,
4025,
621,
604,
30,
46506,
20625,
7,
65,
1313,
2736,
8,
16034,
3084,
62,
3672,
62,
17,
33411,
12759,
796,
366,
1828,
358,
286,
3933,
1,
5357,
3869,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9016,
19461,
351,
257,
45407,
286,
2534,
358,
286,
3933,
290,
3561,
4025,
621,
604,
30,
46506,
20625,
7,
65,
1313,
2736,
8,
16034,
3084,
62,
3672,
62,
17,
33411,
12759,
796,
366,
1828,
358,
286,
3933,
1,
5357,
3869,
... |
who was the opponent after hatsu kioki ? | SELECT "opponent" FROM table_203_844 WHERE "date" > (SELECT "date" FROM table_203_844 WHERE "opponent" = 'hatsu hioki') ORDER BY "date" LIMIT 1 | [
8727,
373,
262,
6125,
706,
289,
19231,
47748,
18228,
5633,
46506,
366,
10365,
3471,
1,
16034,
3084,
62,
22416,
62,
23,
2598,
33411,
366,
4475,
1,
1875,
357,
46506,
366,
4475,
1,
16034,
3084,
62,
22416,
62,
23,
2598,
33411,
366,
10365,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8727,
373,
262,
6125,
706,
289,
19231,
47748,
18228,
5633,
46506,
366,
10365,
3471,
1,
16034,
3084,
62,
22416,
62,
23,
2598,
33411,
366,
4475,
1,
1875,
357,
46506,
366,
4475,
1,
16034,
3084,
62,
22416,
62,
23,
2598,
33411,
366,
10365,... |
Bar chart x axis sex y axis how many sex | SELECT Sex, COUNT(Sex) FROM people GROUP BY Sex | [
10374,
8262,
2124,
16488,
1714,
331,
16488,
703,
867,
1714,
46506,
14419,
11,
327,
28270,
7,
23398,
8,
16034,
661,
44441,
11050,
14419
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10374,
8262,
2124,
16488,
1714,
331,
16488,
703,
867,
1714,
46506,
14419,
11,
327,
28270,
7,
23398,
8,
16034,
661,
44441,
11050,
14419
] |
If the home team scored 6.7 (43), what was the away teams score? | SELECT "Away team score" FROM table_56174 WHERE "Home team score" = '6.7 (43)' | [
1532,
262,
1363,
1074,
7781,
718,
13,
22,
357,
3559,
828,
644,
373,
262,
1497,
3466,
4776,
30,
46506,
366,
32,
1014,
1074,
4776,
1,
16034,
3084,
62,
3980,
22985,
33411,
366,
16060,
1074,
4776,
1,
796,
705,
21,
13,
22,
357,
3559,
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
] | [
1532,
262,
1363,
1074,
7781,
718,
13,
22,
357,
3559,
828,
644,
373,
262,
1497,
3466,
4776,
30,
46506,
366,
32,
1014,
1074,
4776,
1,
16034,
3084,
62,
3980,
22985,
33411,
366,
16060,
1074,
4776,
1,
796,
705,
21,
13,
22,
357,
3559,
3... |
what is the total number of injuries , not including deaths , related to these attacks ? | SELECT SUM("hurt") FROM table_204_514 | [
10919,
318,
262,
2472,
1271,
286,
6821,
837,
407,
1390,
7040,
837,
3519,
284,
777,
3434,
5633,
46506,
35683,
7203,
71,
3325,
4943,
16034,
3084,
62,
18638,
62,
47396
] | [
1,
1,
1,
1,
1,
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,
6821,
837,
407,
1390,
7040,
837,
3519,
284,
777,
3434,
5633,
46506,
35683,
7203,
71,
3325,
4943,
16034,
3084,
62,
18638,
62,
47396
] |
What department is Mathematical Biology a part of ? | SELECT DISTINCT department FROM course WHERE name LIKE '%Mathematical Biology%' | [
2061,
5011,
318,
30535,
605,
24698,
257,
636,
286,
5633,
46506,
360,
8808,
1268,
4177,
5011,
16034,
1781,
33411,
1438,
34178,
705,
4,
19044,
10024,
605,
24698,
4,
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,
5011,
318,
30535,
605,
24698,
257,
636,
286,
5633,
46506,
360,
8808,
1268,
4177,
5011,
16034,
1781,
33411,
1438,
34178,
705,
4,
19044,
10024,
605,
24698,
4,
6
] |
What is the lowest nuber of games drawn in the total column? | SELECT MIN(drawn) FROM table_name_31 WHERE against = "total" | [
2061,
318,
262,
9016,
14364,
527,
286,
1830,
7428,
287,
262,
2472,
5721,
30,
46506,
20625,
7,
41549,
8,
16034,
3084,
62,
3672,
62,
3132,
33411,
1028,
796,
366,
23350,
1
] | [
1,
1,
1,
1,
1,
1,
1,
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,
9016,
14364,
527,
286,
1830,
7428,
287,
262,
2472,
5721,
30,
46506,
20625,
7,
41549,
8,
16034,
3084,
62,
3672,
62,
3132,
33411,
1028,
796,
366,
23350,
1
] |
calculate the total amount of input patient 002-39753 had until 09/29/2102. | SELECT SUM(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '002-39753')) AND intakeoutput.cellpath LIKE '%in... | [
9948,
3129,
378,
262,
2472,
2033,
286,
5128,
5827,
3571,
17,
12,
2670,
44550,
550,
1566,
7769,
14,
1959,
14,
17,
15377,
13,
46506,
35683,
7,
600,
539,
22915,
13,
3846,
2100,
84,
268,
39223,
8,
16034,
10337,
22915,
33411,
10337,
22915,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2472,
2033,
286,
5128,
5827,
3571,
17,
12,
2670,
44550,
550,
1566,
7769,
14,
1959,
14,
17,
15377,
13,
46506,
35683,
7,
600,
539,
22915,
13,
3846,
2100,
84,
268,
39223,
8,
16034,
10337,
22915,
33411,
10337,
22915,... |
What MLS team drafted samuel appiah? | SELECT "MLS Team" FROM table_27734 WHERE "Player" = 'Samuel Appiah' | [
2061,
13981,
1074,
15937,
6072,
2731,
598,
9520,
30,
46506,
366,
5805,
50,
4816,
1,
16034,
3084,
62,
27019,
2682,
33411,
366,
14140,
1,
796,
705,
16305,
2731,
2034,
9520,
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,
13981,
1074,
15937,
6072,
2731,
598,
9520,
30,
46506,
366,
5805,
50,
4816,
1,
16034,
3084,
62,
27019,
2682,
33411,
366,
14140,
1,
796,
705,
16305,
2731,
2034,
9520,
6
] |
Tell me the games for men's 5000 metres | SELECT "Games" FROM table_4382 WHERE "Event" = 'men''s 5000 metres' | [
24446,
502,
262,
1830,
329,
1450,
338,
23336,
18985,
46506,
366,
24474,
1,
16034,
3084,
62,
19,
36243,
33411,
366,
9237,
1,
796,
705,
3653,
7061,
82,
23336,
18985,
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
] | [
24446,
502,
262,
1830,
329,
1450,
338,
23336,
18985,
46506,
366,
24474,
1,
16034,
3084,
62,
19,
36243,
33411,
366,
9237,
1,
796,
705,
3653,
7061,
82,
23336,
18985,
6
] |
9:30 PM when the 8:00 PM is l'auberge du chien noir? | SELECT "9:30 PM" FROM table_10416 WHERE "8:00 PM" = 'l''auberge du chien noir' | [
24,
25,
1270,
3122,
618,
262,
807,
25,
405,
3122,
318,
300,
6,
559,
527,
469,
7043,
442,
2013,
645,
343,
30,
46506,
366,
24,
25,
1270,
3122,
1,
16034,
3084,
62,
13464,
1433,
33411,
366,
23,
25,
405,
3122,
1,
796,
705,
75,
7061,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
24,
25,
1270,
3122,
618,
262,
807,
25,
405,
3122,
318,
300,
6,
559,
527,
469,
7043,
442,
2013,
645,
343,
30,
46506,
366,
24,
25,
1270,
3122,
1,
16034,
3084,
62,
13464,
1433,
33411,
366,
23,
25,
405,
3122,
1,
796,
705,
75,
7061,
... |
Who had the pole position(s) when rob guiver won and kyle ryde had the fastest lap? | SELECT pole_position FROM table_29162856_1 WHERE winning_rider = "Rob Guiver" AND fastest_lap = "Kyle Ryde" | [
8241,
550,
262,
16825,
2292,
7,
82,
8,
618,
3857,
915,
1428,
1839,
290,
479,
2349,
374,
88,
2934,
550,
262,
14162,
14779,
30,
46506,
16825,
62,
9150,
16034,
3084,
62,
1959,
1433,
2078,
3980,
62,
16,
33411,
5442,
62,
49449,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
550,
262,
16825,
2292,
7,
82,
8,
618,
3857,
915,
1428,
1839,
290,
479,
2349,
374,
88,
2934,
550,
262,
14162,
14779,
30,
46506,
16825,
62,
9150,
16034,
3084,
62,
1959,
1433,
2078,
3980,
62,
16,
33411,
5442,
62,
49449,
796,
366,... |
What player has a number of playoff games played greater than 0? | SELECT player FROM table_name_64 WHERE pl_gp > 0 | [
2061,
2137,
468,
257,
1271,
286,
13119,
1830,
2826,
3744,
621,
657,
30,
46506,
2137,
16034,
3084,
62,
3672,
62,
2414,
33411,
458,
62,
31197,
1875,
657
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
2137,
468,
257,
1271,
286,
13119,
1830,
2826,
3744,
621,
657,
30,
46506,
2137,
16034,
3084,
62,
3672,
62,
2414,
33411,
458,
62,
31197,
1875,
657
] |
What is the total number of laps where time/retired is +2 laps and the grid number is bigger than 18? | SELECT SUM("Laps") FROM table_10427 WHERE "Time/Retired" = '+2 laps' AND "Grid" > '18' | [
2061,
318,
262,
2472,
1271,
286,
24590,
810,
640,
14,
1186,
1202,
318,
1343,
17,
24590,
290,
262,
10706,
1271,
318,
5749,
621,
1248,
30,
46506,
35683,
7203,
43,
1686,
4943,
16034,
3084,
62,
13464,
1983,
33411,
366,
7575,
14,
9781,
120... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1271,
286,
24590,
810,
640,
14,
1186,
1202,
318,
1343,
17,
24590,
290,
262,
10706,
1271,
318,
5749,
621,
1248,
30,
46506,
35683,
7203,
43,
1686,
4943,
16034,
3084,
62,
13464,
1983,
33411,
366,
7575,
14,
9781,
120... |
What Gaelic Athletic Association stadium is located in Carrick-on-Shannon? | SELECT "Stadium" FROM table_10210 WHERE "Location" = 'carrick-on-shannon' | [
2061,
39652,
291,
29007,
5396,
10308,
318,
5140,
287,
1879,
5557,
12,
261,
12,
2484,
8825,
30,
46506,
366,
1273,
6271,
1,
16034,
3084,
62,
15377,
940,
33411,
366,
14749,
1,
796,
705,
66,
3258,
624,
12,
261,
12,
1477,
8825,
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
] | [
2061,
39652,
291,
29007,
5396,
10308,
318,
5140,
287,
1879,
5557,
12,
261,
12,
2484,
8825,
30,
46506,
366,
1273,
6271,
1,
16034,
3084,
62,
15377,
940,
33411,
366,
14749,
1,
796,
705,
66,
3258,
624,
12,
261,
12,
1477,
8825,
6
] |
Who was Bob Bryan's partner in the Championship where the result is US Open (2)? | SELECT partner FROM table_29163303_2 WHERE championship = "US Open (2)" | [
8241,
373,
5811,
17857,
338,
5212,
287,
262,
10749,
810,
262,
1255,
318,
1294,
4946,
357,
17,
19427,
46506,
5212,
16034,
3084,
62,
1959,
24136,
22572,
62,
17,
33411,
12184,
796,
366,
2937,
4946,
357,
17,
16725
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
373,
5811,
17857,
338,
5212,
287,
262,
10749,
810,
262,
1255,
318,
1294,
4946,
357,
17,
19427,
46506,
5212,
16034,
3084,
62,
1959,
24136,
22572,
62,
17,
33411,
12184,
796,
366,
2937,
4946,
357,
17,
16725
] |
what is the latest flight i can take from WASHINGTON to SAN FRANCISCO | 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, flight WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'WASHINGTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SA... | [
10919,
318,
262,
3452,
5474,
1312,
460,
1011,
422,
370,
19436,
284,
37376,
8782,
20940,
37719,
14058,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3452,
5474,
1312,
460,
1011,
422,
370,
19436,
284,
37376,
8782,
20940,
37719,
14058,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003... |
What was the lowest pick number for a united states player picked before round 7? | SELECT MIN(pick) FROM table_name_91 WHERE round > 7 AND nationality = "united states" | [
2061,
373,
262,
9016,
2298,
1271,
329,
257,
16503,
2585,
2137,
6497,
878,
2835,
767,
30,
46506,
20625,
7,
27729,
8,
16034,
3084,
62,
3672,
62,
6420,
33411,
2835,
1875,
767,
5357,
29835,
796,
366,
41187,
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
] | [
2061,
373,
262,
9016,
2298,
1271,
329,
257,
16503,
2585,
2137,
6497,
878,
2835,
767,
30,
46506,
20625,
7,
27729,
8,
16034,
3084,
62,
3672,
62,
6420,
33411,
2835,
1875,
767,
5357,
29835,
796,
366,
41187,
2585,
1
] |
What is the number of attendance with the pre-season game as the type of record? | SELECT COUNT(attendance) FROM table_21436373_6 WHERE type_of_record = "Pre-season game" | [
2061,
318,
262,
1271,
286,
14858,
351,
262,
662,
12,
6230,
983,
355,
262,
2099,
286,
1700,
30,
46506,
327,
28270,
7,
1078,
437,
590,
8,
16034,
3084,
62,
22291,
2623,
34770,
62,
21,
33411,
2099,
62,
1659,
62,
22105,
796,
366,
6719,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14858,
351,
262,
662,
12,
6230,
983,
355,
262,
2099,
286,
1700,
30,
46506,
327,
28270,
7,
1078,
437,
590,
8,
16034,
3084,
62,
22291,
2623,
34770,
62,
21,
33411,
2099,
62,
1659,
62,
22105,
796,
366,
6719,
... |
Visualize a bar chart about the distribution of Team_Name and All_Games_Percent , order by the x axis from high to low. | SELECT Team_Name, All_Games_Percent FROM basketball_match ORDER BY Team_Name DESC | [
36259,
1096,
257,
2318,
8262,
546,
262,
6082,
286,
4816,
62,
5376,
290,
1439,
62,
24474,
62,
31905,
837,
1502,
416,
262,
2124,
16488,
422,
1029,
284,
1877,
13,
46506,
4816,
62,
5376,
11,
1439,
62,
24474,
62,
31905,
16034,
9669,
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
] | [
36259,
1096,
257,
2318,
8262,
546,
262,
6082,
286,
4816,
62,
5376,
290,
1439,
62,
24474,
62,
31905,
837,
1502,
416,
262,
2124,
16488,
422,
1029,
284,
1877,
13,
46506,
4816,
62,
5376,
11,
1439,
62,
24474,
62,
31905,
16034,
9669,
62,
... |
What is the College of Rice's highest overall for the guard position? | SELECT MAX(overall) FROM table_name_62 WHERE position = "guard" AND college = "rice" | [
2061,
318,
262,
5535,
286,
13823,
338,
4511,
4045,
329,
262,
4860,
2292,
30,
46506,
25882,
7,
2502,
439,
8,
16034,
3084,
62,
3672,
62,
5237,
33411,
2292,
796,
366,
14864,
1,
5357,
4152,
796,
366,
20970,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5535,
286,
13823,
338,
4511,
4045,
329,
262,
4860,
2292,
30,
46506,
25882,
7,
2502,
439,
8,
16034,
3084,
62,
3672,
62,
5237,
33411,
2292,
796,
366,
14864,
1,
5357,
4152,
796,
366,
20970,
1
] |
when was the first hospital admission where patient 031-13920 was admitted through the step-down unit (sdu) this year? | SELECT patient.hospitaladmittime FROM patient WHERE patient.uniquepid = '031-13920' AND patient.hospitaladmitsource = 'step-down unit (sdu)' AND DATETIME(patient.hospitaladmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') ORDER BY patient.hospitaladmittime LIMIT 1 | [
12518,
373,
262,
717,
4436,
13938,
810,
5827,
657,
3132,
12,
20219,
1238,
373,
6848,
832,
262,
2239,
12,
2902,
4326,
357,
82,
646,
8,
428,
614,
30,
46506,
5827,
13,
49257,
324,
20124,
524,
16034,
5827,
33411,
5827,
13,
403,
1557,
53... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
717,
4436,
13938,
810,
5827,
657,
3132,
12,
20219,
1238,
373,
6848,
832,
262,
2239,
12,
2902,
4326,
357,
82,
646,
8,
428,
614,
30,
46506,
5827,
13,
49257,
324,
20124,
524,
16034,
5827,
33411,
5827,
13,
403,
1557,
53... |
Show me about the correlation between CID and Credits in a scatter chart. | SELECT CID, Credits FROM Course ORDER BY Credits | [
15307,
502,
546,
262,
16096,
1022,
327,
2389,
290,
29501,
287,
257,
41058,
8262,
13,
46506,
327,
2389,
11,
29501,
16034,
20537,
38678,
11050,
29501
] | [
1,
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,
502,
546,
262,
16096,
1022,
327,
2389,
290,
29501,
287,
257,
41058,
8262,
13,
46506,
327,
2389,
11,
29501,
16034,
20537,
38678,
11050,
29501
] |
On what date was the venue at Edgbaston? | SELECT "Date" FROM table_67356 WHERE "Venue" = 'edgbaston' | [
2202,
644,
3128,
373,
262,
14359,
379,
1717,
22296,
45966,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
3134,
32066,
33411,
366,
37522,
518,
1,
796,
705,
276,
22296,
45966,
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
] | [
2202,
644,
3128,
373,
262,
14359,
379,
1717,
22296,
45966,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
3134,
32066,
33411,
366,
37522,
518,
1,
796,
705,
276,
22296,
45966,
6
] |
What route has termini of fm 1472 sh 255? | SELECT "Route Name" FROM table_56688 WHERE "Termini" = 'fm 1472 sh 255' | [
2061,
6339,
468,
5651,
72,
286,
277,
76,
1478,
4761,
427,
14280,
30,
46506,
366,
43401,
6530,
1,
16034,
3084,
62,
20,
2791,
3459,
33411,
366,
44798,
72,
1,
796,
705,
38353,
1478,
4761,
427,
14280,
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
] | [
2061,
6339,
468,
5651,
72,
286,
277,
76,
1478,
4761,
427,
14280,
30,
46506,
366,
43401,
6530,
1,
16034,
3084,
62,
20,
2791,
3459,
33411,
366,
44798,
72,
1,
796,
705,
38353,
1478,
4761,
427,
14280,
6
] |
Count the number of students who did not enroll in any course. | SELECT COUNT(*) FROM students WHERE NOT student_id IN (SELECT student_id FROM student_course_enrolment) | [
12332,
262,
1271,
286,
2444,
508,
750,
407,
14627,
287,
597,
1781,
13,
46506,
327,
28270,
7,
28104,
16034,
2444,
33411,
5626,
3710,
62,
312,
3268,
357,
46506,
3710,
62,
312,
16034,
3710,
62,
17319,
62,
268,
3225,
434,
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
] | [
12332,
262,
1271,
286,
2444,
508,
750,
407,
14627,
287,
597,
1781,
13,
46506,
327,
28270,
7,
28104,
16034,
2444,
33411,
5626,
3710,
62,
312,
3268,
357,
46506,
3710,
62,
312,
16034,
3710,
62,
17319,
62,
268,
3225,
434,
8
] |
What is noriyuki haga's time? | SELECT time FROM table_name_69 WHERE rider = "noriyuki haga" | [
2061,
318,
4249,
7745,
11308,
289,
8126,
338,
640,
30,
46506,
640,
16034,
3084,
62,
3672,
62,
3388,
33411,
17876,
796,
366,
13099,
7745,
11308,
289,
8126,
1
] | [
1,
1,
1,
1,
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,
4249,
7745,
11308,
289,
8126,
338,
640,
30,
46506,
640,
16034,
3084,
62,
3672,
62,
3388,
33411,
17876,
796,
366,
13099,
7745,
11308,
289,
8126,
1
] |
Name the location on 2006-04-07 for direct fire | SELECT "Location" FROM table_15453 WHERE "Date" = '2006-04-07' AND "Circumstances" = 'direct fire' | [
5376,
262,
4067,
319,
4793,
12,
3023,
12,
2998,
329,
1277,
2046,
46506,
366,
14749,
1,
16034,
3084,
62,
1314,
36625,
33411,
366,
10430,
1,
796,
705,
13330,
12,
3023,
12,
2998,
6,
5357,
366,
31560,
388,
301,
1817,
1,
796,
705,
12942,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4067,
319,
4793,
12,
3023,
12,
2998,
329,
1277,
2046,
46506,
366,
14749,
1,
16034,
3084,
62,
1314,
36625,
33411,
366,
10430,
1,
796,
705,
13330,
12,
3023,
12,
2998,
6,
5357,
366,
31560,
388,
301,
1817,
1,
796,
705,
12942,... |
Show all product names and the number of customers having an order on each product. Plot them as bar chart. | SELECT product_name, COUNT(*) FROM Order_Items AS T1 JOIN Products AS T2 ON T1.product_id = T2.product_id JOIN Orders AS T3 ON T3.order_id = T1.order_id GROUP BY T2.product_name | [
15307,
477,
1720,
3891,
290,
262,
1271,
286,
4297,
1719,
281,
1502,
319,
1123,
1720,
13,
28114,
606,
355,
2318,
8262,
13,
46506,
1720,
62,
3672,
11,
327,
28270,
7,
28104,
16034,
8284,
62,
23022,
7054,
309,
16,
32357,
1268,
18675,
7054... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
477,
1720,
3891,
290,
262,
1271,
286,
4297,
1719,
281,
1502,
319,
1123,
1720,
13,
28114,
606,
355,
2318,
8262,
13,
46506,
1720,
62,
3672,
11,
327,
28270,
7,
28104,
16034,
8284,
62,
23022,
7054,
309,
16,
32357,
1268,
18675,
7054... |
what type of aircraft are used on flights from CLEVELAND to DALLAS that leave before 1200 | SELECT DISTINCT aircraft.aircraft_code FROM aircraft, airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, equipment_sequence, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DALLAS' AND flight.departure_time < 1200 AND flight.t... | [
10919,
2099,
286,
6215,
389,
973,
319,
13956,
422,
30301,
18697,
6981,
284,
360,
7036,
1921,
326,
2666,
878,
24938,
46506,
360,
8808,
1268,
4177,
6215,
13,
958,
3323,
62,
8189,
16034,
6215,
11,
9003,
62,
15271,
7054,
31600,
15490,
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... | [
10919,
2099,
286,
6215,
389,
973,
319,
13956,
422,
30301,
18697,
6981,
284,
360,
7036,
1921,
326,
2666,
878,
24938,
46506,
360,
8808,
1268,
4177,
6215,
13,
958,
3323,
62,
8189,
16034,
6215,
11,
9003,
62,
15271,
7054,
31600,
15490,
62,
... |
What was the score when the opposition was West Coast in Wanganui? | SELECT "Score" FROM table_29090 WHERE "Opposition" = 'West Coast' AND "Location" = 'Wanganui' | [
2061,
373,
262,
4776,
618,
262,
5471,
373,
2688,
8545,
287,
15233,
272,
9019,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
1959,
42534,
33411,
366,
27524,
3507,
1,
796,
705,
15045,
8545,
6,
5357,
366,
14749,
1,
796,
705,
54,
37089,
90... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
4776,
618,
262,
5471,
373,
2688,
8545,
287,
15233,
272,
9019,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
1959,
42534,
33411,
366,
27524,
3507,
1,
796,
705,
15045,
8545,
6,
5357,
366,
14749,
1,
796,
705,
54,
37089,
90... |
Show all allergy types. | SELECT DISTINCT allergytype FROM allergy_type | [
15307,
477,
36197,
3858,
13,
46506,
360,
8808,
1268,
4177,
36197,
4906,
16034,
36197,
62,
4906
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15307,
477,
36197,
3858,
13,
46506,
360,
8808,
1268,
4177,
36197,
4906,
16034,
36197,
62,
4906
] |
What position had a debut in round 6? | SELECT "Position" FROM table_53554 WHERE "Debut" = 'round 6' | [
2061,
2292,
550,
257,
8886,
287,
2835,
718,
30,
46506,
366,
26545,
1,
16034,
3084,
62,
44465,
4051,
33411,
366,
16587,
315,
1,
796,
705,
744,
718,
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,
2292,
550,
257,
8886,
287,
2835,
718,
30,
46506,
366,
26545,
1,
16034,
3084,
62,
44465,
4051,
33411,
366,
16587,
315,
1,
796,
705,
744,
718,
6
] |
What is City of Sandefjord in Norway's IATA? | SELECT iata FROM table_name_12 WHERE country = "norway" AND city = "sandefjord" | [
2061,
318,
2254,
286,
3837,
891,
73,
585,
287,
15238,
338,
314,
13563,
30,
46506,
1312,
1045,
16034,
3084,
62,
3672,
62,
1065,
33411,
1499,
796,
366,
13099,
1014,
1,
5357,
1748,
796,
366,
38142,
891,
73,
585,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2254,
286,
3837,
891,
73,
585,
287,
15238,
338,
314,
13563,
30,
46506,
1312,
1045,
16034,
3084,
62,
3672,
62,
1065,
33411,
1499,
796,
366,
13099,
1014,
1,
5357,
1748,
796,
366,
38142,
891,
73,
585,
1
] |
For those records from the products and each product's manufacturer, return a bar chart about the distribution of name and manufacturer , and group by attribute founder, and could you sort by the bar in asc? | SELECT T1.Name, T1.Manufacturer FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder, T1.Name ORDER BY T1.Name | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
1438,
290,
11554,
837,
290,
1448,
416,
11688,
9119,
11,
290,
714,
345,
3297,
416,
262,
2318,
287,
10570,
30,
46506,
309,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
1438,
290,
11554,
837,
290,
1448,
416,
11688,
9119,
11,
290,
714,
345,
3297,
416,
262,
2318,
287,
10570,
30,
46506,
309,
1... |
Which Tournament has a 2007 of wta premier 5 tournaments? | SELECT "Tournament" FROM table_39607 WHERE "2007" = 'wta premier 5 tournaments' | [
13828,
9595,
468,
257,
4343,
286,
266,
8326,
18256,
642,
18130,
30,
46506,
366,
51,
5138,
1,
16034,
3084,
62,
2670,
31980,
33411,
366,
12726,
1,
796,
705,
86,
8326,
18256,
642,
18130,
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
] | [
13828,
9595,
468,
257,
4343,
286,
266,
8326,
18256,
642,
18130,
30,
46506,
366,
51,
5138,
1,
16034,
3084,
62,
2670,
31980,
33411,
366,
12726,
1,
796,
705,
86,
8326,
18256,
642,
18130,
6
] |
What College/junior/club team (league) did mitch fadden play for? | SELECT "College/junior/club team (league)" FROM table_78395 WHERE "Player" = 'mitch fadden' | [
2061,
5535,
14,
29741,
1504,
14,
18664,
1074,
357,
19316,
8,
750,
285,
2007,
277,
38014,
711,
329,
30,
46506,
366,
38951,
14,
29741,
1504,
14,
18664,
1074,
357,
19316,
16725,
16034,
3084,
62,
3695,
31010,
33411,
366,
14140,
1,
796,
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
] | [
2061,
5535,
14,
29741,
1504,
14,
18664,
1074,
357,
19316,
8,
750,
285,
2007,
277,
38014,
711,
329,
30,
46506,
366,
38951,
14,
29741,
1504,
14,
18664,
1074,
357,
19316,
16725,
16034,
3084,
62,
3695,
31010,
33411,
366,
14140,
1,
796,
70... |
Find the number of customers that use email as the contact channel and group by customer name and bin active date by weekday in a stacked bar chart, sort in descending by the y-axis please. | SELECT active_from_date, COUNT(active_from_date) FROM Customers AS t1 JOIN Customer_Contact_Channels AS t2 ON t1.customer_id = t2.customer_id WHERE t2.channel_code = 'Email' GROUP BY customer_name ORDER BY COUNT(active_from_date) DESC | [
16742,
262,
1271,
286,
4297,
326,
779,
3053,
355,
262,
2800,
6518,
290,
1448,
416,
6491,
1438,
290,
9874,
4075,
3128,
416,
28269,
287,
257,
24167,
2318,
8262,
11,
3297,
287,
31491,
416,
262,
331,
12,
22704,
3387,
13,
46506,
4075,
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... | [
16742,
262,
1271,
286,
4297,
326,
779,
3053,
355,
262,
2800,
6518,
290,
1448,
416,
6491,
1438,
290,
9874,
4075,
3128,
416,
28269,
287,
257,
24167,
2318,
8262,
11,
3297,
287,
31491,
416,
262,
331,
12,
22704,
3387,
13,
46506,
4075,
62,
... |
Create a pie chart showing how many card type code across card type code. | SELECT card_type_code, COUNT(card_type_code) FROM Customers_Cards GROUP BY card_type_code | [
16447,
257,
2508,
8262,
4478,
703,
867,
2657,
2099,
2438,
1973,
2657,
2099,
2438,
13,
46506,
2657,
62,
4906,
62,
8189,
11,
327,
28270,
7,
9517,
62,
4906,
62,
8189,
8,
16034,
36707,
62,
34,
1371,
44441,
11050,
2657,
62,
4906,
62,
818... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
16447,
257,
2508,
8262,
4478,
703,
867,
2657,
2099,
2438,
1973,
2657,
2099,
2438,
13,
46506,
2657,
62,
4906,
62,
8189,
11,
327,
28270,
7,
9517,
62,
4906,
62,
8189,
8,
16034,
36707,
62,
34,
1371,
44441,
11050,
2657,
62,
4906,
62,
818... |
What total number of opened has a stadium of stade de la mosson and is larger than 32,939 capacity? | SELECT COUNT("Opened") FROM table_13979 WHERE "Stadium" = 'stade de la mosson' AND "Capacity" > '32,939' | [
2061,
2472,
1271,
286,
4721,
468,
257,
10308,
286,
336,
671,
390,
8591,
42853,
261,
290,
318,
4025,
621,
3933,
11,
24,
2670,
5339,
30,
46506,
327,
28270,
7203,
18257,
2945,
4943,
16034,
3084,
62,
20219,
3720,
33411,
366,
1273,
6271,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2472,
1271,
286,
4721,
468,
257,
10308,
286,
336,
671,
390,
8591,
42853,
261,
290,
318,
4025,
621,
3933,
11,
24,
2670,
5339,
30,
46506,
327,
28270,
7203,
18257,
2945,
4943,
16034,
3084,
62,
20219,
3720,
33411,
366,
1273,
6271,
1... |
What is the Location when the novelty is gen? | SELECT "Location" FROM table_41182 WHERE "Novelty" = 'gen' | [
2061,
318,
262,
13397,
618,
262,
31650,
318,
2429,
30,
46506,
366,
14749,
1,
16034,
3084,
62,
42224,
6469,
33411,
366,
2949,
626,
774,
1,
796,
705,
5235,
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,
13397,
618,
262,
31650,
318,
2429,
30,
46506,
366,
14749,
1,
16034,
3084,
62,
42224,
6469,
33411,
366,
2949,
626,
774,
1,
796,
705,
5235,
6
] |
When did Bonecrusher win the championship at Bayam n, Puerto Rico? | SELECT date_won FROM table_name_5 WHERE location = "bayamón, puerto rico" AND champion_s_ = "bonecrusher" | [
2215,
750,
21717,
6098,
34055,
1592,
262,
12184,
379,
4696,
321,
299,
11,
15295,
16707,
30,
46506,
3128,
62,
26502,
16034,
3084,
62,
3672,
62,
20,
33411,
4067,
796,
366,
24406,
321,
18840,
11,
47574,
13806,
374,
3713,
1,
5357,
8783,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2215,
750,
21717,
6098,
34055,
1592,
262,
12184,
379,
4696,
321,
299,
11,
15295,
16707,
30,
46506,
3128,
62,
26502,
16034,
3084,
62,
3672,
62,
20,
33411,
4067,
796,
366,
24406,
321,
18840,
11,
47574,
13806,
374,
3713,
1,
5357,
8783,
6... |
Which Gold has a Rank of 7, a Nation of italy, and a Silver smaller than 0? | SELECT COUNT(gold) FROM table_name_40 WHERE rank = "7" AND nation = "italy" AND silver < 0 | [
13828,
3561,
468,
257,
10916,
286,
767,
11,
257,
8741,
286,
340,
3400,
11,
290,
257,
7698,
4833,
621,
657,
30,
46506,
327,
28270,
7,
24267,
8,
16034,
3084,
62,
3672,
62,
1821,
33411,
4279,
796,
366,
22,
1,
5357,
3277,
796,
366,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
3561,
468,
257,
10916,
286,
767,
11,
257,
8741,
286,
340,
3400,
11,
290,
257,
7698,
4833,
621,
657,
30,
46506,
327,
28270,
7,
24267,
8,
16034,
3084,
62,
3672,
62,
1821,
33411,
4279,
796,
366,
22,
1,
5357,
3277,
796,
366,
12... |
What is the verb meaning for class 4? | SELECT "Verb meaning" FROM table_44587 WHERE "Class" = '4' | [
2061,
318,
262,
15942,
3616,
329,
1398,
604,
30,
46506,
366,
13414,
65,
3616,
1,
16034,
3084,
62,
43489,
5774,
33411,
366,
9487,
1,
796,
705,
19,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
15942,
3616,
329,
1398,
604,
30,
46506,
366,
13414,
65,
3616,
1,
16034,
3084,
62,
43489,
5774,
33411,
366,
9487,
1,
796,
705,
19,
6
] |
What was the result on october 8, 1961? | SELECT "Result" FROM table_77174 WHERE "Date" = 'october 8, 1961' | [
2061,
373,
262,
1255,
319,
19318,
2023,
807,
11,
20510,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
3324,
22985,
33411,
366,
10430,
1,
796,
705,
38441,
2023,
807,
11,
20510,
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,
1255,
319,
19318,
2023,
807,
11,
20510,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
3324,
22985,
33411,
366,
10430,
1,
796,
705,
38441,
2023,
807,
11,
20510,
6
] |
what flights leave PHOENIX on wednesday evening and arrive in MILWAUKEE | 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 (((flight.departure_time BETWEEN 1800 AND 2200) AND date_day.day_number = 23 AND date_day.month_number = 4 AND date_day.year = 1991 AND days.day_... | [
10919,
13956,
2666,
9370,
46,
1677,
10426,
319,
29445,
3462,
6180,
290,
9240,
287,
31515,
15543,
52,
7336,
33635,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
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... | [
10919,
13956,
2666,
9370,
46,
1677,
10426,
319,
29445,
3462,
6180,
290,
9240,
287,
31515,
15543,
52,
7336,
33635,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
... |
Who has a 59 cap? | SELECT "Name" FROM table_32044 WHERE "Caps" = '59' | [
8241,
468,
257,
7863,
1451,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
19504,
2598,
33411,
366,
34,
1686,
1,
796,
705,
3270,
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
] | [
8241,
468,
257,
7863,
1451,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
19504,
2598,
33411,
366,
34,
1686,
1,
796,
705,
3270,
6
] |
tell me the price of pantoprazole 40 mg oral ent coat tab. | SELECT DISTINCT cost.cost FROM cost WHERE cost.eventtype = 'medication' AND cost.eventid IN (SELECT medication.medicationid FROM medication WHERE medication.drugname = 'pantoprazole 40 mg oral ent coat tab') | [
33331,
502,
262,
2756,
286,
15857,
404,
3247,
2305,
2319,
10527,
12886,
920,
13209,
7400,
13,
46506,
360,
8808,
1268,
4177,
1575,
13,
15805,
16034,
1575,
33411,
1575,
13,
15596,
4906,
796,
705,
1150,
3299,
6,
5357,
1575,
13,
15596,
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... | [
33331,
502,
262,
2756,
286,
15857,
404,
3247,
2305,
2319,
10527,
12886,
920,
13209,
7400,
13,
46506,
360,
8808,
1268,
4177,
1575,
13,
15805,
16034,
1575,
33411,
1575,
13,
15596,
4906,
796,
705,
1150,
3299,
6,
5357,
1575,
13,
15596,
312,... |
count the number of patients whose year of birth is less than 2101 and drug route is dwell? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.dob_year < "2101" AND prescriptions.route = "DWELL" | [
9127,
262,
1271,
286,
3871,
3025,
614,
286,
4082,
318,
1342,
621,
2310,
486,
290,
2563,
6339,
318,
14046,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
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,
1,
1,
1,
1,
1... | [
9127,
262,
1271,
286,
3871,
3025,
614,
286,
4082,
318,
1342,
621,
2310,
486,
290,
2563,
6339,
318,
14046,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
617... |
What team did James Vanderberg belong to when the Completions had a status of redshirt? | SELECT team FROM table_name_21 WHERE completions = "redshirt" | [
2061,
1074,
750,
3700,
26669,
3900,
5594,
284,
618,
262,
955,
37069,
507,
550,
257,
3722,
286,
2266,
15600,
30,
46506,
1074,
16034,
3084,
62,
3672,
62,
2481,
33411,
1224,
45240,
796,
366,
445,
15600,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1074,
750,
3700,
26669,
3900,
5594,
284,
618,
262,
955,
37069,
507,
550,
257,
3722,
286,
2266,
15600,
30,
46506,
1074,
16034,
3084,
62,
3672,
62,
2481,
33411,
1224,
45240,
796,
366,
445,
15600,
1
] |
What is the t o par for Ralph Guldahl? | SELECT "To par" FROM table_69863 WHERE "Player" = 'ralph guldahl' | [
2061,
318,
262,
256,
267,
1582,
329,
20993,
1962,
335,
15668,
30,
46506,
366,
2514,
1582,
1,
16034,
3084,
62,
3388,
4521,
18,
33411,
366,
14140,
1,
796,
705,
1373,
746,
915,
335,
15668,
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
] | [
2061,
318,
262,
256,
267,
1582,
329,
20993,
1962,
335,
15668,
30,
46506,
366,
2514,
1582,
1,
16034,
3084,
62,
3388,
4521,
18,
33411,
366,
14140,
1,
796,
705,
1373,
746,
915,
335,
15668,
6
] |
Count the number of patients who have sigmoid diverticulitis, colovestical fistula/sda as their primary disease and were admitted for more than 20 days in hospital. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "SIGMOID DIVERTICULITIS, COLOVESTICAL FISTULA/SDA" AND demographic.days_stay > "20" | [
12332,
262,
1271,
286,
3871,
508,
423,
264,
17225,
1868,
12312,
13370,
377,
11815,
11,
951,
709,
395,
605,
18606,
4712,
14,
82,
6814,
355,
511,
4165,
4369,
290,
547,
6848,
329,
517,
621,
1160,
1528,
287,
4436,
13,
46506,
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... | [
12332,
262,
1271,
286,
3871,
508,
423,
264,
17225,
1868,
12312,
13370,
377,
11815,
11,
951,
709,
395,
605,
18606,
4712,
14,
82,
6814,
355,
511,
4165,
4369,
290,
547,
6848,
329,
517,
621,
1160,
1528,
287,
4436,
13,
46506,
327,
28270,
... |
what is the total amount of silver medals given out ? | SELECT SUM("silver") FROM table_204_261 | [
10919,
318,
262,
2472,
2033,
286,
8465,
28057,
1813,
503,
5633,
46506,
35683,
7203,
40503,
4943,
16034,
3084,
62,
18638,
62,
30057
] | [
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,
2033,
286,
8465,
28057,
1813,
503,
5633,
46506,
35683,
7203,
40503,
4943,
16034,
3084,
62,
18638,
62,
30057
] |
What are toranosuke takagi's average laps? | SELECT AVG("Laps") FROM table_54616 WHERE "Driver" = 'toranosuke takagi' | [
2061,
389,
7332,
40015,
4649,
256,
461,
18013,
338,
2811,
24590,
30,
46506,
35224,
7203,
43,
1686,
4943,
16034,
3084,
62,
49489,
1433,
33411,
366,
32103,
1,
796,
705,
13165,
40015,
4649,
256,
461,
18013,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
389,
7332,
40015,
4649,
256,
461,
18013,
338,
2811,
24590,
30,
46506,
35224,
7203,
43,
1686,
4943,
16034,
3084,
62,
49489,
1433,
33411,
366,
32103,
1,
796,
705,
13165,
40015,
4649,
256,
461,
18013,
6
] |
Which season has Zach Jacobson in third? | SELECT season FROM table_name_30 WHERE third = "zach jacobson" | [
13828,
1622,
468,
18825,
12806,
1559,
287,
2368,
30,
46506,
1622,
16034,
3084,
62,
3672,
62,
1270,
33411,
2368,
796,
366,
89,
620,
474,
330,
672,
1559,
1
] | [
1,
1,
1,
1,
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,
1622,
468,
18825,
12806,
1559,
287,
2368,
30,
46506,
1622,
16034,
3084,
62,
3672,
62,
1270,
33411,
2368,
796,
366,
89,
620,
474,
330,
672,
1559,
1
] |
What is the Set 1 with a Score of 3 0, and has a Set 3 of 15 12? | SELECT "Set 1" FROM table_54306 WHERE "Score" = '3–0' AND "Set 3" = '15–12' | [
2061,
318,
262,
5345,
352,
351,
257,
15178,
286,
513,
657,
11,
290,
468,
257,
5345,
513,
286,
1315,
1105,
30,
46506,
366,
7248,
352,
1,
16034,
3084,
62,
4051,
20548,
33411,
366,
26595,
1,
796,
705,
18,
1906,
15,
6,
5357,
366,
7248... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5345,
352,
351,
257,
15178,
286,
513,
657,
11,
290,
468,
257,
5345,
513,
286,
1315,
1105,
30,
46506,
366,
7248,
352,
1,
16034,
3084,
62,
4051,
20548,
33411,
366,
26595,
1,
796,
705,
18,
1906,
15,
6,
5357,
366,
7248... |
Name the birth of the person that has a spouse of frederick iv and became consort of 4 april 1721 | SELECT "Birth" FROM table_69584 WHERE "Spouse" = 'frederick iv' AND "Became Consort" = '4 april 1721' | [
5376,
262,
4082,
286,
262,
1048,
326,
468,
257,
16731,
286,
277,
445,
41556,
21628,
290,
2627,
762,
419,
286,
604,
46593,
346,
1596,
2481,
46506,
366,
38480,
1,
16034,
3084,
62,
3388,
46352,
33411,
366,
4561,
1076,
1,
796,
705,
39193,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4082,
286,
262,
1048,
326,
468,
257,
16731,
286,
277,
445,
41556,
21628,
290,
2627,
762,
419,
286,
604,
46593,
346,
1596,
2481,
46506,
366,
38480,
1,
16034,
3084,
62,
3388,
46352,
33411,
366,
4561,
1076,
1,
796,
705,
39193,... |
list the patient identifications of patients who have been diagnosed with neutropenia since 2104. | SELECT patient.uniquepid FROM patient WHERE patient.patientunitstayid IN (SELECT diagnosis.patientunitstayid FROM diagnosis WHERE diagnosis.diagnosisname = 'neutropenia' AND STRFTIME('%y', diagnosis.diagnosistime) >= '2104') | [
4868,
262,
5827,
1852,
6637,
286,
3871,
508,
423,
587,
14641,
351,
22190,
1773,
268,
544,
1201,
362,
13464,
13,
46506,
5827,
13,
403,
1557,
538,
312,
16034,
5827,
33411,
5827,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
13669,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4868,
262,
5827,
1852,
6637,
286,
3871,
508,
423,
587,
14641,
351,
22190,
1773,
268,
544,
1201,
362,
13464,
13,
46506,
5827,
13,
403,
1557,
538,
312,
16034,
5827,
33411,
5827,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
13669,
13,
... |
What is the profession of Skaj Vikler, who entered the house on day 1 and was evicted on day 29? | SELECT profession FROM table_name_1 WHERE entered_the_house = "day 1" AND evicted = "day 29" AND name = "skaj vikler" | [
2061,
318,
262,
7573,
286,
3661,
1228,
10447,
1754,
11,
508,
5982,
262,
2156,
319,
1110,
352,
290,
373,
819,
5722,
319,
1110,
2808,
30,
46506,
7573,
16034,
3084,
62,
3672,
62,
16,
33411,
5982,
62,
1169,
62,
4803,
796,
366,
820,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
7573,
286,
3661,
1228,
10447,
1754,
11,
508,
5982,
262,
2156,
319,
1110,
352,
290,
373,
819,
5722,
319,
1110,
2808,
30,
46506,
7573,
16034,
3084,
62,
3672,
62,
16,
33411,
5982,
62,
1169,
62,
4803,
796,
366,
820,
352,... |
What team was the opponent for the game played on December 19, 1999? | SELECT opponent FROM table_name_87 WHERE date = "december 19, 1999" | [
2061,
1074,
373,
262,
6125,
329,
262,
983,
2826,
319,
3426,
678,
11,
7358,
30,
46506,
6125,
16034,
3084,
62,
3672,
62,
5774,
33411,
3128,
796,
366,
2934,
3273,
678,
11,
7358,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1074,
373,
262,
6125,
329,
262,
983,
2826,
319,
3426,
678,
11,
7358,
30,
46506,
6125,
16034,
3084,
62,
3672,
62,
5774,
33411,
3128,
796,
366,
2934,
3273,
678,
11,
7358,
1
] |
what is drug type of drug code clob.05o30? | SELECT prescriptions.drug_type FROM prescriptions WHERE prescriptions.formulary_drug_cd = "CLOB.05O30" | [
10919,
318,
2563,
2099,
286,
2563,
2438,
537,
672,
13,
2713,
78,
1270,
30,
46506,
34092,
13,
30349,
62,
4906,
16034,
34092,
33411,
34092,
13,
687,
377,
560,
62,
30349,
62,
10210,
796,
366,
5097,
9864,
13,
2713,
46,
1270,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2563,
2099,
286,
2563,
2438,
537,
672,
13,
2713,
78,
1270,
30,
46506,
34092,
13,
30349,
62,
4906,
16034,
34092,
33411,
34092,
13,
687,
377,
560,
62,
30349,
62,
10210,
796,
366,
5097,
9864,
13,
2713,
46,
1270,
1
] |
What is the party of the representative first elected in 1894 from the Ohio 16 district? | SELECT "Party" FROM table_39631 WHERE "First elected" = '1894' AND "District" = 'ohio 16' | [
2061,
318,
262,
2151,
286,
262,
8852,
717,
7018,
287,
1248,
5824,
422,
262,
6835,
1467,
4783,
30,
46506,
366,
33553,
1,
16034,
3084,
62,
34107,
3132,
33411,
366,
5962,
7018,
1,
796,
705,
1507,
5824,
6,
5357,
366,
44857,
1,
796,
705,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2151,
286,
262,
8852,
717,
7018,
287,
1248,
5824,
422,
262,
6835,
1467,
4783,
30,
46506,
366,
33553,
1,
16034,
3084,
62,
34107,
3132,
33411,
366,
5962,
7018,
1,
796,
705,
1507,
5824,
6,
5357,
366,
44857,
1,
796,
705,... |
What is the average total value for Spain? | SELECT AVG("Total") FROM table_13739 WHERE "Nation" = 'spain' | [
2061,
318,
262,
2811,
2472,
1988,
329,
8602,
30,
46506,
35224,
7203,
14957,
4943,
16034,
3084,
62,
19708,
2670,
33411,
366,
46108,
1,
796,
705,
2777,
391,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2811,
2472,
1988,
329,
8602,
30,
46506,
35224,
7203,
14957,
4943,
16034,
3084,
62,
19708,
2670,
33411,
366,
46108,
1,
796,
705,
2777,
391,
6
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.