instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
Could I see the requirements for a CS-LSA degree ? | SELECT DISTINCT program_requirement.additional_req, program_requirement.category, program_requirement.min_credit, program.name FROM program, program_requirement WHERE program.name LIKE '%CS-LSA%' AND program.program_id = program_requirement.program_id | [
23722,
314,
766,
262,
5359,
329,
257,
9429,
12,
43,
4090,
4922,
5633,
46506,
360,
8808,
1268,
4177,
1430,
62,
8897,
24615,
13,
2860,
1859,
62,
42180,
11,
1430,
62,
8897,
24615,
13,
22872,
11,
1430,
62,
8897,
24615,
13,
1084,
62,
430... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
23722,
314,
766,
262,
5359,
329,
257,
9429,
12,
43,
4090,
4922,
5633,
46506,
360,
8808,
1268,
4177,
1430,
62,
8897,
24615,
13,
2860,
1859,
62,
42180,
11,
1430,
62,
8897,
24615,
13,
22872,
11,
1430,
62,
8897,
24615,
13,
1084,
62,
430... |
Top User Of Hong Kong. | WITH USER_BY_TAG AS (SELECT ROW_NUMBER() OVER (ORDER BY COUNT(*) DESC) AS Rank, u.Id AS "user_link", COUNT(*) AS UpVotes FROM Tags AS t INNER JOIN PostTags AS pt ON pt.TagId = t.Id INNER JOIN Posts AS p ON p.ParentId = pt.PostId INNER JOIN Votes AS v ON v.PostId = p.Id AND VoteTypeId = 2 INNER JOIN Users AS u ON u.Id =... | [
9126,
11787,
3226,
9764,
9071,
13,
54,
10554,
1294,
1137,
62,
17513,
62,
42197,
7054,
357,
46506,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
327,
28270,
7,
28104,
22196,
34,
8,
7054,
10916,
11,
334,
13,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
9126,
11787,
3226,
9764,
9071,
13,
54,
10554,
1294,
1137,
62,
17513,
62,
42197,
7054,
357,
46506,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
327,
28270,
7,
28104,
22196,
34,
8,
7054,
10916,
11,
334,
13,
7390,
7... |
What is the most podiums Pedro Nunes had when in 17th position? | SELECT MAX("Podiums") FROM table_27641 WHERE "Position" = '17th' | [
2061,
318,
262,
749,
27941,
82,
28855,
42502,
550,
618,
287,
1596,
400,
2292,
30,
46506,
25882,
7203,
47,
12664,
82,
4943,
16034,
3084,
62,
1983,
42759,
33411,
366,
26545,
1,
796,
705,
1558,
400,
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,
749,
27941,
82,
28855,
42502,
550,
618,
287,
1596,
400,
2292,
30,
46506,
25882,
7203,
47,
12664,
82,
4943,
16034,
3084,
62,
1983,
42759,
33411,
366,
26545,
1,
796,
705,
1558,
400,
6
] |
How many company commanders were commissioned or elected on November 12, 1861? | SELECT COUNT("Company Commander") FROM table_4156 WHERE "Date of Election/Commission" = 'November 12, 1861' | [
2437,
867,
1664,
22576,
547,
20462,
393,
7018,
319,
3389,
1105,
11,
45278,
30,
46506,
327,
28270,
7203,
39154,
13353,
4943,
16034,
3084,
62,
19,
21599,
33411,
366,
10430,
286,
14219,
14,
50246,
1,
796,
705,
21159,
1105,
11,
45278,
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
] | [
2437,
867,
1664,
22576,
547,
20462,
393,
7018,
319,
3389,
1105,
11,
45278,
30,
46506,
327,
28270,
7203,
39154,
13353,
4943,
16034,
3084,
62,
19,
21599,
33411,
366,
10430,
286,
14219,
14,
50246,
1,
796,
705,
21159,
1105,
11,
45278,
6
] |
Name the max irish points for eastern michigan | SELECT MAX(irish_points) FROM table_22875369_3 WHERE opponent = "Eastern Michigan" | [
5376,
262,
3509,
4173,
680,
2173,
329,
10183,
285,
488,
5516,
46506,
25882,
7,
343,
680,
62,
13033,
8,
16034,
3084,
62,
23815,
2425,
30803,
62,
18,
33411,
6125,
796,
366,
46109,
7055,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3509,
4173,
680,
2173,
329,
10183,
285,
488,
5516,
46506,
25882,
7,
343,
680,
62,
13033,
8,
16034,
3084,
62,
23815,
2425,
30803,
62,
18,
33411,
6125,
796,
366,
46109,
7055,
1
] |
What did the golfer from Australia score? | SELECT "Score" FROM table_66325 WHERE "Country" = 'australia' | [
2061,
750,
262,
43791,
2232,
422,
4505,
4776,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
2791,
26582,
33411,
366,
33921,
1,
796,
705,
64,
436,
1373,
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
] | [
2061,
750,
262,
43791,
2232,
422,
4505,
4776,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
2791,
26582,
33411,
366,
33921,
1,
796,
705,
64,
436,
1373,
544,
6
] |
what are the five drugs that are prescribed the most frequently during the previous year? | SELECT t1.drugname FROM (SELECT medication.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM medication WHERE DATETIME(medication.drugstarttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') GROUP BY medication.drugname) AS t1 WHERE t1.c1 <= 5 | [
10919,
389,
262,
1936,
5010,
326,
389,
14798,
262,
749,
6777,
1141,
262,
2180,
614,
30,
46506,
256,
16,
13,
30349,
3672,
16034,
357,
46506,
14103,
13,
30349,
3672,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
389,
262,
1936,
5010,
326,
389,
14798,
262,
749,
6777,
1141,
262,
2180,
614,
30,
46506,
256,
16,
13,
30349,
3672,
16034,
357,
46506,
14103,
13,
30349,
3672,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
11050,
3... |
What was the Opponent in the game with a Score of 102-125? | SELECT opponent FROM table_name_82 WHERE score = "102-125" | [
2061,
373,
262,
9385,
3471,
287,
262,
983,
351,
257,
15178,
286,
15143,
12,
11623,
30,
46506,
6125,
16034,
3084,
62,
3672,
62,
6469,
33411,
4776,
796,
366,
15377,
12,
11623,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
9385,
3471,
287,
262,
983,
351,
257,
15178,
286,
15143,
12,
11623,
30,
46506,
6125,
16034,
3084,
62,
3672,
62,
6469,
33411,
4776,
796,
366,
15377,
12,
11623,
1
] |
when patient 025-44495 has received a microbiology test for the last time on the last hospital visit? | SELECT microlab.culturetakentime FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '025-44495' AND NOT patient.hospitaldischargetime IS NULL ORDER BY... | [
12518,
5827,
657,
1495,
12,
2598,
33781,
468,
2722,
257,
24559,
1435,
1332,
329,
262,
938,
640,
319,
262,
938,
4436,
3187,
30,
46506,
4580,
23912,
13,
25584,
83,
461,
298,
524,
16034,
4580,
23912,
33411,
4580,
23912,
13,
26029,
20850,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5827,
657,
1495,
12,
2598,
33781,
468,
2722,
257,
24559,
1435,
1332,
329,
262,
938,
640,
319,
262,
938,
4436,
3187,
30,
46506,
4580,
23912,
13,
25584,
83,
461,
298,
524,
16034,
4580,
23912,
33411,
4580,
23912,
13,
26029,
20850,
... |
calculate the number of patients aged below 70 who had item id 50810 | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "70" AND lab.itemid = "50810" | [
9948,
3129,
378,
262,
1271,
286,
3871,
9722,
2174,
4317,
508,
550,
2378,
4686,
2026,
40215,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
9948,
3129,
378,
262,
1271,
286,
3871,
9722,
2174,
4317,
508,
550,
2378,
4686,
2026,
40215,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
... |
What is the English of chae soo-yeon? | SELECT "English title" FROM table_54993 WHERE "Role" = 'chae soo-yeon' | [
2061,
318,
262,
3594,
286,
442,
3609,
523,
78,
12,
5948,
261,
30,
46506,
366,
15823,
3670,
1,
16034,
3084,
62,
4051,
44821,
33411,
366,
47445,
1,
796,
705,
354,
3609,
523,
78,
12,
5948,
261,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
3594,
286,
442,
3609,
523,
78,
12,
5948,
261,
30,
46506,
366,
15823,
3670,
1,
16034,
3084,
62,
4051,
44821,
33411,
366,
47445,
1,
796,
705,
354,
3609,
523,
78,
12,
5948,
261,
6
] |
Forgetful O.P.'s? (Questions with ONE, UNACCEPTED ANSWER [yours!] yet has a positive score.). Questions which have only one answer, posted by the specified user, but was Not Accepted even though it has a positive score. (Perhaps it's time to check in with the OP and remind them of the SO/SE customs!) Also ignores close... | SELECT DATEDIFF(d, q.CreationDate, GETDATE()) AS "dayssinceasked", a.Id AS "post_link", q.ViewCount AS "qviews", q.Score AS "quescore", q.OwnerUserId AS "user_link", DATEDIFF(d, q.LastActivityDate, GETDATE()) AS "dayssinceactive", DATEDIFF(d, a.CreationDate, GETDATE()) AS "dayssinceanswered", a.Score AS "ansscore" FROM... | [
1890,
1136,
913,
440,
13,
47,
2637,
82,
30,
357,
35741,
351,
16329,
11,
4725,
2246,
42006,
1961,
3537,
17887,
1137,
685,
88,
4662,
36463,
1865,
468,
257,
3967,
4776,
15729,
20396,
543,
423,
691,
530,
3280,
11,
4481,
416,
262,
7368,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1136,
913,
440,
13,
47,
2637,
82,
30,
357,
35741,
351,
16329,
11,
4725,
2246,
42006,
1961,
3537,
17887,
1137,
685,
88,
4662,
36463,
1865,
468,
257,
3967,
4776,
15729,
20396,
543,
423,
691,
530,
3280,
11,
4481,
416,
262,
7368,
... |
What is Pilot, when Weapon is '35mm fire', and when Date is '4 May 1982'? | SELECT pilot FROM table_name_48 WHERE weapon = "35mm fire" AND date = "4 may 1982" | [
2061,
318,
21697,
11,
618,
13072,
318,
705,
2327,
3020,
2046,
3256,
290,
618,
7536,
318,
705,
19,
1737,
14489,
30960,
46506,
8022,
16034,
3084,
62,
3672,
62,
2780,
33411,
4282,
796,
366,
2327,
3020,
2046,
1,
5357,
3128,
796,
366,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
21697,
11,
618,
13072,
318,
705,
2327,
3020,
2046,
3256,
290,
618,
7536,
318,
705,
19,
1737,
14489,
30960,
46506,
8022,
16034,
3084,
62,
3672,
62,
2780,
33411,
4282,
796,
366,
2327,
3020,
2046,
1,
5357,
3128,
796,
366,
19,
... |
What is the Saffir-Simpson category for the hurricane named Bonnie? | SELECT "Saffir-Simpson Category" FROM table_20070 WHERE "Name" = 'Bonnie' | [
2061,
318,
262,
311,
2001,
343,
12,
8890,
8430,
6536,
329,
262,
23964,
3706,
39203,
30,
46506,
366,
50,
2001,
343,
12,
8890,
8430,
21743,
1,
16034,
3084,
62,
2167,
2154,
33411,
366,
5376,
1,
796,
705,
20682,
11952,
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,
311,
2001,
343,
12,
8890,
8430,
6536,
329,
262,
23964,
3706,
39203,
30,
46506,
366,
50,
2001,
343,
12,
8890,
8430,
21743,
1,
16034,
3084,
62,
2167,
2154,
33411,
366,
5376,
1,
796,
705,
20682,
11952,
6
] |
how many cars are based on the plymouth and blackburn tramcars ? | SELECT COUNT(*) FROM table_203_717 WHERE "notes" = 'based on design elements from plymouth and blackburn tramcars' | [
4919,
867,
5006,
389,
1912,
319,
262,
35960,
14775,
290,
2042,
10899,
29957,
37993,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
22416,
62,
22,
1558,
33411,
366,
17815,
1,
796,
705,
3106,
319,
1486,
4847,
422,
35960,
14775,
290,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5006,
389,
1912,
319,
262,
35960,
14775,
290,
2042,
10899,
29957,
37993,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
22416,
62,
22,
1558,
33411,
366,
17815,
1,
796,
705,
3106,
319,
1486,
4847,
422,
35960,
14775,
290,
... |
What is the relationship between Team_ID and School_ID , and group by attribute ACC_Regular_Season? | SELECT Team_ID, School_ID FROM basketball_match GROUP BY ACC_Regular_Season | [
2061,
318,
262,
2776,
1022,
4816,
62,
2389,
290,
3961,
62,
2389,
837,
290,
1448,
416,
11688,
15859,
62,
40164,
62,
18960,
30,
46506,
4816,
62,
2389,
11,
3961,
62,
2389,
16034,
9669,
62,
15699,
44441,
11050,
15859,
62,
40164,
62,
18960... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2776,
1022,
4816,
62,
2389,
290,
3961,
62,
2389,
837,
290,
1448,
416,
11688,
15859,
62,
40164,
62,
18960,
30,
46506,
4816,
62,
2389,
11,
3961,
62,
2389,
16034,
9669,
62,
15699,
44441,
11050,
15859,
62,
40164,
62,
18960... |
What is the most recent year that Queen Nefertiti (pegasus two) was built? | SELECT MAX(built) FROM table_name_44 WHERE name = "queen nefertiti (pegasus two)" | [
2061,
318,
262,
749,
2274,
614,
326,
7542,
399,
891,
861,
8846,
357,
22071,
40895,
734,
8,
373,
3170,
30,
46506,
25882,
7,
18780,
8,
16034,
3084,
62,
3672,
62,
2598,
33411,
1438,
796,
366,
4188,
268,
497,
69,
861,
8846,
357,
22071,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
749,
2274,
614,
326,
7542,
399,
891,
861,
8846,
357,
22071,
40895,
734,
8,
373,
3170,
30,
46506,
25882,
7,
18780,
8,
16034,
3084,
62,
3672,
62,
2598,
33411,
1438,
796,
366,
4188,
268,
497,
69,
861,
8846,
357,
22071,
... |
Next Winter , who is teaching Aesthetics ? | SELECT DISTINCT instructor.name FROM instructor INNER JOIN offering_instructor ON offering_instructor.instructor_id = instructor.instructor_id INNER JOIN course_offering ON offering_instructor.offering_id = course_offering.offering_id INNER JOIN semester ON semester.semester_id = course_offering.semester INNER JOIN cou... | [
10019,
10633,
837,
508,
318,
7743,
317,
395,
24965,
5633,
46506,
360,
8808,
1268,
4177,
21187,
13,
3672,
16034,
21187,
3268,
21479,
32357,
1268,
6011,
62,
259,
7249,
273,
6177,
6011,
62,
259,
7249,
273,
13,
259,
7249,
273,
62,
312,
79... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10019,
10633,
837,
508,
318,
7743,
317,
395,
24965,
5633,
46506,
360,
8808,
1268,
4177,
21187,
13,
3672,
16034,
21187,
3268,
21479,
32357,
1268,
6011,
62,
259,
7249,
273,
6177,
6011,
62,
259,
7249,
273,
13,
259,
7249,
273,
62,
312,
79... |
Which city station is owned by Coyote Communications? | SELECT "City of License" FROM table_68567 WHERE "Status" = 'owned by coyote communications' | [
13828,
1748,
4429,
318,
6898,
416,
26887,
1258,
14620,
30,
46506,
366,
14941,
286,
13789,
1,
16034,
3084,
62,
35978,
3134,
33411,
366,
19580,
1,
796,
705,
11990,
416,
34003,
1258,
8062,
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
] | [
13828,
1748,
4429,
318,
6898,
416,
26887,
1258,
14620,
30,
46506,
366,
14941,
286,
13789,
1,
16034,
3084,
62,
35978,
3134,
33411,
366,
19580,
1,
796,
705,
11990,
416,
34003,
1258,
8062,
6
] |
what medication was prescribed to patient 028-47306 last time until 8 months ago? | SELECT medication.drugname FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '028-47306')) AND DATETIME(medication.drugstarttime) <= DATETIME(CUR... | [
10919,
14103,
373,
14798,
284,
5827,
657,
2078,
12,
2857,
20548,
938,
640,
1566,
807,
1933,
2084,
30,
46506,
14103,
13,
30349,
3672,
16034,
14103,
33411,
14103,
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,
14103,
373,
14798,
284,
5827,
657,
2078,
12,
2857,
20548,
938,
640,
1566,
807,
1933,
2084,
30,
46506,
14103,
13,
30349,
3672,
16034,
14103,
33411,
14103,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
31712... |
Which Record is on july 31? | SELECT "Record" FROM table_36453 WHERE "Date" = 'july 31' | [
13828,
13266,
318,
319,
474,
2062,
3261,
30,
46506,
366,
23739,
1,
16034,
3084,
62,
2623,
36625,
33411,
366,
10430,
1,
796,
705,
73,
2062,
3261,
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
] | [
13828,
13266,
318,
319,
474,
2062,
3261,
30,
46506,
366,
23739,
1,
16034,
3084,
62,
2623,
36625,
33411,
366,
10430,
1,
796,
705,
73,
2062,
3261,
6
] |
when was patient 88659 first tested for microbiology in 09/last year? | SELECT microbiologyevents.charttime FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 88659) AND DATETIME(microbiologyevents.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') AND STRFTIME('%m', microbiolo... | [
12518,
373,
5827,
9193,
36445,
717,
6789,
329,
24559,
1435,
287,
7769,
14,
12957,
614,
30,
46506,
24559,
1435,
31534,
13,
40926,
2435,
16034,
24559,
1435,
31534,
33411,
24559,
1435,
31534,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
12518,
373,
5827,
9193,
36445,
717,
6789,
329,
24559,
1435,
287,
7769,
14,
12957,
614,
30,
46506,
24559,
1435,
31534,
13,
40926,
2435,
16034,
24559,
1435,
31534,
33411,
24559,
1435,
31534,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
... |
Is there a Advanced Mathematical Methods for the Biological Sciences class ? | SELECT DISTINCT department, name, number FROM course WHERE (description LIKE '%Advanced Mathematical Methods for the Biological Sciences%' OR name LIKE '%Advanced Mathematical Methods for the Biological Sciences%') AND department = 'EECS' | [
3792,
612,
257,
13435,
30535,
605,
25458,
329,
262,
32827,
13473,
1398,
5633,
46506,
360,
8808,
1268,
4177,
5011,
11,
1438,
11,
1271,
16034,
1781,
33411,
357,
11213,
34178,
705,
4,
28809,
30535,
605,
25458,
329,
262,
32827,
13473,
4,
6,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3792,
612,
257,
13435,
30535,
605,
25458,
329,
262,
32827,
13473,
1398,
5633,
46506,
360,
8808,
1268,
4177,
5011,
11,
1438,
11,
1271,
16034,
1781,
33411,
357,
11213,
34178,
705,
4,
28809,
30535,
605,
25458,
329,
262,
32827,
13473,
4,
6,... |
give the admission type and drug type of subject id 2560. | SELECT demographic.admission_type, prescriptions.drug_type FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.subject_id = "2560" | [
26535,
262,
13938,
2099,
290,
2563,
2099,
286,
2426,
4686,
1679,
1899,
13,
46506,
16728,
13,
324,
3411,
62,
4906,
11,
34092,
13,
30349,
62,
4906,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
76,
62,
312,
796,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
26535,
262,
13938,
2099,
290,
2563,
2099,
286,
2426,
4686,
1679,
1899,
13,
46506,
16728,
13,
324,
3411,
62,
4906,
11,
34092,
13,
30349,
62,
4906,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
76,
62,
312,
796,
... |
What is the sum of the gold medals for the nation of Great britain who had more than 8 silvers and a total of less than 61 medals? | SELECT SUM(gold) FROM table_name_18 WHERE silver > 8 AND nation = "great britain" AND total < 61 | [
2061,
318,
262,
2160,
286,
262,
3869,
28057,
329,
262,
3277,
286,
3878,
275,
799,
391,
508,
550,
517,
621,
807,
3313,
690,
290,
257,
2472,
286,
1342,
621,
8454,
28057,
30,
46506,
35683,
7,
24267,
8,
16034,
3084,
62,
3672,
62,
1507,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3869,
28057,
329,
262,
3277,
286,
3878,
275,
799,
391,
508,
550,
517,
621,
807,
3313,
690,
290,
257,
2472,
286,
1342,
621,
8454,
28057,
30,
46506,
35683,
7,
24267,
8,
16034,
3084,
62,
3672,
62,
1507,
... |
What is the Attendance of the game against Jacksonville Jaguars? | SELECT attendance FROM table_name_53 WHERE opponent = "jacksonville jaguars" | [
2061,
318,
262,
46502,
590,
286,
262,
983,
1028,
23194,
28392,
30,
46506,
14858,
16034,
3084,
62,
3672,
62,
4310,
33411,
6125,
796,
366,
19650,
1559,
4244,
474,
11433,
945,
1
] | [
1,
1,
1,
1,
1,
1,
1,
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,
46502,
590,
286,
262,
983,
1028,
23194,
28392,
30,
46506,
14858,
16034,
3084,
62,
3672,
62,
4310,
33411,
6125,
796,
366,
19650,
1559,
4244,
474,
11433,
945,
1
] |
How many 125cc winners were in the same events as when the Moto2 winner was Shoya Tomizawa? | SELECT COUNT("125cc winner") FROM table_24006 WHERE "Moto2 winner" = 'Shoya Tomizawa' | [
2437,
867,
13151,
535,
14591,
547,
287,
262,
976,
2995,
355,
618,
262,
23049,
17,
8464,
373,
911,
23790,
4186,
528,
6909,
30,
46506,
327,
28270,
7203,
11623,
535,
8464,
4943,
16034,
3084,
62,
1731,
28041,
33411,
366,
44,
2069,
17,
846... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13151,
535,
14591,
547,
287,
262,
976,
2995,
355,
618,
262,
23049,
17,
8464,
373,
911,
23790,
4186,
528,
6909,
30,
46506,
327,
28270,
7203,
11623,
535,
8464,
4943,
16034,
3084,
62,
1731,
28041,
33411,
366,
44,
2069,
17,
846... |
Total Reputation Across All Users. | SELECT COUNT(*) AS "users", SUM(Reputation) AS SumRep, SUM(Reputation) / COUNT(*) AS "rep/user" FROM Users WHERE Reputation > 1000000 | [
14957,
1432,
7094,
27497,
1439,
18987,
13,
46506,
327,
28270,
7,
28104,
7054,
366,
18417,
1600,
35683,
7,
6207,
7094,
8,
7054,
5060,
6207,
11,
35683,
7,
6207,
7094,
8,
1220,
327,
28270,
7,
28104,
7054,
366,
7856,
14,
7220,
1,
16034,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
14957,
1432,
7094,
27497,
1439,
18987,
13,
46506,
327,
28270,
7,
28104,
7054,
366,
18417,
1600,
35683,
7,
6207,
7094,
8,
7054,
5060,
6207,
11,
35683,
7,
6207,
7094,
8,
1220,
327,
28270,
7,
28104,
7054,
366,
7856,
14,
7220,
1,
16034,
... |
Who wrote 'Voir Dire'? | SELECT "Written by" FROM table_27242 WHERE "Title" = 'Voir Dire' | [
8241,
2630,
705,
53,
10840,
34177,
30960,
46506,
366,
25354,
416,
1,
16034,
3084,
62,
1983,
27877,
33411,
366,
19160,
1,
796,
705,
53,
10840,
34177,
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
] | [
8241,
2630,
705,
53,
10840,
34177,
30960,
46506,
366,
25354,
416,
1,
16034,
3084,
62,
1983,
27877,
33411,
366,
19160,
1,
796,
705,
53,
10840,
34177,
6
] |
What is the highest number of losses that a team who had an away record of 1-6 and more than 4 wins had? | SELECT MAX("Losses") FROM table_33678 WHERE "Away" = '1-6' AND "Wins" > '4' | [
2061,
318,
262,
4511,
1271,
286,
9089,
326,
257,
1074,
508,
550,
281,
1497,
1700,
286,
352,
12,
21,
290,
517,
621,
604,
7864,
550,
30,
46506,
25882,
7203,
43,
793,
274,
4943,
16034,
3084,
62,
2091,
30924,
33411,
366,
32,
1014,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4511,
1271,
286,
9089,
326,
257,
1074,
508,
550,
281,
1497,
1700,
286,
352,
12,
21,
290,
517,
621,
604,
7864,
550,
30,
46506,
25882,
7203,
43,
793,
274,
4943,
16034,
3084,
62,
2091,
30924,
33411,
366,
32,
1014,
1,
... |
Users with the highest average score per post. | WITH scoreByPost AS (SELECT p.OwnerUserId, COUNT(p.Id) AS PostCount, AVG(CAST(p.Score AS FLOAT)) AS AverageScore FROM Posts AS p GROUP BY p.OwnerUserId) SELECT u.Id AS "user_link", u.Reputation, NUMBER_TO_STR(sbp.AverageScore, '#,###,##0.000') AS "average_score" FROM scoreByPost AS sbp INNER JOIN Users AS u ON u.Id = s... | [
14490,
351,
262,
4511,
2811,
4776,
583,
1281,
13,
54,
10554,
4776,
3886,
6307,
7054,
357,
46506,
279,
13,
42419,
12982,
7390,
11,
327,
28270,
7,
79,
13,
7390,
8,
7054,
2947,
12332,
11,
35224,
7,
44647,
7,
79,
13,
26595,
7054,
9977,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
14490,
351,
262,
4511,
2811,
4776,
583,
1281,
13,
54,
10554,
4776,
3886,
6307,
7054,
357,
46506,
279,
13,
42419,
12982,
7390,
11,
327,
28270,
7,
79,
13,
7390,
8,
7054,
2947,
12332,
11,
35224,
7,
44647,
7,
79,
13,
26595,
7054,
9977,
... |
What is the sum of losses for teams with less than 4 games played? | SELECT SUM(lost) FROM table_name_38 WHERE played < 4 | [
2061,
318,
262,
2160,
286,
9089,
329,
3466,
351,
1342,
621,
604,
1830,
2826,
30,
46506,
35683,
7,
33224,
8,
16034,
3084,
62,
3672,
62,
2548,
33411,
2826,
1279,
604
] | [
1,
1,
1,
1,
1,
1,
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,
9089,
329,
3466,
351,
1342,
621,
604,
1830,
2826,
30,
46506,
35683,
7,
33224,
8,
16034,
3084,
62,
3672,
62,
2548,
33411,
2826,
1279,
604
] |
Which team appointed a person on 23 December 2008? | SELECT "Team" FROM table_22600 WHERE "Date of appointment" = '23 December 2008' | [
13828,
1074,
9899,
257,
1048,
319,
2242,
3426,
3648,
30,
46506,
366,
15592,
1,
16034,
3084,
62,
1828,
8054,
33411,
366,
10430,
286,
12557,
1,
796,
705,
1954,
3426,
3648,
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
] | [
13828,
1074,
9899,
257,
1048,
319,
2242,
3426,
3648,
30,
46506,
366,
15592,
1,
16034,
3084,
62,
1828,
8054,
33411,
366,
10430,
286,
12557,
1,
796,
705,
1954,
3426,
3648,
6
] |
How many countries spent $83.7 billion on international tourism in 2012? | SELECT COUNT(_percentage_change) FROM table_29789_3 WHERE international_tourism_expenditure_2012 = "$83.7 billion" | [
2437,
867,
2678,
3377,
720,
5999,
13,
22,
2997,
319,
3230,
19277,
287,
2321,
30,
46506,
327,
28270,
28264,
25067,
496,
62,
3803,
8,
16034,
3084,
62,
1959,
40401,
62,
18,
33411,
3230,
62,
83,
454,
1042,
62,
11201,
437,
8089,
62,
6999... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2678,
3377,
720,
5999,
13,
22,
2997,
319,
3230,
19277,
287,
2321,
30,
46506,
327,
28270,
28264,
25067,
496,
62,
3803,
8,
16034,
3084,
62,
1959,
40401,
62,
18,
33411,
3230,
62,
83,
454,
1042,
62,
11201,
437,
8089,
62,
6999... |
What team was class AA in years 1994-95? | SELECT class_aA FROM table_name_52 WHERE school_year = "1994-95" | [
2061,
1074,
373,
1398,
15923,
287,
812,
9162,
12,
3865,
30,
46506,
1398,
62,
64,
32,
16034,
3084,
62,
3672,
62,
4309,
33411,
1524,
62,
1941,
796,
366,
22666,
12,
3865,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
1074,
373,
1398,
15923,
287,
812,
9162,
12,
3865,
30,
46506,
1398,
62,
64,
32,
16034,
3084,
62,
3672,
62,
4309,
33411,
1524,
62,
1941,
796,
366,
22666,
12,
3865,
1
] |
What is the date of the circuit gilles villeneuve? | SELECT date FROM table_1137707_2 WHERE location = "Circuit Gilles Villeneuve" | [
2061,
318,
262,
3128,
286,
262,
10349,
308,
21718,
4489,
1734,
45177,
30,
46506,
3128,
16034,
3084,
62,
1157,
2718,
24038,
62,
17,
33411,
4067,
796,
366,
31560,
5013,
12981,
274,
9757,
1734,
45177,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3128,
286,
262,
10349,
308,
21718,
4489,
1734,
45177,
30,
46506,
3128,
16034,
3084,
62,
1157,
2718,
24038,
62,
17,
33411,
4067,
796,
366,
31560,
5013,
12981,
274,
9757,
1734,
45177,
1
] |
Show me a bar chart about the number of races held in each year after 2014, display from high to low by the how many year. | SELECT year, COUNT(year) FROM races AS T1 JOIN results AS T2 ON T1.raceId = T2.raceId WHERE T1.year > 2014 ORDER BY COUNT(year) DESC | [
15307,
502,
257,
2318,
8262,
546,
262,
1271,
286,
9558,
2714,
287,
1123,
614,
706,
1946,
11,
3359,
422,
1029,
284,
1877,
416,
262,
703,
867,
614,
13,
46506,
614,
11,
327,
28270,
7,
1941,
8,
16034,
9558,
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... | [
15307,
502,
257,
2318,
8262,
546,
262,
1271,
286,
9558,
2714,
287,
1123,
614,
706,
1946,
11,
3359,
422,
1029,
284,
1877,
416,
262,
703,
867,
614,
13,
46506,
614,
11,
327,
28270,
7,
1941,
8,
16034,
9558,
7054,
309,
16,
32357,
1268,
... |
Specify the language that patient Stephanie Suchan speaks along with the gender | SELECT demographic.gender, demographic.language FROM demographic WHERE demographic.name = "Stephanie Suchan" | [
22882,
1958,
262,
3303,
326,
5827,
26085,
8013,
272,
9209,
1863,
351,
262,
5279,
46506,
16728,
13,
8388,
11,
16728,
13,
16129,
16034,
16728,
33411,
16728,
13,
3672,
796,
366,
8600,
7637,
494,
8013,
272,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
22882,
1958,
262,
3303,
326,
5827,
26085,
8013,
272,
9209,
1863,
351,
262,
5279,
46506,
16728,
13,
8388,
11,
16728,
13,
16129,
16034,
16728,
33411,
16728,
13,
3672,
796,
366,
8600,
7637,
494,
8013,
272,
1
] |
what's the name of the drug that patient 030-77189 was prescribed two or more times in 12/2102? | 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 = '030... | [
10919,
338,
262,
1438,
286,
262,
2563,
326,
5827,
657,
1270,
12,
3324,
23362,
373,
14798,
734,
393,
517,
1661,
287,
1105,
14,
17,
15377,
30,
46506,
256,
16,
13,
30349,
3672,
16034,
357,
46506,
14103,
13,
30349,
3672,
11,
327,
28270,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
338,
262,
1438,
286,
262,
2563,
326,
5827,
657,
1270,
12,
3324,
23362,
373,
14798,
734,
393,
517,
1661,
287,
1105,
14,
17,
15377,
30,
46506,
256,
16,
13,
30349,
3672,
16034,
357,
46506,
14103,
13,
30349,
3672,
11,
327,
28270,
... |
What total number of opened has a stadium of stade de la mosson and is larger than 32,939 capacity? | SELECT COUNT(opened) FROM table_name_49 WHERE stadium = "stade de la mosson" AND capacity > 32 OFFSET 939 | [
2061,
2472,
1271,
286,
4721,
468,
257,
10308,
286,
336,
671,
390,
8591,
42853,
261,
290,
318,
4025,
621,
3933,
11,
24,
2670,
5339,
30,
46506,
327,
28270,
7,
26350,
8,
16034,
3084,
62,
3672,
62,
2920,
33411,
10308,
796,
366,
301,
671... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
2472,
1271,
286,
4721,
468,
257,
10308,
286,
336,
671,
390,
8591,
42853,
261,
290,
318,
4025,
621,
3933,
11,
24,
2670,
5339,
30,
46506,
327,
28270,
7,
26350,
8,
16034,
3084,
62,
3672,
62,
2920,
33411,
10308,
796,
366,
301,
671... |
What is the track that from lcd soundsystem? | SELECT track FROM table_name_28 WHERE artist = "lcd soundsystem" | [
2061,
318,
262,
2610,
326,
422,
300,
10210,
2128,
10057,
30,
46506,
2610,
16034,
3084,
62,
3672,
62,
2078,
33411,
6802,
796,
366,
75,
10210,
2128,
10057,
1
] | [
1,
1,
1,
1,
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,
2610,
326,
422,
300,
10210,
2128,
10057,
30,
46506,
2610,
16034,
3084,
62,
3672,
62,
2078,
33411,
6802,
796,
366,
75,
10210,
2128,
10057,
1
] |
has patient 97330 received an order of isotonic sodium chloride, cisatracurium besylate, or tamoxifen citrate during the current hospital encounter? | SELECT COUNT(*) > 0 FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 97330 AND admissions.dischtime IS NULL) AND prescriptions.drug IN ('isotonic sodium chloride', 'cisatracurium besylate', 'tamoxifen citrate') | [
10134,
5827,
860,
4790,
1270,
2722,
281,
1502,
286,
31624,
9229,
21072,
44921,
11,
33325,
265,
11510,
333,
1505,
7284,
2645,
378,
11,
393,
21885,
1140,
361,
268,
15433,
4873,
1141,
262,
1459,
4436,
8791,
30,
46506,
327,
28270,
7,
28104,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10134,
5827,
860,
4790,
1270,
2722,
281,
1502,
286,
31624,
9229,
21072,
44921,
11,
33325,
265,
11510,
333,
1505,
7284,
2645,
378,
11,
393,
21885,
1140,
361,
268,
15433,
4873,
1141,
262,
1459,
4436,
8791,
30,
46506,
327,
28270,
7,
28104,... |
How many patients with government health insurance had an initial insertion of dual-chamber device procedure? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = "Government" AND procedures.long_title = "Initial insertion of dual-chamber device" | [
2437,
867,
3871,
351,
1230,
1535,
5096,
550,
281,
4238,
36075,
286,
10668,
12,
354,
7789,
3335,
8771,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
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... | [
2437,
867,
3871,
351,
1230,
1535,
5096,
550,
281,
4238,
36075,
286,
10668,
12,
354,
7789,
3335,
8771,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
16... |
what is the first diagnosed diagnosis of patient 27172 in the current hospital visit? | SELECT d_icd_diagnoses.short_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.icd9_code IN (SELECT diagnoses_icd.icd9_code FROM diagnoses_icd WHERE diagnoses_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 27172 AND admissions.dischtime IS NULL) ORDER BY diagnoses_icd.charttime L... | [
10919,
318,
262,
717,
14641,
13669,
286,
5827,
2681,
23628,
287,
262,
1459,
4436,
3187,
30,
46506,
288,
62,
291,
67,
62,
47356,
4629,
13,
19509,
62,
7839,
16034,
288,
62,
291,
67,
62,
47356,
4629,
33411,
288,
62,
291,
67,
62,
47356,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14641,
13669,
286,
5827,
2681,
23628,
287,
262,
1459,
4436,
3187,
30,
46506,
288,
62,
291,
67,
62,
47356,
4629,
13,
19509,
62,
7839,
16034,
288,
62,
291,
67,
62,
47356,
4629,
33411,
288,
62,
291,
67,
62,
47356,... |
Average Number of Views per Tag. Shows which tags bring in the most viewers | SELECT t.TagName, AVG(p.ViewCount) AS "average_views", COUNT(*) AS "question_count" FROM Posts AS p INNER JOIN PostTags AS pt ON p.Id = pt.PostId INNER JOIN Tags AS t ON pt.TagId = t.Id GROUP BY t.TagName ORDER BY 'average_views' DESC | [
26287,
7913,
286,
29978,
583,
17467,
13,
25156,
543,
15940,
2222,
287,
262,
749,
10209,
46506,
256,
13,
24835,
5376,
11,
35224,
7,
79,
13,
7680,
12332,
8,
7054,
366,
23913,
62,
33571,
1600,
327,
28270,
7,
28104,
7054,
366,
25652,
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... | [
26287,
7913,
286,
29978,
583,
17467,
13,
25156,
543,
15940,
2222,
287,
262,
749,
10209,
46506,
256,
13,
24835,
5376,
11,
35224,
7,
79,
13,
7680,
12332,
8,
7054,
366,
23913,
62,
33571,
1600,
327,
28270,
7,
28104,
7054,
366,
25652,
62,
... |
Show all video game types. | SELECT DISTINCT gtype FROM Video_games | [
15307,
477,
2008,
983,
3858,
13,
46506,
360,
8808,
1268,
4177,
308,
4906,
16034,
7623,
62,
19966
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15307,
477,
2008,
983,
3858,
13,
46506,
360,
8808,
1268,
4177,
308,
4906,
16034,
7623,
62,
19966
] |
What is the maximum elevation in netherlands? | SELECT "Maximum elevation" FROM table_26726 WHERE "Country or region" = 'Netherlands' | [
2061,
318,
262,
5415,
22910,
287,
2010,
372,
4447,
30,
46506,
366,
40541,
22910,
1,
16034,
3084,
62,
25674,
2075,
33411,
366,
33921,
393,
3814,
1,
796,
705,
45,
6750,
4447,
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,
5415,
22910,
287,
2010,
372,
4447,
30,
46506,
366,
40541,
22910,
1,
16034,
3084,
62,
25674,
2075,
33411,
366,
33921,
393,
3814,
1,
796,
705,
45,
6750,
4447,
6
] |
proteinuria ( urine protein > 220 mg / dl ) | SELECT * FROM table_train_152 WHERE proteinuria = 1 OR urine_protein > 220 | [
48693,
34484,
357,
18922,
7532,
1875,
15629,
10527,
1220,
288,
75,
1267,
46506,
1635,
16034,
3084,
62,
27432,
62,
17827,
33411,
7532,
34484,
796,
352,
6375,
18922,
62,
48693,
1875,
15629
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
48693,
34484,
357,
18922,
7532,
1875,
15629,
10527,
1220,
288,
75,
1267,
46506,
1635,
16034,
3084,
62,
27432,
62,
17827,
33411,
7532,
34484,
796,
352,
6375,
18922,
62,
48693,
1875,
15629
] |
What is the Venue on 26 jan 2005 | SELECT venue FROM table_name_12 WHERE date = "26 jan 2005" | [
2061,
318,
262,
9932,
518,
319,
2608,
42897,
5075,
46506,
14359,
16034,
3084,
62,
3672,
62,
1065,
33411,
3128,
796,
366,
2075,
42897,
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
] | [
2061,
318,
262,
9932,
518,
319,
2608,
42897,
5075,
46506,
14359,
16034,
3084,
62,
3672,
62,
1065,
33411,
3128,
796,
366,
2075,
42897,
5075,
1
] |
What were the casualties in the Baghlan location? | SELECT casualties FROM table_name_64 WHERE location = "baghlan" | [
2061,
547,
262,
18499,
287,
262,
347,
10471,
9620,
4067,
30,
46506,
18499,
16034,
3084,
62,
3672,
62,
2414,
33411,
4067,
796,
366,
65,
10471,
9620,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
547,
262,
18499,
287,
262,
347,
10471,
9620,
4067,
30,
46506,
18499,
16034,
3084,
62,
3672,
62,
2414,
33411,
4067,
796,
366,
65,
10471,
9620,
1
] |
Most popular tags in 2014. | SELECT Tags.TagName, COUNT(*) FROM Posts LEFT OUTER JOIN PostTags ON Posts.Id = PostTags.PostId LEFT OUTER JOIN Tags ON PostTags.TagId = Tags.Id WHERE Posts.CreationDate > '2014-01-01' GROUP BY Tags.TagName HAVING COUNT(*) > 1000 ORDER BY COUNT(*) DESC | [
6943,
2968,
15940,
287,
1946,
13,
46506,
44789,
13,
24835,
5376,
11,
327,
28270,
7,
28104,
16034,
12043,
12509,
9792,
16289,
1137,
32357,
1268,
2947,
36142,
6177,
12043,
13,
7390,
796,
2947,
36142,
13,
6307,
7390,
12509,
9792,
16289,
1137... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
6943,
2968,
15940,
287,
1946,
13,
46506,
44789,
13,
24835,
5376,
11,
327,
28270,
7,
28104,
16034,
12043,
12509,
9792,
16289,
1137,
32357,
1268,
2947,
36142,
6177,
12043,
13,
7390,
796,
2947,
36142,
13,
6307,
7390,
12509,
9792,
16289,
1137... |
Which Week has a Result of l 20 13, and an Attendance larger than 49,598? | SELECT MAX(week) FROM table_name_8 WHERE result = "l 20–13" AND attendance > 49 OFFSET 598 | [
13828,
6119,
468,
257,
25414,
286,
300,
1160,
1511,
11,
290,
281,
46502,
590,
4025,
621,
5125,
11,
41292,
30,
46506,
25882,
7,
10464,
8,
16034,
3084,
62,
3672,
62,
23,
33411,
1255,
796,
366,
75,
1160,
1906,
1485,
1,
5357,
14858,
187... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6119,
468,
257,
25414,
286,
300,
1160,
1511,
11,
290,
281,
46502,
590,
4025,
621,
5125,
11,
41292,
30,
46506,
25882,
7,
10464,
8,
16034,
3084,
62,
3672,
62,
23,
33411,
1255,
796,
366,
75,
1160,
1906,
1485,
1,
5357,
14858,
187... |
What is John Flatters' nationality? | SELECT nationality FROM table_name_10 WHERE player = "john flatters" | [
2061,
318,
1757,
21939,
1010,
6,
29835,
30,
46506,
29835,
16034,
3084,
62,
3672,
62,
940,
33411,
2137,
796,
366,
30686,
6228,
1010,
1
] | [
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,
1757,
21939,
1010,
6,
29835,
30,
46506,
29835,
16034,
3084,
62,
3672,
62,
940,
33411,
2137,
796,
366,
30686,
6228,
1010,
1
] |
When 2012 is the year what is the winning boat? | SELECT "Winning Boat" FROM table_3103 WHERE "Year" = '2012' | [
2215,
2321,
318,
262,
614,
644,
318,
262,
5442,
8848,
30,
46506,
366,
16643,
768,
30828,
1,
16034,
3084,
62,
18,
15197,
33411,
366,
17688,
1,
796,
705,
6999,
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
] | [
2215,
2321,
318,
262,
614,
644,
318,
262,
5442,
8848,
30,
46506,
366,
16643,
768,
30828,
1,
16034,
3084,
62,
18,
15197,
33411,
366,
17688,
1,
796,
705,
6999,
6
] |
When revenue is smaller than 4,177 million in year 2008, what is the sum of earnings per share? | SELECT SUM(earnings_per_share__p_) FROM table_name_89 WHERE year_ended = "2008" AND revenue__£million_ < 4 OFFSET 177 | [
2215,
6426,
318,
4833,
621,
604,
11,
22413,
1510,
287,
614,
3648,
11,
644,
318,
262,
2160,
286,
12042,
583,
2648,
30,
46506,
35683,
7,
451,
23400,
62,
525,
62,
20077,
834,
79,
62,
8,
16034,
3084,
62,
3672,
62,
4531,
33411,
614,
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
] | [
2215,
6426,
318,
4833,
621,
604,
11,
22413,
1510,
287,
614,
3648,
11,
644,
318,
262,
2160,
286,
12042,
583,
2648,
30,
46506,
35683,
7,
451,
23400,
62,
525,
62,
20077,
834,
79,
62,
8,
16034,
3084,
62,
3672,
62,
4531,
33411,
614,
62... |
How many field goals were scored by the player that got 7 touchdowns? | SELECT field_goals__4_points_ FROM table_25711913_14 WHERE touchdowns__5_points_ = 7 | [
2437,
867,
2214,
4661,
547,
7781,
416,
262,
2137,
326,
1392,
767,
17692,
30,
46506,
2214,
62,
2188,
874,
834,
19,
62,
13033,
62,
16034,
3084,
62,
1495,
4869,
1129,
1485,
62,
1415,
33411,
17692,
834,
20,
62,
13033,
62,
796,
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,
1
] | [
2437,
867,
2214,
4661,
547,
7781,
416,
262,
2137,
326,
1392,
767,
17692,
30,
46506,
2214,
62,
2188,
874,
834,
19,
62,
13033,
62,
16034,
3084,
62,
1495,
4869,
1129,
1485,
62,
1415,
33411,
17692,
834,
20,
62,
13033,
62,
796,
767
] |
What is the High assists for march 25? | SELECT high_assists FROM table_name_69 WHERE date = "march 25" | [
2061,
318,
262,
3334,
13648,
329,
9960,
1679,
30,
46506,
1029,
62,
562,
1023,
16034,
3084,
62,
3672,
62,
3388,
33411,
3128,
796,
366,
76,
998,
1679,
1
] | [
1,
1,
1,
1,
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,
3334,
13648,
329,
9960,
1679,
30,
46506,
1029,
62,
562,
1023,
16034,
3084,
62,
3672,
62,
3388,
33411,
3128,
796,
366,
76,
998,
1679,
1
] |
A bar chart shows the distribution of Sex and the sum of Weight , and group by attribute Sex, could you list X-axis from low to high order? | SELECT Sex, SUM(Weight) FROM people GROUP BY Sex ORDER BY Sex | [
32,
2318,
8262,
2523,
262,
6082,
286,
14419,
290,
262,
2160,
286,
14331,
837,
290,
1448,
416,
11688,
14419,
11,
714,
345,
1351,
1395,
12,
22704,
422,
1877,
284,
1029,
1502,
30,
46506,
14419,
11,
35683,
7,
25844,
8,
16034,
661,
44441,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
32,
2318,
8262,
2523,
262,
6082,
286,
14419,
290,
262,
2160,
286,
14331,
837,
290,
1448,
416,
11688,
14419,
11,
714,
345,
1351,
1395,
12,
22704,
422,
1877,
284,
1029,
1502,
30,
46506,
14419,
11,
35683,
7,
25844,
8,
16034,
661,
44441,
... |
Name the cfl team for steven turner | SELECT "CFL Team" FROM table_27275 WHERE "Player" = 'Steven Turner' | [
5376,
262,
269,
2704,
1074,
329,
2876,
574,
1210,
263,
46506,
366,
34,
3697,
4816,
1,
16034,
3084,
62,
1983,
23195,
33411,
366,
14140,
1,
796,
705,
28292,
15406,
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
] | [
5376,
262,
269,
2704,
1074,
329,
2876,
574,
1210,
263,
46506,
366,
34,
3697,
4816,
1,
16034,
3084,
62,
1983,
23195,
33411,
366,
14140,
1,
796,
705,
28292,
15406,
6
] |
Show the of customer addresses and group by premises type and address type code in a stacked bar chart The x-axis is premises type, show by the total number in ascending. | SELECT premises_type, COUNT(premises_type) FROM Customer_Addresses AS T1 JOIN Premises AS T2 ON T1.premise_id = T2.premise_id GROUP BY address_type_code, premises_type ORDER BY COUNT(premises_type) | [
15307,
262,
286,
6491,
9405,
290,
1448,
416,
17095,
2099,
290,
2209,
2099,
2438,
287,
257,
24167,
2318,
8262,
383,
2124,
12,
22704,
318,
17095,
2099,
11,
905,
416,
262,
2472,
1271,
287,
41988,
13,
46506,
17095,
62,
4906,
11,
327,
2827... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15307,
262,
286,
6491,
9405,
290,
1448,
416,
17095,
2099,
290,
2209,
2099,
2438,
287,
257,
24167,
2318,
8262,
383,
2124,
12,
22704,
318,
17095,
2099,
11,
905,
416,
262,
2472,
1271,
287,
41988,
13,
46506,
17095,
62,
4906,
11,
327,
2827... |
Top 200 Users by Country. | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", u.Id, u.Id AS "user_link", u.Reputation, COUNT(p.Id) FROM Users AS u INNER JOIN Posts AS p ON p.OwnerUserId = u.Id INNER JOIN PostTags AS pt ON pt.PostId = p.Id INNER JOIN Tags AS t ON t.Id = pt.TagId WHERE LOWER(Location) LIKE LOWER('%##countryname##%') GROUP... | [
9126,
939,
18987,
416,
12946,
13,
46506,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
1432,
7094,
22196,
34,
8,
7054,
25113,
1600,
334,
13,
7390,
11,
334,
13,
7390,
7054,
366,
7220,
62,
8726,
1600,
334,
13,
6207,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
939,
18987,
416,
12946,
13,
46506,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
1432,
7094,
22196,
34,
8,
7054,
25113,
1600,
334,
13,
7390,
11,
334,
13,
7390,
7054,
366,
7220,
62,
8726,
1600,
334,
13,
6207,... |
For those records from the products and each product's manufacturer, give me the comparison about code over the name , and group by attribute name by a bar chart, and rank in desc by the bars. | SELECT T1.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name, T1.Name ORDER BY T1.Name DESC | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1577,
502,
262,
7208,
546,
2438,
625,
262,
1438,
837,
290,
1448,
416,
11688,
1438,
416,
257,
2318,
8262,
11,
290,
4279,
287,
1715,
416,
262,
9210,
13,
46506,
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,
1,
1,
1... | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1577,
502,
262,
7208,
546,
2438,
625,
262,
1438,
837,
290,
1448,
416,
11688,
1438,
416,
257,
2318,
8262,
11,
290,
4279,
287,
1715,
416,
262,
9210,
13,
46506,
309,
16,... |
On which date did the tournament final with the clay surface take place? | SELECT "Date" FROM table_33948 WHERE "Surface" = 'clay' | [
2202,
543,
3128,
750,
262,
7756,
2457,
351,
262,
21558,
4417,
1011,
1295,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
29626,
2780,
33411,
366,
14214,
2550,
1,
796,
705,
565,
323,
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
] | [
2202,
543,
3128,
750,
262,
7756,
2457,
351,
262,
21558,
4417,
1011,
1295,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
29626,
2780,
33411,
366,
14214,
2550,
1,
796,
705,
565,
323,
6
] |
What is the socket for Order Part Number TMDTL68HAX5DM? | SELECT "Socket" FROM table_41671 WHERE "Order Part Number" = 'tmdtl68hax5dm' | [
2061,
318,
262,
17802,
329,
8284,
2142,
7913,
309,
12740,
14990,
3104,
7801,
55,
20,
23127,
30,
46506,
366,
39105,
1,
16034,
3084,
62,
35218,
4869,
33411,
366,
18743,
2142,
7913,
1,
796,
705,
83,
9132,
28781,
3104,
71,
897,
20,
36020,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17802,
329,
8284,
2142,
7913,
309,
12740,
14990,
3104,
7801,
55,
20,
23127,
30,
46506,
366,
39105,
1,
16034,
3084,
62,
35218,
4869,
33411,
366,
18743,
2142,
7913,
1,
796,
705,
83,
9132,
28781,
3104,
71,
897,
20,
36020,... |
how much does a drug called sodium chloride 0.9% 500 ml pb cost. | SELECT DISTINCT cost.cost FROM cost WHERE cost.eventtype = 'medication' AND cost.eventid IN (SELECT medication.medicationid FROM medication WHERE medication.drugname = 'sodium chloride 0.9% 500 ml pb') | [
4919,
881,
857,
257,
2563,
1444,
21072,
44921,
657,
13,
24,
4,
5323,
25962,
279,
65,
1575,
13,
46506,
360,
8808,
1268,
4177,
1575,
13,
15805,
16034,
1575,
33411,
1575,
13,
15596,
4906,
796,
705,
1150,
3299,
6,
5357,
1575,
13,
15596,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
881,
857,
257,
2563,
1444,
21072,
44921,
657,
13,
24,
4,
5323,
25962,
279,
65,
1575,
13,
46506,
360,
8808,
1268,
4177,
1575,
13,
15805,
16034,
1575,
33411,
1575,
13,
15596,
4906,
796,
705,
1150,
3299,
6,
5357,
1575,
13,
15596,
... |
when was the site partially deleted when the cerclis id is az7570028582? | SELECT partially_deleted FROM table_name_67 WHERE cerclis_id = "az7570028582" | [
12518,
373,
262,
2524,
12387,
13140,
618,
262,
26074,
565,
271,
4686,
318,
35560,
2425,
9879,
2078,
46044,
30,
46506,
12387,
62,
2934,
33342,
16034,
3084,
62,
3672,
62,
3134,
33411,
26074,
565,
271,
62,
312,
796,
366,
1031,
2425,
9879,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
12518,
373,
262,
2524,
12387,
13140,
618,
262,
26074,
565,
271,
4686,
318,
35560,
2425,
9879,
2078,
46044,
30,
46506,
12387,
62,
2934,
33342,
16034,
3084,
62,
3672,
62,
3134,
33411,
26074,
565,
271,
62,
312,
796,
366,
1031,
2425,
9879,
... |
what is the maximum hospital cost that involves a procedure, called closed bx skin/subq tiss during the previous year? | SELECT MAX(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 = 'closed bx skin/subq tiss')) AND DATETIME(cost.chargetime,... | [
10919,
318,
262,
5415,
4436,
1575,
326,
9018,
257,
8771,
11,
1444,
4838,
275,
87,
4168,
14,
7266,
80,
8815,
1141,
262,
2180,
614,
30,
46506,
25882,
7,
83,
16,
13,
66,
16,
8,
16034,
357,
46506,
35683,
7,
15805,
13,
15805,
8,
7054,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
5415,
4436,
1575,
326,
9018,
257,
8771,
11,
1444,
4838,
275,
87,
4168,
14,
7266,
80,
8815,
1141,
262,
2180,
614,
30,
46506,
25882,
7,
83,
16,
13,
66,
16,
8,
16034,
357,
46506,
35683,
7,
15805,
13,
15805,
8,
7054,
... |
Find names and times of trains that run through stations for the local authority Chiltern. | SELECT t3.name, t3.time FROM station AS t1 JOIN route AS t2 ON t1.id = t2.station_id JOIN train AS t3 ON t2.train_id = t3.id WHERE t1.local_authority = "Chiltern" | [
16742,
3891,
290,
1661,
286,
13404,
326,
1057,
832,
8985,
329,
262,
1957,
4934,
609,
346,
759,
13,
46506,
256,
18,
13,
3672,
11,
256,
18,
13,
2435,
16034,
4429,
7054,
256,
16,
32357,
1268,
6339,
7054,
256,
17,
6177,
256,
16,
13,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
16742,
3891,
290,
1661,
286,
13404,
326,
1057,
832,
8985,
329,
262,
1957,
4934,
609,
346,
759,
13,
46506,
256,
18,
13,
3672,
11,
256,
18,
13,
2435,
16034,
4429,
7054,
256,
16,
32357,
1268,
6339,
7054,
256,
17,
6177,
256,
16,
13,
3... |
What is College of Ohio State's pick number with an overall lower than 145? | SELECT "Pick #" FROM table_39618 WHERE "Overall" < '145' AND "College" = 'ohio state' | [
2061,
318,
5535,
286,
6835,
1812,
338,
2298,
1271,
351,
281,
4045,
2793,
621,
20299,
30,
46506,
366,
31686,
1303,
1,
16034,
3084,
62,
34107,
1507,
33411,
366,
16350,
1,
1279,
705,
18781,
6,
5357,
366,
38951,
1,
796,
705,
1219,
952,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5535,
286,
6835,
1812,
338,
2298,
1271,
351,
281,
4045,
2793,
621,
20299,
30,
46506,
366,
31686,
1303,
1,
16034,
3084,
62,
34107,
1507,
33411,
366,
16350,
1,
1279,
705,
18781,
6,
5357,
366,
38951,
1,
796,
705,
1219,
952,
... |
If the public is 4, what is the total? | SELECT total FROM table_26375386_17 WHERE public = 4 | [
1532,
262,
1171,
318,
604,
11,
644,
318,
262,
2472,
30,
46506,
2472,
16034,
3084,
62,
2075,
22318,
21734,
62,
1558,
33411,
1171,
796,
604
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1532,
262,
1171,
318,
604,
11,
644,
318,
262,
2472,
30,
46506,
2472,
16034,
3084,
62,
2075,
22318,
21734,
62,
1558,
33411,
1171,
796,
604
] |
Which manufacturer has a year made of 4-6-0 ooooo ten-wheeler? | SELECT "Manufacturer" FROM table_13475 WHERE "Year made" = '4-6-0 — ooooo — ten-wheeler' | [
13828,
11554,
468,
257,
614,
925,
286,
604,
12,
21,
12,
15,
267,
13321,
3478,
12,
22001,
263,
30,
46506,
366,
44445,
15051,
1,
16034,
3084,
62,
19880,
2425,
33411,
366,
17688,
925,
1,
796,
705,
19,
12,
21,
12,
15,
851,
267,
13321,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11554,
468,
257,
614,
925,
286,
604,
12,
21,
12,
15,
267,
13321,
3478,
12,
22001,
263,
30,
46506,
366,
44445,
15051,
1,
16034,
3084,
62,
19880,
2425,
33411,
366,
17688,
925,
1,
796,
705,
19,
12,
21,
12,
15,
851,
267,
13321,... |
What team plays at Palmerston Park? | SELECT "Team" FROM table_16520 WHERE "Stadium" = 'Palmerston Park' | [
2061,
1074,
5341,
379,
18918,
3743,
3250,
30,
46506,
366,
15592,
1,
16034,
3084,
62,
20986,
1238,
33411,
366,
1273,
6271,
1,
796,
705,
11531,
647,
3743,
3250,
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,
1074,
5341,
379,
18918,
3743,
3250,
30,
46506,
366,
15592,
1,
16034,
3084,
62,
20986,
1238,
33411,
366,
1273,
6271,
1,
796,
705,
11531,
647,
3743,
3250,
6
] |
What shows for 10:00 PM when the 11:00 PM is to ma dauy kan (vj ja)? | SELECT "10:00 PM" FROM table_42550 WHERE "11:00 PM" = 'to ma dauy kan (vj ja)' | [
2061,
2523,
329,
838,
25,
405,
3122,
618,
262,
1367,
25,
405,
3122,
318,
284,
17266,
288,
559,
88,
43998,
357,
85,
73,
45091,
19427,
46506,
366,
940,
25,
405,
3122,
1,
16034,
3084,
62,
32114,
1120,
33411,
366,
1157,
25,
405,
3122,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
2523,
329,
838,
25,
405,
3122,
618,
262,
1367,
25,
405,
3122,
318,
284,
17266,
288,
559,
88,
43998,
357,
85,
73,
45091,
19427,
46506,
366,
940,
25,
405,
3122,
1,
16034,
3084,
62,
32114,
1120,
33411,
366,
1157,
25,
405,
3122,
... |
give me the number of patients whose procedure icd9 code is 5771 and drug type is base? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE procedures.icd9_code = "5771" AND prescriptions.drug_type = "BASE" | [
26535,
502,
262,
1271,
286,
3871,
3025,
8771,
14158,
67,
24,
2438,
318,
642,
46761,
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,
9021... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
26535,
502,
262,
1271,
286,
3871,
3025,
8771,
14158,
67,
24,
2438,
318,
642,
46761,
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,
9021... |
What was the conference record in the season where the Pandas had an overall record of 33-4-1? | SELECT conf_record FROM table_27069503_2 WHERE overall = "33-4-1" | [
2061,
373,
262,
4495,
1700,
287,
262,
1622,
810,
262,
16492,
292,
550,
281,
4045,
1700,
286,
4747,
12,
19,
12,
16,
30,
46506,
1013,
62,
22105,
16034,
3084,
62,
1983,
3312,
31027,
18,
62,
17,
33411,
4045,
796,
366,
2091,
12,
19,
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
] | [
2061,
373,
262,
4495,
1700,
287,
262,
1622,
810,
262,
16492,
292,
550,
281,
4045,
1700,
286,
4747,
12,
19,
12,
16,
30,
46506,
1013,
62,
22105,
16034,
3084,
62,
1983,
3312,
31027,
18,
62,
17,
33411,
4045,
796,
366,
2091,
12,
19,
12... |
what is the days of hospital stay and admission location of patient id 65759? | SELECT demographic.days_stay, demographic.admission_location FROM demographic WHERE demographic.subject_id = "65759" | [
10919,
318,
262,
1528,
286,
4436,
2652,
290,
13938,
4067,
286,
5827,
4686,
6135,
38314,
30,
46506,
16728,
13,
12545,
62,
31712,
11,
16728,
13,
324,
3411,
62,
24886,
16034,
16728,
33411,
16728,
13,
32796,
62,
312,
796,
366,
2996,
38314,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1528,
286,
4436,
2652,
290,
13938,
4067,
286,
5827,
4686,
6135,
38314,
30,
46506,
16728,
13,
12545,
62,
31712,
11,
16728,
13,
324,
3411,
62,
24886,
16034,
16728,
33411,
16728,
13,
32796,
62,
312,
796,
366,
2996,
38314,
... |
What is the upper level CS course list for next semester ? | SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN program_course ON program_course.course_id = course.course_id INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_id = course_offering.semester WHERE program_course.catego... | [
2061,
318,
262,
6727,
1241,
9429,
1781,
1351,
329,
1306,
24878,
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,
1430,
62,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
318,
262,
6727,
1241,
9429,
1781,
1351,
329,
1306,
24878,
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,
1430,
62,
... |
what's the player where inns is 21 | SELECT player FROM table_10621256_1 WHERE inns = 21 | [
10919,
338,
262,
2137,
810,
3527,
82,
318,
2310,
46506,
2137,
16034,
3084,
62,
940,
5237,
1065,
3980,
62,
16,
33411,
3527,
82,
796,
2310
] | [
1,
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,
2137,
810,
3527,
82,
318,
2310,
46506,
2137,
16034,
3084,
62,
940,
5237,
1065,
3980,
62,
16,
33411,
3527,
82,
796,
2310
] |
get me the number of married patients who are less than 70 years of age. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.marital_status = "MARRIED" AND demographic.age < "70" | [
1136,
502,
262,
1271,
286,
6405,
3871,
508,
389,
1342,
621,
4317,
812,
286,
2479,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
3876,
1287,
62,
13376,
796,
366,
40569,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1136,
502,
262,
1271,
286,
6405,
3871,
508,
389,
1342,
621,
4317,
812,
286,
2479,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
3876,
1287,
62,
13376,
796,
366,
40569,
... |
What is the second leg that Valencia was on? | SELECT "2nd leg" FROM table_68891 WHERE "Team 2" = 'valencia' | [
2061,
318,
262,
1218,
1232,
326,
35773,
373,
319,
30,
46506,
366,
17,
358,
1232,
1,
16034,
3084,
62,
3104,
4531,
16,
33411,
366,
15592,
362,
1,
796,
705,
2100,
29634,
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,
1218,
1232,
326,
35773,
373,
319,
30,
46506,
366,
17,
358,
1232,
1,
16034,
3084,
62,
3104,
4531,
16,
33411,
366,
15592,
362,
1,
796,
705,
2100,
29634,
6
] |
what were the four most frequently ordered tests for patients that had received antidepressant - vanafaxine (effexor) earlier within 2 months until 2104? | SELECT t3.labname FROM (SELECT t2.labname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'antidepressant - vanafaxine (effexor)' AND STRFTIME(... | [
10919,
547,
262,
1440,
749,
6777,
6149,
5254,
329,
3871,
326,
550,
2722,
41897,
532,
5719,
1878,
897,
500,
357,
14822,
1069,
273,
8,
2961,
1626,
362,
1933,
1566,
362,
13464,
30,
46506,
256,
18,
13,
23912,
3672,
16034,
357,
46506,
256,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6777,
6149,
5254,
329,
3871,
326,
550,
2722,
41897,
532,
5719,
1878,
897,
500,
357,
14822,
1069,
273,
8,
2961,
1626,
362,
1933,
1566,
362,
13464,
30,
46506,
256,
18,
13,
23912,
3672,
16034,
357,
46506,
256,... |
How many millions of U.S. viewers watched the episode titled 'Lost Boys'? | SELECT "U.S. viewers (millions)" FROM table_29480 WHERE "Title" = 'Lost Boys' | [
2437,
867,
5242,
286,
471,
13,
50,
13,
10209,
7342,
262,
4471,
11946,
705,
31042,
17528,
30960,
46506,
366,
52,
13,
50,
13,
10209,
357,
17805,
507,
16725,
16034,
3084,
62,
1959,
22148,
33411,
366,
19160,
1,
796,
705,
31042,
17528,
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,
5242,
286,
471,
13,
50,
13,
10209,
7342,
262,
4471,
11946,
705,
31042,
17528,
30960,
46506,
366,
52,
13,
50,
13,
10209,
357,
17805,
507,
16725,
16034,
3084,
62,
1959,
22148,
33411,
366,
19160,
1,
796,
705,
31042,
17528,
6
] |
How many fb players were drafted? | SELECT COUNT("Pick #") FROM table_16401 WHERE "Position" = 'FB' | [
2437,
867,
277,
65,
1938,
547,
15937,
30,
46506,
327,
28270,
7203,
31686,
1303,
4943,
16034,
3084,
62,
1433,
21844,
33411,
366,
26545,
1,
796,
705,
26001,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
277,
65,
1938,
547,
15937,
30,
46506,
327,
28270,
7203,
31686,
1303,
4943,
16034,
3084,
62,
1433,
21844,
33411,
366,
26545,
1,
796,
705,
26001,
6
] |
Which NCAA Tournament Appearances have Conference Titles that are larger than 0, NCAA Titles of 0, and were coached by Lou Watson? | SELECT "NCAA Tourn. Appearances" FROM table_4394 WHERE "Conference Titles" > '0' AND "NCAA Titles" = '0' AND "Coach" = 'lou watson' | [
13828,
15244,
9595,
2034,
35630,
423,
8785,
7659,
829,
326,
389,
4025,
621,
657,
11,
15244,
7659,
829,
286,
657,
11,
290,
547,
31764,
416,
4768,
14959,
30,
46506,
366,
7792,
3838,
309,
1798,
13,
2034,
35630,
1,
16034,
3084,
62,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15244,
9595,
2034,
35630,
423,
8785,
7659,
829,
326,
389,
4025,
621,
657,
11,
15244,
7659,
829,
286,
657,
11,
290,
547,
31764,
416,
4768,
14959,
30,
46506,
366,
7792,
3838,
309,
1798,
13,
2034,
35630,
1,
16034,
3084,
62,
19,
... |
patient 14054 had undergone a procedure during this year? | SELECT COUNT(*) > 0 FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 14054) AND DATETIME(procedures_icd.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') | [
26029,
1478,
2713,
19,
550,
29900,
257,
8771,
1141,
428,
614,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
9021,
62,
291,
67,
33411,
9021,
62,
291,
67,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
312,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
26029,
1478,
2713,
19,
550,
29900,
257,
8771,
1141,
428,
614,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
9021,
62,
291,
67,
33411,
9021,
62,
291,
67,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
312,
... |
What's the meaning of the verb whose part 1 is slapen? | SELECT "Verb meaning" FROM table_21701 WHERE "Part 1" = 'slapen' | [
2061,
338,
262,
3616,
286,
262,
15942,
3025,
636,
352,
318,
23905,
268,
30,
46506,
366,
13414,
65,
3616,
1,
16034,
3084,
62,
24591,
486,
33411,
366,
7841,
352,
1,
796,
705,
6649,
499,
268,
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,
338,
262,
3616,
286,
262,
15942,
3025,
636,
352,
318,
23905,
268,
30,
46506,
366,
13414,
65,
3616,
1,
16034,
3084,
62,
24591,
486,
33411,
366,
7841,
352,
1,
796,
705,
6649,
499,
268,
6
] |
What was the name of the entrant with an owner named David Johnson? | SELECT "Name" FROM table_73219 WHERE "Owner" = 'David Johnson' | [
2061,
373,
262,
1438,
286,
262,
920,
5250,
351,
281,
4870,
3706,
3271,
5030,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
22,
2624,
1129,
33411,
366,
42419,
1,
796,
705,
11006,
5030,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
1438,
286,
262,
920,
5250,
351,
281,
4870,
3706,
3271,
5030,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
22,
2624,
1129,
33411,
366,
42419,
1,
796,
705,
11006,
5030,
6
] |
What was result of goal 4? | SELECT "Result" FROM table_39187 WHERE "Goal" = '4' | [
2061,
373,
1255,
286,
3061,
604,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
2670,
23451,
33411,
366,
49045,
1,
796,
705,
19,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
1255,
286,
3061,
604,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
2670,
23451,
33411,
366,
49045,
1,
796,
705,
19,
6
] |
On what date was the record 59 59? | SELECT date FROM table_name_62 WHERE record = "59–59" | [
2202,
644,
3128,
373,
262,
1700,
7863,
7863,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
5237,
33411,
1700,
796,
366,
3270,
1906,
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
] | [
2202,
644,
3128,
373,
262,
1700,
7863,
7863,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
5237,
33411,
1700,
796,
366,
3270,
1906,
3270,
1
] |
Bldr of mcw&f, and a Year smaller than 1927, and a LT Nos of 9820-9821 has what type? | SELECT type FROM table_name_19 WHERE bldr = "mcw&f" AND year < 1927 AND lt_nos = "9820-9821" | [
33,
335,
81,
286,
36650,
86,
5,
69,
11,
290,
257,
6280,
4833,
621,
36565,
11,
290,
257,
34146,
32798,
286,
9661,
1238,
12,
4089,
2481,
468,
644,
2099,
30,
46506,
2099,
16034,
3084,
62,
3672,
62,
1129,
33411,
275,
335,
81,
796,
366... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
33,
335,
81,
286,
36650,
86,
5,
69,
11,
290,
257,
6280,
4833,
621,
36565,
11,
290,
257,
34146,
32798,
286,
9661,
1238,
12,
4089,
2481,
468,
644,
2099,
30,
46506,
2099,
16034,
3084,
62,
3672,
62,
1129,
33411,
275,
335,
81,
796,
366... |
fpg < 270 mg / dl ( 15 mmol / l ) | SELECT * FROM table_train_181 WHERE fasting_plasma_glucose_fpg < 270 | [
69,
6024,
1279,
20479,
10527,
1220,
288,
75,
357,
1315,
47340,
1220,
300,
1267,
46506,
1635,
16034,
3084,
62,
27432,
62,
27057,
33411,
24845,
62,
489,
11797,
62,
4743,
1229,
577,
62,
69,
6024,
1279,
20479
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
69,
6024,
1279,
20479,
10527,
1220,
288,
75,
357,
1315,
47340,
1220,
300,
1267,
46506,
1635,
16034,
3084,
62,
27432,
62,
27057,
33411,
24845,
62,
489,
11797,
62,
4743,
1229,
577,
62,
69,
6024,
1279,
20479
] |
What is the maximum in 2004 when 2009 is higher than 26.1? | SELECT MAX("2004") FROM table_9822 WHERE "2009" > '26.1' | [
2061,
318,
262,
5415,
287,
5472,
618,
3717,
318,
2440,
621,
2608,
13,
16,
30,
46506,
25882,
7203,
15724,
4943,
16034,
3084,
62,
4089,
1828,
33411,
366,
10531,
1,
1875,
705,
2075,
13,
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
] | [
2061,
318,
262,
5415,
287,
5472,
618,
3717,
318,
2440,
621,
2608,
13,
16,
30,
46506,
25882,
7203,
15724,
4943,
16034,
3084,
62,
4089,
1828,
33411,
366,
10531,
1,
1875,
705,
2075,
13,
16,
6
] |
Name the jason for public vote being 19.20% | SELECT "Jason" FROM table_24208 WHERE "Public Vote %" = '19.20%' | [
5376,
262,
474,
888,
329,
1171,
3015,
852,
678,
13,
1238,
4,
46506,
366,
26497,
1,
16034,
3084,
62,
1731,
21315,
33411,
366,
15202,
19175,
4064,
1,
796,
705,
1129,
13,
1238,
4,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
474,
888,
329,
1171,
3015,
852,
678,
13,
1238,
4,
46506,
366,
26497,
1,
16034,
3084,
62,
1731,
21315,
33411,
366,
15202,
19175,
4064,
1,
796,
705,
1129,
13,
1238,
4,
6
] |
What was the area (km ) (per sqmi) of the country Colombia? | SELECT "Area (km\u00b2) (per sqmi)" FROM table_3643 WHERE "Country or territory with flag" = 'Colombia' | [
2061,
373,
262,
1989,
357,
13276,
1267,
357,
525,
19862,
11632,
8,
286,
262,
1499,
21291,
30,
46506,
366,
30547,
357,
13276,
59,
84,
405,
65,
17,
8,
357,
525,
19862,
11632,
16725,
16034,
3084,
62,
26780,
18,
33411,
366,
33921,
393,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1989,
357,
13276,
1267,
357,
525,
19862,
11632,
8,
286,
262,
1499,
21291,
30,
46506,
366,
30547,
357,
13276,
59,
84,
405,
65,
17,
8,
357,
525,
19862,
11632,
16725,
16034,
3084,
62,
26780,
18,
33411,
366,
33921,
393,
... |
Jin Hao had what amount of heat? | SELECT "Heat" FROM table_69899 WHERE "Name" = 'jin hao' | [
41,
259,
367,
5488,
550,
644,
2033,
286,
4894,
30,
46506,
366,
39596,
1,
16034,
3084,
62,
39357,
2079,
33411,
366,
5376,
1,
796,
705,
18594,
387,
78,
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
] | [
41,
259,
367,
5488,
550,
644,
2033,
286,
4894,
30,
46506,
366,
39596,
1,
16034,
3084,
62,
39357,
2079,
33411,
366,
5376,
1,
796,
705,
18594,
387,
78,
6
] |
what city is brule in | SELECT city FROM table_name_84 WHERE county = "brule" | [
10919,
1748,
318,
18145,
293,
287,
46506,
1748,
16034,
3084,
62,
3672,
62,
5705,
33411,
7968,
796,
366,
65,
25135,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
1748,
318,
18145,
293,
287,
46506,
1748,
16034,
3084,
62,
3672,
62,
5705,
33411,
7968,
796,
366,
65,
25135,
1
] |
What is the release date of the album written by Ford, Phil Phil Ford under BBC Audio? | SELECT "release date" FROM table_48635 WHERE "Company" = 'bbc audio' AND "Writer" = 'ford, phil phil ford' | [
2061,
318,
262,
2650,
3128,
286,
262,
5062,
3194,
416,
8092,
11,
4543,
4543,
8092,
739,
7823,
13491,
30,
46506,
366,
20979,
3128,
1,
16034,
3084,
62,
34251,
2327,
33411,
366,
39154,
1,
796,
705,
11848,
66,
6597,
6,
5357,
366,
34379,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2650,
3128,
286,
262,
5062,
3194,
416,
8092,
11,
4543,
4543,
8092,
739,
7823,
13491,
30,
46506,
366,
20979,
3128,
1,
16034,
3084,
62,
34251,
2327,
33411,
366,
39154,
1,
796,
705,
11848,
66,
6597,
6,
5357,
366,
34379,
... |
What is the distance of the Sam's town 250 race? | SELECT "Distance" FROM table_39150 WHERE "Race" = 'sam''s town 250' | [
2061,
318,
262,
5253,
286,
262,
3409,
338,
3240,
8646,
3234,
30,
46506,
366,
45767,
1,
16034,
3084,
62,
2670,
8628,
33411,
366,
35157,
1,
796,
705,
37687,
7061,
82,
3240,
8646,
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,
5253,
286,
262,
3409,
338,
3240,
8646,
3234,
30,
46506,
366,
45767,
1,
16034,
3084,
62,
2670,
8628,
33411,
366,
35157,
1,
796,
705,
37687,
7061,
82,
3240,
8646,
6
] |
how many more gold medals did jamaica win compared to cuba ? | SELECT (SELECT "gold" FROM table_203_716 WHERE "nation" = 'jamaica') - (SELECT "gold" FROM table_203_716 WHERE "nation" = 'cuba') | [
4919,
867,
517,
3869,
28057,
750,
474,
1689,
3970,
1592,
3688,
284,
13617,
64,
5633,
46506,
357,
46506,
366,
24267,
1,
16034,
3084,
62,
22416,
62,
22,
1433,
33411,
366,
25729,
1,
796,
705,
73,
1689,
3970,
11537,
532,
357,
46506,
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
] | [
4919,
867,
517,
3869,
28057,
750,
474,
1689,
3970,
1592,
3688,
284,
13617,
64,
5633,
46506,
357,
46506,
366,
24267,
1,
16034,
3084,
62,
22416,
62,
22,
1433,
33411,
366,
25729,
1,
796,
705,
73,
1689,
3970,
11537,
532,
357,
46506,
366,
... |
which country has miss universe Hungary as former pageant? | SELECT "Country/Territory" FROM table_19226 WHERE "Former pageant" = 'Miss Universe Hungary' | [
4758,
1499,
468,
2051,
6881,
19562,
355,
1966,
47894,
30,
46506,
366,
33921,
14,
15156,
799,
652,
1,
16034,
3084,
62,
1129,
24909,
33411,
366,
14282,
47894,
1,
796,
705,
17140,
11950,
19562,
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
] | [
4758,
1499,
468,
2051,
6881,
19562,
355,
1966,
47894,
30,
46506,
366,
33921,
14,
15156,
799,
652,
1,
16034,
3084,
62,
1129,
24909,
33411,
366,
14282,
47894,
1,
796,
705,
17140,
11950,
19562,
6
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.