instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
what is diagnoses icd9 code and diagnoses long title of subject id 42067? | SELECT diagnoses.icd9_code, diagnoses.long_title FROM diagnoses WHERE diagnoses.subject_id = "42067" | [
10919,
318,
40567,
14158,
67,
24,
2438,
290,
40567,
890,
3670,
286,
2426,
4686,
28262,
3134,
30,
46506,
40567,
13,
291,
67,
24,
62,
8189,
11,
40567,
13,
6511,
62,
7839,
16034,
40567,
33411,
40567,
13,
32796,
62,
312,
796,
366,
27211,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
40567,
14158,
67,
24,
2438,
290,
40567,
890,
3670,
286,
2426,
4686,
28262,
3134,
30,
46506,
40567,
13,
291,
67,
24,
62,
8189,
11,
40567,
13,
6511,
62,
7839,
16034,
40567,
33411,
40567,
13,
32796,
62,
312,
796,
366,
27211,
... |
In which District(s) has a Democrat held office since 1998? | SELECT district FROM table_name_12 WHERE party = "democrat" AND elected > 1998 | [
818,
543,
5665,
7,
82,
8,
468,
257,
9755,
2714,
2607,
1201,
7795,
30,
46506,
4783,
16034,
3084,
62,
3672,
62,
1065,
33411,
2151,
796,
366,
9536,
35128,
1,
5357,
7018,
1875,
7795
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
818,
543,
5665,
7,
82,
8,
468,
257,
9755,
2714,
2607,
1201,
7795,
30,
46506,
4783,
16034,
3084,
62,
3672,
62,
1065,
33411,
2151,
796,
366,
9536,
35128,
1,
5357,
7018,
1875,
7795
] |
How many trips stated from a station in Mountain View and ended at one in Palo Alto? | SELECT COUNT(*) FROM station AS T1 JOIN trip AS T2 JOIN station AS T3 JOIN trip AS T4 ON T1.id = T2.start_station_id AND T2.id = T4.id AND T3.id = T4.end_station_id WHERE T1.city = "Mountain View" AND T3.city = "Palo Alto" | [
2437,
867,
13229,
5081,
422,
257,
4429,
287,
9638,
3582,
290,
4444,
379,
530,
287,
44878,
34317,
30,
46506,
327,
28270,
7,
28104,
16034,
4429,
7054,
309,
16,
32357,
1268,
5296,
7054,
309,
17,
32357,
1268,
4429,
7054,
309,
18,
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,
1... | [
2437,
867,
13229,
5081,
422,
257,
4429,
287,
9638,
3582,
290,
4444,
379,
530,
287,
44878,
34317,
30,
46506,
327,
28270,
7,
28104,
16034,
4429,
7054,
309,
16,
32357,
1268,
5296,
7054,
309,
17,
32357,
1268,
4429,
7054,
309,
18,
32357,
1... |
since 322 days ago, what was the last time patient 22648 had the maximum arterial bp [diastolic]? | SELECT chartevents.charttime 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 = 22648)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial... | [
20777,
38831,
1528,
2084,
11,
644,
373,
262,
938,
640,
5827,
31510,
2780,
550,
262,
5415,
30675,
498,
275,
79,
685,
10989,
459,
4160,
60,
30,
46506,
8262,
31534,
13,
40926,
2435,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
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... | [
20777,
38831,
1528,
2084,
11,
644,
373,
262,
938,
640,
5827,
31510,
2780,
550,
262,
5415,
30675,
498,
275,
79,
685,
10989,
459,
4160,
60,
30,
46506,
8262,
31534,
13,
40926,
2435,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
3... |
What was the time for a grid less than 6 for Noriyuki Haga? | SELECT "Time" FROM table_6718 WHERE "Grid" < '6' AND "Rider" = 'noriyuki haga' | [
2061,
373,
262,
640,
329,
257,
10706,
1342,
621,
718,
329,
5414,
7745,
11308,
367,
8126,
30,
46506,
366,
7575,
1,
16034,
3084,
62,
3134,
1507,
33411,
366,
41339,
1,
1279,
705,
21,
6,
5357,
366,
49,
1304,
1,
796,
705,
13099,
7745,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
640,
329,
257,
10706,
1342,
621,
718,
329,
5414,
7745,
11308,
367,
8126,
30,
46506,
366,
7575,
1,
16034,
3084,
62,
3134,
1507,
33411,
366,
41339,
1,
1279,
705,
21,
6,
5357,
366,
49,
1304,
1,
796,
705,
13099,
7745,
... |
How many times did the team with an average start of 18.9 make the top 10? | SELECT SUM("Top 10") FROM table_8888 WHERE "Avg. Start" = '18.9' | [
2437,
867,
1661,
750,
262,
1074,
351,
281,
2811,
923,
286,
1248,
13,
24,
787,
262,
1353,
838,
30,
46506,
35683,
7203,
9126,
838,
4943,
16034,
3084,
62,
3459,
3459,
33411,
366,
48997,
13,
7253,
1,
796,
705,
1507,
13,
24,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
1661,
750,
262,
1074,
351,
281,
2811,
923,
286,
1248,
13,
24,
787,
262,
1353,
838,
30,
46506,
35683,
7203,
9126,
838,
4943,
16034,
3084,
62,
3459,
3459,
33411,
366,
48997,
13,
7253,
1,
796,
705,
1507,
13,
24,
6
] |
what is the amount of nutrition total that patient 035-4428 received on 01/15/last year? | 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 = '035-4428')) AND intakeoutput.celllabel = 'nutrit... | [
10919,
318,
262,
2033,
286,
16633,
2472,
326,
5827,
657,
2327,
12,
2598,
2078,
2722,
319,
5534,
14,
1314,
14,
12957,
614,
30,
46506,
35683,
7,
600,
539,
22915,
13,
3846,
2100,
84,
268,
39223,
8,
16034,
10337,
22915,
33411,
10337,
2291... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2033,
286,
16633,
2472,
326,
5827,
657,
2327,
12,
2598,
2078,
2722,
319,
5534,
14,
1314,
14,
12957,
614,
30,
46506,
35683,
7,
600,
539,
22915,
13,
3846,
2100,
84,
268,
39223,
8,
16034,
10337,
22915,
33411,
10337,
2291... |
A bar chart about the number of faluts for different fault description recorded in the logs, and could you list names in descending order? | SELECT fault_description, COUNT(fault_description) FROM Fault_Log AS T1 JOIN Fault_Log_Parts AS T2 ON T1.fault_log_entry_id = T2.fault_log_entry_id GROUP BY fault_description ORDER BY fault_description DESC | [
32,
2318,
8262,
546,
262,
1271,
286,
24215,
5500,
329,
1180,
8046,
6764,
6264,
287,
262,
17259,
11,
290,
714,
345,
1351,
3891,
287,
31491,
1502,
30,
46506,
8046,
62,
11213,
11,
327,
28270,
7,
69,
1721,
62,
11213,
8,
16034,
40050,
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... | [
32,
2318,
8262,
546,
262,
1271,
286,
24215,
5500,
329,
1180,
8046,
6764,
6264,
287,
262,
17259,
11,
290,
714,
345,
1351,
3891,
287,
31491,
1502,
30,
46506,
8046,
62,
11213,
11,
327,
28270,
7,
69,
1721,
62,
11213,
8,
16034,
40050,
62... |
What is points sgsinst when points diff is +96? | SELECT "Points against" FROM table_46056 WHERE "Points diff" = '+96' | [
2061,
318,
2173,
264,
14542,
8625,
618,
2173,
814,
318,
1343,
4846,
30,
46506,
366,
40710,
1028,
1,
16034,
3084,
62,
34716,
3980,
33411,
366,
40710,
814,
1,
796,
705,
10,
4846,
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,
2173,
264,
14542,
8625,
618,
2173,
814,
318,
1343,
4846,
30,
46506,
366,
40710,
1028,
1,
16034,
3084,
62,
34716,
3980,
33411,
366,
40710,
814,
1,
796,
705,
10,
4846,
6
] |
What engine was for the vehicle with a cooper t43 chassis? | SELECT "Engine" FROM table_79884 WHERE "Chassis" = 'cooper t43' | [
2061,
3113,
373,
329,
262,
4038,
351,
257,
6788,
256,
3559,
24587,
30,
46506,
366,
13798,
1,
16034,
3084,
62,
3720,
40353,
33411,
366,
1925,
20297,
1,
796,
705,
1073,
3575,
256,
3559,
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,
3113,
373,
329,
262,
4038,
351,
257,
6788,
256,
3559,
24587,
30,
46506,
366,
13798,
1,
16034,
3084,
62,
3720,
40353,
33411,
366,
1925,
20297,
1,
796,
705,
1073,
3575,
256,
3559,
6
] |
Who was No. 8 when No. 1 Michael and No. 4 Logan? | SELECT "No. 8" FROM table_9098 WHERE "No. 1" = 'michael' AND "No. 4" = 'logan' | [
8241,
373,
1400,
13,
807,
618,
1400,
13,
352,
3899,
290,
1400,
13,
604,
22221,
30,
46506,
366,
2949,
13,
807,
1,
16034,
3084,
62,
44675,
23,
33411,
366,
2949,
13,
352,
1,
796,
705,
76,
40302,
6,
5357,
366,
2949,
13,
604,
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
] | [
8241,
373,
1400,
13,
807,
618,
1400,
13,
352,
3899,
290,
1400,
13,
604,
22221,
30,
46506,
366,
2949,
13,
807,
1,
16034,
3084,
62,
44675,
23,
33411,
366,
2949,
13,
352,
1,
796,
705,
76,
40302,
6,
5357,
366,
2949,
13,
604,
1,
796,... |
Last 5 Notable Question Badges in MATLAB Tag. | SELECT DISTINCT CreationDate, Posts.Id AS "post_link", Posts.Tags AS "tagged_with" FROM Posts WHERE (Tags LIKE '%matlab%') ORDER BY CreationDate DESC LIMIT 5 | [
5956,
642,
1892,
540,
18233,
7772,
3212,
287,
36775,
48780,
17467,
13,
46506,
360,
8808,
1268,
4177,
21582,
10430,
11,
12043,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
12043,
13,
36142,
7054,
366,
12985,
2004,
62,
4480,
1,
16034,
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
] | [
5956,
642,
1892,
540,
18233,
7772,
3212,
287,
36775,
48780,
17467,
13,
46506,
360,
8808,
1268,
4177,
21582,
10430,
11,
12043,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
12043,
13,
36142,
7054,
366,
12985,
2004,
62,
4480,
1,
16034,
12043... |
Which item has a score of 5-1? | SELECT score FROM table_name_6 WHERE result = "5-1" | [
13828,
2378,
468,
257,
4776,
286,
642,
12,
16,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
21,
33411,
1255,
796,
366,
20,
12,
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
] | [
13828,
2378,
468,
257,
4776,
286,
642,
12,
16,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
21,
33411,
1255,
796,
366,
20,
12,
16,
1
] |
What location attendance has russell westbrook (5) as high assists and nenad krstic (8) as high rebounds? | SELECT location_attendance FROM table_23286112_7 WHERE high_assists = "Russell Westbrook (5)" AND high_rebounds = "Nenad Krstic (8)" | [
2061,
4067,
14858,
468,
374,
385,
7255,
7421,
19094,
357,
20,
8,
355,
1029,
13648,
290,
299,
268,
324,
479,
81,
11268,
357,
23,
8,
355,
1029,
18841,
30,
46506,
4067,
62,
1078,
437,
590,
16034,
3084,
62,
1954,
2078,
5333,
1065,
62,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
4067,
14858,
468,
374,
385,
7255,
7421,
19094,
357,
20,
8,
355,
1029,
13648,
290,
299,
268,
324,
479,
81,
11268,
357,
23,
8,
355,
1029,
18841,
30,
46506,
4067,
62,
1078,
437,
590,
16034,
3084,
62,
1954,
2078,
5333,
1065,
62,
... |
what is the wind speed when brenda morehead was in the united states? | SELECT MIN(wind__m_s_) FROM table_name_16 WHERE nation = "united states" AND athlete = "brenda morehead" | [
10919,
318,
262,
2344,
2866,
618,
1449,
45658,
517,
2256,
373,
287,
262,
16503,
2585,
30,
46506,
20625,
7,
7972,
834,
76,
62,
82,
62,
8,
16034,
3084,
62,
3672,
62,
1433,
33411,
3277,
796,
366,
41187,
2585,
1,
5357,
16076,
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
] | [
10919,
318,
262,
2344,
2866,
618,
1449,
45658,
517,
2256,
373,
287,
262,
16503,
2585,
30,
46506,
20625,
7,
7972,
834,
76,
62,
82,
62,
8,
16034,
3084,
62,
3672,
62,
1433,
33411,
3277,
796,
366,
41187,
2585,
1,
5357,
16076,
796,
366,
... |
Which athlete competed in the flyweight division? | SELECT "Athlete" FROM table_72903 WHERE "Event" = 'Flyweight' | [
13828,
16076,
32440,
287,
262,
6129,
6551,
7297,
30,
46506,
366,
32,
400,
5807,
1,
16034,
3084,
62,
48555,
3070,
33411,
366,
9237,
1,
796,
705,
33771,
6551,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
16076,
32440,
287,
262,
6129,
6551,
7297,
30,
46506,
366,
32,
400,
5807,
1,
16034,
3084,
62,
48555,
3070,
33411,
366,
9237,
1,
796,
705,
33771,
6551,
6
] |
what were the number of sertraline hcl prescriptions that were made? | SELECT COUNT(*) FROM prescriptions WHERE prescriptions.drug = 'sertraline hcl' | [
10919,
547,
262,
1271,
286,
264,
861,
1373,
500,
289,
565,
34092,
326,
547,
925,
30,
46506,
327,
28270,
7,
28104,
16034,
34092,
33411,
34092,
13,
30349,
796,
705,
82,
861,
1373,
500,
289,
565,
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
] | [
10919,
547,
262,
1271,
286,
264,
861,
1373,
500,
289,
565,
34092,
326,
547,
925,
30,
46506,
327,
28270,
7,
28104,
16034,
34092,
33411,
34092,
13,
30349,
796,
705,
82,
861,
1373,
500,
289,
565,
6
] |
Name the population 2010 census for population 2000 census of 920599 | SELECT population__2010_census_ FROM table_14986292_1 WHERE population_2000_census = 920599 | [
5376,
262,
3265,
3050,
21649,
329,
3265,
4751,
21649,
286,
860,
21261,
2079,
46506,
3265,
834,
10333,
62,
66,
7314,
62,
16034,
3084,
62,
1415,
49087,
32759,
62,
16,
33411,
3265,
62,
11024,
62,
66,
7314,
796,
860,
21261,
2079
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3265,
3050,
21649,
329,
3265,
4751,
21649,
286,
860,
21261,
2079,
46506,
3265,
834,
10333,
62,
66,
7314,
62,
16034,
3084,
62,
1415,
49087,
32759,
62,
16,
33411,
3265,
62,
11024,
62,
66,
7314,
796,
860,
21261,
2079
] |
what is diagnoses short title and diagnoses long title of diagnoses icd9 code v4364? | SELECT diagnoses.short_title, diagnoses.long_title FROM diagnoses WHERE diagnoses.icd9_code = "V4364" | [
10919,
318,
40567,
1790,
3670,
290,
40567,
890,
3670,
286,
40567,
14158,
67,
24,
2438,
410,
3559,
2414,
30,
46506,
40567,
13,
19509,
62,
7839,
11,
40567,
13,
6511,
62,
7839,
16034,
40567,
33411,
40567,
13,
291,
67,
24,
62,
8189,
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
] | [
10919,
318,
40567,
1790,
3670,
290,
40567,
890,
3670,
286,
40567,
14158,
67,
24,
2438,
410,
3559,
2414,
30,
46506,
40567,
13,
19509,
62,
7839,
11,
40567,
13,
6511,
62,
7839,
16034,
40567,
33411,
40567,
13,
291,
67,
24,
62,
8189,
796,
... |
what is the average wins when draws is less than 0? | SELECT AVG(wins) FROM table_name_72 WHERE draws < 0 | [
10919,
318,
262,
2811,
7864,
618,
14293,
318,
1342,
621,
657,
30,
46506,
35224,
7,
86,
1040,
8,
16034,
3084,
62,
3672,
62,
4761,
33411,
14293,
1279,
657
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
2811,
7864,
618,
14293,
318,
1342,
621,
657,
30,
46506,
35224,
7,
86,
1040,
8,
16034,
3084,
62,
3672,
62,
4761,
33411,
14293,
1279,
657
] |
What record has detroit as the home and mtl. maroons as the visitor? | SELECT "Record" FROM table_74955 WHERE "Home" = 'detroit' AND "Visitor" = 'mtl. maroons' | [
2061,
1700,
468,
1062,
7775,
355,
262,
1363,
290,
285,
28781,
13,
1667,
13022,
355,
262,
21493,
30,
46506,
366,
23739,
1,
16034,
3084,
62,
22,
2920,
2816,
33411,
366,
16060,
1,
796,
705,
15255,
7775,
6,
5357,
366,
15854,
2072,
1,
79... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
1700,
468,
1062,
7775,
355,
262,
1363,
290,
285,
28781,
13,
1667,
13022,
355,
262,
21493,
30,
46506,
366,
23739,
1,
16034,
3084,
62,
22,
2920,
2816,
33411,
366,
16060,
1,
796,
705,
15255,
7775,
6,
5357,
366,
15854,
2072,
1,
79... |
What is Andy North with a To par greater than 8 Country? | SELECT "Country" FROM table_77098 WHERE "To par" > '8' AND "Player" = 'andy north' | [
2061,
318,
12382,
2258,
351,
257,
1675,
1582,
3744,
621,
807,
12946,
30,
46506,
366,
33921,
1,
16034,
3084,
62,
41820,
4089,
33411,
366,
2514,
1582,
1,
1875,
705,
23,
6,
5357,
366,
14140,
1,
796,
705,
10757,
5093,
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,
12382,
2258,
351,
257,
1675,
1582,
3744,
621,
807,
12946,
30,
46506,
366,
33921,
1,
16034,
3084,
62,
41820,
4089,
33411,
366,
2514,
1582,
1,
1875,
705,
23,
6,
5357,
366,
14140,
1,
796,
705,
10757,
5093,
6
] |
how many patients whose diagnoses icd9 code is 70715 and drug type is base? | 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 = "70715" AND prescriptions.drug_type = "BASE" | [
4919,
867,
3871,
3025,
40567,
14158,
67,
24,
2438,
318,
767,
2998,
1314,
290,
2563,
2099,
318,
2779,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
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... | [
4919,
867,
3871,
3025,
40567,
14158,
67,
24,
2438,
318,
767,
2998,
1314,
290,
2563,
2099,
318,
2779,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16... |
What is the title that has 14.59 u.s. viewers (millions)? | SELECT "Title" FROM table_24756 WHERE "U.S. viewers (millions)" = '14.59' | [
2061,
318,
262,
3670,
326,
468,
1478,
13,
3270,
334,
13,
82,
13,
10209,
357,
17805,
507,
19427,
46506,
366,
19160,
1,
16034,
3084,
62,
1731,
38219,
33411,
366,
52,
13,
50,
13,
10209,
357,
17805,
507,
16725,
796,
705,
1415,
13,
3270,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3670,
326,
468,
1478,
13,
3270,
334,
13,
82,
13,
10209,
357,
17805,
507,
19427,
46506,
366,
19160,
1,
16034,
3084,
62,
1731,
38219,
33411,
366,
52,
13,
50,
13,
10209,
357,
17805,
507,
16725,
796,
705,
1415,
13,
3270,... |
For those employees who do not work in departments with managers that have ids between 100 and 200, find job_id and department_id , and visualize them by a bar chart, and show by the X-axis in descending. | SELECT JOB_ID, DEPARTMENT_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY JOB_ID DESC | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
1064,
1693,
62,
312,
290,
5011,
62,
312,
837,
290,
38350,
606,
416,
257,
2318,
8262,
11,
290,
905,
416,
262,
1395,
12,
227... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1064,
1693,
62,
312,
290,
5011,
62,
312,
837,
290,
38350,
606,
416,
257,
2318,
8262,
11,
290,
905,
416,
262,
1395,
12,
227... |
Which round has a win-loss result of loss and an edition of 2012 Fed Cup Europe/Africa Group I? | SELECT "Round" FROM table_25206 WHERE "W\u2013L" = 'Loss' AND "Edition" = '2012 Fed Cup Europe/Africa Group I' | [
13828,
2835,
468,
257,
1592,
12,
22462,
1255,
286,
2994,
290,
281,
8313,
286,
2321,
10169,
5454,
2031,
14,
17584,
30997,
4912,
314,
30,
46506,
366,
22685,
1,
16034,
3084,
62,
1495,
22136,
33411,
366,
54,
59,
84,
6390,
43,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
2835,
468,
257,
1592,
12,
22462,
1255,
286,
2994,
290,
281,
8313,
286,
2321,
10169,
5454,
2031,
14,
17584,
30997,
4912,
314,
30,
46506,
366,
22685,
1,
16034,
3084,
62,
1495,
22136,
33411,
366,
54,
59,
84,
6390,
43,
1,
796,
70... |
what is the minimum cost of hospital that involves a procedure called peripheral nerve graft since 5 years ago? | SELECT MIN(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.hadm_id IN (SELECT procedures_icd.hadm_id FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'peripheral nerve graft')) AND DATETIME(cost.chargetime) >... | [
10919,
318,
262,
5288,
1575,
286,
4436,
326,
9018,
257,
8771,
1444,
25514,
16384,
38455,
1201,
642,
812,
2084,
30,
46506,
20625,
7,
83,
16,
13,
66,
16,
8,
16034,
357,
46506,
35683,
7,
15805,
13,
15805,
8,
7054,
269,
16,
16034,
1575,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
5288,
1575,
286,
4436,
326,
9018,
257,
8771,
1444,
25514,
16384,
38455,
1201,
642,
812,
2084,
30,
46506,
20625,
7,
83,
16,
13,
66,
16,
8,
16034,
357,
46506,
35683,
7,
15805,
13,
15805,
8,
7054,
269,
16,
16034,
1575,... |
with the amount of tries at 89, how many win's were there? | SELECT "Won" FROM table_1747 WHERE "Tries against" = '89' | [
4480,
262,
2033,
286,
8404,
379,
9919,
11,
703,
867,
1592,
338,
547,
612,
30,
46506,
366,
54,
261,
1,
16034,
3084,
62,
1558,
2857,
33411,
366,
51,
1678,
1028,
1,
796,
705,
4531,
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
] | [
4480,
262,
2033,
286,
8404,
379,
9919,
11,
703,
867,
1592,
338,
547,
612,
30,
46506,
366,
54,
261,
1,
16034,
3084,
62,
1558,
2857,
33411,
366,
51,
1678,
1028,
1,
796,
705,
4531,
6
] |
Tell me the total number of prom for height less than 615 | SELECT COUNT("Prom. (m)") FROM table_52935 WHERE "Height (m)" < '615' | [
24446,
502,
262,
2472,
1271,
286,
1552,
329,
6001,
1342,
621,
718,
1314,
46506,
327,
28270,
7203,
24129,
13,
357,
76,
8,
4943,
16034,
3084,
62,
49721,
2327,
33411,
366,
23106,
357,
76,
16725,
1279,
705,
47007,
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
] | [
24446,
502,
262,
2472,
1271,
286,
1552,
329,
6001,
1342,
621,
718,
1314,
46506,
327,
28270,
7203,
24129,
13,
357,
76,
8,
4943,
16034,
3084,
62,
49721,
2327,
33411,
366,
23106,
357,
76,
16725,
1279,
705,
47007,
6
] |
what are the top three most frequent diagnoses that were given to patients in the same month after they were diagnosed with esophageal reflux in this year? | SELECT d_icd_diagnoses.short_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.icd9_code IN (SELECT t3.icd9_code FROM (SELECT t2.icd9_code, 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... | [
10919,
389,
262,
1353,
1115,
749,
10792,
40567,
326,
547,
1813,
284,
3871,
287,
262,
976,
1227,
706,
484,
547,
14641,
351,
1658,
2522,
496,
282,
1006,
22564,
287,
428,
614,
30,
46506,
288,
62,
291,
67,
62,
47356,
4629,
13,
19509,
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,
389,
262,
1353,
1115,
749,
10792,
40567,
326,
547,
1813,
284,
3871,
287,
262,
976,
1227,
706,
484,
547,
14641,
351,
1658,
2522,
496,
282,
1006,
22564,
287,
428,
614,
30,
46506,
288,
62,
291,
67,
62,
47356,
4629,
13,
19509,
62... |
Name the copa libertadores 1992 for round of 16 and team of fluminense | SELECT copa_libertadores_1992 FROM table_15013825_8 WHERE copa_conmebol_1992 = "Round of 16" AND team = "Fluminense" | [
5376,
262,
2243,
64,
3655,
83,
324,
2850,
9768,
329,
2835,
286,
1467,
290,
1074,
286,
781,
7230,
1072,
46506,
2243,
64,
62,
33203,
83,
324,
2850,
62,
23847,
16034,
3084,
62,
1314,
486,
2548,
1495,
62,
23,
33411,
2243,
64,
62,
1102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2243,
64,
3655,
83,
324,
2850,
9768,
329,
2835,
286,
1467,
290,
1074,
286,
781,
7230,
1072,
46506,
2243,
64,
62,
33203,
83,
324,
2850,
62,
23847,
16034,
3084,
62,
1314,
486,
2548,
1495,
62,
23,
33411,
2243,
64,
62,
1102,
... |
Who was Al Michaels' color commentator in 2003? | SELECT color_commentator_s_ FROM table_name_69 WHERE play_by_play = "al michaels" AND year > 2003 | [
8241,
373,
978,
44768,
6,
3124,
28823,
287,
5816,
30,
46506,
3124,
62,
23893,
1352,
62,
82,
62,
16034,
3084,
62,
3672,
62,
3388,
33411,
711,
62,
1525,
62,
1759,
796,
366,
282,
285,
488,
64,
1424,
1,
5357,
614,
1875,
5816
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
978,
44768,
6,
3124,
28823,
287,
5816,
30,
46506,
3124,
62,
23893,
1352,
62,
82,
62,
16034,
3084,
62,
3672,
62,
3388,
33411,
711,
62,
1525,
62,
1759,
796,
366,
282,
285,
488,
64,
1424,
1,
5357,
614,
1875,
5816
] |
Ram Vaswani was a winner on what date? | SELECT "Date" FROM table_68434 WHERE "Winner" = 'ram vaswani' | [
33754,
23663,
86,
3216,
373,
257,
8464,
319,
644,
3128,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
41580,
2682,
33411,
366,
48056,
1,
796,
705,
859,
34439,
86,
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
] | [
33754,
23663,
86,
3216,
373,
257,
8464,
319,
644,
3128,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
41580,
2682,
33411,
366,
48056,
1,
796,
705,
859,
34439,
86,
3216,
6
] |
What are the dates of the latest logon of the students with family name 'Jaskolski' or 'Langosh'? | SELECT date_of_latest_logon FROM students WHERE family_name = "Jaskolski" OR family_name = "Langosh" | [
2061,
389,
262,
9667,
286,
262,
3452,
2604,
261,
286,
262,
2444,
351,
1641,
1438,
705,
41,
2093,
10220,
4106,
6,
393,
705,
43,
648,
3768,
30960,
46506,
3128,
62,
1659,
62,
42861,
62,
6404,
261,
16034,
2444,
33411,
1641,
62,
3672,
79... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
389,
262,
9667,
286,
262,
3452,
2604,
261,
286,
262,
2444,
351,
1641,
1438,
705,
41,
2093,
10220,
4106,
6,
393,
705,
43,
648,
3768,
30960,
46506,
3128,
62,
1659,
62,
42861,
62,
6404,
261,
16034,
2444,
33411,
1641,
62,
3672,
79... |
What city ranked 7? | SELECT city FROM table_name_20 WHERE rank = 7 | [
2061,
1748,
10307,
767,
30,
46506,
1748,
16034,
3084,
62,
3672,
62,
1238,
33411,
4279,
796,
767
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
1748,
10307,
767,
30,
46506,
1748,
16034,
3084,
62,
3672,
62,
1238,
33411,
4279,
796,
767
] |
What is the lowest FA Cup when the league cup is 1, and the total is more than 23? | SELECT MIN(fa_cup) FROM table_name_16 WHERE league_cup = 1 AND total > 23 | [
2061,
318,
262,
9016,
9677,
5454,
618,
262,
4652,
6508,
318,
352,
11,
290,
262,
2472,
318,
517,
621,
2242,
30,
46506,
20625,
7,
13331,
62,
25244,
8,
16034,
3084,
62,
3672,
62,
1433,
33411,
4652,
62,
25244,
796,
352,
5357,
2472,
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
] | [
2061,
318,
262,
9016,
9677,
5454,
618,
262,
4652,
6508,
318,
352,
11,
290,
262,
2472,
318,
517,
621,
2242,
30,
46506,
20625,
7,
13331,
62,
25244,
8,
16034,
3084,
62,
3672,
62,
1433,
33411,
4652,
62,
25244,
796,
352,
5357,
2472,
1875... |
What is the round number when the record is 15 7 1? | SELECT COUNT("Round") FROM table_48059 WHERE "Record" = '15–7–1' | [
2061,
318,
262,
2835,
1271,
618,
262,
1700,
318,
1315,
767,
352,
30,
46506,
327,
28270,
7203,
22685,
4943,
16034,
3084,
62,
22148,
3270,
33411,
366,
23739,
1,
796,
705,
1314,
1906,
22,
1906,
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
] | [
2061,
318,
262,
2835,
1271,
618,
262,
1700,
318,
1315,
767,
352,
30,
46506,
327,
28270,
7203,
22685,
4943,
16034,
3084,
62,
22148,
3270,
33411,
366,
23739,
1,
796,
705,
1314,
1906,
22,
1906,
16,
6
] |
was the glucagon (human recombinant) 1 mg/ml solution for injection prescribed to patient 007-10135 in the previous year? | SELECT COUNT(*) > 0 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '007-10135')) AND medication.drugname = 'glucagon (human recombinant) 1 mg/... | [
9776,
262,
14182,
1840,
357,
10734,
44759,
42483,
8,
352,
10527,
14,
4029,
4610,
329,
16954,
14798,
284,
5827,
3571,
22,
12,
8784,
2327,
287,
262,
2180,
614,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
14103,
33411,
14103,
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... | [
9776,
262,
14182,
1840,
357,
10734,
44759,
42483,
8,
352,
10527,
14,
4029,
4610,
329,
16954,
14798,
284,
5827,
3571,
22,
12,
8784,
2327,
287,
262,
2180,
614,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
14103,
33411,
14103,
13,
... |
Recent bounties with a given tag. | SELECT p.Id AS "post_link", p.Score AS "Score", p.AnswerCount AS "Answers", bs.BountyAmount AS "Amount", p.Tags, CAST(TIME_TO_STR(bs.CreationDate, '%Y-%m-%d %H:%M:%S') AS TEXT(10)) AS "Bounty Start" FROM Posts AS p INNER JOIN Votes AS bs ON p.Id = bs.PostId AND bs.VoteTypeId = 8 AND p.Tags LIKE '%<##Tagname##>%' ORDER ... | [
26446,
49937,
444,
351,
257,
1813,
7621,
13,
46506,
279,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
279,
13,
26595,
7054,
366,
26595,
1600,
279,
13,
33706,
12332,
7054,
366,
2025,
37848,
1600,
275,
82,
13,
33,
17705,
31264,
7054,
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,
1,
1,
1,
1,
1,
1,
1... | [
26446,
49937,
444,
351,
257,
1813,
7621,
13,
46506,
279,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
279,
13,
26595,
7054,
366,
26595,
1600,
279,
13,
33706,
12332,
7054,
366,
2025,
37848,
1600,
275,
82,
13,
33,
17705,
31264,
7054,
366,... |
What stake has realtor for American equity realty as their occupation? | SELECT stake FROM table_name_98 WHERE occupation = "realtor for american equity realty" | [
2061,
10171,
468,
1103,
13165,
329,
1605,
13598,
1103,
774,
355,
511,
13755,
30,
46506,
10171,
16034,
3084,
62,
3672,
62,
4089,
33411,
13755,
796,
366,
260,
2501,
273,
329,
45630,
272,
13598,
1103,
774,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10171,
468,
1103,
13165,
329,
1605,
13598,
1103,
774,
355,
511,
13755,
30,
46506,
10171,
16034,
3084,
62,
3672,
62,
4089,
33411,
13755,
796,
366,
260,
2501,
273,
329,
45630,
272,
13598,
1103,
774,
1
] |
what is the number of patients whose marital status is single and lab test name is fibrin degradation products? | 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 = "Fibrin Degradation Products" | [
10919,
318,
262,
1271,
286,
3871,
3025,
29555,
3722,
318,
2060,
290,
2248,
1332,
1438,
318,
277,
2889,
259,
27486,
3186,
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,
1... | [
10919,
318,
262,
1271,
286,
3871,
3025,
29555,
3722,
318,
2060,
290,
2248,
1332,
1438,
318,
277,
2889,
259,
27486,
3186,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1... |
Top 20 users from kochi. | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation FROM Users WHERE LOWER(Location) LIKE '%Kochi, Kerala%' OR UPPER(Location) LIKE '%Kochi, Kerala%' ORDER BY Reputation DESC LIMIT 20 | [
9126,
1160,
2985,
422,
479,
5374,
72,
13,
46506,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
1432,
7094,
22196,
34,
8,
7054,
25113,
1600,
5121,
7054,
366,
7220,
62,
8726,
1600,
1432,
7094,
16034,
18987,
33411,
406... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
9126,
1160,
2985,
422,
479,
5374,
72,
13,
46506,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
1432,
7094,
22196,
34,
8,
7054,
25113,
1600,
5121,
7054,
366,
7220,
62,
8726,
1600,
1432,
7094,
16034,
18987,
33411,
406... |
give the number of patients who are born before the year 2023 and follow the religion protestant quaker. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.religion = "PROTESTANT QUAKER" AND demographic.dob_year < "2023" | [
26535,
262,
1271,
286,
3871,
508,
389,
4642,
878,
262,
614,
1160,
1954,
290,
1061,
262,
5737,
5402,
415,
627,
3110,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
2411,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
1271,
286,
3871,
508,
389,
4642,
878,
262,
614,
1160,
1954,
290,
1061,
262,
5737,
5402,
415,
627,
3110,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
2411,
... |
how many patients had v6284 as their diagnosis icd9 code along with a base drug type? | 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 = "V6284" AND prescriptions.drug_type = "BASE" | [
4919,
867,
3871,
550,
410,
21,
30336,
355,
511,
13669,
14158,
67,
24,
2438,
1863,
351,
257,
2779,
2563,
2099,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
550,
410,
21,
30336,
355,
511,
13669,
14158,
67,
24,
2438,
1863,
351,
257,
2779,
2563,
2099,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,... |
Draw a bar chart of sex versus mean height | SELECT Sex, AVG(Height) FROM people GROUP BY Sex | [
25302,
257,
2318,
8262,
286,
1714,
9051,
1612,
6001,
46506,
14419,
11,
35224,
7,
23106,
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
] | [
25302,
257,
2318,
8262,
286,
1714,
9051,
1612,
6001,
46506,
14419,
11,
35224,
7,
23106,
8,
16034,
661,
44441,
11050,
14419
] |
Name the solo when name is briggs, diyral | SELECT "Solo" FROM table_1187 WHERE "Name" = 'Briggs, Diyral' | [
5376,
262,
12199,
618,
1438,
318,
865,
20340,
11,
2566,
88,
1373,
46506,
366,
50,
14057,
1,
16034,
3084,
62,
1157,
5774,
33411,
366,
5376,
1,
796,
705,
33,
4359,
14542,
11,
6031,
88,
1373,
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
] | [
5376,
262,
12199,
618,
1438,
318,
865,
20340,
11,
2566,
88,
1373,
46506,
366,
50,
14057,
1,
16034,
3084,
62,
1157,
5774,
33411,
366,
5376,
1,
796,
705,
33,
4359,
14542,
11,
6031,
88,
1373,
6
] |
What is the sum of the weeks that games occured on october 21, 1974 and less than 50,623 fans attended? | SELECT SUM(week) FROM table_name_20 WHERE date = "october 21, 1974" AND attendance < 50 OFFSET 623 | [
2061,
318,
262,
2160,
286,
262,
2745,
326,
1830,
1609,
1522,
319,
19318,
2023,
2310,
11,
16489,
290,
1342,
621,
2026,
11,
46872,
3296,
9141,
30,
46506,
35683,
7,
10464,
8,
16034,
3084,
62,
3672,
62,
1238,
33411,
3128,
796,
366,
38441,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
2745,
326,
1830,
1609,
1522,
319,
19318,
2023,
2310,
11,
16489,
290,
1342,
621,
2026,
11,
46872,
3296,
9141,
30,
46506,
35683,
7,
10464,
8,
16034,
3084,
62,
3672,
62,
1238,
33411,
3128,
796,
366,
38441,... |
Count the number of different teams involved in match season. | SELECT COUNT(DISTINCT team) FROM match_season | [
12332,
262,
1271,
286,
1180,
3466,
2950,
287,
2872,
1622,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
1074,
8,
16034,
2872,
62,
6230
] | [
1,
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,
1180,
3466,
2950,
287,
2872,
1622,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
1074,
8,
16034,
2872,
62,
6230
] |
What year was Aaron Tveit nominated in the Favorite Male Replacement category? | SELECT AVG("Year") FROM table_57154 WHERE "Result" = 'nominated' AND "Category" = 'favorite male replacement' AND "Nominee" = 'aaron tveit' | [
2061,
614,
373,
12139,
309,
303,
270,
19332,
287,
262,
33992,
12674,
43986,
6536,
30,
46506,
35224,
7203,
17688,
4943,
16034,
3084,
62,
3553,
21526,
33411,
366,
23004,
1,
796,
705,
26601,
3898,
6,
5357,
366,
27313,
1,
796,
705,
35200,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
614,
373,
12139,
309,
303,
270,
19332,
287,
262,
33992,
12674,
43986,
6536,
30,
46506,
35224,
7203,
17688,
4943,
16034,
3084,
62,
3553,
21526,
33411,
366,
23004,
1,
796,
705,
26601,
3898,
6,
5357,
366,
27313,
1,
796,
705,
35200,
... |
What was the Top Gear budget in March 2013? | SELECT "Budget" FROM table_70171 WHERE "Month & Year" = 'march 2013' | [
2061,
373,
262,
5849,
10740,
4466,
287,
2805,
2211,
30,
46506,
366,
33,
29427,
1,
16034,
3084,
62,
41583,
4869,
33411,
366,
31948,
1222,
6280,
1,
796,
705,
76,
998,
2211,
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,
5849,
10740,
4466,
287,
2805,
2211,
30,
46506,
366,
33,
29427,
1,
16034,
3084,
62,
41583,
4869,
33411,
366,
31948,
1222,
6280,
1,
796,
705,
76,
998,
2211,
6
] |
JavaScript snippet tags that probably shouldn't be there. | SELECT Title, Tags, Id AS "post_link", Score, ViewCount FROM Posts WHERE PostTypeId = 1 AND Score = 0 AND NOT Tags LIKE '%javascript%' AND Body LIKE '%begin snippet: js hide: false%' | [
29584,
7391,
39442,
15940,
326,
2192,
6584,
470,
307,
612,
13,
46506,
11851,
11,
44789,
11,
5121,
7054,
366,
7353,
62,
8726,
1600,
15178,
11,
3582,
12332,
16034,
12043,
33411,
2947,
6030,
7390,
796,
352,
5357,
15178,
796,
657,
5357,
562... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
29584,
7391,
39442,
15940,
326,
2192,
6584,
470,
307,
612,
13,
46506,
11851,
11,
44789,
11,
5121,
7054,
366,
7353,
62,
8726,
1600,
15178,
11,
3582,
12332,
16034,
12043,
33411,
2947,
6030,
7390,
796,
352,
5357,
15178,
796,
657,
5357,
562... |
What is the Rank of the Maccabi Tel Aviv Player with 25 Games? | SELECT COUNT(rank) FROM table_name_82 WHERE games = 25 AND team = "maccabi tel aviv" | [
2061,
318,
262,
10916,
286,
262,
4100,
66,
17914,
12088,
28890,
7853,
351,
1679,
5776,
30,
46506,
327,
28270,
7,
43027,
8,
16034,
3084,
62,
3672,
62,
6469,
33411,
1830,
796,
1679,
5357,
1074,
796,
366,
76,
4134,
17914,
13632,
1196,
45... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10916,
286,
262,
4100,
66,
17914,
12088,
28890,
7853,
351,
1679,
5776,
30,
46506,
327,
28270,
7,
43027,
8,
16034,
3084,
62,
3672,
62,
6469,
33411,
1830,
796,
1679,
5357,
1074,
796,
366,
76,
4134,
17914,
13632,
1196,
45... |
what was the date of the first game played ? | SELECT "date" FROM table_204_197 ORDER BY "date" LIMIT 1 | [
10919,
373,
262,
3128,
286,
262,
717,
983,
2826,
5633,
46506,
366,
4475,
1,
16034,
3084,
62,
18638,
62,
24991,
38678,
11050,
366,
4475,
1,
27564,
2043,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
373,
262,
3128,
286,
262,
717,
983,
2826,
5633,
46506,
366,
4475,
1,
16034,
3084,
62,
18638,
62,
24991,
38678,
11050,
366,
4475,
1,
27564,
2043,
352
] |
What's the type of the school whose students are nicknamed Chargers? | SELECT "Type" FROM table_23158 WHERE "Nickname" = 'Chargers' | [
2061,
338,
262,
2099,
286,
262,
1524,
3025,
2444,
389,
35786,
23559,
30,
46506,
366,
6030,
1,
16034,
3084,
62,
1954,
21273,
33411,
366,
23609,
3672,
1,
796,
705,
28316,
364,
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,
338,
262,
2099,
286,
262,
1524,
3025,
2444,
389,
35786,
23559,
30,
46506,
366,
6030,
1,
16034,
3084,
62,
1954,
21273,
33411,
366,
23609,
3672,
1,
796,
705,
28316,
364,
6
] |
when did patient 25365 get admitted for the first time during this year in the hospital? | SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 25365 AND DATETIME(admissions.admittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') ORDER BY admissions.admittime LIMIT 1 | [
12518,
750,
5827,
1679,
24760,
651,
6848,
329,
262,
717,
640,
1141,
428,
614,
287,
262,
4436,
30,
46506,
25349,
13,
324,
20124,
524,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
1679,
24760,
5357,
360,
1404,
2767,
12789,
7,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
12518,
750,
5827,
1679,
24760,
651,
6848,
329,
262,
717,
640,
1141,
428,
614,
287,
262,
4436,
30,
46506,
25349,
13,
324,
20124,
524,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
1679,
24760,
5357,
360,
1404,
2767,
12789,
7,
32... |
What are Unit 2's dates of commissioning? | SELECT COUNT("Date of Commissioning") FROM table_30661 WHERE "Unit Number" = '2' | [
2061,
389,
11801,
362,
338,
9667,
286,
5810,
278,
30,
46506,
327,
28270,
7203,
10430,
286,
4513,
278,
4943,
16034,
3084,
62,
1270,
47159,
33411,
366,
26453,
7913,
1,
796,
705,
17,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
389,
11801,
362,
338,
9667,
286,
5810,
278,
30,
46506,
327,
28270,
7203,
10430,
286,
4513,
278,
4943,
16034,
3084,
62,
1270,
47159,
33411,
366,
26453,
7913,
1,
796,
705,
17,
6
] |
What was the value in 2012 when 2002 was Q1 and 2010 was 1R? | SELECT 2012 FROM table_name_83 WHERE 2002 = "q1" AND 2010 = "1r" | [
2061,
373,
262,
1988,
287,
2321,
618,
6244,
373,
1195,
16,
290,
3050,
373,
352,
49,
30,
46506,
2321,
16034,
3084,
62,
3672,
62,
5999,
33411,
6244,
796,
366,
80,
16,
1,
5357,
3050,
796,
366,
16,
81,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
1988,
287,
2321,
618,
6244,
373,
1195,
16,
290,
3050,
373,
352,
49,
30,
46506,
2321,
16034,
3084,
62,
3672,
62,
5999,
33411,
6244,
796,
366,
80,
16,
1,
5357,
3050,
796,
366,
16,
81,
1
] |
Goalsagainst of 285, and a Season of 2006 07, and a Games smaller than 70 has what average points? | SELECT AVG(points) FROM table_name_88 WHERE goalsagainst = 285 AND season = "2006–07" AND games < 70 | [
5247,
874,
32826,
286,
33015,
11,
290,
257,
7369,
286,
4793,
8753,
11,
290,
257,
5776,
4833,
621,
4317,
468,
644,
2811,
2173,
30,
46506,
35224,
7,
13033,
8,
16034,
3084,
62,
3672,
62,
3459,
33411,
4661,
32826,
796,
33015,
5357,
1622,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5247,
874,
32826,
286,
33015,
11,
290,
257,
7369,
286,
4793,
8753,
11,
290,
257,
5776,
4833,
621,
4317,
468,
644,
2811,
2173,
30,
46506,
35224,
7,
13033,
8,
16034,
3084,
62,
3672,
62,
3459,
33411,
4661,
32826,
796,
33015,
5357,
1622,
... |
What is the Score with a Team with @ houston? | SELECT "Score" FROM table_11832 WHERE "Team" = '@ houston' | [
2061,
318,
262,
15178,
351,
257,
4816,
351,
2488,
289,
6526,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
16817,
2624,
33411,
366,
15592,
1,
796,
705,
31,
289,
6526,
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,
15178,
351,
257,
4816,
351,
2488,
289,
6526,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
16817,
2624,
33411,
366,
15592,
1,
796,
705,
31,
289,
6526,
6
] |
Where did carlton play while away? | SELECT "Venue" FROM table_10570 WHERE "Away team" = 'carlton' | [
8496,
750,
1097,
75,
1122,
711,
981,
1497,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
13348,
2154,
33411,
366,
32,
1014,
1074,
1,
796,
705,
66,
7063,
1122,
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
] | [
8496,
750,
1097,
75,
1122,
711,
981,
1497,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
13348,
2154,
33411,
366,
32,
1014,
1074,
1,
796,
705,
66,
7063,
1122,
6
] |
What are the changes from 2009 to 2010 in Tunisia? | SELECT "Change (2009 to 2010)" FROM table_19564 WHERE "Country" = 'Tunisia' | [
2061,
389,
262,
2458,
422,
3717,
284,
3050,
287,
33972,
30,
46506,
366,
19400,
357,
10531,
284,
3050,
16725,
16034,
3084,
62,
22186,
2414,
33411,
366,
33921,
1,
796,
705,
51,
403,
271,
544,
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,
389,
262,
2458,
422,
3717,
284,
3050,
287,
33972,
30,
46506,
366,
19400,
357,
10531,
284,
3050,
16725,
16034,
3084,
62,
22186,
2414,
33411,
366,
33921,
1,
796,
705,
51,
403,
271,
544,
6
] |
What series is at the position 7? | SELECT series FROM table_21297652_1 WHERE position = 7 | [
2061,
2168,
318,
379,
262,
2292,
767,
30,
46506,
2168,
16034,
3084,
62,
21777,
5607,
43193,
62,
16,
33411,
2292,
796,
767
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
2168,
318,
379,
262,
2292,
767,
30,
46506,
2168,
16034,
3084,
62,
21777,
5607,
43193,
62,
16,
33411,
2292,
796,
767
] |
What was the home team score at North Melbourne's away game? | SELECT home_team AS score FROM table_name_11 WHERE away_team = "north melbourne" | [
2061,
373,
262,
1363,
1074,
4776,
379,
2258,
14819,
338,
1497,
983,
30,
46506,
1363,
62,
15097,
7054,
4776,
16034,
3084,
62,
3672,
62,
1157,
33411,
1497,
62,
15097,
796,
366,
43588,
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,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
1363,
1074,
4776,
379,
2258,
14819,
338,
1497,
983,
30,
46506,
1363,
62,
15097,
7054,
4776,
16034,
3084,
62,
3672,
62,
1157,
33411,
1497,
62,
15097,
796,
366,
43588,
7758,
12544,
1
] |
Find Team_Name and All_Games_Percent , and visualize them by a bar chart, could you list in asc by the y axis please? | SELECT Team_Name, All_Games_Percent FROM basketball_match ORDER BY All_Games_Percent | [
16742,
4816,
62,
5376,
290,
1439,
62,
24474,
62,
31905,
837,
290,
38350,
606,
416,
257,
2318,
8262,
11,
714,
345,
1351,
287,
10570,
416,
262,
331,
16488,
3387,
30,
46506,
4816,
62,
5376,
11,
1439,
62,
24474,
62,
31905,
16034,
9669,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4816,
62,
5376,
290,
1439,
62,
24474,
62,
31905,
837,
290,
38350,
606,
416,
257,
2318,
8262,
11,
714,
345,
1351,
287,
10570,
416,
262,
331,
16488,
3387,
30,
46506,
4816,
62,
5376,
11,
1439,
62,
24474,
62,
31905,
16034,
9669,
... |
what two hospitals holding consecutive rankings of 8 and 9 respectively , both provide 1200 hospital beds ? | SELECT "hospital" FROM table_203_216 WHERE "rank" IN (8, 9) | [
10919,
734,
11301,
4769,
12785,
16905,
286,
807,
290,
860,
8148,
837,
1111,
2148,
24938,
4436,
20237,
5633,
46506,
366,
49257,
1,
16034,
3084,
62,
22416,
62,
20666,
33411,
366,
43027,
1,
3268,
357,
23,
11,
860,
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
] | [
10919,
734,
11301,
4769,
12785,
16905,
286,
807,
290,
860,
8148,
837,
1111,
2148,
24938,
4436,
20237,
5633,
46506,
366,
49257,
1,
16034,
3084,
62,
22416,
62,
20666,
33411,
366,
43027,
1,
3268,
357,
23,
11,
860,
8
] |
How many teams won $2,089,556? | SELECT COUNT(wins) FROM table_1929755_1 WHERE winnings = "$2,089,556" | [
2437,
867,
3466,
1839,
720,
17,
11,
49352,
11,
37864,
30,
46506,
327,
28270,
7,
86,
1040,
8,
16034,
3084,
62,
1129,
1959,
38172,
62,
16,
33411,
1592,
23400,
796,
17971,
17,
11,
49352,
11,
37864,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
3466,
1839,
720,
17,
11,
49352,
11,
37864,
30,
46506,
327,
28270,
7,
86,
1040,
8,
16034,
3084,
62,
1129,
1959,
38172,
62,
16,
33411,
1592,
23400,
796,
17971,
17,
11,
49352,
11,
37864,
1
] |
The person that was born in Sydney died in what year? | SELECT born___died FROM table_name_47 WHERE connection_with_australia = "born in sydney" | [
464,
1048,
326,
373,
4642,
287,
11852,
3724,
287,
644,
614,
30,
46506,
4642,
17569,
67,
798,
16034,
3084,
62,
3672,
62,
2857,
33411,
4637,
62,
4480,
62,
64,
436,
1373,
544,
796,
366,
6286,
287,
827,
67,
1681,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1048,
326,
373,
4642,
287,
11852,
3724,
287,
644,
614,
30,
46506,
4642,
17569,
67,
798,
16034,
3084,
62,
3672,
62,
2857,
33411,
4637,
62,
4480,
62,
64,
436,
1373,
544,
796,
366,
6286,
287,
827,
67,
1681,
1
] |
papers written by ras bodik and emina torlak | SELECT DISTINCT WRITES_0.paperid FROM author AS AUTHOR_0, author AS AUTHOR_1, writes AS WRITES_0, writes AS WRITES_1 WHERE AUTHOR_0.authorname = 'ras bodik' AND AUTHOR_1.authorname = 'emina torlak' AND WRITES_0.authorid = AUTHOR_0.authorid AND WRITES_1.authorid = AUTHOR_1.authorid AND WRITES_1.paperid = WRITES_0.paperi... | [
40491,
3194,
416,
374,
292,
16429,
1134,
290,
795,
1437,
7332,
75,
461,
46506,
360,
8808,
1268,
4177,
11342,
2043,
1546,
62,
15,
13,
20189,
312,
16034,
1772,
7054,
44746,
62,
15,
11,
1772,
7054,
44746,
62,
16,
11,
6797,
7054,
11342,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
40491,
3194,
416,
374,
292,
16429,
1134,
290,
795,
1437,
7332,
75,
461,
46506,
360,
8808,
1268,
4177,
11342,
2043,
1546,
62,
15,
13,
20189,
312,
16034,
1772,
7054,
44746,
62,
15,
11,
1772,
7054,
44746,
62,
16,
11,
6797,
7054,
11342,
... |
With a score smaller than 71 along with a place of t6, what is the To par score? | SELECT to_par FROM table_name_69 WHERE score < 71 AND place = "t6" | [
3152,
257,
4776,
4833,
621,
9166,
1863,
351,
257,
1295,
286,
256,
21,
11,
644,
318,
262,
1675,
1582,
4776,
30,
46506,
284,
62,
1845,
16034,
3084,
62,
3672,
62,
3388,
33411,
4776,
1279,
9166,
5357,
1295,
796,
366,
83,
21,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
3152,
257,
4776,
4833,
621,
9166,
1863,
351,
257,
1295,
286,
256,
21,
11,
644,
318,
262,
1675,
1582,
4776,
30,
46506,
284,
62,
1845,
16034,
3084,
62,
3672,
62,
3388,
33411,
4776,
1279,
9166,
5357,
1295,
796,
366,
83,
21,
1
] |
Show all locations which don't have a train station with at least 15 platforms. | SELECT location FROM station EXCEPT SELECT location FROM station WHERE number_of_platforms >= 15 | [
15307,
477,
7064,
543,
836,
470,
423,
257,
4512,
4429,
351,
379,
1551,
1315,
9554,
13,
46506,
4067,
16034,
4429,
7788,
42006,
33493,
4067,
16034,
4429,
33411,
1271,
62,
1659,
62,
24254,
82,
18189,
1315
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15307,
477,
7064,
543,
836,
470,
423,
257,
4512,
4429,
351,
379,
1551,
1315,
9554,
13,
46506,
4067,
16034,
4429,
7788,
42006,
33493,
4067,
16034,
4429,
33411,
1271,
62,
1659,
62,
24254,
82,
18189,
1315
] |
On what date was the Result 1-0? | SELECT date FROM table_name_33 WHERE result = "1-0" | [
2202,
644,
3128,
373,
262,
25414,
352,
12,
15,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
2091,
33411,
1255,
796,
366,
16,
12,
15,
1
] | [
1,
1,
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,
25414,
352,
12,
15,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
2091,
33411,
1255,
796,
366,
16,
12,
15,
1
] |
What is Agricultural Use (m 3 /p/yr)(in %), when Per Capita Withdrawal (m 3 /p/yr) is greater than 923, and when Domestic Use (m 3 /p/yr)(in %) is 73(7%)? | SELECT agricultural_use__m_3__p_yr__in__percentage_ FROM table_name_7 WHERE per_capita_withdrawal__m_3__p_yr_ > 923 AND domestic_use__m_3__p_yr__in__percentage_ = "73(7%)" | [
2061,
318,
36694,
5765,
357,
76,
513,
1220,
79,
14,
2417,
5769,
259,
4064,
828,
618,
2448,
4476,
5350,
2080,
19334,
282,
357,
76,
513,
1220,
79,
14,
2417,
8,
318,
3744,
621,
860,
1954,
11,
290,
618,
29015,
5765,
357,
76,
513,
1220... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
36694,
5765,
357,
76,
513,
1220,
79,
14,
2417,
5769,
259,
4064,
828,
618,
2448,
4476,
5350,
2080,
19334,
282,
357,
76,
513,
1220,
79,
14,
2417,
8,
318,
3744,
621,
860,
1954,
11,
290,
618,
29015,
5765,
357,
76,
513,
1220... |
What is the average total number of medals for a nation with 2 silver medals and a rank larger than 7? | SELECT AVG(total) FROM table_name_97 WHERE silver = 2 AND rank > 7 | [
2061,
318,
262,
2811,
2472,
1271,
286,
28057,
329,
257,
3277,
351,
362,
8465,
28057,
290,
257,
4279,
4025,
621,
767,
30,
46506,
35224,
7,
23350,
8,
16034,
3084,
62,
3672,
62,
5607,
33411,
8465,
796,
362,
5357,
4279,
1875,
767
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1271,
286,
28057,
329,
257,
3277,
351,
362,
8465,
28057,
290,
257,
4279,
4025,
621,
767,
30,
46506,
35224,
7,
23350,
8,
16034,
3084,
62,
3672,
62,
5607,
33411,
8465,
796,
362,
5357,
4279,
1875,
767
] |
What is the Score of West Asian Games 2005 on 10 dec 2005? | SELECT score FROM table_name_44 WHERE competition = "west asian games 2005" AND date = "10 dec 2005" | [
2061,
318,
262,
15178,
286,
2688,
7740,
5776,
5075,
319,
838,
875,
5075,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
2598,
33411,
5449,
796,
366,
7038,
355,
666,
1830,
5075,
1,
5357,
3128,
796,
366,
940,
875,
5075,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15178,
286,
2688,
7740,
5776,
5075,
319,
838,
875,
5075,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
2598,
33411,
5449,
796,
366,
7038,
355,
666,
1830,
5075,
1,
5357,
3128,
796,
366,
940,
875,
5075,
1
] |
What is the mass of the element with a nuclide that is 169 tm? | SELECT "isotopic mass ( u )" FROM table_1233 WHERE "Nuclide" = '169 Tm' | [
2061,
318,
262,
2347,
286,
262,
5002,
351,
257,
14364,
565,
485,
326,
318,
27191,
256,
76,
30,
46506,
366,
271,
313,
16603,
2347,
357,
334,
1267,
1,
16034,
3084,
62,
1065,
2091,
33411,
366,
45,
36616,
485,
1,
796,
705,
22172,
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
] | [
2061,
318,
262,
2347,
286,
262,
5002,
351,
257,
14364,
565,
485,
326,
318,
27191,
256,
76,
30,
46506,
366,
271,
313,
16603,
2347,
357,
334,
1267,
1,
16034,
3084,
62,
1065,
2091,
33411,
366,
45,
36616,
485,
1,
796,
705,
22172,
309,
... |
calculate how many times patient 15794 had taken pe 24 fs ng during their current hospital visit. | SELECT COUNT(*) FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 15794 AND admissions.dischtime IS NULL)) AND inputevents_cv.itemid IN (SELECT d_items.itemid FROM d_items WH... | [
9948,
3129,
378,
703,
867,
1661,
5827,
1315,
50242,
550,
2077,
613,
1987,
43458,
23370,
1141,
511,
1459,
4436,
3187,
13,
46506,
327,
28270,
7,
28104,
16034,
287,
79,
1133,
85,
658,
62,
33967,
33411,
287,
79,
1133,
85,
658,
62,
33967,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
703,
867,
1661,
5827,
1315,
50242,
550,
2077,
613,
1987,
43458,
23370,
1141,
511,
1459,
4436,
3187,
13,
46506,
327,
28270,
7,
28104,
16034,
287,
79,
1133,
85,
658,
62,
33967,
33411,
287,
79,
1133,
85,
658,
62,
33967,
... |
RAW vs non-RAW ranking comparison. | SELECT Answers.OwnerUserId AS "user_link", SUM(Answers.Score) AS "total_score" FROM Posts AS Answers INNER JOIN Users ON Answers.OwnerUserId = Users.Id INNER JOIN (SELECT Posts.Id AS "id" FROM Posts WHERE PostTypeId = 1 AND Tags LIKE '%rules-as-written%' AND Tags LIKE '%dnd-3.5e%') AS Questions ON Answers.ParentId = Qu... | [
20530,
3691,
1729,
12,
20530,
12759,
7208,
13,
46506,
42612,
13,
42419,
12982,
7390,
7054,
366,
7220,
62,
8726,
1600,
35683,
7,
2025,
37848,
13,
26595,
8,
7054,
366,
23350,
62,
26675,
1,
16034,
12043,
7054,
42612,
3268,
21479,
32357,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
20530,
3691,
1729,
12,
20530,
12759,
7208,
13,
46506,
42612,
13,
42419,
12982,
7390,
7054,
366,
7220,
62,
8726,
1600,
35683,
7,
2025,
37848,
13,
26595,
8,
7054,
366,
23350,
62,
26675,
1,
16034,
12043,
7054,
42612,
3268,
21479,
32357,
12... |
What was the total attendance at rugby park? | SELECT total FROM table_26980923_2 WHERE stadium = "Rugby Park" | [
2061,
373,
262,
2472,
14858,
379,
22948,
3952,
30,
46506,
2472,
16034,
3084,
62,
26276,
34583,
1954,
62,
17,
33411,
10308,
796,
366,
49,
1018,
1525,
3250,
1
] | [
1,
1,
1,
1,
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,
14858,
379,
22948,
3952,
30,
46506,
2472,
16034,
3084,
62,
26276,
34583,
1954,
62,
17,
33411,
10308,
796,
366,
49,
1018,
1525,
3250,
1
] |
For those employees who was hired before 2002-06-21, a bar chart shows the distribution of job_id and the amount of job_id , and group by attribute job_id, and show Y-axis in descending order. | SELECT JOB_ID, COUNT(JOB_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' GROUP BY JOB_ID ORDER BY COUNT(JOB_ID) DESC | [
1890,
883,
4409,
508,
373,
9657,
878,
6244,
12,
3312,
12,
2481,
11,
257,
2318,
8262,
2523,
262,
6082,
286,
1693,
62,
312,
290,
262,
2033,
286,
1693,
62,
312,
837,
290,
1448,
416,
11688,
1693,
62,
312,
11,
290,
905,
575,
12,
22704,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
883,
4409,
508,
373,
9657,
878,
6244,
12,
3312,
12,
2481,
11,
257,
2318,
8262,
2523,
262,
6082,
286,
1693,
62,
312,
290,
262,
2033,
286,
1693,
62,
312,
837,
290,
1448,
416,
11688,
1693,
62,
312,
11,
290,
905,
575,
12,
22704,... |
What year was the composition by Mejo Joseph? | SELECT COUNT("Year") FROM table_9989 WHERE "Composer" = 'mejo joseph' | [
2061,
614,
373,
262,
11742,
416,
2185,
7639,
7212,
30,
46506,
327,
28270,
7203,
17688,
4943,
16034,
3084,
62,
2079,
4531,
33411,
366,
5377,
1930,
263,
1,
796,
705,
1326,
7639,
474,
577,
746,
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,
614,
373,
262,
11742,
416,
2185,
7639,
7212,
30,
46506,
327,
28270,
7203,
17688,
4943,
16034,
3084,
62,
2079,
4531,
33411,
366,
5377,
1930,
263,
1,
796,
705,
1326,
7639,
474,
577,
746,
6
] |
Which Home team has an Away team of everton? | SELECT home_team FROM table_name_57 WHERE away_team = "everton" | [
13828,
5995,
1074,
468,
281,
21986,
1074,
286,
1683,
1122,
30,
46506,
1363,
62,
15097,
16034,
3084,
62,
3672,
62,
3553,
33411,
1497,
62,
15097,
796,
366,
964,
1122,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
5995,
1074,
468,
281,
21986,
1074,
286,
1683,
1122,
30,
46506,
1363,
62,
15097,
16034,
3084,
62,
3672,
62,
3553,
33411,
1497,
62,
15097,
796,
366,
964,
1122,
1
] |
Please show the police forces and the number of counties with each police force. | SELECT Police_force, COUNT(*) FROM county_public_safety GROUP BY Police_force | [
5492,
905,
262,
1644,
3386,
290,
262,
1271,
286,
14683,
351,
1123,
1644,
2700,
13,
46506,
4287,
62,
3174,
11,
327,
28270,
7,
28104,
16034,
7968,
62,
11377,
62,
44708,
44441,
11050,
4287,
62,
3174
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5492,
905,
262,
1644,
3386,
290,
262,
1271,
286,
14683,
351,
1123,
1644,
2700,
13,
46506,
4287,
62,
3174,
11,
327,
28270,
7,
28104,
16034,
7968,
62,
11377,
62,
44708,
44441,
11050,
4287,
62,
3174
] |
what is the average Against has Drawn of 2, and a Played larger than 10? | SELECT AVG("Against") FROM table_7226 WHERE "Drawn" = '2' AND "Played" > '10' | [
10919,
318,
262,
2811,
12914,
468,
50061,
286,
362,
11,
290,
257,
33101,
4025,
621,
838,
30,
46506,
35224,
7203,
39276,
4943,
16034,
3084,
62,
22,
24909,
33411,
366,
35,
5791,
1,
796,
705,
17,
6,
5357,
366,
11002,
276,
1,
1875,
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
] | [
10919,
318,
262,
2811,
12914,
468,
50061,
286,
362,
11,
290,
257,
33101,
4025,
621,
838,
30,
46506,
35224,
7203,
39276,
4943,
16034,
3084,
62,
22,
24909,
33411,
366,
35,
5791,
1,
796,
705,
17,
6,
5357,
366,
11002,
276,
1,
1875,
705,... |
what is the record when the opponent is akiko inoue? | SELECT record FROM table_name_37 WHERE opponent = "akiko inoue" | [
10919,
318,
262,
1700,
618,
262,
6125,
318,
47594,
12125,
287,
280,
68,
30,
46506,
1700,
16034,
3084,
62,
3672,
62,
2718,
33411,
6125,
796,
366,
461,
12125,
287,
280,
68,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
1700,
618,
262,
6125,
318,
47594,
12125,
287,
280,
68,
30,
46506,
1700,
16034,
3084,
62,
3672,
62,
2718,
33411,
6125,
796,
366,
461,
12125,
287,
280,
68,
1
] |
severe medical illness or mental problem or laboratory abnormality which can confound the results; | SELECT * FROM table_train_20 WHERE mental_status = 1 | [
43070,
3315,
8526,
393,
5110,
1917,
393,
14010,
42364,
1483,
543,
460,
1013,
633,
262,
2482,
26,
46506,
1635,
16034,
3084,
62,
27432,
62,
1238,
33411,
5110,
62,
13376,
796,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
43070,
3315,
8526,
393,
5110,
1917,
393,
14010,
42364,
1483,
543,
460,
1013,
633,
262,
2482,
26,
46506,
1635,
16034,
3084,
62,
27432,
62,
1238,
33411,
5110,
62,
13376,
796,
352
] |
Which destination has least number of flights? | SELECT destination FROM flight GROUP BY destination ORDER BY COUNT(*) LIMIT 1 | [
13828,
10965,
468,
1551,
1271,
286,
13956,
30,
46506,
10965,
16034,
5474,
44441,
11050,
10965,
38678,
11050,
327,
28270,
7,
28104,
27564,
2043,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
10965,
468,
1551,
1271,
286,
13956,
30,
46506,
10965,
16034,
5474,
44441,
11050,
10965,
38678,
11050,
327,
28270,
7,
28104,
27564,
2043,
352
] |
What are the descriptions for the aircrafts, and count them by a bar chart | SELECT Description, COUNT(Description) FROM aircraft GROUP BY Description | [
2061,
389,
262,
16969,
329,
262,
6215,
82,
11,
290,
954,
606,
416,
257,
2318,
8262,
46506,
12489,
11,
327,
28270,
7,
11828,
8,
16034,
6215,
44441,
11050,
12489
] | [
1,
1,
1,
1,
1,
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,
16969,
329,
262,
6215,
82,
11,
290,
954,
606,
416,
257,
2318,
8262,
46506,
12489,
11,
327,
28270,
7,
11828,
8,
16034,
6215,
44441,
11050,
12489
] |
Who held the Male Sports Rep position in 2011? | SELECT 2011 FROM table_name_73 WHERE position = "male sports rep" | [
8241,
2714,
262,
12674,
7092,
1432,
2292,
287,
2813,
30,
46506,
2813,
16034,
3084,
62,
3672,
62,
4790,
33411,
2292,
796,
366,
22606,
5701,
1128,
1
] | [
1,
1,
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,
2714,
262,
12674,
7092,
1432,
2292,
287,
2813,
30,
46506,
2813,
16034,
3084,
62,
3672,
62,
4790,
33411,
2292,
796,
366,
22606,
5701,
1128,
1
] |
Visualize a scatter chart about the correlation between Team_ID and School_ID , and group by attribute ACC_Home. | SELECT Team_ID, School_ID FROM basketball_match GROUP BY ACC_Home | [
36259,
1096,
257,
41058,
8262,
546,
262,
16096,
1022,
4816,
62,
2389,
290,
3961,
62,
2389,
837,
290,
1448,
416,
11688,
15859,
62,
16060,
13,
46506,
4816,
62,
2389,
11,
3961,
62,
2389,
16034,
9669,
62,
15699,
44441,
11050,
15859,
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
] | [
36259,
1096,
257,
41058,
8262,
546,
262,
16096,
1022,
4816,
62,
2389,
290,
3961,
62,
2389,
837,
290,
1448,
416,
11688,
15859,
62,
16060,
13,
46506,
4816,
62,
2389,
11,
3961,
62,
2389,
16034,
9669,
62,
15699,
44441,
11050,
15859,
62,
1... |
What is the sum of Total, when Silver is 0, and when Gold is 1? | SELECT SUM(total) FROM table_name_72 WHERE silver = 0 AND gold = 1 | [
2061,
318,
262,
2160,
286,
7472,
11,
618,
7698,
318,
657,
11,
290,
618,
3561,
318,
352,
30,
46506,
35683,
7,
23350,
8,
16034,
3084,
62,
3672,
62,
4761,
33411,
8465,
796,
657,
5357,
3869,
796,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2160,
286,
7472,
11,
618,
7698,
318,
657,
11,
290,
618,
3561,
318,
352,
30,
46506,
35683,
7,
23350,
8,
16034,
3084,
62,
3672,
62,
4761,
33411,
8465,
796,
657,
5357,
3869,
796,
352
] |
Which customers do not have any policies? Find the details of these customers. | SELECT customer_details FROM customers EXCEPT SELECT T1.customer_details FROM customers AS T1 JOIN customer_policies AS T2 ON T1.customer_id = T2.customer_id | [
13828,
4297,
466,
407,
423,
597,
4788,
30,
9938,
262,
3307,
286,
777,
4297,
13,
46506,
6491,
62,
36604,
16034,
4297,
7788,
42006,
33493,
309,
16,
13,
23144,
263,
62,
36604,
16034,
4297,
7054,
309,
16,
32357,
1268,
6491,
62,
79,
4160,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4297,
466,
407,
423,
597,
4788,
30,
9938,
262,
3307,
286,
777,
4297,
13,
46506,
6491,
62,
36604,
16034,
4297,
7788,
42006,
33493,
309,
16,
13,
23144,
263,
62,
36604,
16034,
4297,
7054,
309,
16,
32357,
1268,
6491,
62,
79,
4160,
... |
What is the name of the vacator for district Louisiana 1st? | SELECT "Vacator" FROM table_15969 WHERE "District" = 'Louisiana 1st' | [
2061,
318,
262,
1438,
286,
262,
6658,
1352,
329,
4783,
13340,
352,
301,
30,
46506,
366,
53,
330,
1352,
1,
16034,
3084,
62,
19707,
3388,
33411,
366,
44857,
1,
796,
705,
32117,
7484,
352,
301,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1438,
286,
262,
6658,
1352,
329,
4783,
13340,
352,
301,
30,
46506,
366,
53,
330,
1352,
1,
16034,
3084,
62,
19707,
3388,
33411,
366,
44857,
1,
796,
705,
32117,
7484,
352,
301,
6
] |
Bar chart of the number of hometown from each hometown, could you display X-axis from low to high order? | SELECT Hometown, COUNT(Hometown) FROM member GROUP BY Hometown ORDER BY Hometown | [
10374,
8262,
286,
262,
1271,
286,
20994,
422,
1123,
20994,
11,
714,
345,
3359,
1395,
12,
22704,
422,
1877,
284,
1029,
1502,
30,
46506,
367,
19191,
11,
327,
28270,
7,
39,
19191,
8,
16034,
2888,
44441,
11050,
367,
19191,
38678,
11050,
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
] | [
10374,
8262,
286,
262,
1271,
286,
20994,
422,
1123,
20994,
11,
714,
345,
3359,
1395,
12,
22704,
422,
1877,
284,
1029,
1502,
30,
46506,
367,
19191,
11,
327,
28270,
7,
39,
19191,
8,
16034,
2888,
44441,
11050,
367,
19191,
38678,
11050,
3... |
What are the average number of played with goals of less than 43, more than 9 draws, a higher position than 17 and 30-8 points? | SELECT AVG(played) FROM table_name_64 WHERE goals_for < 43 AND draws > 9 AND position > 17 AND points = "30-8" | [
2061,
389,
262,
2811,
1271,
286,
2826,
351,
4661,
286,
1342,
621,
5946,
11,
517,
621,
860,
14293,
11,
257,
2440,
2292,
621,
1596,
290,
1542,
12,
23,
2173,
30,
46506,
35224,
7,
21542,
8,
16034,
3084,
62,
3672,
62,
2414,
33411,
4661,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2811,
1271,
286,
2826,
351,
4661,
286,
1342,
621,
5946,
11,
517,
621,
860,
14293,
11,
257,
2440,
2292,
621,
1596,
290,
1542,
12,
23,
2173,
30,
46506,
35224,
7,
21542,
8,
16034,
3084,
62,
3672,
62,
2414,
33411,
4661,
... |
How many rooms whose capacity is less than 50 does the Lamberton building have? | SELECT COUNT(*) FROM classroom WHERE building = 'Lamberton' AND capacity < 50 | [
2437,
867,
9519,
3025,
5339,
318,
1342,
621,
2026,
857,
262,
406,
7789,
1122,
2615,
423,
30,
46506,
327,
28270,
7,
28104,
16034,
15806,
33411,
2615,
796,
705,
43,
7789,
1122,
6,
5357,
5339,
1279,
2026
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9519,
3025,
5339,
318,
1342,
621,
2026,
857,
262,
406,
7789,
1122,
2615,
423,
30,
46506,
327,
28270,
7,
28104,
16034,
15806,
33411,
2615,
796,
705,
43,
7789,
1122,
6,
5357,
5339,
1279,
2026
] |
For the top five players in terms of potential, bin their birthday into weekday interval, and show me the distribution of their birthday. | SELECT birthday, COUNT(birthday) FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id ORDER BY potential DESC LIMIT 5 | [
1890,
262,
1353,
1936,
1938,
287,
2846,
286,
2785,
11,
9874,
511,
10955,
656,
28269,
16654,
11,
290,
905,
502,
262,
6082,
286,
511,
10955,
13,
46506,
10955,
11,
327,
28270,
7,
24280,
820,
8,
16034,
7853,
7054,
309,
16,
32357,
1268,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
262,
1353,
1936,
1938,
287,
2846,
286,
2785,
11,
9874,
511,
10955,
656,
28269,
16654,
11,
290,
905,
502,
262,
6082,
286,
511,
10955,
13,
46506,
10955,
11,
327,
28270,
7,
24280,
820,
8,
16034,
7853,
7054,
309,
16,
32357,
1268,
... |
When do all the researcher role staff start to work, and when do they stop working? | SELECT date_from, date_to FROM project_staff WHERE role_code = 'researcher' | [
2215,
466,
477,
262,
13453,
2597,
3085,
923,
284,
670,
11,
290,
618,
466,
484,
2245,
1762,
30,
46506,
3128,
62,
6738,
11,
3128,
62,
1462,
16034,
1628,
62,
28120,
33411,
2597,
62,
8189,
796,
705,
260,
325,
283,
2044,
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
] | [
2215,
466,
477,
262,
13453,
2597,
3085,
923,
284,
670,
11,
290,
618,
466,
484,
2245,
1762,
30,
46506,
3128,
62,
6738,
11,
3128,
62,
1462,
16034,
1628,
62,
28120,
33411,
2597,
62,
8189,
796,
705,
260,
325,
283,
2044,
6
] |
what is the location attendance when the series is 4-3? | SELECT location_attendance FROM table_name_38 WHERE series = "4-3" | [
10919,
318,
262,
4067,
14858,
618,
262,
2168,
318,
604,
12,
18,
30,
46506,
4067,
62,
1078,
437,
590,
16034,
3084,
62,
3672,
62,
2548,
33411,
2168,
796,
366,
19,
12,
18,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
4067,
14858,
618,
262,
2168,
318,
604,
12,
18,
30,
46506,
4067,
62,
1078,
437,
590,
16034,
3084,
62,
3672,
62,
2548,
33411,
2168,
796,
366,
19,
12,
18,
1
] |
give me the number of patients whose diagnoses icd9 code is 5770 and drug type is additive? | 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 = "5770" AND prescriptions.drug_type = "ADDITIVE" | [
26535,
502,
262,
1271,
286,
3871,
3025,
40567,
14158,
67,
24,
2438,
318,
7632,
2154,
290,
2563,
2099,
318,
38298,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
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,
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,
40567,
14158,
67,
24,
2438,
318,
7632,
2154,
290,
2563,
2099,
318,
38298,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40... |
What religious groups made up 0.72% of the Indian population in 2001? | SELECT religious_group FROM table_10710364_1 WHERE population__percentage_2001 = "0.72%" | [
2061,
4158,
2628,
925,
510,
657,
13,
4761,
4,
286,
262,
3942,
3265,
287,
5878,
30,
46506,
4158,
62,
8094,
16034,
3084,
62,
15982,
15197,
2414,
62,
16,
33411,
3265,
834,
25067,
496,
62,
14585,
796,
366,
15,
13,
4761,
39658
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4158,
2628,
925,
510,
657,
13,
4761,
4,
286,
262,
3942,
3265,
287,
5878,
30,
46506,
4158,
62,
8094,
16034,
3084,
62,
15982,
15197,
2414,
62,
16,
33411,
3265,
834,
25067,
496,
62,
14585,
796,
366,
15,
13,
4761,
39658
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.