instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
What is the home side's score at western oval? | SELECT "Home team score" FROM table_32891 WHERE "Venue" = 'western oval' | [
2061,
318,
262,
1363,
1735,
338,
4776,
379,
8830,
41186,
30,
46506,
366,
16060,
1074,
4776,
1,
16034,
3084,
62,
34256,
6420,
33411,
366,
37522,
518,
1,
796,
705,
14197,
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
] | [
2061,
318,
262,
1363,
1735,
338,
4776,
379,
8830,
41186,
30,
46506,
366,
16060,
1074,
4776,
1,
16034,
3084,
62,
34256,
6420,
33411,
366,
37522,
518,
1,
796,
705,
14197,
41186,
6
] |
Find all comments by user. | SELECT PostId AS "post_link", Score AS "score", Id AS "comment_link", CreationDate AS "creation_date" FROM Comments WHERE UserId = @MyUserID ORDER BY Score DESC | [
16742,
477,
3651,
416,
2836,
13,
46506,
2947,
7390,
7054,
366,
7353,
62,
8726,
1600,
15178,
7054,
366,
26675,
1600,
5121,
7054,
366,
23893,
62,
8726,
1600,
21582,
10430,
7054,
366,
38793,
62,
4475,
1,
16034,
19502,
33411,
11787,
7390,
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
] | [
16742,
477,
3651,
416,
2836,
13,
46506,
2947,
7390,
7054,
366,
7353,
62,
8726,
1600,
15178,
7054,
366,
26675,
1600,
5121,
7054,
366,
23893,
62,
8726,
1600,
21582,
10430,
7054,
366,
38793,
62,
4475,
1,
16034,
19502,
33411,
11787,
7390,
7... |
Tell me the total number of crest length for year construction larger than 1957 for mattmark | SELECT COUNT("Crest length (meters)") FROM table_32093 WHERE "Year of construction" > '1957' AND "Name" = 'mattmark' | [
24446,
502,
262,
2472,
1271,
286,
36893,
4129,
329,
614,
5103,
4025,
621,
25177,
329,
23963,
4102,
46506,
327,
28270,
7203,
34,
2118,
4129,
357,
4164,
364,
8,
4943,
16034,
3084,
62,
19504,
6052,
33411,
366,
17688,
286,
5103,
1,
1875,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2472,
1271,
286,
36893,
4129,
329,
614,
5103,
4025,
621,
25177,
329,
23963,
4102,
46506,
327,
28270,
7203,
34,
2118,
4129,
357,
4164,
364,
8,
4943,
16034,
3084,
62,
19504,
6052,
33411,
366,
17688,
286,
5103,
1,
1875,
... |
What was the highest place a song by Jacques Raymond reached, with a draw over 14? | SELECT MAX(place) FROM table_name_97 WHERE artist = "jacques raymond" AND draw > 14 | [
2061,
373,
262,
4511,
1295,
257,
3496,
416,
35437,
24238,
4251,
11,
351,
257,
3197,
625,
1478,
30,
46506,
25882,
7,
5372,
8,
16034,
3084,
62,
3672,
62,
5607,
33411,
6802,
796,
366,
30482,
13281,
26842,
6327,
1,
5357,
3197,
1875,
1478
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4511,
1295,
257,
3496,
416,
35437,
24238,
4251,
11,
351,
257,
3197,
625,
1478,
30,
46506,
25882,
7,
5372,
8,
16034,
3084,
62,
3672,
62,
5607,
33411,
6802,
796,
366,
30482,
13281,
26842,
6327,
1,
5357,
3197,
1875,
1478
... |
How many scores did Helen Sildna give when Iiris Vesik gave a 3? | SELECT COUNT(helen_sildna) FROM table_29261215_4 WHERE iiris_vesik = 3 | [
2437,
867,
8198,
750,
22695,
311,
688,
2616,
1577,
618,
314,
29616,
36448,
1134,
2921,
257,
513,
30,
46506,
327,
28270,
7,
2978,
268,
62,
82,
688,
2616,
8,
16034,
3084,
62,
1959,
2075,
1065,
1314,
62,
19,
33411,
1312,
29616,
62,
115... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8198,
750,
22695,
311,
688,
2616,
1577,
618,
314,
29616,
36448,
1134,
2921,
257,
513,
30,
46506,
327,
28270,
7,
2978,
268,
62,
82,
688,
2616,
8,
16034,
3084,
62,
1959,
2075,
1065,
1314,
62,
19,
33411,
1312,
29616,
62,
115... |
Name the company for desha county | SELECT company FROM table_25794010_1 WHERE county = "Desha" | [
5376,
262,
1664,
329,
748,
3099,
7968,
46506,
1664,
16034,
3084,
62,
1495,
50242,
20943,
62,
16,
33411,
7968,
796,
366,
5960,
3099,
1
] | [
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,
1664,
329,
748,
3099,
7968,
46506,
1664,
16034,
3084,
62,
1495,
50242,
20943,
62,
16,
33411,
7968,
796,
366,
5960,
3099,
1
] |
what is total number of bronze medals for slovakia ? | SELECT "bronze" FROM table_203_653 WHERE "nation" = 'slovakia' | [
10919,
318,
2472,
1271,
286,
22101,
28057,
329,
1017,
709,
21897,
5633,
46506,
366,
65,
1313,
2736,
1,
16034,
3084,
62,
22416,
62,
46435,
33411,
366,
25729,
1,
796,
705,
6649,
709,
21897,
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
] | [
10919,
318,
2472,
1271,
286,
22101,
28057,
329,
1017,
709,
21897,
5633,
46506,
366,
65,
1313,
2736,
1,
16034,
3084,
62,
22416,
62,
46435,
33411,
366,
25729,
1,
796,
705,
6649,
709,
21897,
6
] |
Select the names of manufacturer whose products have an average price higher than or equal to $150. | SELECT AVG(T1.price), T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name HAVING AVG(T1.price) >= 150 | [
17563,
262,
3891,
286,
11554,
3025,
3186,
423,
281,
2811,
2756,
2440,
621,
393,
4961,
284,
720,
8628,
13,
46506,
35224,
7,
51,
16,
13,
20888,
828,
309,
17,
13,
3672,
16034,
3186,
7054,
309,
16,
32357,
1268,
17858,
17496,
7054,
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... | [
17563,
262,
3891,
286,
11554,
3025,
3186,
423,
281,
2811,
2756,
2440,
621,
393,
4961,
284,
720,
8628,
13,
46506,
35224,
7,
51,
16,
13,
20888,
828,
309,
17,
13,
3672,
16034,
3186,
7054,
309,
16,
32357,
1268,
17858,
17496,
7054,
309,
... |
What is the African Spoonbill when the Hadeda Ibis is the Brown Snake Eagle? | SELECT "African Spoonbill" FROM table_23492 WHERE "Hadeda Ibis" = 'Brown Snake Eagle' | [
2061,
318,
262,
5510,
48704,
35546,
618,
262,
367,
5286,
64,
21089,
271,
318,
262,
4373,
16705,
18456,
30,
46506,
366,
43032,
48704,
35546,
1,
16034,
3084,
62,
1954,
40256,
33411,
366,
39,
5286,
64,
21089,
271,
1,
796,
705,
20644,
167... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5510,
48704,
35546,
618,
262,
367,
5286,
64,
21089,
271,
318,
262,
4373,
16705,
18456,
30,
46506,
366,
43032,
48704,
35546,
1,
16034,
3084,
62,
1954,
40256,
33411,
366,
39,
5286,
64,
21089,
271,
1,
796,
705,
20644,
167... |
what is date of death of subject name jerry deberry? | SELECT demographic.dod FROM demographic WHERE demographic.name = "Jerry Deberry" | [
10919,
318,
3128,
286,
1918,
286,
2426,
1438,
474,
6996,
390,
8396,
30,
46506,
16728,
13,
67,
375,
16034,
16728,
33411,
16728,
13,
3672,
796,
366,
43462,
1024,
8396,
1
] | [
1,
1,
1,
1,
1,
1,
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,
3128,
286,
1918,
286,
2426,
1438,
474,
6996,
390,
8396,
30,
46506,
16728,
13,
67,
375,
16034,
16728,
33411,
16728,
13,
3672,
796,
366,
43462,
1024,
8396,
1
] |
give me the number of patients whose age is less than 62 and diagnoses short title is esophageal reflux? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.age < "62" AND diagnoses.short_title = "Esophageal reflux" | [
26535,
502,
262,
1271,
286,
3871,
3025,
2479,
318,
1342,
621,
8190,
290,
40567,
1790,
3670,
318,
1658,
2522,
496,
282,
1006,
22564,
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... | [
26535,
502,
262,
1271,
286,
3871,
3025,
2479,
318,
1342,
621,
8190,
290,
40567,
1790,
3670,
318,
1658,
2522,
496,
282,
1006,
22564,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
2147... |
Who was the home team for the match at Stadion pod Vrmcem? | SELECT "Home" FROM table_34254 WHERE "Venue" = 'stadion pod vrmcem' | [
8241,
373,
262,
1363,
1074,
329,
262,
2872,
379,
520,
324,
295,
24573,
569,
26224,
344,
76,
30,
46506,
366,
16060,
1,
16034,
3084,
62,
2682,
24970,
33411,
366,
37522,
518,
1,
796,
705,
24107,
295,
24573,
410,
26224,
344,
76,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
373,
262,
1363,
1074,
329,
262,
2872,
379,
520,
324,
295,
24573,
569,
26224,
344,
76,
30,
46506,
366,
16060,
1,
16034,
3084,
62,
2682,
24970,
33411,
366,
37522,
518,
1,
796,
705,
24107,
295,
24573,
410,
26224,
344,
76,
6
] |
count the number of patients diagnosed with hypotension of hemodialysis who had long term care hospital discharge. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.discharge_location = "LONG TERM CARE HOSPITAL" AND diagnoses.long_title = "Hypotension of hemodialysis" | [
9127,
262,
1271,
286,
3871,
14641,
351,
8813,
3004,
286,
339,
4666,
498,
3097,
508,
550,
890,
3381,
1337,
4436,
17655,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
126... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14641,
351,
8813,
3004,
286,
339,
4666,
498,
3097,
508,
550,
890,
3381,
1337,
4436,
17655,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
126... |
What beer has a record of 4.08? | SELECT "beer" FROM table_64021 WHERE "recorded" = '4.08' | [
2061,
6099,
468,
257,
1700,
286,
604,
13,
2919,
30,
46506,
366,
42428,
1,
16034,
3084,
62,
31102,
2481,
33411,
366,
47398,
1,
796,
705,
19,
13,
2919,
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,
6099,
468,
257,
1700,
286,
604,
13,
2919,
30,
46506,
366,
42428,
1,
16034,
3084,
62,
31102,
2481,
33411,
366,
47398,
1,
796,
705,
19,
13,
2919,
6
] |
Name the record for verizon center 20,173 | SELECT "Record" FROM table_21460 WHERE "Location Attendance" = 'Verizon Center 20,173' | [
5376,
262,
1700,
329,
3326,
8637,
3641,
1160,
11,
25399,
46506,
366,
23739,
1,
16034,
3084,
62,
22291,
1899,
33411,
366,
14749,
46502,
590,
1,
796,
705,
13414,
8637,
3337,
1160,
11,
25399,
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
] | [
5376,
262,
1700,
329,
3326,
8637,
3641,
1160,
11,
25399,
46506,
366,
23739,
1,
16034,
3084,
62,
22291,
1899,
33411,
366,
14749,
46502,
590,
1,
796,
705,
13414,
8637,
3337,
1160,
11,
25399,
6
] |
Which Venue has an Away team of south melbourne? | SELECT venue FROM table_name_89 WHERE away_team = "south melbourne" | [
13828,
9932,
518,
468,
281,
21986,
1074,
286,
5366,
7758,
12544,
30,
46506,
14359,
16034,
3084,
62,
3672,
62,
4531,
33411,
1497,
62,
15097,
796,
366,
35782,
7758,
12544,
1
] | [
1,
1,
1,
1,
1,
1,
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,
9932,
518,
468,
281,
21986,
1074,
286,
5366,
7758,
12544,
30,
46506,
14359,
16034,
3084,
62,
3672,
62,
4531,
33411,
1497,
62,
15097,
796,
366,
35782,
7758,
12544,
1
] |
Name the silver for baseball | SELECT MIN(silver) FROM table_22360_3 WHERE discipline = "Baseball" | [
5376,
262,
8465,
329,
9283,
46506,
20625,
7,
40503,
8,
16034,
3084,
62,
1828,
15277,
62,
18,
33411,
12883,
796,
366,
14881,
1894,
1
] | [
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,
8465,
329,
9283,
46506,
20625,
7,
40503,
8,
16034,
3084,
62,
1828,
15277,
62,
18,
33411,
12883,
796,
366,
14881,
1894,
1
] |
what is the name of a drug that patient 025-44495 has been prescribed for two or more times since 06/2105? | SELECT t1.drugname FROM (SELECT medication.drugname, COUNT(medication.drugstarttime) AS c1 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '025... | [
10919,
318,
262,
1438,
286,
257,
2563,
326,
5827,
657,
1495,
12,
2598,
33781,
468,
587,
14798,
329,
734,
393,
517,
1661,
1201,
9130,
14,
17,
13348,
30,
46506,
256,
16,
13,
30349,
3672,
16034,
357,
46506,
14103,
13,
30349,
3672,
11,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
1438,
286,
257,
2563,
326,
5827,
657,
1495,
12,
2598,
33781,
468,
587,
14798,
329,
734,
393,
517,
1661,
1201,
9130,
14,
17,
13348,
30,
46506,
256,
16,
13,
30349,
3672,
16034,
357,
46506,
14103,
13,
30349,
3672,
11,
... |
What type of planet has a semimajor axis of 0.07 AU? | SELECT "Planet Type" FROM table_51873 WHERE "Semimajor Axis ( AU )" = '0.07' | [
2061,
2099,
286,
5440,
468,
257,
5026,
320,
1518,
16488,
286,
657,
13,
2998,
27548,
30,
46506,
366,
41801,
5994,
1,
16034,
3084,
62,
44085,
4790,
33411,
366,
13900,
320,
1518,
38349,
357,
27548,
1267,
1,
796,
705,
15,
13,
2998,
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,
2099,
286,
5440,
468,
257,
5026,
320,
1518,
16488,
286,
657,
13,
2998,
27548,
30,
46506,
366,
41801,
5994,
1,
16034,
3084,
62,
44085,
4790,
33411,
366,
13900,
320,
1518,
38349,
357,
27548,
1267,
1,
796,
705,
15,
13,
2998,
6
] |
what year was the first prion characterized ? | SELECT MIN("year identified") FROM table_203_589 | [
10919,
614,
373,
262,
717,
778,
295,
16264,
5633,
46506,
20625,
7203,
1941,
5174,
4943,
16034,
3084,
62,
22416,
62,
44169
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
614,
373,
262,
717,
778,
295,
16264,
5633,
46506,
20625,
7203,
1941,
5174,
4943,
16034,
3084,
62,
22416,
62,
44169
] |
For each phone, show its names and total number of stocks. | SELECT Name, SUM(T1.Num_of_stock) FROM phone_market AS T1 JOIN phone AS T2 ON T1.Phone_ID = T2.Phone_ID GROUP BY T2.Name | [
1890,
1123,
3072,
11,
905,
663,
3891,
290,
2472,
1271,
286,
14420,
13,
46506,
6530,
11,
35683,
7,
51,
16,
13,
33111,
62,
1659,
62,
13578,
8,
16034,
3072,
62,
10728,
7054,
309,
16,
32357,
1268,
3072,
7054,
309,
17,
6177,
309,
16,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1890,
1123,
3072,
11,
905,
663,
3891,
290,
2472,
1271,
286,
14420,
13,
46506,
6530,
11,
35683,
7,
51,
16,
13,
33111,
62,
1659,
62,
13578,
8,
16034,
3072,
62,
10728,
7054,
309,
16,
32357,
1268,
3072,
7054,
309,
17,
6177,
309,
16,
1... |
Weighing less than 85, with less than 340 Spikes, what is Gilberto Godoy Filho's Height | SELECT COUNT("Height") FROM table_42011 WHERE "Spike" < '340' AND "Name" = 'gilberto godoy filho' AND "Weight" < '85' | [
1135,
394,
278,
1342,
621,
7600,
11,
351,
1342,
621,
28560,
1338,
7938,
11,
644,
318,
10689,
32371,
1793,
726,
7066,
8873,
338,
27280,
46506,
327,
28270,
7203,
23106,
4943,
16034,
3084,
62,
19,
9804,
33411,
366,
4561,
522,
1,
1279,
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... | [
1135,
394,
278,
1342,
621,
7600,
11,
351,
1342,
621,
28560,
1338,
7938,
11,
644,
318,
10689,
32371,
1793,
726,
7066,
8873,
338,
27280,
46506,
327,
28270,
7203,
23106,
4943,
16034,
3084,
62,
19,
9804,
33411,
366,
4561,
522,
1,
1279,
70... |
What's the finals qualification during the 2009-10 season? | SELECT "Finals Qualification" FROM table_13698 WHERE "Season" = '2009-10' | [
2061,
338,
262,
18576,
28587,
1141,
262,
3717,
12,
940,
1622,
30,
46506,
366,
37,
6897,
9537,
2649,
1,
16034,
3084,
62,
1485,
39357,
33411,
366,
18960,
1,
796,
705,
10531,
12,
940,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
338,
262,
18576,
28587,
1141,
262,
3717,
12,
940,
1622,
30,
46506,
366,
37,
6897,
9537,
2649,
1,
16034,
3084,
62,
1485,
39357,
33411,
366,
18960,
1,
796,
705,
10531,
12,
940,
6
] |
What is Tournament, when 2012 is 'A', when 2011 is 'A', and when 2008 is 'A'? | SELECT "Tournament" FROM table_62439 WHERE "2012" = 'a' AND "2011" = 'a' AND "2008" = 'a' | [
2061,
318,
9595,
11,
618,
2321,
318,
705,
32,
3256,
618,
2813,
318,
705,
32,
3256,
290,
618,
3648,
318,
705,
32,
30960,
46506,
366,
51,
5138,
1,
16034,
3084,
62,
21,
1731,
2670,
33411,
366,
6999,
1,
796,
705,
64,
6,
5357,
366,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
9595,
11,
618,
2321,
318,
705,
32,
3256,
618,
2813,
318,
705,
32,
3256,
290,
618,
3648,
318,
705,
32,
30960,
46506,
366,
51,
5138,
1,
16034,
3084,
62,
21,
1731,
2670,
33411,
366,
6999,
1,
796,
705,
64,
6,
5357,
366,
9... |
what is the first time patient 025-10988 had enteral formula volume/bolus amt (ml) taken on the first icu visit? | SELECT 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 = '025-10988') AND NOT patient.unitdischargetime IS NULL... | [
10919,
318,
262,
717,
640,
5827,
657,
1495,
12,
14454,
3459,
550,
920,
1691,
10451,
6115,
14,
28984,
385,
716,
83,
357,
4029,
8,
2077,
319,
262,
717,
14158,
84,
3187,
30,
46506,
10337,
22915,
13,
600,
539,
22915,
2435,
16034,
10337,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
717,
640,
5827,
657,
1495,
12,
14454,
3459,
550,
920,
1691,
10451,
6115,
14,
28984,
385,
716,
83,
357,
4029,
8,
2077,
319,
262,
717,
14158,
84,
3187,
30,
46506,
10337,
22915,
13,
600,
539,
22915,
2435,
16034,
10337,
... |
What are the papers of saurabh gupta in instance segmentation ? | SELECT DISTINCT author.authorid, paper.paperid FROM author, keyphrase, paper, paperkeyphrase, writes WHERE author.authorname = 'saurabh gupta' AND keyphrase.keyphrasename = 'instance segmentation' AND paperkeyphrase.keyphraseid = keyphrase.keyphraseid AND paper.paperid = paperkeyphrase.paperid AND writes.authorid = aut... | [
2061,
389,
262,
9473,
286,
473,
333,
397,
71,
915,
32283,
287,
4554,
10618,
341,
5633,
46506,
360,
8808,
1268,
4177,
1772,
13,
9800,
312,
11,
3348,
13,
20189,
312,
16034,
1772,
11,
1994,
34675,
11,
3348,
11,
3348,
2539,
34675,
11,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
389,
262,
9473,
286,
473,
333,
397,
71,
915,
32283,
287,
4554,
10618,
341,
5633,
46506,
360,
8808,
1268,
4177,
1772,
13,
9800,
312,
11,
3348,
13,
20189,
312,
16034,
1772,
11,
1994,
34675,
11,
3348,
11,
3348,
2539,
34675,
11,
6... |
TOP 100 Reputation at Arab. | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id, DisplayName, Reputation, WebsiteUrl, Location FROM Users WHERE Location LIKE '%Iran%' ORDER BY Reputation DESC LIMIT 100 | [
35222,
1802,
1432,
7094,
379,
4498,
13,
46506,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
1432,
7094,
22196,
34,
8,
7054,
25113,
1600,
5121,
11,
16531,
5376,
11,
1432,
7094,
11,
15887,
28165,
11,
13397,
16034,
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
] | [
35222,
1802,
1432,
7094,
379,
4498,
13,
46506,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
1432,
7094,
22196,
34,
8,
7054,
25113,
1600,
5121,
11,
16531,
5376,
11,
1432,
7094,
11,
15887,
28165,
11,
13397,
16034,
18... |
For outgoing manager is alberto malesani mention all the applicable replaced by person | SELECT "Replaced by" FROM table_3703 WHERE "Outgoing manager" = 'Alberto Malesani' | [
1890,
28181,
4706,
318,
435,
32371,
10835,
3216,
3068,
477,
262,
9723,
6928,
416,
1048,
46506,
366,
3041,
21820,
416,
1,
16034,
3084,
62,
20167,
18,
33411,
366,
7975,
5146,
4706,
1,
796,
705,
2348,
32371,
43404,
3216,
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
] | [
1890,
28181,
4706,
318,
435,
32371,
10835,
3216,
3068,
477,
262,
9723,
6928,
416,
1048,
46506,
366,
3041,
21820,
416,
1,
16034,
3084,
62,
20167,
18,
33411,
366,
7975,
5146,
4706,
1,
796,
705,
2348,
32371,
43404,
3216,
6
] |
What is the record of wins and losses for Denver's ball club? | SELECT record FROM table_17311759_5 WHERE team = "Denver" | [
2061,
318,
262,
1700,
286,
7864,
290,
9089,
329,
10656,
338,
2613,
3430,
30,
46506,
1700,
16034,
3084,
62,
25399,
1157,
38314,
62,
20,
33411,
1074,
796,
366,
49818,
1
] | [
1,
1,
1,
1,
1,
1,
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,
1700,
286,
7864,
290,
9089,
329,
10656,
338,
2613,
3430,
30,
46506,
1700,
16034,
3084,
62,
25399,
1157,
38314,
62,
20,
33411,
1074,
796,
366,
49818,
1
] |
How many accounts are there for each customer id? | SELECT customer_id, COUNT(*) FROM accounts GROUP BY customer_id | [
2437,
867,
5504,
389,
612,
329,
1123,
6491,
4686,
30,
46506,
6491,
62,
312,
11,
327,
28270,
7,
28104,
16034,
5504,
44441,
11050,
6491,
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
] | [
2437,
867,
5504,
389,
612,
329,
1123,
6491,
4686,
30,
46506,
6491,
62,
312,
11,
327,
28270,
7,
28104,
16034,
5504,
44441,
11050,
6491,
62,
312
] |
What was the result of the Tennessee 2 district election? | SELECT result FROM table_1342270_42 WHERE district = "Tennessee 2" | [
2061,
373,
262,
1255,
286,
262,
11287,
362,
4783,
3071,
30,
46506,
1255,
16034,
3084,
62,
19880,
1828,
2154,
62,
3682,
33411,
4783,
796,
366,
43139,
10702,
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
] | [
2061,
373,
262,
1255,
286,
262,
11287,
362,
4783,
3071,
30,
46506,
1255,
16034,
3084,
62,
19880,
1828,
2154,
62,
3682,
33411,
4783,
796,
366,
43139,
10702,
362,
1
] |
How many goals when the points 1 is 38 and the played number is less than 42? | SELECT SUM("Goals For") FROM table_45085 WHERE "Points 1" = '38' AND "Played" < '42' | [
2437,
867,
4661,
618,
262,
2173,
352,
318,
4353,
290,
262,
2826,
1271,
318,
1342,
621,
5433,
30,
46506,
35683,
7203,
5247,
874,
1114,
4943,
16034,
3084,
62,
17885,
5332,
33411,
366,
40710,
352,
1,
796,
705,
2548,
6,
5357,
366,
11002,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4661,
618,
262,
2173,
352,
318,
4353,
290,
262,
2826,
1271,
318,
1342,
621,
5433,
30,
46506,
35683,
7203,
5247,
874,
1114,
4943,
16034,
3084,
62,
17885,
5332,
33411,
366,
40710,
352,
1,
796,
705,
2548,
6,
5357,
366,
11002,
... |
i need a flight from PHILADELPHIA to SAN FRANCISCO next wednesday | 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 (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRANCISCO' AND date_day.day_number = 23 AND date_day.month_number = 4... | [
72,
761,
257,
5474,
422,
9370,
4146,
2885,
3698,
11909,
3539,
284,
37376,
8782,
20940,
1797,
8220,
1306,
29445,
3462,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
72,
761,
257,
5474,
422,
9370,
4146,
2885,
3698,
11909,
3539,
284,
37376,
8782,
20940,
1797,
8220,
1306,
29445,
3462,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
... |
What was the location and attendance on March 9? | SELECT "Location Attendance" FROM table_29746 WHERE "Date" = 'March 9' | [
2061,
373,
262,
4067,
290,
14858,
319,
2805,
860,
30,
46506,
366,
14749,
46502,
590,
1,
16034,
3084,
62,
26561,
3510,
33411,
366,
10430,
1,
796,
705,
16192,
860,
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
] | [
2061,
373,
262,
4067,
290,
14858,
319,
2805,
860,
30,
46506,
366,
14749,
46502,
590,
1,
16034,
3084,
62,
26561,
3510,
33411,
366,
10430,
1,
796,
705,
16192,
860,
6
] |
How much average Finish has Starts of 9, and a Top 10 smaller than 0? | SELECT SUM("Avg. Finish") FROM table_44981 WHERE "Starts" = '9' AND "Top 10" < '0' | [
2437,
881,
2811,
32585,
468,
50181,
286,
860,
11,
290,
257,
5849,
838,
4833,
621,
657,
30,
46506,
35683,
7203,
48997,
13,
32585,
4943,
16034,
3084,
62,
2598,
4089,
16,
33411,
366,
1273,
5889,
1,
796,
705,
24,
6,
5357,
366,
9126,
838... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
881,
2811,
32585,
468,
50181,
286,
860,
11,
290,
257,
5849,
838,
4833,
621,
657,
30,
46506,
35683,
7203,
48997,
13,
32585,
4943,
16034,
3084,
62,
2598,
4089,
16,
33411,
366,
1273,
5889,
1,
796,
705,
24,
6,
5357,
366,
9126,
838... |
What score has a year later than 1974, with hawthorn as the champion? | SELECT "Score" FROM table_12646 WHERE "Year" > '1974' AND "Champion" = 'hawthorn' | [
2061,
4776,
468,
257,
614,
1568,
621,
16489,
11,
351,
23185,
400,
1211,
355,
262,
8783,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
1065,
27720,
33411,
366,
17688,
1,
1875,
705,
40828,
6,
5357,
366,
1925,
6734,
1,
796,
705,
26615,
40... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4776,
468,
257,
614,
1568,
621,
16489,
11,
351,
23185,
400,
1211,
355,
262,
8783,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
1065,
27720,
33411,
366,
17688,
1,
1875,
705,
40828,
6,
5357,
366,
1925,
6734,
1,
796,
705,
26615,
40... |
Which name has a state of Yan? | SELECT name FROM table_name_44 WHERE state = "yan" | [
13828,
1438,
468,
257,
1181,
286,
10642,
30,
46506,
1438,
16034,
3084,
62,
3672,
62,
2598,
33411,
1181,
796,
366,
4121,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
1438,
468,
257,
1181,
286,
10642,
30,
46506,
1438,
16034,
3084,
62,
3672,
62,
2598,
33411,
1181,
796,
366,
4121,
1
] |
what is the maximum amount of the total hospital cost which involves failure to wean - due to cns impairment? | SELECT MAX(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.patientunitstayid IN (SELECT diagnosis.patientunitstayid FROM diagnosis WHERE diagnosis.diagnosisname = 'failure to wean - due to cns impairment')) G... | [
10919,
318,
262,
5415,
2033,
286,
262,
2472,
4436,
1575,
543,
9018,
5287,
284,
356,
272,
532,
2233,
284,
269,
5907,
23992,
30,
46506,
25882,
7,
83,
16,
13,
66,
16,
8,
16034,
357,
46506,
35683,
7,
15805,
13,
15805,
8,
7054,
269,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
5415,
2033,
286,
262,
2472,
4436,
1575,
543,
9018,
5287,
284,
356,
272,
532,
2233,
284,
269,
5907,
23992,
30,
46506,
25882,
7,
83,
16,
13,
66,
16,
8,
16034,
357,
46506,
35683,
7,
15805,
13,
15805,
8,
7054,
269,
16... |
What is the highest numbered episode with patient portrayer doug savant? | SELECT MAX("#") FROM table_73973 WHERE "Patient Portrayer" = 'Doug Savant' | [
2061,
318,
262,
4511,
25840,
4471,
351,
5827,
10993,
263,
2255,
70,
473,
4520,
30,
46506,
25882,
7203,
2,
4943,
16034,
3084,
62,
22,
2670,
4790,
33411,
366,
12130,
1153,
4347,
2433,
263,
1,
796,
705,
42297,
8858,
415,
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
] | [
2061,
318,
262,
4511,
25840,
4471,
351,
5827,
10993,
263,
2255,
70,
473,
4520,
30,
46506,
25882,
7203,
2,
4943,
16034,
3084,
62,
22,
2670,
4790,
33411,
366,
12130,
1153,
4347,
2433,
263,
1,
796,
705,
42297,
8858,
415,
6
] |
How many viewers in millions watched the episode 23:55 minutes long? | SELECT "Viewers (in millions)" FROM table_22371 WHERE "Run time" = '23:55' | [
2437,
867,
10209,
287,
5242,
7342,
262,
4471,
2242,
25,
2816,
2431,
890,
30,
46506,
366,
7680,
364,
357,
259,
5242,
16725,
16034,
3084,
62,
1828,
38056,
33411,
366,
10987,
640,
1,
796,
705,
1954,
25,
2816,
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,
10209,
287,
5242,
7342,
262,
4471,
2242,
25,
2816,
2431,
890,
30,
46506,
366,
7680,
364,
357,
259,
5242,
16725,
16034,
3084,
62,
1828,
38056,
33411,
366,
10987,
640,
1,
796,
705,
1954,
25,
2816,
6
] |
What was the total of Mauro Camoranesi when coppa italia was 0, champions league was 1 and less than 2 serie A? | SELECT "Total" FROM table_61334 WHERE "Coppa Italia" = '0' AND "Champions League" = '1' AND "Serie A" < '2' AND "Name" = 'mauro camoranesi' | [
2061,
373,
262,
2472,
286,
28931,
305,
7298,
273,
7305,
72,
618,
763,
44989,
340,
9752,
373,
657,
11,
7827,
4652,
373,
352,
290,
1342,
621,
362,
1055,
494,
317,
30,
46506,
366,
14957,
1,
16034,
3084,
62,
47512,
2682,
33411,
366,
722... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
373,
262,
2472,
286,
28931,
305,
7298,
273,
7305,
72,
618,
763,
44989,
340,
9752,
373,
657,
11,
7827,
4652,
373,
352,
290,
1342,
621,
362,
1055,
494,
317,
30,
46506,
366,
14957,
1,
16034,
3084,
62,
47512,
2682,
33411,
366,
722... |
Where is the club 'Hopkins Student Enterprises' located? | SELECT clublocation FROM club WHERE clubname = "Hopkins Student Enterprises" | [
8496,
318,
262,
3430,
705,
23483,
5331,
13613,
41253,
6,
5140,
30,
46506,
3430,
24886,
16034,
3430,
33411,
3430,
3672,
796,
366,
23483,
5331,
13613,
41253,
1
] | [
1,
1,
1,
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,
318,
262,
3430,
705,
23483,
5331,
13613,
41253,
6,
5140,
30,
46506,
3430,
24886,
16034,
3430,
33411,
3430,
3672,
796,
366,
23483,
5331,
13613,
41253,
1
] |
Chassis model Scania K360ua has what minimum number in fleet? | SELECT MIN(number_in_fleet) FROM table_1425948_1 WHERE chassis_model = "Scania K360UA" | [
1925,
20297,
2746,
1446,
5411,
509,
15277,
6413,
468,
644,
5288,
1271,
287,
11026,
30,
46506,
20625,
7,
17618,
62,
259,
62,
33559,
8,
16034,
3084,
62,
1415,
25191,
2780,
62,
16,
33411,
24587,
62,
19849,
796,
366,
3351,
5411,
509,
1527... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1925,
20297,
2746,
1446,
5411,
509,
15277,
6413,
468,
644,
5288,
1271,
287,
11026,
30,
46506,
20625,
7,
17618,
62,
259,
62,
33559,
8,
16034,
3084,
62,
1415,
25191,
2780,
62,
16,
33411,
24587,
62,
19849,
796,
366,
3351,
5411,
509,
1527... |
Which venue has an against value larger than 21 and had Argentina as an opposing team. | SELECT venue FROM table_name_91 WHERE against > 21 AND opposing_team = "argentina" | [
13828,
14359,
468,
281,
1028,
1988,
4025,
621,
2310,
290,
550,
16519,
355,
281,
12330,
1074,
13,
46506,
14359,
16034,
3084,
62,
3672,
62,
6420,
33411,
1028,
1875,
2310,
5357,
12330,
62,
15097,
796,
366,
853,
298,
1437,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14359,
468,
281,
1028,
1988,
4025,
621,
2310,
290,
550,
16519,
355,
281,
12330,
1074,
13,
46506,
14359,
16034,
3084,
62,
3672,
62,
6420,
33411,
1028,
1875,
2310,
5357,
12330,
62,
15097,
796,
366,
853,
298,
1437,
1
] |
tell me what the length of stay was for patient 85169's first hospital stay. | SELECT STRFTIME('%j', admissions.dischtime) - STRFTIME('%j', admissions.admittime) FROM admissions WHERE admissions.subject_id = 85169 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1 | [
33331,
502,
644,
262,
4129,
286,
2652,
373,
329,
5827,
7600,
22172,
338,
717,
4436,
2652,
13,
46506,
19269,
9792,
12789,
10786,
4,
73,
3256,
25349,
13,
6381,
354,
2435,
8,
532,
19269,
9792,
12789,
10786,
4,
73,
3256,
25349,
13,
324,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
644,
262,
4129,
286,
2652,
373,
329,
5827,
7600,
22172,
338,
717,
4436,
2652,
13,
46506,
19269,
9792,
12789,
10786,
4,
73,
3256,
25349,
13,
6381,
354,
2435,
8,
532,
19269,
9792,
12789,
10786,
4,
73,
3256,
25349,
13,
324,
... |
i'd like a flight from BURBANK to TACOMA WASHINGTON | 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, state WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BURBANK' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = ... | [
72,
1549,
588,
257,
5474,
422,
45604,
33,
15154,
284,
309,
2246,
2662,
32,
370,
19436,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
72,
1549,
588,
257,
5474,
422,
45604,
33,
15154,
284,
309,
2246,
2662,
32,
370,
19436,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
... |
List the names of courses in alphabetical order? | SELECT course_name FROM courses ORDER BY course_name | [
8053,
262,
3891,
286,
10902,
287,
24830,
605,
1502,
30,
46506,
1781,
62,
3672,
16034,
10902,
38678,
11050,
1781,
62,
3672
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8053,
262,
3891,
286,
10902,
287,
24830,
605,
1502,
30,
46506,
1781,
62,
3672,
16034,
10902,
38678,
11050,
1781,
62,
3672
] |
What is the number of patients born before 2182 who had an indirect bilirubin lab test done? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "2182" AND lab.label = "Bilirubin, Indirect" | [
2061,
318,
262,
1271,
286,
3871,
4642,
878,
362,
24294,
508,
550,
281,
12913,
47027,
343,
549,
259,
2248,
1332,
1760,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
318,
262,
1271,
286,
3871,
4642,
878,
362,
24294,
508,
550,
281,
12913,
47027,
343,
549,
259,
2248,
1332,
1760,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268... |
how many patients were prescribed with 5% dextrose within the same month after the diagnosis with hx of past noncompliance? | 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 = 'hx of past noncomp... | [
4919,
867,
3871,
547,
14798,
351,
642,
4,
390,
742,
13698,
1626,
262,
976,
1227,
706,
262,
13669,
351,
289,
87,
286,
1613,
1729,
47587,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
256,
16,
13,
32796,
62,
312,
8,
16034,
357,
46... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
3871,
547,
14798,
351,
642,
4,
390,
742,
13698,
1626,
262,
976,
1227,
706,
262,
13669,
351,
289,
87,
286,
1613,
1729,
47587,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
256,
16,
13,
32796,
62,
312,
8,
16034,
357,
46... |
What is the Owner of Frequency 00 99.3? | SELECT "Owner" FROM table_65961 WHERE "Frequency" = '00 99.3' | [
2061,
318,
262,
23853,
286,
31902,
3571,
7388,
13,
18,
30,
46506,
366,
42419,
1,
16034,
3084,
62,
2996,
4846,
16,
33411,
366,
37,
28707,
1,
796,
705,
405,
7388,
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
] | [
2061,
318,
262,
23853,
286,
31902,
3571,
7388,
13,
18,
30,
46506,
366,
42419,
1,
16034,
3084,
62,
2996,
4846,
16,
33411,
366,
37,
28707,
1,
796,
705,
405,
7388,
13,
18,
6
] |
Answers with lowest score in a given tag. | SELECT a.Id AS "post_link", a.Score, a.OwnerUserId AS "user_link" FROM Posts AS a JOIN Posts AS q ON a.ParentId = q.Id WHERE (a.PostTypeId = 2) AND (q.PostTypeId = 1) AND (q.Tags LIKE '%<##Tagname##>%') ORDER BY Score LIMIT 200 | [
2025,
37848,
351,
9016,
4776,
287,
257,
1813,
7621,
13,
46506,
257,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
257,
13,
26595,
11,
257,
13,
42419,
12982,
7390,
7054,
366,
7220,
62,
8726,
1,
16034,
12043,
7054,
257,
32357,
1268,
12043,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2025,
37848,
351,
9016,
4776,
287,
257,
1813,
7621,
13,
46506,
257,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
257,
13,
26595,
11,
257,
13,
42419,
12982,
7390,
7054,
366,
7220,
62,
8726,
1,
16034,
12043,
7054,
257,
32357,
1268,
12043,... |
Overall attendance for week 4? | SELECT attendance FROM table_name_63 WHERE week = 4 | [
16350,
14858,
329,
1285,
604,
30,
46506,
14858,
16034,
3084,
62,
3672,
62,
5066,
33411,
1285,
796,
604
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
16350,
14858,
329,
1285,
604,
30,
46506,
14858,
16034,
3084,
62,
3672,
62,
5066,
33411,
1285,
796,
604
] |
what's the first diagnosis patient 002-34744 got in this hospital visit? | SELECT diagnosis.diagnosisname FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '002-34744' AND patient.hospitaldischargetime IS NULL)) ORDER BY d... | [
10919,
338,
262,
717,
13669,
5827,
3571,
17,
12,
30995,
2598,
1392,
287,
428,
4436,
3187,
30,
46506,
13669,
13,
47356,
5958,
3672,
16034,
13669,
33411,
13669,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
31712,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
338,
262,
717,
13669,
5827,
3571,
17,
12,
30995,
2598,
1392,
287,
428,
4436,
3187,
30,
46506,
13669,
13,
47356,
5958,
3672,
16034,
13669,
33411,
13669,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
31712,
... |
For those employees who do not work in departments with managers that have ids between 100 and 200, return a bar chart about the distribution of phone_number and department_id , and display in asc by the y-axis. | SELECT PHONE_NUMBER, DEPARTMENT_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY DEPARTMENT_ID | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
3072,
62,
17618,
290,
5011,
62,
312,
837,
290,
3359,
287,
10570,
416,
262,
331,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
3072,
62,
17618,
290,
5011,
62,
312,
837,
290,
3359,
287,
10570,
416,
262,
331,
... |
Some of the upper level classes are worth 10 credits , which ones ? | SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN program_course ON program_course.course_id = course.course_id WHERE course.credits = 10 AND program_course.category LIKE 'ULCS' | [
4366,
286,
262,
6727,
1241,
6097,
389,
2861,
838,
10824,
837,
543,
3392,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
3268,
21479,
32357,
1268,
1430,
62,
17319,
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... | [
4366,
286,
262,
6727,
1241,
6097,
389,
2861,
838,
10824,
837,
543,
3392,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
3268,
21479,
32357,
1268,
1430,
62,
17319,
6177,
... |
What was the value in 1966 with a 0 value in 1969? | SELECT "1966" FROM table_42327 WHERE "1969" = '0' | [
2061,
373,
262,
1988,
287,
19322,
351,
257,
657,
1988,
287,
16450,
30,
46506,
366,
44227,
1,
16034,
3084,
62,
43356,
1983,
33411,
366,
38391,
1,
796,
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
] | [
2061,
373,
262,
1988,
287,
19322,
351,
257,
657,
1988,
287,
16450,
30,
46506,
366,
44227,
1,
16034,
3084,
62,
43356,
1983,
33411,
366,
38391,
1,
796,
705,
15,
6
] |
What is the Name with a Year of junior, and a High School with wheatley? | SELECT "Name" FROM table_77511 WHERE "Year" = 'junior' AND "High School" = 'wheatley' | [
2061,
318,
262,
6530,
351,
257,
6280,
286,
13430,
11,
290,
257,
3334,
3961,
351,
17135,
1636,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
34483,
1157,
33411,
366,
17688,
1,
796,
705,
29741,
1504,
6,
5357,
366,
11922,
3961,
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,
6530,
351,
257,
6280,
286,
13430,
11,
290,
257,
3334,
3961,
351,
17135,
1636,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
34483,
1157,
33411,
366,
17688,
1,
796,
705,
29741,
1504,
6,
5357,
366,
11922,
3961,
1,
796,
705... |
Question-Answer distribution on all questions.. | SELECT Title, Id FROM Posts WHERE PostTypeId = 1 AND AnswerCount > 100 GROUP BY Title, Id | [
24361,
12,
33706,
6082,
319,
477,
2683,
492,
46506,
11851,
11,
5121,
16034,
12043,
33411,
2947,
6030,
7390,
796,
352,
5357,
23998,
12332,
1875,
1802,
44441,
11050,
11851,
11,
5121
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
24361,
12,
33706,
6082,
319,
477,
2683,
492,
46506,
11851,
11,
5121,
16034,
12043,
33411,
2947,
6030,
7390,
796,
352,
5357,
23998,
12332,
1875,
1802,
44441,
11050,
11851,
11,
5121
] |
how many days has passed since patient 6170 has been admitted to icu? | SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', icustays.intime)) FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 6170) AND icustays.outtime IS NULL | [
4919,
867,
1528,
468,
3804,
1201,
5827,
718,
17279,
468,
587,
6848,
284,
14158,
84,
30,
46506,
352,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
34694,
28955,
532,
19269,
9792,
12789,
10786,
4,
73,
3256,
14158,
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... | [
4919,
867,
1528,
468,
3804,
1201,
5827,
718,
17279,
468,
587,
6848,
284,
14158,
84,
30,
46506,
352,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
34694,
28955,
532,
19269,
9792,
12789,
10786,
4,
73,
3256,
14158,
4... |
What country has david toms as the player? | SELECT "Country" FROM table_13331 WHERE "Player" = 'david toms' | [
2061,
1499,
468,
21970,
284,
907,
355,
262,
2137,
30,
46506,
366,
33921,
1,
16034,
3084,
62,
1485,
31697,
33411,
366,
14140,
1,
796,
705,
67,
8490,
284,
907,
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
] | [
2061,
1499,
468,
21970,
284,
907,
355,
262,
2137,
30,
46506,
366,
33921,
1,
16034,
3084,
62,
1485,
31697,
33411,
366,
14140,
1,
796,
705,
67,
8490,
284,
907,
6
] |
What is the name for the club Liaoning in 2008? | SELECT "Name" FROM table_66568 WHERE "2008 club" = 'liaoning' | [
2061,
318,
262,
1438,
329,
262,
3430,
49520,
12484,
287,
3648,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
36879,
3104,
33411,
366,
11528,
3430,
1,
796,
705,
24660,
12484,
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,
318,
262,
1438,
329,
262,
3430,
49520,
12484,
287,
3648,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
36879,
3104,
33411,
366,
11528,
3430,
1,
796,
705,
24660,
12484,
6
] |
For Prof. Waheed Samy 's classes , is there always an exam ? | SELECT COUNT(*) = 0 FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN offering_instructor ON offering_instructor.offering_id = course_offering.offering_id INNER JOIN instructor ON offering_instructor.instructor_id = instructor.instructor_id WHERE course.has_exams = 'N' AN... | [
1890,
4415,
13,
15329,
23616,
3409,
88,
705,
82,
6097,
837,
318,
612,
1464,
281,
2814,
5633,
46506,
327,
28270,
7,
28104,
796,
657,
16034,
1781,
3268,
21479,
32357,
1268,
1781,
62,
2364,
1586,
6177,
1781,
13,
17319,
62,
312,
796,
1781... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
4415,
13,
15329,
23616,
3409,
88,
705,
82,
6097,
837,
318,
612,
1464,
281,
2814,
5633,
46506,
327,
28270,
7,
28104,
796,
657,
16034,
1781,
3268,
21479,
32357,
1268,
1781,
62,
2364,
1586,
6177,
1781,
13,
17319,
62,
312,
796,
1781... |
For employees with first names that end with the letter m, give me a bar chart to show their average salary, and list FIRST_NAME in asc order. | SELECT FIRST_NAME, AVG(SALARY) FROM employees WHERE FIRST_NAME LIKE '%m' GROUP BY FIRST_NAME ORDER BY FIRST_NAME | [
1890,
4409,
351,
717,
3891,
326,
886,
351,
262,
3850,
285,
11,
1577,
502,
257,
2318,
8262,
284,
905,
511,
2811,
9588,
11,
290,
1351,
31328,
62,
20608,
287,
10570,
1502,
13,
46506,
31328,
62,
20608,
11,
35224,
7,
50,
1847,
13153,
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... | [
1890,
4409,
351,
717,
3891,
326,
886,
351,
262,
3850,
285,
11,
1577,
502,
257,
2318,
8262,
284,
905,
511,
2811,
9588,
11,
290,
1351,
31328,
62,
20608,
287,
10570,
1502,
13,
46506,
31328,
62,
20608,
11,
35224,
7,
50,
1847,
13153,
8,
... |
What was the overall record of UMBC? | SELECT "Record" FROM table_72771 WHERE "School" = 'UMBC' | [
2061,
373,
262,
4045,
1700,
286,
44352,
2749,
30,
46506,
366,
23739,
1,
16034,
3084,
62,
47760,
4869,
33411,
366,
26130,
1,
796,
705,
5883,
2749,
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
] | [
2061,
373,
262,
4045,
1700,
286,
44352,
2749,
30,
46506,
366,
23739,
1,
16034,
3084,
62,
47760,
4869,
33411,
366,
26130,
1,
796,
705,
5883,
2749,
6
] |
retrieve the patient identifications who have been diagnosed with fall-1 level to oth nec in the previous year. | SELECT admissions.subject_id FROM admissions WHERE admissions.hadm_id IN (SELECT diagnoses_icd.hadm_id FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'fall-1 level to oth nec') AND DATETIME(diagnoses_icd.charttime, 'start of ... | [
1186,
30227,
262,
5827,
1852,
6637,
508,
423,
587,
14641,
351,
2121,
12,
16,
1241,
284,
267,
400,
27576,
287,
262,
2180,
614,
13,
46506,
25349,
13,
32796,
62,
312,
16034,
25349,
33411,
25349,
13,
18108,
76,
62,
312,
3268,
357,
46506,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1186,
30227,
262,
5827,
1852,
6637,
508,
423,
587,
14641,
351,
2121,
12,
16,
1241,
284,
267,
400,
27576,
287,
262,
2180,
614,
13,
46506,
25349,
13,
32796,
62,
312,
16034,
25349,
33411,
25349,
13,
18108,
76,
62,
312,
3268,
357,
46506,
... |
who was the only prime minister to be in office three times ? | SELECT "name" FROM table_203_694 GROUP BY "name" HAVING COUNT(*) >= 3 | [
8727,
373,
262,
691,
6994,
5342,
284,
307,
287,
2607,
1115,
1661,
5633,
46506,
366,
3672,
1,
16034,
3084,
62,
22416,
62,
45214,
44441,
11050,
366,
3672,
1,
367,
10116,
2751,
327,
28270,
7,
28104,
18189,
513
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
691,
6994,
5342,
284,
307,
287,
2607,
1115,
1661,
5633,
46506,
366,
3672,
1,
16034,
3084,
62,
22416,
62,
45214,
44441,
11050,
366,
3672,
1,
367,
10116,
2751,
327,
28270,
7,
28104,
18189,
513
] |
For Model e64 what is the zAAPs/zIIPs? | SELECT zaaps___ziips FROM table_name_36 WHERE model = "e64" | [
1890,
9104,
304,
2414,
644,
318,
262,
1976,
32,
2969,
82,
14,
89,
3978,
12016,
30,
46506,
1976,
64,
1686,
17569,
17027,
2419,
16034,
3084,
62,
3672,
62,
2623,
33411,
2746,
796,
366,
68,
2414,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9104,
304,
2414,
644,
318,
262,
1976,
32,
2969,
82,
14,
89,
3978,
12016,
30,
46506,
1976,
64,
1686,
17569,
17027,
2419,
16034,
3084,
62,
3672,
62,
2623,
33411,
2746,
796,
366,
68,
2414,
1
] |
Who was in the 2008 club of gabeca montichiari? | SELECT "Name" FROM table_52911 WHERE "2008 club" = 'gabeca montichiari' | [
8241,
373,
287,
262,
3648,
3430,
286,
308,
397,
31047,
40689,
16590,
2743,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
49721,
1157,
33411,
366,
11528,
3430,
1,
796,
705,
70,
397,
31047,
40689,
16590,
2743,
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
] | [
8241,
373,
287,
262,
3648,
3430,
286,
308,
397,
31047,
40689,
16590,
2743,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
49721,
1157,
33411,
366,
11528,
3430,
1,
796,
705,
70,
397,
31047,
40689,
16590,
2743,
6
] |
Who constructed the car with a grid under 15, 77 laps, and a Time/Retired of + 0.771? | SELECT constructor FROM table_name_77 WHERE grid < 15 AND laps = 77 AND time_retired = "+ 0.771" | [
8241,
12006,
262,
1097,
351,
257,
10706,
739,
1315,
11,
8541,
24590,
11,
290,
257,
3862,
14,
9781,
1202,
286,
1343,
657,
13,
46761,
30,
46506,
23772,
16034,
3084,
62,
3672,
62,
3324,
33411,
10706,
1279,
1315,
5357,
24590,
796,
8541,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
12006,
262,
1097,
351,
257,
10706,
739,
1315,
11,
8541,
24590,
11,
290,
257,
3862,
14,
9781,
1202,
286,
1343,
657,
13,
46761,
30,
46506,
23772,
16034,
3084,
62,
3672,
62,
3324,
33411,
10706,
1279,
1315,
5357,
24590,
796,
8541,
5... |
What was the score of the game played on a clay surface on June 6, 2005? | SELECT "Score" FROM table_32719 WHERE "Surface" = 'clay' AND "Date" = 'june 6, 2005' | [
2061,
373,
262,
4776,
286,
262,
983,
2826,
319,
257,
21558,
4417,
319,
2795,
718,
11,
5075,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
34159,
1129,
33411,
366,
14214,
2550,
1,
796,
705,
565,
323,
6,
5357,
366,
10430,
1,
796,
705,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
4776,
286,
262,
983,
2826,
319,
257,
21558,
4417,
319,
2795,
718,
11,
5075,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
34159,
1129,
33411,
366,
14214,
2550,
1,
796,
705,
565,
323,
6,
5357,
366,
10430,
1,
796,
705,
... |
When mike bibby (9) has the highest amount of assists what is the location and attendance? | SELECT location_attendance FROM table_17311759_9 WHERE high_assists = "Mike Bibby (9)" | [
2215,
285,
522,
275,
571,
1525,
357,
24,
8,
468,
262,
4511,
2033,
286,
13648,
644,
318,
262,
4067,
290,
14858,
30,
46506,
4067,
62,
1078,
437,
590,
16034,
3084,
62,
25399,
1157,
38314,
62,
24,
33411,
1029,
62,
562,
1023,
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
] | [
2215,
285,
522,
275,
571,
1525,
357,
24,
8,
468,
262,
4511,
2033,
286,
13648,
644,
318,
262,
4067,
290,
14858,
30,
46506,
4067,
62,
1078,
437,
590,
16034,
3084,
62,
25399,
1157,
38314,
62,
24,
33411,
1029,
62,
562,
1023,
796,
366,
... |
What is the average rec that is greater than 10 and has 40 yards? | SELECT AVG("Rec.") FROM table_55375 WHERE "Yards" = '40' AND "Avg." > '10' | [
2061,
318,
262,
2811,
664,
326,
318,
3744,
621,
838,
290,
468,
2319,
5695,
30,
46506,
35224,
7203,
6690,
19570,
16034,
3084,
62,
2816,
22318,
33411,
366,
56,
1371,
1,
796,
705,
1821,
6,
5357,
366,
48997,
526,
1875,
705,
940,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2811,
664,
326,
318,
3744,
621,
838,
290,
468,
2319,
5695,
30,
46506,
35224,
7203,
6690,
19570,
16034,
3084,
62,
2816,
22318,
33411,
366,
56,
1371,
1,
796,
705,
1821,
6,
5357,
366,
48997,
526,
1875,
705,
940,
6
] |
When did the High Park Demons play Away? | SELECT date FROM table_name_64 WHERE away = "high park demons" | [
2215,
750,
262,
3334,
3250,
38539,
711,
21986,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
2414,
33411,
1497,
796,
366,
8929,
3952,
17708,
1
] | [
1,
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,
262,
3334,
3250,
38539,
711,
21986,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
2414,
33411,
1497,
796,
366,
8929,
3952,
17708,
1
] |
List of rare badges (exclude tag badges). | SELECT Name, CASE Class WHEN 1 THEN 'Gold' WHEN 2 THEN 'Silver' ELSE 'Bronze' END AS Class, COUNT(Id) AS Total_Awarded FROM Badges GROUP BY Name, Class ORDER BY COUNT(Id) | [
8053,
286,
4071,
37583,
357,
1069,
9152,
7621,
37583,
737,
46506,
6530,
11,
42001,
5016,
42099,
352,
42243,
705,
13306,
6,
42099,
362,
42243,
705,
26766,
6,
17852,
5188,
705,
18760,
2736,
6,
23578,
7054,
5016,
11,
327,
28270,
7,
7390,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8053,
286,
4071,
37583,
357,
1069,
9152,
7621,
37583,
737,
46506,
6530,
11,
42001,
5016,
42099,
352,
42243,
705,
13306,
6,
42099,
362,
42243,
705,
26766,
6,
17852,
5188,
705,
18760,
2736,
6,
23578,
7054,
5016,
11,
327,
28270,
7,
7390,
... |
how many patients whose age is less than 31 and lab test category is hematology? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "31" AND lab."CATEGORY" = "Hematology" | [
4919,
867,
3871,
3025,
2479,
318,
1342,
621,
3261,
290,
2248,
1332,
6536,
318,
339,
6759,
1435,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
3871,
3025,
2479,
318,
1342,
621,
3261,
290,
2248,
1332,
6536,
318,
339,
6759,
1435,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
1... |
Which retitled network has a Show of supermarket sweep? | SELECT "Retitled as/Same" FROM table_50875 WHERE "Show" = 'supermarket sweep' | [
13828,
1005,
7803,
3127,
468,
257,
5438,
286,
26454,
16085,
30,
46506,
366,
9781,
7803,
355,
14,
30556,
1,
16034,
3084,
62,
1120,
31360,
33411,
366,
15307,
1,
796,
705,
16668,
10728,
16085,
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,
1005,
7803,
3127,
468,
257,
5438,
286,
26454,
16085,
30,
46506,
366,
9781,
7803,
355,
14,
30556,
1,
16034,
3084,
62,
1120,
31360,
33411,
366,
15307,
1,
796,
705,
16668,
10728,
16085,
6
] |
For all employees who have the letters D or S in their first name, a bar chart shows the distribution of hire_date and the sum of department_id bin hire_date by weekday, and order y-axis in ascending order. | SELECT HIRE_DATE, SUM(DEPARTMENT_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY SUM(DEPARTMENT_ID) | [
1890,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
257,
2318,
8262,
2523,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2160,
286,
5011,
62,
312,
9874,
11078,
62,
4475,
416,
28269,
11,
290,
1502,
331,
12,
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,
1,
1,
1,
1,
1,
1... | [
1890,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
257,
2318,
8262,
2523,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2160,
286,
5011,
62,
312,
9874,
11078,
62,
4475,
416,
28269,
11,
290,
1502,
331,
12,
2... |
What is the Theme of Christie Paquet after 2004 with an Issue Price of $34.95? | SELECT "Theme" FROM table_51668 WHERE "Artist" = 'christie paquet' AND "Issue Price" = '$34.95' AND "Year" > '2004' | [
2061,
318,
262,
26729,
286,
16929,
11243,
21108,
706,
5472,
351,
281,
18232,
7886,
286,
720,
2682,
13,
3865,
30,
46506,
366,
47863,
1,
16034,
3084,
62,
47493,
3104,
33411,
366,
43020,
1,
796,
705,
43533,
494,
14187,
21108,
6,
5357,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26729,
286,
16929,
11243,
21108,
706,
5472,
351,
281,
18232,
7886,
286,
720,
2682,
13,
3865,
30,
46506,
366,
47863,
1,
16034,
3084,
62,
47493,
3104,
33411,
366,
43020,
1,
796,
705,
43533,
494,
14187,
21108,
6,
5357,
36... |
What was the final score of the game on November 24 with the visiting team the Indianapolis Colts? | SELECT final_score FROM table_name_23 WHERE visiting_team = "indianapolis colts" AND date = "november 24" | [
2061,
373,
262,
2457,
4776,
286,
262,
983,
319,
3389,
1987,
351,
262,
10013,
1074,
262,
19362,
20464,
30,
46506,
2457,
62,
26675,
16034,
3084,
62,
3672,
62,
1954,
33411,
10013,
62,
15097,
796,
366,
521,
666,
11174,
951,
912,
1,
5357,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
2457,
4776,
286,
262,
983,
319,
3389,
1987,
351,
262,
10013,
1074,
262,
19362,
20464,
30,
46506,
2457,
62,
26675,
16034,
3084,
62,
3672,
62,
1954,
33411,
10013,
62,
15097,
796,
366,
521,
666,
11174,
951,
912,
1,
5357,
... |
provide the number of patients whose diagnoses long title is personal history of colonic polyps and drug route is ng? | 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.long_title = "Personal history of colonic polyps" AND prescriptions.route = "NG" | [
15234,
485,
262,
1271,
286,
3871,
3025,
40567,
890,
3670,
318,
2614,
2106,
286,
7633,
291,
7514,
862,
290,
2563,
6339,
318,
23370,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15234,
485,
262,
1271,
286,
3871,
3025,
40567,
890,
3670,
318,
2614,
2106,
286,
7633,
291,
7514,
862,
290,
2563,
6339,
318,
23370,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479... |
Find all phones that have word 'Full' in their accreditation types. List the Hardware Model name and Company name. | SELECT Hardware_Model_name, Company_name FROM phone WHERE Accreditation_type LIKE 'Full' | [
16742,
477,
9512,
326,
423,
1573,
705,
13295,
6,
287,
511,
697,
42845,
3858,
13,
7343,
262,
28715,
9104,
1438,
290,
5834,
1438,
13,
46506,
28715,
62,
17633,
62,
3672,
11,
5834,
62,
3672,
16034,
3072,
33411,
6366,
42845,
62,
4906,
3417... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
477,
9512,
326,
423,
1573,
705,
13295,
6,
287,
511,
697,
42845,
3858,
13,
7343,
262,
28715,
9104,
1438,
290,
5834,
1438,
13,
46506,
28715,
62,
17633,
62,
3672,
11,
5834,
62,
3672,
16034,
3072,
33411,
6366,
42845,
62,
4906,
3417... |
count the number of patients whose procedure short title is abdomen artery incision? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE procedures.short_title = "Abdomen artery incision" | [
9127,
262,
1271,
286,
3871,
3025,
8771,
1790,
3670,
318,
32956,
37646,
753,
1166,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
16728,
13,
18108,
76,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
9127,
262,
1271,
286,
3871,
3025,
8771,
1790,
3670,
318,
32956,
37646,
753,
1166,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
16728,
13,
18108,
76,
... |
Which venue has a Result of 1 2? | SELECT venue FROM table_name_98 WHERE result = "1–2" | [
13828,
14359,
468,
257,
25414,
286,
352,
362,
30,
46506,
14359,
16034,
3084,
62,
3672,
62,
4089,
33411,
1255,
796,
366,
16,
1906,
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
] | [
13828,
14359,
468,
257,
25414,
286,
352,
362,
30,
46506,
14359,
16034,
3084,
62,
3672,
62,
4089,
33411,
1255,
796,
366,
16,
1906,
17,
1
] |
Venue of thessaloniki (without participation) had what score? | SELECT score FROM table_name_99 WHERE venue = "thessaloniki (without participation)" | [
37522,
518,
286,
262,
824,
40755,
5580,
357,
19419,
10270,
8,
550,
644,
4776,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
2079,
33411,
14359,
796,
366,
1169,
824,
40755,
5580,
357,
19419,
10270,
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
] | [
37522,
518,
286,
262,
824,
40755,
5580,
357,
19419,
10270,
8,
550,
644,
4776,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
2079,
33411,
14359,
796,
366,
1169,
824,
40755,
5580,
357,
19419,
10270,
16725
] |
picked after ryan mills ? | SELECT "player" FROM table_203_618 WHERE "pick" = (SELECT "pick" FROM table_203_618 WHERE "player" = 'ryan mills') + 1 | [
41891,
706,
374,
4121,
41999,
5633,
46506,
366,
7829,
1,
16034,
3084,
62,
22416,
62,
47448,
33411,
366,
27729,
1,
796,
357,
46506,
366,
27729,
1,
16034,
3084,
62,
22416,
62,
47448,
33411,
366,
7829,
1,
796,
705,
29038,
41999,
11537,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
41891,
706,
374,
4121,
41999,
5633,
46506,
366,
7829,
1,
16034,
3084,
62,
22416,
62,
47448,
33411,
366,
27729,
1,
796,
357,
46506,
366,
27729,
1,
16034,
3084,
62,
22416,
62,
47448,
33411,
366,
7829,
1,
796,
705,
29038,
41999,
11537,
1... |
Which courses are required before going into COMPLIT 241 ? | SELECT DISTINCT COURSE_0.department, COURSE_0.name, COURSE_0.number FROM course AS COURSE_0, course AS COURSE_1, course_prerequisite WHERE COURSE_0.course_id = course_prerequisite.pre_course_id AND NOT COURSE_0.course_id IN (SELECT STUDENT_RECORDalias0.course_id FROM student_record AS STUDENT_RECORDalias0 WHERE STUDENT... | [
13828,
10902,
389,
2672,
878,
1016,
656,
9440,
6489,
2043,
35150,
5633,
46506,
360,
8808,
1268,
4177,
37384,
5188,
62,
15,
13,
10378,
1823,
11,
37384,
5188,
62,
15,
13,
3672,
11,
37384,
5188,
62,
15,
13,
17618,
16034,
1781,
7054,
3738... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10902,
389,
2672,
878,
1016,
656,
9440,
6489,
2043,
35150,
5633,
46506,
360,
8808,
1268,
4177,
37384,
5188,
62,
15,
13,
10378,
1823,
11,
37384,
5188,
62,
15,
13,
3672,
11,
37384,
5188,
62,
15,
13,
17618,
16034,
1781,
7054,
3738... |
How many receipts does Mike Gravel have? | SELECT "Total Receipts" FROM table_56215 WHERE "Candidate" = 'mike gravel' | [
2437,
867,
29946,
857,
4995,
7037,
626,
423,
30,
46506,
366,
14957,
19520,
10257,
82,
1,
16034,
3084,
62,
3980,
23349,
33411,
366,
41572,
20540,
1,
796,
705,
76,
522,
34375,
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
] | [
2437,
867,
29946,
857,
4995,
7037,
626,
423,
30,
46506,
366,
14957,
19520,
10257,
82,
1,
16034,
3084,
62,
3980,
23349,
33411,
366,
41572,
20540,
1,
796,
705,
76,
522,
34375,
6
] |
what were the four most frequent drugs prescribed within 2 months to the male patients with age 20s after they had been diagnosed with nb obsrv suspct infect, until 2104? | SELECT t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 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 ... | [
10919,
547,
262,
1440,
749,
10792,
5010,
14798,
1626,
362,
1933,
284,
262,
4257,
3871,
351,
2479,
1160,
82,
706,
484,
550,
587,
14641,
351,
299,
65,
10201,
81,
85,
4012,
310,
7580,
11,
1566,
362,
13464,
30,
46506,
256,
18,
13,
30349... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1440,
749,
10792,
5010,
14798,
1626,
362,
1933,
284,
262,
4257,
3871,
351,
2479,
1160,
82,
706,
484,
550,
587,
14641,
351,
299,
65,
10201,
81,
85,
4012,
310,
7580,
11,
1566,
362,
13464,
30,
46506,
256,
18,
13,
30349... |
What is the average number of events having 1 top-10, fewer than 4 cuts made, and 0 wins? | SELECT AVG("Events") FROM table_41730 WHERE "Top-10" = '1' AND "Wins" > '0' AND "Cuts made" < '4' | [
2061,
318,
262,
2811,
1271,
286,
2995,
1719,
352,
1353,
12,
940,
11,
7380,
621,
604,
6630,
925,
11,
290,
657,
7864,
30,
46506,
35224,
7203,
37103,
4943,
16034,
3084,
62,
38547,
1270,
33411,
366,
9126,
12,
940,
1,
796,
705,
16,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2811,
1271,
286,
2995,
1719,
352,
1353,
12,
940,
11,
7380,
621,
604,
6630,
925,
11,
290,
657,
7864,
30,
46506,
35224,
7203,
37103,
4943,
16034,
3084,
62,
38547,
1270,
33411,
366,
9126,
12,
940,
1,
796,
705,
16,
6,
... |
Show each author and the number of workshops they submitted to Show bar chart, and show by the bar in asc. | SELECT Author, COUNT(DISTINCT T1.Workshop_ID) FROM Acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID ORDER BY Author | [
15307,
1123,
1772,
290,
262,
1271,
286,
25982,
484,
8948,
284,
5438,
2318,
8262,
11,
290,
905,
416,
262,
2318,
287,
10570,
13,
46506,
6434,
11,
327,
28270,
7,
35,
8808,
1268,
4177,
309,
16,
13,
23044,
8548,
62,
2389,
8,
16034,
21699... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1123,
1772,
290,
262,
1271,
286,
25982,
484,
8948,
284,
5438,
2318,
8262,
11,
290,
905,
416,
262,
2318,
287,
10570,
13,
46506,
6434,
11,
327,
28270,
7,
35,
8808,
1268,
4177,
309,
16,
13,
23044,
8548,
62,
2389,
8,
16034,
21699... |
Name the team for susan bates | SELECT team FROM table_24535095_2 WHERE listed_owner_s_ = "Susan Bates" | [
5376,
262,
1074,
329,
2341,
272,
275,
689,
46506,
1074,
16034,
3084,
62,
1731,
4310,
1120,
3865,
62,
17,
33411,
5610,
62,
18403,
62,
82,
62,
796,
366,
45842,
35591,
1
] | [
1,
1,
1,
1,
1,
1,
1,
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,
1074,
329,
2341,
272,
275,
689,
46506,
1074,
16034,
3084,
62,
1731,
4310,
1120,
3865,
62,
17,
33411,
5610,
62,
18403,
62,
82,
62,
796,
366,
45842,
35591,
1
] |
How many populations are listed for mladenovo? | SELECT COUNT("Population (2011)") FROM table_27840 WHERE "Settlement" = 'Mladenovo' | [
2437,
867,
9684,
389,
5610,
329,
285,
35668,
18768,
30,
46506,
327,
28270,
7203,
45251,
357,
9804,
8,
4943,
16034,
3084,
62,
25870,
1821,
33411,
366,
50,
27331,
1,
796,
705,
44,
35668,
18768,
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,
9684,
389,
5610,
329,
285,
35668,
18768,
30,
46506,
327,
28270,
7203,
45251,
357,
9804,
8,
4943,
16034,
3084,
62,
25870,
1821,
33411,
366,
50,
27331,
1,
796,
705,
44,
35668,
18768,
6
] |
How many vehicle in total? | SELECT COUNT(*) FROM vehicles | [
2437,
867,
4038,
287,
2472,
30,
46506,
327,
28270,
7,
28104,
16034,
5672
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
4038,
287,
2472,
30,
46506,
327,
28270,
7,
28104,
16034,
5672
] |
how many female patients had the diagnoses long title cardiac arrest? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.gender = "F" AND diagnoses.long_title = "Cardiac arrest" | [
4919,
867,
4048,
3871,
550,
262,
40567,
890,
3670,
26077,
3251,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
62,
312,
796,
405... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4048,
3871,
550,
262,
40567,
890,
3670,
26077,
3251,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
62,
312,
796,
405... |
count the number of patients whose admission year is less than 2166 and procedure long title is exteriorization of small intestine? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admityear < "2166" AND procedures.long_title = "Exteriorization of small intestine" | [
9127,
262,
1271,
286,
3871,
3025,
13938,
614,
318,
1342,
621,
362,
23055,
290,
8771,
890,
3670,
318,
20897,
1634,
286,
1402,
45426,
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... | [
9127,
262,
1271,
286,
3871,
3025,
13938,
614,
318,
1342,
621,
362,
23055,
290,
8771,
890,
3670,
318,
20897,
1634,
286,
1402,
45426,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
2147... |
What is 2006, when Team is 'Tacuary'? | SELECT 2006 FROM table_name_13 WHERE team = "tacuary" | [
2061,
318,
4793,
11,
618,
4816,
318,
705,
51,
330,
2838,
30960,
46506,
4793,
16034,
3084,
62,
3672,
62,
1485,
33411,
1074,
796,
366,
83,
330,
2838,
1
] | [
1,
1,
1,
1,
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,
4793,
11,
618,
4816,
318,
705,
51,
330,
2838,
30960,
46506,
4793,
16034,
3084,
62,
3672,
62,
1485,
33411,
1074,
796,
366,
83,
330,
2838,
1
] |
When Kabwe Warriors (team 1) played, what was the result of the 1st leg? | SELECT 1 AS st_leg FROM table_name_66 WHERE team_1 = "kabwe warriors" | [
2215,
509,
27050,
12090,
357,
15097,
352,
8,
2826,
11,
644,
373,
262,
1255,
286,
262,
352,
301,
1232,
30,
46506,
352,
7054,
336,
62,
1455,
16034,
3084,
62,
3672,
62,
2791,
33411,
1074,
62,
16,
796,
366,
74,
27050,
17119,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2215,
509,
27050,
12090,
357,
15097,
352,
8,
2826,
11,
644,
373,
262,
1255,
286,
262,
352,
301,
1232,
30,
46506,
352,
7054,
336,
62,
1455,
16034,
3084,
62,
3672,
62,
2791,
33411,
1074,
62,
16,
796,
366,
74,
27050,
17119,
1
] |
since 1059 days ago the heart rate of patient 28037 had been normal? | SELECT COUNT(*) > 0 FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 28037)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'heart rate' AND d... | [
20777,
838,
3270,
1528,
2084,
262,
2612,
2494,
286,
5827,
21355,
2718,
550,
587,
3487,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
62,
312,
3268,
357,
46506,
14158,
436,
592,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
838,
3270,
1528,
2084,
262,
2612,
2494,
286,
5827,
21355,
2718,
550,
587,
3487,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
62,
312,
3268,
357,
46506,
14158,
436,
592,
... |
How many French words does zinnap tamu in Central-Southern Calabrian translate to? | SELECT COUNT("French") FROM table_23899 WHERE "Central-Southern Calabrian" = 'zinnapòtamu' | [
2437,
867,
4141,
2456,
857,
1976,
3732,
499,
21885,
84,
287,
5694,
12,
44993,
2199,
397,
4484,
15772,
284,
30,
46506,
327,
28270,
7203,
24111,
4943,
16034,
3084,
62,
23721,
2079,
33411,
366,
30645,
12,
44993,
2199,
397,
4484,
1,
796,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
4141,
2456,
857,
1976,
3732,
499,
21885,
84,
287,
5694,
12,
44993,
2199,
397,
4484,
15772,
284,
30,
46506,
327,
28270,
7203,
24111,
4943,
16034,
3084,
62,
23721,
2079,
33411,
366,
30645,
12,
44993,
2199,
397,
4484,
1,
796,
... |
What city of license has a value of k293bg for its call sign? | SELECT city_of_license FROM table_name_82 WHERE call_sign = "k293bg" | [
2061,
1748,
286,
5964,
468,
257,
1988,
286,
479,
31675,
35904,
329,
663,
869,
1051,
30,
46506,
1748,
62,
1659,
62,
43085,
16034,
3084,
62,
3672,
62,
6469,
33411,
869,
62,
12683,
796,
366,
74,
31675,
35904,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1748,
286,
5964,
468,
257,
1988,
286,
479,
31675,
35904,
329,
663,
869,
1051,
30,
46506,
1748,
62,
1659,
62,
43085,
16034,
3084,
62,
3672,
62,
6469,
33411,
869,
62,
12683,
796,
366,
74,
31675,
35904,
1
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.