NATURAL_LANG
stringlengths
0
446
SCHEMA
stringlengths
27
2.21k
SQL
stringlengths
18
453
input_ids
list
attention_mask
list
labels
list
Show the number of headquarters from each headquarters, and I want to show y-axis from high to low order please.
CREATE TABLE people ( People_ID int, Age int, Name text, Nationality text, Graduation_College text ) CREATE TABLE employment ( Company_ID int, People_ID int, Year_working int ) CREATE TABLE company ( Company_ID real, Name text, Headquarters text, Industry text, Sales_in_Billion real, Profits_in_Billion real, Assets_in_Billion real, Market_Value_in_Billion real )
SELECT Headquarters, COUNT(Headquarters) FROM company GROUP BY Headquarters ORDER BY COUNT(Headquarters) DESC
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 151, 41, 2449, 834, 4309, 16, 17, 6, 7526, 16, 17, 6, 5570, 1499, 6, 868, 485, 1499, 6, 10771, 76, 257, 834, 9939, 7883, 1499, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 31282, 6, 2847, 17161, 599, 3845, 9, 26, 19973, 7, 61, 21680, 349, 350, 4630, 6880, 272, 476, 31282, 4674, 11300, 272, 476, 2847, 17161, 599, 3845, 9, 26, 19973, 7, 61, 309, 25067, 1, -100, -100, -100, -100, -100, ...
For each id of a driver who participated in at most 30 races, how many races did they participate in?
CREATE TABLE driverstandings ( driverstandingsid number, raceid number, driverid number, points number, position number, positiontext text, wins number ) CREATE TABLE results ( resultid number, raceid number, driverid number, constructorid number, number number, grid number, position number, positiontext text, positionorder number, points number, laps number, time text, milliseconds number, fastestlap number, rank number, fastestlaptime text, fastestlapspeed text, statusid number ) CREATE TABLE pitstops ( raceid number, driverid number, stop number, lap number, time text, duration text, milliseconds number ) CREATE TABLE constructorresults ( constructorresultsid number, raceid number, constructorid number, points number, status number ) CREATE TABLE drivers ( driverid number, driverref text, number number, code text, forename text, surname text, dob text, nationality text, url text ) CREATE TABLE status ( statusid number, status text ) CREATE TABLE races ( raceid number, year number, round number, circuitid number, name text, date text, time text, url text ) CREATE TABLE laptimes ( raceid number, driverid number, lap number, position number, time text, milliseconds number ) CREATE TABLE qualifying ( qualifyid number, raceid number, driverid number, constructorid number, number number, position number, q1 text, q2 text, q3 text ) CREATE TABLE constructors ( constructorid number, constructorref text, name text, nationality text, url text ) CREATE TABLE circuits ( circuitid number, circuitref text, name text, location text, country text, lat number, lng number, alt number, url text ) CREATE TABLE constructorstandings ( constructorstandingsid number, raceid number, constructorid number, points number, position number, positiontext text, wins number ) CREATE TABLE seasons ( year number, url text )
SELECT T1.driverid, COUNT(*) FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid HAVING COUNT(*) <= 30
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 2535, 11018, 7, 41, 2535, 11018, 7, 23, 26, 381, 6, 1964, 23, 26, 381, 6, 1262, 4055, 381, 6, 979, 381, 6, 1102, 381, 6, 1102, 6327, 1499, 6, 9204, 381, 3, 61, 3, 32102, 32103, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5411, 13739, 4055, 6, 2847, 17161, 599, 1935, 61, 21680, 3863, 6157, 332, 536, 3, 15355, 3162, 772, 6157, 332, 357, 9191, 332, 5411, 13739, 4055, 3274, 332, 4416, 13739, 4055, 3, 15355, 3162, 10879, 6157, 332, 51...
When was the earliest person elected?
CREATE TABLE table_2668420_17 ( first_elected INTEGER )
SELECT MIN(first_elected) FROM table_2668420_17
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2688, 3651, 21899, 834, 2517, 41, 166, 834, 19971, 3, 21342, 17966, 3, 61, 3, 32102, 32103, 32101, 32103, 366, 47, 8, 3, 16454, 568, 8160, 58, 1, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 17684, 599, 14672, 834, 19971, 61, 21680, 953, 834, 2688, 3651, 21899, 834, 2517, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What is Current Rank, when Ring Name is Kimurayama Mamoru?
CREATE TABLE table_40076 ( "Ring name" text, "Current rank" text, "Debut" text, "Stable" text, "Birthplace" text )
SELECT "Current rank" FROM table_40076 WHERE "Ring name" = 'kimurayama mamoru'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 5548, 3959, 41, 96, 448, 53, 564, 121, 1499, 6, 96, 254, 450, 5320, 11003, 121, 1499, 6, 96, 2962, 2780, 121, 1499, 6, 96, 134, 3869, 121, 1499, 6, 96, 279, 23, 52, 189...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 254, 450, 5320, 11003, 121, 21680, 953, 834, 5548, 3959, 549, 17444, 427, 96, 448, 53, 564, 121, 3274, 3, 31, 19754, 2414, 22990, 954, 2528, 76, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What day had 37,500 attending?
CREATE TABLE table_name_56 ( date VARCHAR, attendance VARCHAR )
SELECT date FROM table_name_56 WHERE attendance = "37,500"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4834, 41, 833, 584, 4280, 28027, 6, 11364, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 239, 141, 6862, 6, 2560, 7078, 58, 1, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 833, 21680, 953, 834, 4350, 834, 4834, 549, 17444, 427, 11364, 3274, 96, 4118, 6, 2560, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Show me about the correlation between Team_ID and All_Games_Percent , and group by attribute All_Games in a scatter chart.
CREATE TABLE university ( School_ID int, School text, Location text, Founded real, Affiliation text, Enrollment real, Nickname text, Primary_conference text ) CREATE TABLE basketball_match ( Team_ID int, School_ID int, Team_Name text, ACC_Regular_Season text, ACC_Percent text, ACC_Home text, ACC_Road text, All_Games text, All_Games_Percent int, All_Home text, All_Road text, All_Neutral text )
SELECT Team_ID, All_Games_Percent FROM basketball_match GROUP BY All_Games
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 3819, 41, 1121, 834, 4309, 16, 17, 6, 1121, 1499, 6, 10450, 1499, 6, 3, 20100, 490, 6, 71, 89, 8027, 23, 257, 1499, 6, 695, 4046, 297, 490, 6, 7486, 4350, 1499, 6, 14542, 834, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2271, 834, 4309, 6, 432, 834, 23055, 7, 834, 12988, 3728, 21680, 8498, 834, 19515, 350, 4630, 6880, 272, 476, 432, 834, 23055, 7, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What was the score of the 2nd leg when Newell's Old Boys played at home?
CREATE TABLE table_61345 ( "Home (1st leg)" text, "Home (2nd leg)" text, "1st Leg" text, "2nd leg" text, "Aggregate" text )
SELECT "2nd leg" FROM table_61345 WHERE "Home (2nd leg)" = 'newell''s old boys'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4241, 519, 2128, 41, 96, 19040, 4077, 7, 17, 4553, 61, 121, 1499, 6, 96, 19040, 4743, 727, 4553, 61, 121, 1499, 6, 96, 536, 7, 17, 18978, 121, 1499, 6, 96, 357, 727, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 357, 727, 4553, 121, 21680, 953, 834, 4241, 519, 2128, 549, 17444, 427, 96, 19040, 4743, 727, 4553, 61, 121, 3274, 3, 31, 29, 15, 2091, 31, 31, 7, 625, 5234, 31, 1, -100, -100, -100, -100, -100, -100, -100, ...
What is Away Captain, when Date is 30 Dec, 1,2,3 Jan 1911/2?
CREATE TABLE table_name_38 (away_captain VARCHAR, date VARCHAR)
SELECT away_captain FROM table_name_38 WHERE date = "30 dec, 1,2,3 jan 1911/2"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3747, 41, 8006, 834, 4010, 17, 9, 77, 584, 4280, 28027, 6, 833, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 71, 1343, 12202, 6, 116, 7678, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 550, 834, 4010, 17, 9, 77, 21680, 953, 834, 4350, 834, 3747, 549, 17444, 427, 833, 3274, 96, 1458, 20, 75, 6, 1914, 4482, 519, 3, 7066, 28623, 13311, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What was the highest number of starts in 2007 when the average start was over 17.6?
CREATE TABLE table_50059 ( "Year" real, "Starts" real, "Wins" real, "Top 5" real, "Top 10" real, "Poles" real, "Avg. Start" real, "Avg. Finish" real, "Winnings" text, "Position" text, "Team(s)" text )
SELECT MAX("Starts") FROM table_50059 WHERE "Year" = '2007' AND "Avg. Start" > '17.6'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2560, 3390, 41, 96, 476, 2741, 121, 490, 6, 96, 7681, 17, 7, 121, 490, 6, 96, 18455, 7, 121, 490, 6, 96, 22481, 3, 17395, 490, 6, 96, 22481, 335, 121, 490, 6, 96, 893...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 4800, 4, 599, 121, 7681, 17, 7, 8512, 21680, 953, 834, 2560, 3390, 549, 17444, 427, 96, 476, 2741, 121, 3274, 3, 31, 20615, 31, 3430, 96, 188, 208, 122, 5, 3273, 121, 2490, 3, 31, 2517, 5, 948, 31, 1, -100, -1...
What is the To par of the Player with a Score of 71-69-68=208?
CREATE TABLE table_name_25 ( to_par VARCHAR, score VARCHAR )
SELECT to_par FROM table_name_25 WHERE score = 71 - 69 - 68 = 208
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 1828, 41, 12, 834, 1893, 584, 4280, 28027, 6, 2604, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 304, 260, 13, 8, 12387, 28, 3, 9, 17763...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 12, 834, 1893, 21680, 953, 834, 4350, 834, 1828, 549, 17444, 427, 2604, 3274, 3, 4450, 3, 18, 3, 3951, 3, 18, 3, 3651, 3274, 3, 23946, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
what's the game with date being march 7
CREATE TABLE table_18820 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text )
SELECT "Game" FROM table_18820 WHERE "Date" = 'March 7'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 25794, 1755, 41, 96, 23055, 121, 490, 6, 96, 308, 342, 121, 1499, 6, 96, 18699, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 21417, 979, 121, 1499, 6, 96, 21417, 3, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 23055, 121, 21680, 953, 834, 25794, 1755, 549, 17444, 427, 96, 308, 342, 121, 3274, 3, 31, 25019, 489, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What are the most points Lap 70 had with a grid larger than 16?
CREATE TABLE table_name_71 (points INTEGER, laps VARCHAR, grid VARCHAR)
SELECT MAX(points) FROM table_name_71 WHERE laps = 70 AND grid > 16
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4450, 41, 2700, 7, 3, 21342, 17966, 6, 14941, 7, 584, 4280, 28027, 6, 8634, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 33, 8, 167, 979, 325, 102, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 4800, 4, 599, 2700, 7, 61, 21680, 953, 834, 4350, 834, 4450, 549, 17444, 427, 14941, 7, 3274, 2861, 3430, 8634, 2490, 898, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
If the registered voters is 66.8%, what is the minimum population?
CREATE TABLE table_27438 ( "City" text, "Population" real, "Registered voters" text, "Democratic" text, "Republican" text, "D\u2013R spread" text, "Other" text, "No party preference" text )
SELECT MIN("Population") FROM table_27438 WHERE "Registered voters" = '66.8%'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2555, 591, 3747, 41, 96, 254, 485, 121, 1499, 6, 96, 27773, 7830, 121, 490, 6, 96, 17748, 343, 3737, 10861, 121, 1499, 6, 96, 19679, 447, 121, 1499, 6, 96, 1649, 15727, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 17684, 599, 121, 27773, 7830, 8512, 21680, 953, 834, 2555, 591, 3747, 549, 17444, 427, 96, 17748, 343, 3737, 10861, 121, 3274, 3, 31, 3539, 5, 5953, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What was the score of the away team at princes park?
CREATE TABLE table_11704 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT "Away team score" FROM table_11704 WHERE "Venue" = 'princes park'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 20275, 6348, 41, 96, 19040, 372, 121, 1499, 6, 96, 19040, 372, 2604, 121, 1499, 6, 96, 188, 1343, 372, 121, 1499, 6, 96, 188, 1343, 372, 2604, 121, 1499, 6, 96, 553, 35, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 188, 1343, 372, 2604, 121, 21680, 953, 834, 20275, 6348, 549, 17444, 427, 96, 553, 35, 76, 15, 121, 3274, 3, 31, 12298, 2319, 2447, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Which Gold has a Nation of united states, and a Total larger than 5?
CREATE TABLE table_name_60 (gold INTEGER, nation VARCHAR, total VARCHAR)
SELECT MIN(gold) FROM table_name_60 WHERE nation = "united states" AND total > 5
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3328, 41, 14910, 3, 21342, 17966, 6, 2982, 584, 4280, 28027, 6, 792, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4073, 2540, 65, 3, 9, 11046, 13, 18279, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 17684, 599, 14910, 61, 21680, 953, 834, 4350, 834, 3328, 549, 17444, 427, 2982, 3274, 96, 15129, 15, 26, 2315, 121, 3430, 792, 2490, 305, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Find the number of rooms with king bed for each decor type.
CREATE TABLE rooms ( roomid text, roomname text, beds number, bedtype text, maxoccupancy number, baseprice number, decor text ) CREATE TABLE reservations ( code number, room text, checkin text, checkout text, rate number, lastname text, firstname text, adults number, kids number )
SELECT decor, COUNT(*) FROM rooms WHERE bedtype = "King" GROUP BY decor
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 2801, 41, 562, 23, 26, 1499, 6, 562, 4350, 1499, 6, 8326, 381, 6, 1953, 6137, 1499, 6, 9858, 13377, 413, 6833, 381, 6, 1247, 102, 4920, 381, 6, 4469, 1499, 3, 61, 3, 32102, 32103, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 4469, 6, 2847, 17161, 599, 1935, 61, 21680, 2801, 549, 17444, 427, 1953, 6137, 3274, 96, 439, 53, 121, 350, 4630, 6880, 272, 476, 4469, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Find the name and country of origin for all artists who have release at least one song of resolution above 900.
CREATE TABLE artist ( artist_name VARCHAR, country VARCHAR ) CREATE TABLE song ( artist_name VARCHAR, resolution INTEGER )
SELECT T1.artist_name, T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.resolution > 900 GROUP BY T2.artist_name HAVING COUNT(*) >= 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 2377, 41, 2377, 834, 4350, 584, 4280, 28027, 6, 684, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 2324, 41, 2377, 834, 4350, 584, 4280, 28027, 6, 3161,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5411, 1408, 343, 834, 4350, 6, 332, 5411, 17529, 21680, 2377, 6157, 332, 536, 3, 15355, 3162, 2324, 6157, 332, 357, 9191, 332, 5411, 1408, 343, 834, 4350, 3274, 332, 4416, 1408, 343, 834, 4350, 549, 17444, 427, ...
Find the address of the location named 'UK Gallery'.
CREATE TABLE visitors ( tourist_id number, tourist_details text ) CREATE TABLE staff ( staff_id number, tourist_attraction_id number, name text, other_details text ) CREATE TABLE visits ( visit_id number, tourist_attraction_id number, tourist_id number, visit_date time, visit_details text ) CREATE TABLE royal_family ( royal_family_id number, royal_family_details text ) CREATE TABLE tourist_attraction_features ( tourist_attraction_id number, feature_id number ) CREATE TABLE tourist_attractions ( tourist_attraction_id number, attraction_type_code text, location_id number, how_to_get_there text, name text, description text, opening_hours text, other_details text ) CREATE TABLE ref_hotel_star_ratings ( star_rating_code text, star_rating_description text ) CREATE TABLE museums ( museum_id number, museum_details text ) CREATE TABLE shops ( shop_id number, shop_details text ) CREATE TABLE features ( feature_id number, feature_details text ) CREATE TABLE hotels ( hotel_id number, star_rating_code text, pets_allowed_yn text, price_range number, other_hotel_details text ) CREATE TABLE street_markets ( market_id number, market_details text ) CREATE TABLE ref_attraction_types ( attraction_type_code text, attraction_type_description text ) CREATE TABLE photos ( photo_id number, tourist_attraction_id number, name text, description text, filename text, other_details text ) CREATE TABLE theme_parks ( theme_park_id number, theme_park_details text ) CREATE TABLE locations ( location_id number, location_name text, address text, other_details text )
SELECT address FROM locations WHERE location_name = "UK Gallery"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 2692, 41, 8548, 834, 23, 26, 381, 6, 8548, 834, 221, 5756, 7, 1499, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 871, 41, 871, 834, 23, 26, 381, 6, 8548, 834, 144, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 1115, 21680, 3248, 549, 17444, 427, 1128, 834, 4350, 3274, 96, 15787, 7557, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
How many wins for billy casper over 8 events and uner $71,979 in earnings?
CREATE TABLE table_55112 ( "Rank" real, "Player" text, "Country" text, "Earnings ( $ )" real, "Events" real, "Wins" real )
SELECT MIN("Wins") FROM table_55112 WHERE "Events" = '8' AND "Player" = 'billy casper' AND "Earnings ( $ )" < '71,979'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3769, 2596, 357, 41, 96, 22557, 121, 490, 6, 96, 15800, 49, 121, 1499, 6, 96, 10628, 651, 121, 1499, 6, 96, 427, 291, 29, 53, 7, 41, 1514, 3, 61, 121, 490, 6, 96, 427...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 17684, 599, 121, 18455, 7, 8512, 21680, 953, 834, 3769, 2596, 357, 549, 17444, 427, 96, 427, 2169, 7, 121, 3274, 3, 31, 927, 31, 3430, 96, 15800, 49, 121, 3274, 3, 31, 3727, 120, 212, 4339, 31, 3430, 96, 427,...
What is the Record for 23 january 2010, with a time smaller than 42.679 seconds?
CREATE TABLE table_name_42 ( record VARCHAR, date VARCHAR, time__seconds_ VARCHAR )
SELECT record FROM table_name_42 WHERE date = "23 january 2010" AND time__seconds_ < 42.679
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4165, 41, 1368, 584, 4280, 28027, 6, 833, 584, 4280, 28027, 6, 97, 834, 834, 12091, 7, 834, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 3, 23143, 14196, 1368, 21680, 953, 834, 4350, 834, 4165, 549, 17444, 427, 833, 3274, 96, 2773, 3, 7066, 76, 1208, 2735, 121, 3430, 97, 834, 834, 12091, 7, 834, 3, 2, 314, 22724, 4440, 1, -100, -100, -100, -100, -100, -100, -100, -...
in how many of the arkansas colomel the county was pope
CREATE TABLE table_29458735_5 ( colonel VARCHAR, county VARCHAR )
SELECT COUNT(colonel) FROM table_29458735_5 WHERE county = "Pope"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3166, 2128, 4225, 2469, 834, 755, 41, 6718, 15, 40, 584, 4280, 28027, 6, 5435, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 16, 149, 186, 13, 8, 3, 6604, 3247, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 3297, 782, 40, 61, 21680, 953, 834, 3166, 2128, 4225, 2469, 834, 755, 549, 17444, 427, 5435, 3274, 96, 27773, 15, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Find the average age of students who do not have any pet .
CREATE TABLE student (age INTEGER, stuid VARCHAR); CREATE TABLE has_pet (age INTEGER, stuid VARCHAR)
SELECT AVG(age) FROM student WHERE NOT stuid IN (SELECT stuid FROM has_pet)
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 1236, 41, 545, 3, 21342, 17966, 6, 21341, 23, 26, 584, 4280, 28027, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 65, 834, 4995, 41, 545, 3, 21342, 17966, 6, 21341, 23, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 71, 17217, 599, 545, 61, 21680, 1236, 549, 17444, 427, 4486, 21341, 23, 26, 3388, 41, 23143, 14196, 21341, 23, 26, 21680, 65, 834, 4995, 61, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
tell me the admission type and primary disease of subject id 2560.
CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text )
SELECT demographic.admission_type, demographic.diagnosis FROM demographic WHERE demographic.subject_id = "2560"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7744, 7, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 23, 1071, 21545, 834, 23, 26, 1499, 6, 2672, 834, 6137, 1499, 6, 2672, 1499, 6, 5403, 651, 834, 26, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 14798, 5, 9, 26, 5451, 834, 6137, 6, 14798, 5, 25930, 4844, 159, 21680, 14798, 549, 17444, 427, 14798, 5, 7304, 11827, 834, 23, 26, 3274, 96, 1828, 3328, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
what is the number of patients whose primary disease is upper gi bleed and year of death is less than or equal to 2154?
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "UPPER GI BLEED" AND demographic.dod_year <= "2154.0"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 4293, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 447, 26, 1298, 834, 4978, 1499, 6, 710, 834, 21869, 1499, 6, 307, 834, 21869, 1499, 3, 61, 3, 32102, 32103...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 549, 17444, 427, 14798, 5, 25930, 4844, 159, 3274, 96, 6880, 8742, 3, 7214, 272, 3765, 2326, 121, 3430, 14798, 5, 26, 32, 2...
How many years were there with 348 attempts?
CREATE TABLE table_1037590_1 (yards VARCHAR, attempts VARCHAR)
SELECT COUNT(yards) FROM table_1037590_1 WHERE attempts = 348
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 1714, 22954, 2394, 834, 536, 41, 6636, 7, 584, 4280, 28027, 6, 9048, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 203, 130, 132, 28, 220, 3707, 9048, 58, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 6636, 7, 61, 21680, 953, 834, 1714, 22954, 2394, 834, 536, 549, 17444, 427, 9048, 3274, 220, 3707, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
what is the number of the episode in the series whose production code is 405?
CREATE TABLE table_29684 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "U.S. viewers (millions)" text, "Original U.S. air date" text, "Prod. code" text )
SELECT "No. in series" FROM table_29684 WHERE "Prod. code" = '405'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 4314, 4608, 41, 96, 4168, 5, 16, 939, 121, 490, 6, 96, 4168, 5, 16, 774, 121, 490, 6, 96, 382, 155, 109, 121, 1499, 6, 96, 23620, 15, 26, 57, 121, 1499, 6, 96, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 4168, 5, 16, 939, 121, 21680, 953, 834, 357, 4314, 4608, 549, 17444, 427, 96, 3174, 26, 5, 1081, 121, 3274, 3, 31, 591, 3076, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What is Run 1, when Athletes is 'Theo Kitt & Friedrich Kuhn'?
CREATE TABLE table_10021 ( "Rank" text, "Team" text, "Athletes" text, "Run 1" text, "Run 2" text, "Run 3" text, "Run 4" text, "Final" text )
SELECT "Run 1" FROM table_10021 WHERE "Athletes" = 'theo kitt & friedrich kuhn'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2915, 2658, 41, 96, 22557, 121, 1499, 6, 96, 18699, 121, 1499, 6, 96, 188, 189, 109, 1422, 121, 1499, 6, 96, 448, 202, 209, 121, 1499, 6, 96, 448, 202, 204, 121, 1499, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 448, 202, 209, 121, 21680, 953, 834, 2915, 2658, 549, 17444, 427, 96, 188, 189, 109, 1422, 121, 3274, 3, 31, 532, 32, 3650, 17, 3, 184, 3, 7704, 3723, 3, 2729, 107, 29, 31, 1, -100, -100, -100, -100, -100, ...
What was the little league team from Kentucky when the little league team from Michigan was Grosse Pointe Farms-City LL Grosse Pointe Farms?
CREATE TABLE table_18461045_1 ( kentucky VARCHAR, michigan VARCHAR )
SELECT kentucky FROM table_18461045_1 WHERE michigan = "Grosse Pointe Farms-City LL Grosse Pointe Farms"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 25987, 27097, 2128, 834, 536, 41, 3, 2217, 17, 4636, 63, 584, 4280, 28027, 6, 2278, 12588, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 385, 5533, 37...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 2217, 17, 4636, 63, 21680, 953, 834, 25987, 27097, 2128, 834, 536, 549, 17444, 427, 2278, 12588, 3274, 96, 517, 52, 13526, 4564, 15, 4990, 7, 18, 254, 485, 3, 10376, 17969, 15, 4564, 15, 4990, 7, 121, 1, -100, ...
What is the position with an overall less than 128 for Brigham Young college?
CREATE TABLE table_name_87 (position VARCHAR, overall VARCHAR, college VARCHAR)
SELECT position FROM table_name_87 WHERE overall < 128 AND college = "brigham young"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4225, 41, 4718, 584, 4280, 28027, 6, 1879, 584, 4280, 28027, 6, 1900, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 1102, 28, 46, 1879, 705, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1102, 21680, 953, 834, 4350, 834, 4225, 549, 17444, 427, 1879, 3, 2, 209, 2577, 3430, 1900, 3274, 96, 2160, 122, 1483, 1021, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What did the home team score when they played the away team of Geelong?
CREATE TABLE table_name_10 ( home_team VARCHAR, away_team VARCHAR )
SELECT home_team AS score FROM table_name_10 WHERE away_team = "geelong"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 1714, 41, 234, 834, 11650, 584, 4280, 28027, 6, 550, 834, 11650, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 410, 8, 234, 372, 2604, 116, 79, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 234, 834, 11650, 6157, 2604, 21680, 953, 834, 4350, 834, 1714, 549, 17444, 427, 550, 834, 11650, 3274, 96, 397, 15, 2961, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
what is last weight of patient 015-7988 until 35 months ago.
CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospitalid number, wardid number, admissionheight number, admissionweight number, dischargeweight number, hospitaladmittime time, hospitaladmitsource text, unitadmittime time, unitdischargetime time, hospitaldischargetime time, hospitaldischargestatus text ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, systemicsystolic number, systemicdiastolic number, systemicmean number, observationtime time ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time )
SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '015-7988') AND NOT patient.admissionweight IS NULL AND DATETIME(patient.unitadmittime) <= DATETIME(CURRENT_TIME(), '-35 month') ORDER BY patient.unitadmittime DESC LIMIT 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 2179, 9339, 41, 2179, 521, 9824, 381, 6, 1868, 15129, 21545, 23, 26, 381, 6, 1543, 3585, 1499, 6, 9329, 1499, 6, 1543, 4914, 29, 715, 97, 3, 61, 3, 32102, 32103, 32102, 205, 4386, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 1868, 5, 9, 26, 5451, 9378, 21680, 1868, 549, 17444, 427, 1868, 5, 10061, 15878, 3734, 21545, 23, 26, 3388, 41, 23143, 14196, 1868, 5, 10061, 15878, 3734, 21545, 23, 26, 21680, 1868, 549, 17444, 427, 1868, 5, 202, 1...
how many patients had the diagnosis icd9 code e8859 and drug type addictive?
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text )
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 = "E8859" AND prescriptions.drug_type = "ADDITIVE"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 4293, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 447, 26, 1298, 834, 4978, 1499, 6, 710, 834, 21869, 1499, 6, 307, 834, 21869, 1499, 3, 61, 3, 32102, 32103...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 18730, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 18730, 7, 5, 8399, 51, 834, 23, 26, 3...
What is team 2 if Team 1 is Numancia?
CREATE TABLE table_43660 ( "Team 1" text, "Agg." text, "Team 2" text, "1st leg" text, "2nd leg" text )
SELECT "Team 2" FROM table_43660 WHERE "Team 1" = 'numancia'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4906, 27720, 41, 96, 18699, 209, 121, 1499, 6, 96, 188, 4102, 535, 1499, 6, 96, 18699, 204, 121, 1499, 6, 96, 536, 7, 17, 4553, 121, 1499, 6, 96, 357, 727, 4553, 121, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 18699, 204, 121, 21680, 953, 834, 4906, 27720, 549, 17444, 427, 96, 18699, 209, 121, 3274, 3, 31, 5525, 11389, 9, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Which Chart peak was Recorded on 2/19/69?
CREATE TABLE table_name_64 (chart_peak VARCHAR, recorded VARCHAR)
SELECT chart_peak FROM table_name_64 WHERE recorded = "2/19/69"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4389, 41, 4059, 17, 834, 14661, 584, 4280, 28027, 6, 4381, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4073, 15054, 6734, 47, 11392, 15, 26, 30, 204, 1352...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 5059, 834, 14661, 21680, 953, 834, 4350, 834, 4389, 549, 17444, 427, 4381, 3274, 96, 357, 13523, 87, 3951, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Where is the University of North Carolina at Greensboro located?
CREATE TABLE table_255188_3 (location VARCHAR, institution VARCHAR)
SELECT location FROM table_255188_3 WHERE institution = "University of North Carolina at Greensboro"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 25502, 25794, 834, 519, 41, 14836, 584, 4280, 28027, 6, 6568, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 2840, 19, 8, 636, 13, 1117, 5089, 44, 1862, 7, 14901, 1069,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1128, 21680, 953, 834, 25502, 25794, 834, 519, 549, 17444, 427, 6568, 3274, 96, 8313, 485, 13, 1117, 5089, 44, 1862, 7, 14901, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What was the result of the 2012 Waff Women's Futsal Championship game the team played against Iraq?
CREATE TABLE table_7502 ( "Date" text, "Tournament" text, "Venue" text, "Opponent" text, "Result" text )
SELECT "Result" FROM table_7502 WHERE "Tournament" = '2012 waff women''s futsal championship' AND "Opponent" = 'iraq'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 9979, 357, 41, 96, 308, 342, 121, 1499, 6, 96, 382, 1211, 20205, 17, 121, 1499, 6, 96, 553, 35, 76, 15, 121, 1499, 6, 96, 667, 102, 9977, 121, 1499, 6, 96, 20119, 121, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 20119, 121, 21680, 953, 834, 9979, 357, 549, 17444, 427, 96, 382, 1211, 20205, 17, 121, 3274, 3, 31, 12172, 3, 210, 4127, 887, 31, 31, 7, 9620, 7, 138, 10183, 31, 3430, 96, 667, 102, 9977, 121, 3274, 3, 31, ...
What is the percentage of the popular vote when there were 90 seats available?
CREATE TABLE table_name_53 ( _percentage_of_popular_vote VARCHAR, _number_of_seats_available VARCHAR )
SELECT _percentage_of_popular_vote FROM table_name_53 WHERE _number_of_seats_available = 90
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4867, 41, 3, 834, 883, 3728, 545, 834, 858, 834, 27302, 834, 1621, 17, 15, 584, 4280, 28027, 6, 3, 834, 5525, 1152, 834, 858, 834, 7, 1544, 7, 834, 28843, 584,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 834, 883, 3728, 545, 834, 858, 834, 27302, 834, 1621, 17, 15, 21680, 953, 834, 4350, 834, 4867, 549, 17444, 427, 3, 834, 5525, 1152, 834, 858, 834, 7, 1544, 7, 834, 28843, 3274, 2777, 1, -100, -100, -100, -100,...
How many credits does course CIS-220 have, and what its description?
CREATE TABLE department ( dept_code text, dept_name text, school_code text, emp_num number, dept_address text, dept_extension text ) CREATE TABLE class ( class_code text, crs_code text, class_section text, class_time text, class_room text, prof_num number ) CREATE TABLE enroll ( class_code text, stu_num number, enroll_grade text ) CREATE TABLE course ( crs_code text, dept_code text, crs_description text, crs_credit number ) CREATE TABLE employee ( emp_num number, emp_lname text, emp_fname text, emp_initial text, emp_jobcode text, emp_hiredate time, emp_dob time ) CREATE TABLE student ( stu_num number, stu_lname text, stu_fname text, stu_init text, stu_dob time, stu_hrs number, stu_class text, stu_gpa number, stu_transfer number, dept_code text, stu_phone text, prof_num number ) CREATE TABLE professor ( emp_num number, dept_code text, prof_office text, prof_extension text, prof_high_degree text )
SELECT crs_credit, crs_description FROM course WHERE crs_code = 'CIS-220'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 3066, 41, 20, 102, 17, 834, 4978, 1499, 6, 20, 102, 17, 834, 4350, 1499, 6, 496, 834, 4978, 1499, 6, 8943, 834, 5525, 381, 6, 20, 102, 17, 834, 9, 26, 12039, 1499, 6, 20, 102, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 5764, 7, 834, 15547, 6, 5764, 7, 834, 221, 11830, 21680, 503, 549, 17444, 427, 5764, 7, 834, 4978, 3274, 3, 31, 21134, 4949, 1755, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
what is average age of patients whose gender is f and discharge location is disch-tran to psych hosp?
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT AVG(demographic.age) FROM demographic WHERE demographic.gender = "F" AND demographic.discharge_location = "DISCH-TRAN TO PSYCH HOSP"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7690, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 2118, 23, 26, 1499, 6, 5059, 715, 1499, 6, 5692, 1499, 6, 701, 834, 15129, 1499, 6, 3783, 1499, 6, 5798, 1499...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 71, 17217, 599, 1778, 16587, 5, 545, 61, 21680, 14798, 549, 17444, 427, 14798, 5, 122, 3868, 3274, 96, 371, 121, 3430, 14798, 5, 26, 159, 7993, 834, 14836, 3274, 96, 15438, 8360, 18, 11359, 567, 3001, 5610, 476, 836...
How many staff does each project has? List the project id and the number in an ascending order.
CREATE TABLE research_staff ( staff_id number, employer_organisation_id number, staff_details text ) CREATE TABLE document_types ( document_type_code text, document_description text ) CREATE TABLE documents ( document_id number, document_type_code text, grant_id number, sent_date time, response_received_date time, other_details text ) CREATE TABLE organisation_types ( organisation_type text, organisation_type_description text ) CREATE TABLE project_outcomes ( project_id number, outcome_code text, outcome_details text ) CREATE TABLE tasks ( task_id number, project_id number, task_details text, eg agree objectives text ) CREATE TABLE grants ( grant_id number, organisation_id number, grant_amount number, grant_start_date time, grant_end_date time, other_details text ) CREATE TABLE projects ( project_id number, organisation_id number, project_details text ) CREATE TABLE research_outcomes ( outcome_code text, outcome_description text ) CREATE TABLE staff_roles ( role_code text, role_description text ) CREATE TABLE project_staff ( staff_id number, project_id number, role_code text, date_from time, date_to time, other_details text ) CREATE TABLE organisations ( organisation_id number, organisation_type text, organisation_details text )
SELECT T1.project_id, COUNT(*) FROM project_staff AS T1 JOIN projects AS T2 ON T1.project_id = T2.project_id GROUP BY T1.project_id ORDER BY COUNT(*)
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 585, 834, 26416, 41, 871, 834, 23, 26, 381, 6, 6152, 834, 10832, 834, 23, 26, 381, 6, 871, 834, 221, 5756, 7, 1499, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 1708...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5411, 23574, 834, 23, 26, 6, 2847, 17161, 599, 1935, 61, 21680, 516, 834, 26416, 6157, 332, 536, 3, 15355, 3162, 1195, 6157, 332, 357, 9191, 332, 5411, 23574, 834, 23, 26, 3274, 332, 4416, 23574, 834, 23, 26, ...
If the parallel bars is 16.150, who is the gymnast?
CREATE TABLE table_18662026_10 (gymnast VARCHAR, parallel_bars VARCHAR)
SELECT gymnast FROM table_18662026_10 WHERE parallel_bars = "16.150"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 25398, 26898, 2688, 834, 1714, 41, 122, 63, 51, 29, 9, 7, 17, 584, 4280, 28027, 6, 8449, 834, 1047, 7, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 156, 8, 8449, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 23379, 17, 21680, 953, 834, 25398, 26898, 2688, 834, 1714, 549, 17444, 427, 8449, 834, 1047, 7, 3274, 96, 2938, 5, 12278, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
Tell me the class with rank of 89th
CREATE TABLE table_32119 ( "Year" real, "Team" text, "Make" text, "Engine" text, "Class" text, "Rank" text, "Points" real )
SELECT "Class" FROM table_32119 WHERE "Rank" = '89th'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2668, 19993, 41, 96, 476, 2741, 121, 490, 6, 96, 18699, 121, 1499, 6, 96, 22638, 121, 1499, 6, 96, 31477, 121, 1499, 6, 96, 21486, 121, 1499, 6, 96, 22557, 121, 1499, 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...
[ 3, 23143, 14196, 96, 21486, 121, 21680, 953, 834, 2668, 19993, 549, 17444, 427, 96, 22557, 121, 3274, 3, 31, 3914, 189, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
When pennsylvania 3 is the district who is the incumbent?
CREATE TABLE table_23285 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text, "Candidates" text )
SELECT "Incumbent" FROM table_23285 WHERE "District" = 'Pennsylvania 3'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 23188, 4433, 41, 96, 308, 23, 20066, 121, 1499, 6, 96, 1570, 75, 5937, 295, 121, 1499, 6, 96, 13725, 63, 121, 1499, 6, 96, 25171, 8160, 121, 490, 6, 96, 20119, 121, 1499,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 1570, 75, 5937, 295, 121, 21680, 953, 834, 23188, 4433, 549, 17444, 427, 96, 308, 23, 20066, 121, 3274, 3, 31, 345, 35, 29, 7, 63, 40, 16658, 9, 220, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What is the class of 2009?
CREATE TABLE table_name_26 ( class VARCHAR, year VARCHAR )
SELECT class FROM table_name_26 WHERE year = 2009
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2688, 41, 853, 584, 4280, 28027, 6, 215, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 853, 13, 2464, 58, 1, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 853, 21680, 953, 834, 4350, 834, 2688, 549, 17444, 427, 215, 3274, 2464, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What years did the player with the jersey number 33 and played position pf play?
CREATE TABLE table_name_4 (years VARCHAR, jersey_number_s_ VARCHAR, position VARCHAR)
SELECT years FROM table_name_4 WHERE jersey_number_s_ = 33 AND position = "pf"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 591, 41, 1201, 7, 584, 4280, 28027, 6, 13426, 834, 5525, 1152, 834, 7, 834, 584, 4280, 28027, 6, 1102, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 3, 23143, 14196, 203, 21680, 953, 834, 4350, 834, 591, 549, 17444, 427, 13426, 834, 5525, 1152, 834, 7, 834, 3274, 5400, 3430, 1102, 3274, 96, 102, 89, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Which publisher released Martial Law: Substitutes?
CREATE TABLE table_name_47 (publisher VARCHAR, release_title VARCHAR)
SELECT publisher FROM table_name_47 WHERE release_title = "martial law: substitutes"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4177, 41, 29337, 49, 584, 4280, 28027, 6, 1576, 834, 21869, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4073, 14859, 1883, 1571, 10646, 2402, 10, 3325, 2248...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 14859, 21680, 953, 834, 4350, 834, 4177, 549, 17444, 427, 1576, 834, 21869, 3274, 96, 1635, 10646, 973, 10, 11608, 7, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What year was the match against filippo volandri where xavier malisse was runner-up?
CREATE TABLE table_name_39 (year VARCHAR, outcome VARCHAR, opponent VARCHAR)
SELECT year FROM table_name_39 WHERE outcome = "runner-up" AND opponent = "filippo volandri"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3288, 41, 1201, 584, 4280, 28027, 6, 6138, 584, 4280, 28027, 6, 15264, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 215, 47, 8, 1588, 581, 5375, 23640...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 3, 23143, 14196, 215, 21680, 953, 834, 4350, 834, 3288, 549, 17444, 427, 6138, 3274, 96, 10806, 18, 413, 121, 3430, 15264, 3274, 96, 8027, 23640, 5063, 232, 52, 23, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What was the year that had Anugerah Bintang Popular Berita Harian 23 as competition?
CREATE TABLE table_name_30 (year VARCHAR, competition VARCHAR)
SELECT COUNT(year) FROM table_name_30 WHERE competition = "anugerah bintang popular berita harian 23"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 1458, 41, 1201, 584, 4280, 28027, 6, 2259, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 215, 24, 141, 389, 76, 1304, 9, 107, 7617, 8967, 1747...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 1201, 61, 21680, 953, 834, 4350, 834, 1458, 549, 17444, 427, 2259, 3274, 96, 152, 76, 1304, 9, 107, 2701, 8967, 1012, 36, 10694, 3, 107, 6855, 1902, 121, 1, -100, -100, -100, -100, -100, -100, -100...
Name the last title for club of quilmes
CREATE TABLE table_name_36 (last_title VARCHAR, club VARCHAR)
SELECT last_title FROM table_name_36 WHERE club = "quilmes"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3420, 41, 5064, 834, 21869, 584, 4280, 28027, 6, 1886, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 5570, 8, 336, 2233, 21, 1886, 13, 285, 40, 2687, 1, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 336, 834, 21869, 21680, 953, 834, 4350, 834, 3420, 549, 17444, 427, 1886, 3274, 96, 1169, 40, 2687, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What was the depravitiy of earnings where international sales was 2470?
CREATE TABLE table_13618358_1 ( income_poverty_f VARCHAR, exports__usd_mn__2011 VARCHAR )
SELECT income_poverty_f FROM table_13618358_1 WHERE exports__usd_mn__2011 = 2470
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 23459, 24361, 3449, 834, 536, 41, 2055, 834, 102, 1890, 17, 63, 834, 89, 584, 4280, 28027, 6, 4202, 7, 834, 834, 302, 26, 834, 51, 29, 834, 834, 13907, 584, 4280, 28027, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2055, 834, 102, 1890, 17, 63, 834, 89, 21680, 953, 834, 23459, 24361, 3449, 834, 536, 549, 17444, 427, 4202, 7, 834, 834, 302, 26, 834, 51, 29, 834, 834, 13907, 3274, 997, 2518, 1, -100, -100, -100, -100, -100, -1...
What is Samuel Smith's party?
CREATE TABLE table_28889 ( "District" text, "Incumbent" text, "Party" text, "First elected" text, "Result" text, "Candidates" text )
SELECT "Party" FROM table_28889 WHERE "Incumbent" = 'Samuel Smith'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 10927, 1298, 41, 96, 308, 23, 20066, 121, 1499, 6, 96, 1570, 75, 5937, 295, 121, 1499, 6, 96, 13725, 63, 121, 1499, 6, 96, 25171, 8160, 121, 1499, 6, 96, 20119, 121,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 13725, 63, 121, 21680, 953, 834, 357, 10927, 1298, 549, 17444, 427, 96, 1570, 75, 5937, 295, 121, 3274, 3, 31, 134, 265, 76, 15, 40, 3931, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
count the number of patients whose primary disease is gastrointestinal bleed and drug route is tp?
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.diagnosis = "GASTROINTESTINAL BLEED" AND prescriptions.route = "TP"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 18730, 7, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 447, 26, 1298, 834, 4978, 1499, 6, 710, 834, 21869, 1499, 6, 307, 834, 21869, 1499, 3, 61, 3, 32102, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 7744, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 7744, 7, 5, 8399, 51, 834, 23, 26, 549...
provide the number of patients diagnosed with mv collision nos-driver.
CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.short_title = "Mv collision NOS-driver"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 14798, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 564, 1499, 6, 2774, 1947, 834, 8547, 302, 1499, 6, 1246, 1499, 6, 103, 115, 1499, 6, 7285, 1499, 6, 1612, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 18730, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 18730, 7, 5, 8399, 51, 834, 23, 26, 5...
Name the gene name for accession number bx897700.1
CREATE TABLE table_29344 ( "Genus/Species" text, "Gene Name" text, "Accession number" text, "Sequence Length" text, "Sequence similarity" real )
SELECT "Gene Name" FROM table_29344 WHERE "Accession number" = 'BX897700.1'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 4271, 3628, 41, 96, 13714, 302, 87, 7727, 725, 121, 1499, 6, 96, 13714, 15, 5570, 121, 1499, 6, 96, 31679, 23, 106, 381, 121, 1499, 6, 96, 134, 15, 835, 3772, 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...
[ 3, 23143, 14196, 96, 13714, 15, 5570, 121, 21680, 953, 834, 357, 4271, 3628, 549, 17444, 427, 96, 31679, 23, 106, 381, 121, 3274, 3, 31, 279, 4, 3914, 26920, 16029, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
what are all the date withdrawn for twin screw ro-ro motorship
CREATE TABLE table_11662133_3 (date_withdrawn VARCHAR, type_of_ship VARCHAR)
SELECT date_withdrawn FROM table_11662133_3 WHERE type_of_ship = "Twin Screw Ro-Ro Motorship"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 20159, 4056, 22974, 834, 519, 41, 5522, 834, 28032, 584, 4280, 28027, 6, 686, 834, 858, 834, 2009, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 125, 33, 66, 8, 833, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 833, 834, 28032, 21680, 953, 834, 20159, 4056, 22974, 834, 519, 549, 17444, 427, 686, 834, 858, 834, 2009, 3274, 96, 382, 3757, 31885, 2158, 18, 448, 32, 5083, 2009, 121, 1, -100, -100, -100, -100, -100, -100, -100, ...
Name the loss when the record is 76-81
CREATE TABLE table_70066 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Record" text )
SELECT "Loss" FROM table_70066 WHERE "Record" = '76-81'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 9295, 3539, 41, 96, 308, 342, 121, 1499, 6, 96, 667, 102, 9977, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 434, 32, 7, 7, 121, 1499, 6, 96, 1649, 7621, 121, 1499, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 434, 32, 7, 7, 121, 21680, 953, 834, 9295, 3539, 549, 17444, 427, 96, 1649, 7621, 121, 3274, 3, 31, 3959, 18, 4959, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What is the highest number of laps with a time of +6.643 and grid less than 2?
CREATE TABLE table_58417 ( "Rider" text, "Manufacturer" text, "Laps" real, "Time/Retired" text, "Grid" real )
SELECT MAX("Laps") FROM table_58417 WHERE "Time/Retired" = '+6.643' AND "Grid" < '2'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3449, 591, 2517, 41, 96, 448, 23, 588, 121, 1499, 6, 96, 7296, 76, 8717, 450, 49, 121, 1499, 6, 96, 3612, 102, 7, 121, 490, 6, 96, 13368, 87, 1649, 11809, 26, 121, 1499...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 4800, 4, 599, 121, 3612, 102, 7, 8512, 21680, 953, 834, 3449, 591, 2517, 549, 17444, 427, 96, 13368, 87, 1649, 11809, 26, 121, 3274, 3, 31, 1220, 28833, 4906, 31, 3430, 96, 13313, 26, 121, 3, 2, 3, 31, 357, 31, ...
In which tournament was vijay singh a runner-up?
CREATE TABLE table_34806 ( "Date" text, "Tournament" text, "Winning score" text, "Margin of victory" text, "Runner-up" text )
SELECT "Tournament" FROM table_34806 WHERE "Runner-up" = 'vijay singh'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3710, 2079, 948, 41, 96, 308, 342, 121, 1499, 6, 96, 382, 1211, 20205, 17, 121, 1499, 6, 96, 518, 10503, 2604, 121, 1499, 6, 96, 7286, 122, 77, 13, 6224, 121, 1499, 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...
[ 3, 23143, 14196, 96, 382, 1211, 20205, 17, 121, 21680, 953, 834, 3710, 2079, 948, 549, 17444, 427, 96, 23572, 18, 413, 121, 3274, 3, 31, 2099, 1191, 63, 10159, 107, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
hw many patients stayed in hospital for more than 15 days and were diagnosed with erthematous cond nos?
CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.days_stay > "15" AND diagnoses.short_title = "Erythematous cond NOS"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7744, 7, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 23, 1071, 21545, 834, 23, 26, 1499, 6, 2672, 834, 6137, 1499, 6, 2672, 1499, 6, 5403, 651, 834, 26, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 18730, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 18730, 7, 5, 8399, 51, 834, 23, 26, 5...
What is the die size(mm 2) for model sgx531?
CREATE TABLE table_1439045_5 (die_size__mm_2___ VARCHAR, model VARCHAR)
SELECT die_size__mm_2___[1] FROM table_1439045_5 WHERE model = "SGX531"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 25133, 2394, 2128, 834, 755, 41, 2498, 834, 7991, 834, 834, 635, 834, 357, 834, 834, 834, 584, 4280, 28027, 6, 825, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 67, 834, 7991, 834, 834, 635, 834, 357, 834, 834, 834, 6306, 536, 908, 21680, 953, 834, 25133, 2394, 2128, 834, 755, 549, 17444, 427, 825, 3274, 96, 9945, 4, 755, 3341, 121, 1, -100, -100, -100, -100, -100, -100, ...
If the dry density is 800, what is the drying shrinkage %?
CREATE TABLE table_24969173_1 (drying_shrinkage___percentage_ VARCHAR, dry_density__kg_m3_ VARCHAR)
SELECT drying_shrinkage___percentage_ FROM table_24969173_1 WHERE dry_density__kg_m3_ = 800
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2266, 4314, 4729, 4552, 834, 536, 41, 16502, 53, 834, 7, 107, 13419, 545, 834, 834, 834, 883, 3728, 545, 834, 584, 4280, 28027, 6, 2192, 834, 537, 7, 485, 834, 834, 8711, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 16773, 834, 7, 107, 13419, 545, 834, 834, 834, 883, 3728, 545, 834, 21680, 953, 834, 2266, 4314, 4729, 4552, 834, 536, 549, 17444, 427, 2192, 834, 537, 7, 485, 834, 834, 8711, 834, 51, 519, 834, 3274, 8640, 1, -10...
What martin has a lanier of 6%?
CREATE TABLE table_name_42 ( martin VARCHAR, lanier VARCHAR )
SELECT martin FROM table_name_42 WHERE lanier = "6%"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4165, 41, 3157, 17, 77, 584, 4280, 28027, 6, 50, 8632, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 3157, 17, 77, 65, 3, 9, 50, 8632, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3157, 17, 77, 21680, 953, 834, 4350, 834, 4165, 549, 17444, 427, 50, 8632, 3274, 96, 6370, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What is the lowest Year, when Co-Driver is Warren Luff, when Position is 7th, and when Laps is less than 161?
CREATE TABLE table_43737 ( "Year" real, "Number" real, "Team" text, "Co-driver" text, "Position" text, "Laps" real )
SELECT MIN("Year") FROM table_43737 WHERE "Co-driver" = 'warren luff' AND "Position" = '7th' AND "Laps" < '161'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4906, 27931, 41, 96, 476, 2741, 121, 490, 6, 96, 567, 5937, 49, 121, 490, 6, 96, 18699, 121, 1499, 6, 96, 3881, 18, 13739, 52, 121, 1499, 6, 96, 345, 32, 7, 4749, 121, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 17684, 599, 121, 476, 2741, 8512, 21680, 953, 834, 4906, 27931, 549, 17444, 427, 96, 3881, 18, 13739, 52, 121, 3274, 3, 31, 2910, 1536, 3, 40, 2999, 31, 3430, 96, 345, 32, 7, 4749, 121, 3274, 3, 31, 940, 189,...
what is the week when the result is w 14-13 and the attendance is higher than 53,295?
CREATE TABLE table_name_51 ( week INTEGER, result VARCHAR, attendance VARCHAR )
SELECT AVG(week) FROM table_name_51 WHERE result = "w 14-13" AND attendance > 53 OFFSET 295
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 5553, 41, 471, 3, 21342, 17966, 6, 741, 584, 4280, 28027, 6, 11364, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 125, 19, 8, 471, 116, 8, 741, 19, 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, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 71, 17217, 599, 8041, 61, 21680, 953, 834, 4350, 834, 5553, 549, 17444, 427, 741, 3274, 96, 210, 968, 13056, 121, 3430, 11364, 2490, 12210, 3, 15316, 20788, 204, 3301, 1, -100, -100, -100, -100, -100, -100, -100, -100...
For those employees who did not have any job in the past, give me the comparison about the sum of employee_id over the job_id , and group by attribute job_id, show Y in desc order.
CREATE TABLE locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varchar(12), CITY varchar(30), STATE_PROVINCE varchar(25), COUNTRY_ID varchar(2) ) CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) ) CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER varchar(20), HIRE_DATE date, JOB_ID varchar(10), SALARY decimal(8,2), COMMISSION_PCT decimal(2,2), MANAGER_ID decimal(6,0), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE job_history ( EMPLOYEE_ID decimal(6,0), START_DATE date, END_DATE date, JOB_ID varchar(10), DEPARTMENT_ID decimal(4,0) )
SELECT JOB_ID, SUM(EMPLOYEE_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) GROUP BY JOB_ID ORDER BY SUM(EMPLOYEE_ID) DESC
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 3248, 41, 301, 5618, 8015, 834, 4309, 7908, 1982, 599, 8525, 632, 201, 3, 13733, 26418, 834, 24604, 12200, 134, 3, 4331, 4059, 599, 2445, 201, 3, 16034, 16359, 834, 5911, 5596, 3, 4331...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 446, 10539, 834, 4309, 6, 180, 6122, 599, 6037, 345, 5017, 476, 5080, 834, 4309, 61, 21680, 1652, 549, 17444, 427, 4486, 262, 5244, 5017, 476, 5080, 834, 4309, 3388, 41, 23143, 14196, 262, 5244, 5017, 476, 5080, 834, ...
What is the title that had 13.59 u.s. viewers (millions)?
CREATE TABLE table_24758 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "U.S. viewers (millions)" text )
SELECT "Title" FROM table_24758 WHERE "U.S. viewers (millions)" = '13.59'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 4177, 3449, 41, 96, 4168, 5, 16, 939, 121, 490, 6, 96, 4168, 5, 16, 774, 121, 490, 6, 96, 382, 155, 109, 121, 1499, 6, 96, 23620, 15, 26, 57, 121, 1499, 6, 96, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 382, 155, 109, 121, 21680, 953, 834, 357, 4177, 3449, 549, 17444, 427, 96, 1265, 5, 134, 5, 13569, 41, 17030, 7, 61, 121, 3274, 3, 31, 2368, 5, 3390, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What was the date of the Mavericks home game?
CREATE TABLE table_name_25 (date VARCHAR, home VARCHAR)
SELECT date FROM table_name_25 WHERE home = "mavericks"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 1828, 41, 5522, 584, 4280, 28027, 6, 234, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 833, 13, 8, 1534, 162, 5206, 7, 234, 467, 58, 1, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 833, 21680, 953, 834, 4350, 834, 1828, 549, 17444, 427, 234, 3274, 96, 51, 9, 162, 5206, 7, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Which To Par has a Score smaller than 70, and a Player of matt kowal?
CREATE TABLE table_name_33 ( to_par VARCHAR, score VARCHAR, player VARCHAR )
SELECT to_par FROM table_name_33 WHERE score < 70 AND player = "matt kowal"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4201, 41, 12, 834, 1893, 584, 4280, 28027, 6, 2604, 584, 4280, 28027, 6, 1959, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 4073, 304, 2180, 65, 3, 9,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 3, 23143, 14196, 12, 834, 1893, 21680, 953, 834, 4350, 834, 4201, 549, 17444, 427, 2604, 3, 2, 2861, 3430, 1959, 3274, 96, 3357, 17, 3, 19855, 138, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Which player went to the college Southern California?
CREATE TABLE table_11677691_4 (player VARCHAR, college VARCHAR)
SELECT player FROM table_11677691_4 WHERE college = "Southern California"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2596, 3708, 3959, 4729, 834, 591, 41, 20846, 584, 4280, 28027, 6, 1900, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4073, 1959, 877, 12, 8, 1900, 5193, 1826, 58, 1, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1959, 21680, 953, 834, 2596, 3708, 3959, 4729, 834, 591, 549, 17444, 427, 1900, 3274, 96, 22081, 49, 29, 1826, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What is the total number of Height(s), when Spike is less than 352, when Block is greater than 300, and when Name is Pablo Meana?
CREATE TABLE table_name_21 ( height VARCHAR, name VARCHAR, spike VARCHAR, block VARCHAR )
SELECT COUNT(height) FROM table_name_21 WHERE spike < 352 AND block > 300 AND name = "pablo meana"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2658, 41, 3902, 584, 4280, 28027, 6, 564, 584, 4280, 28027, 6, 22440, 584, 4280, 28027, 6, 2463, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 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...
[ 3, 23143, 14196, 2847, 17161, 599, 88, 2632, 61, 21680, 953, 834, 4350, 834, 2658, 549, 17444, 427, 22440, 3, 2, 3097, 357, 3430, 2463, 2490, 3147, 3430, 564, 3274, 96, 102, 9, 4672, 1243, 9, 121, 1, -100, -100, -100, -100, -100, ...
Name the language for el villar 1264
CREATE TABLE table_27395 ( "Language" text, "Padilla Municipality" real, "Tomina Municipality" real, "Sopachuy Municipality" real, "Villa Alcal\u00e1 Municipality" real, "El Villar Municipality" real )
SELECT "Language" FROM table_27395 WHERE "El Villar Municipality" = '1264'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2555, 519, 3301, 41, 96, 434, 1468, 76, 545, 121, 1499, 6, 96, 21853, 1092, 9, 16492, 485, 121, 490, 6, 96, 3696, 1109, 9, 16492, 485, 121, 490, 6, 96, 5231, 102, 9, 80...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 434, 1468, 76, 545, 121, 21680, 953, 834, 2555, 519, 3301, 549, 17444, 427, 96, 10991, 8850, 52, 16492, 485, 121, 3274, 3, 31, 2122, 4389, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What is the score in Leicester?
CREATE TABLE table_name_42 (score VARCHAR, city VARCHAR)
SELECT score FROM table_name_42 WHERE city = "leicester"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4165, 41, 7, 9022, 584, 4280, 28027, 6, 690, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 2604, 16, 26956, 58, 1, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2604, 21680, 953, 834, 4350, 834, 4165, 549, 17444, 427, 690, 3274, 96, 109, 867, 1370, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Which Top-25 has a Top-5 smaller than 0?
CREATE TABLE table_name_3 (top_25 INTEGER, top_5 INTEGER)
SELECT SUM(top_25) FROM table_name_3 WHERE top_5 < 0
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 519, 41, 2916, 834, 1828, 3, 21342, 17966, 6, 420, 834, 755, 3, 21342, 17966, 61, 3, 32102, 32103, 32101, 32103, 4073, 2224, 14855, 65, 3, 9, 2224, 4525, 2755, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 180, 6122, 599, 2916, 834, 1828, 61, 21680, 953, 834, 4350, 834, 519, 549, 17444, 427, 420, 834, 755, 3, 2, 3, 632, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the Chinese Title Premiering 32 with 2.07 million HK viewers?
CREATE TABLE table_57307 ( "Rank" real, "English title" text, "Chinese title" text, "Average" real, "Peak" real, "Premiere" real, "Finale" real, "HK viewers" text )
SELECT "Chinese title" FROM table_57307 WHERE "HK viewers" = '2.07 million' AND "Premiere" = '32'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3436, 1458, 940, 41, 96, 22557, 121, 490, 6, 96, 26749, 2233, 121, 1499, 6, 96, 3541, 4477, 15, 2233, 121, 1499, 6, 96, 188, 624, 545, 121, 490, 6, 96, 345, 15, 1639, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 3541, 4477, 15, 2233, 121, 21680, 953, 834, 3436, 1458, 940, 549, 17444, 427, 96, 20240, 13569, 121, 3274, 3, 31, 4416, 4560, 770, 31, 3430, 96, 10572, 2720, 60, 121, 3274, 3, 31, 2668, 31, 1, -100, -100, -100...
What was the score for Peter Lonard?
CREATE TABLE table_name_97 (score VARCHAR, player VARCHAR)
SELECT score FROM table_name_97 WHERE player = "peter lonard"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4327, 41, 7, 9022, 584, 4280, 28027, 6, 1959, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 2604, 21, 2737, 301, 106, 986, 58, 1, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2604, 21680, 953, 834, 4350, 834, 4327, 549, 17444, 427, 1959, 3274, 96, 4995, 49, 3, 40, 106, 986, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What was the production code of the episode written by Anthony Sparks?
CREATE TABLE table_25851971_1 (production_code VARCHAR, written_by VARCHAR)
SELECT production_code FROM table_25851971_1 WHERE written_by = "Anthony Sparks"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 1828, 4433, 2294, 4450, 834, 536, 41, 20762, 834, 4978, 584, 4280, 28027, 6, 1545, 834, 969, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 999, 1081, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 999, 834, 4978, 21680, 953, 834, 1828, 4433, 2294, 4450, 834, 536, 549, 17444, 427, 1545, 834, 969, 3274, 96, 188, 29, 189, 106, 63, 15036, 7, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What is the Total when the Set 3 was 25-15?
CREATE TABLE table_name_68 ( total VARCHAR, set_3 VARCHAR )
SELECT total FROM table_name_68 WHERE set_3 = "25-15"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3651, 41, 792, 584, 4280, 28027, 6, 356, 834, 519, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 9273, 116, 8, 2821, 220, 47, 944, 10106, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 792, 21680, 953, 834, 4350, 834, 3651, 549, 17444, 427, 356, 834, 519, 3274, 96, 1828, 10106, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Which roll has an Area of mahia?
CREATE TABLE table_name_2 ( roll VARCHAR, area VARCHAR )
SELECT roll FROM table_name_2 WHERE area = "mahia"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 357, 41, 3812, 584, 4280, 28027, 6, 616, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 4073, 3812, 65, 46, 5690, 13, 954, 107, 23, 9, 58, 1, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3812, 21680, 953, 834, 4350, 834, 357, 549, 17444, 427, 616, 3274, 96, 51, 9, 107, 23, 9, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
Tell me the surface for 16 april 2007
CREATE TABLE table_32052 ( "Outcome" text, "Date" text, "Tournament" text, "Surface" text, "Partner" text, "Opponents in the final" text, "Score in the final" text )
SELECT "Surface" FROM table_32052 WHERE "Date" = '16 april 2007'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 15003, 5373, 41, 96, 15767, 287, 15, 121, 1499, 6, 96, 308, 342, 121, 1499, 6, 96, 382, 1211, 20205, 17, 121, 1499, 6, 96, 134, 450, 4861, 121, 1499, 6, 96, 13725, 687, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 134, 450, 4861, 121, 21680, 953, 834, 15003, 5373, 549, 17444, 427, 96, 308, 342, 121, 3274, 3, 31, 2938, 3, 9, 2246, 40, 4101, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What was gary player's score?
CREATE TABLE table_name_25 ( score VARCHAR, player VARCHAR )
SELECT score FROM table_name_25 WHERE player = "gary player"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 1828, 41, 2604, 584, 4280, 28027, 6, 1959, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 5260, 63, 1959, 31, 7, 2604, 58, 1, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2604, 21680, 953, 834, 4350, 834, 1828, 549, 17444, 427, 1959, 3274, 96, 1478, 63, 1959, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
what is the number of american indian/alaska native patients who were admitted to hospital before 2145?
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "AMERICAN INDIAN/ALASKA NATIVE" AND demographic.admityear < "2145"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7690, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 2118, 23, 26, 1499, 6, 5059, 715, 1499, 6, 5692, 1499, 6, 701, 834, 15129, 1499, 6, 3783, 1499, 6, 5798, 1499...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 549, 17444, 427, 14798, 5, 15, 189, 2532, 485, 3274, 96, 17683, 5593, 11425, 3, 13885, 21758, 87, 23634, 134, 12048, 3, 25271...
which athlete had the fastest time for the 20km ?
CREATE TABLE table_204_712 ( id number, "rank" number, "athlete" text, "nationality" text, "time" text, "notes" text )
SELECT "athlete" FROM table_204_712 ORDER BY "time" LIMIT 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26363, 834, 4450, 357, 41, 3, 23, 26, 381, 6, 96, 6254, 121, 381, 6, 96, 26170, 15, 121, 1499, 6, 96, 16557, 485, 121, 1499, 6, 96, 715, 121, 1499, 6, 96, 7977, 7, 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...
[ 3, 23143, 14196, 96, 26170, 15, 121, 21680, 953, 834, 26363, 834, 4450, 357, 4674, 11300, 272, 476, 96, 715, 121, 8729, 12604, 209, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What are the episode numbers of episodes featuring Hurley?
CREATE TABLE table_11562149_1 (no_in_series VARCHAR, featured_character_s_ VARCHAR)
SELECT no_in_series FROM table_11562149_1 WHERE featured_character_s_ = "Hurley"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 15660, 4056, 24816, 834, 536, 41, 29, 32, 834, 77, 834, 10833, 7, 584, 4280, 28027, 6, 4510, 834, 31886, 834, 7, 834, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 150, 834, 77, 834, 10833, 7, 21680, 953, 834, 15660, 4056, 24816, 834, 536, 549, 17444, 427, 4510, 834, 31886, 834, 7, 834, 3274, 96, 566, 450, 1306, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What is the sum of number with type 0-4-4 forney locomotive, number smaller than 20 and works number of 1251?
CREATE TABLE table_name_37 ( date VARCHAR, works_number VARCHAR, type VARCHAR, number VARCHAR )
SELECT COUNT(date) FROM table_name_37 WHERE type = "0-4-4 forney locomotive" AND number < 20 AND works_number = 1251
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4118, 41, 833, 584, 4280, 28027, 6, 930, 834, 5525, 1152, 584, 4280, 28027, 6, 686, 584, 4280, 28027, 6, 381, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 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...
[ 3, 23143, 14196, 2847, 17161, 599, 5522, 61, 21680, 953, 834, 4350, 834, 4118, 549, 17444, 427, 686, 3274, 96, 632, 4278, 4278, 21, 3186, 31301, 121, 3430, 381, 3, 2, 460, 3430, 930, 834, 5525, 1152, 3274, 586, 5553, 1, -100, -100, ...
Show all member names and registered branch names sorted by register year.
CREATE TABLE membership_register_branch ( branch_id VARCHAR, member_id VARCHAR, register_year VARCHAR ) CREATE TABLE member ( name VARCHAR, member_id VARCHAR ) CREATE TABLE branch ( name VARCHAR, branch_id VARCHAR )
SELECT T3.name, T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id JOIN member AS T3 ON T1.member_id = T3.member_id ORDER BY T1.register_year
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 4757, 834, 22149, 834, 1939, 5457, 41, 6421, 834, 23, 26, 584, 4280, 28027, 6, 1144, 834, 23, 26, 584, 4280, 28027, 6, 3691, 834, 1201, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 3210...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5787, 4350, 6, 332, 4416, 4350, 21680, 4757, 834, 22149, 834, 1939, 5457, 6157, 332, 536, 3, 15355, 3162, 6421, 6157, 332, 357, 9191, 332, 5411, 1939, 5457, 834, 23, 26, 3274, 332, 4416, 1939, 5457, 834, 23, 26...
How many fastest laps for the nation with 32 (30) entries and starts and fewer than 2 podiums?
CREATE TABLE table_name_74 (fastest_laps INTEGER, race_entries__starts_ VARCHAR, podiums VARCHAR)
SELECT MIN(fastest_laps) FROM table_name_74 WHERE race_entries__starts_ = "32 (30)" AND podiums < 2
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4581, 41, 11584, 222, 834, 8478, 7, 3, 21342, 17966, 6, 1964, 834, 35, 9000, 834, 834, 10208, 7, 834, 584, 4280, 28027, 6, 22828, 7, 584, 4280, 28027, 61, 3, 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...
[ 3, 23143, 14196, 3, 17684, 599, 11584, 222, 834, 8478, 7, 61, 21680, 953, 834, 4350, 834, 4581, 549, 17444, 427, 1964, 834, 35, 9000, 834, 834, 10208, 7, 834, 3274, 96, 2668, 19684, 61, 121, 3430, 22828, 7, 3, 2, 204, 1, -100, -...
List the name and count of each product in all orders with a pie chart.
CREATE TABLE Customers ( customer_id INTEGER, customer_name VARCHAR(80), customer_details VARCHAR(255) ) CREATE TABLE Orders ( order_id INTEGER, customer_id INTEGER, order_status VARCHAR(10), date_order_placed DATETIME, order_details VARCHAR(255) ) CREATE TABLE Invoices ( invoice_number INTEGER, invoice_date DATETIME, invoice_details VARCHAR(255) ) CREATE TABLE Products ( product_id INTEGER, product_name VARCHAR(80), product_details VARCHAR(255) ) CREATE TABLE Order_Items ( order_item_id INTEGER, product_id INTEGER, order_id INTEGER, order_item_status VARCHAR(10), order_item_details VARCHAR(255) ) CREATE TABLE Shipment_Items ( shipment_id INTEGER, order_item_id INTEGER ) CREATE TABLE Shipments ( shipment_id INTEGER, order_id INTEGER, invoice_number INTEGER, shipment_tracking_number VARCHAR(80), shipment_date DATETIME, other_shipment_details VARCHAR(255) )
SELECT T3.product_name, SUM(COUNT(*)) FROM Orders AS T1 JOIN Order_Items AS T2 JOIN Products AS T3 ON T1.order_id = T2.order_id AND T2.product_id = T3.product_id GROUP BY T3.product_name
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 16423, 41, 884, 834, 23, 26, 3, 21342, 17966, 6, 884, 834, 4350, 584, 4280, 28027, 599, 2079, 201, 884, 834, 221, 5756, 7, 584, 4280, 28027, 599, 25502, 61, 3, 61, 3, 32102, 32103, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5787, 15892, 834, 4350, 6, 180, 6122, 599, 5911, 17161, 599, 1935, 61, 61, 21680, 5197, 7, 6157, 332, 536, 3, 15355, 3162, 5197, 834, 196, 3524, 7, 6157, 332, 357, 3, 15355, 3162, 7554, 6157, 332, 519, 9191, ...
Who was the mediator in k haku number 53?
CREATE TABLE table_1315616_1 ( mediator VARCHAR, kōhaku__number VARCHAR )
SELECT mediator FROM table_1315616_1 WHERE kōhaku__number = 53
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2368, 25463, 2938, 834, 536, 41, 26882, 584, 4280, 28027, 6, 3, 157, 2, 15416, 76, 834, 834, 5525, 1152, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 2645, 47, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 26882, 21680, 953, 834, 2368, 25463, 2938, 834, 536, 549, 17444, 427, 3, 157, 2, 15416, 76, 834, 834, 5525, 1152, 3274, 12210, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
Show the name, average attendance, total attendance for stadiums where no accidents happened.
CREATE TABLE stadium (name VARCHAR, average_attendance VARCHAR, total_attendance VARCHAR, id VARCHAR); CREATE TABLE stadium (name VARCHAR, average_attendance VARCHAR, total_attendance VARCHAR); CREATE TABLE game (stadium_id VARCHAR, id VARCHAR); CREATE TABLE injury_accident (game_id VARCHAR)
SELECT name, average_attendance, total_attendance FROM stadium EXCEPT SELECT T2.name, T2.average_attendance, T2.total_attendance FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.id JOIN injury_accident AS T3 ON T1.id = T3.game_id
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 14939, 41, 4350, 584, 4280, 28027, 6, 1348, 834, 15116, 663, 584, 4280, 28027, 6, 792, 834, 15116, 663, 584, 4280, 28027, 6, 3, 23, 26, 584, 4280, 28027, 61, 3, 32102, 32103, 32102, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 564, 6, 1348, 834, 15116, 663, 6, 792, 834, 15116, 663, 21680, 14939, 262, 4, 30416, 3, 23143, 14196, 332, 4416, 4350, 6, 332, 4416, 28951, 834, 15116, 663, 6, 332, 4416, 235, 1947, 834, 15116, 663, 21680, 467, 6157...
What is the location when the status is in service as coaching stock?
CREATE TABLE table_1090916_2 ( location VARCHAR, status VARCHAR )
SELECT location FROM table_1090916_2 WHERE status = "In service as coaching stock"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 17304, 4198, 2938, 834, 357, 41, 1128, 584, 4280, 28027, 6, 2637, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 1128, 116, 8, 2637, 19, 16, 313, 38, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1128, 21680, 953, 834, 17304, 4198, 2938, 834, 357, 549, 17444, 427, 2637, 3274, 96, 1570, 313, 38, 7052, 1519, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Name the season for rotherham titans
CREATE TABLE table_22977424_8 ( season VARCHAR, promoted_from_league VARCHAR )
SELECT season FROM table_22977424_8 WHERE promoted_from_league = "Rotherham Titans"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2884, 4327, 4581, 2266, 834, 927, 41, 774, 584, 4280, 28027, 6, 14742, 834, 7152, 834, 29512, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 5570, 8, 774, 21, 3, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 774, 21680, 953, 834, 2884, 4327, 4581, 2266, 834, 927, 549, 17444, 427, 14742, 834, 7152, 834, 29512, 3274, 96, 448, 9269, 1483, 13622, 7, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
what's the result with opponent being at new england patriots
CREATE TABLE table_14951643_1 ( result VARCHAR, opponent VARCHAR )
SELECT result FROM table_14951643_1 WHERE opponent = "at New England Patriots"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2534, 3301, 2938, 4906, 834, 536, 41, 741, 584, 4280, 28027, 6, 15264, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 125, 31, 7, 8, 741, 28, 15264, 271, 44, 126, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 741, 21680, 953, 834, 2534, 3301, 2938, 4906, 834, 536, 549, 17444, 427, 15264, 3274, 96, 144, 368, 2789, 20109, 7, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
Show the type of school and the number of buses for each type in a bar chart, rank by the the total number from low to high.
CREATE TABLE driver ( Driver_ID int, Name text, Party text, Home_city text, Age int ) CREATE TABLE school ( School_ID int, Grade text, School text, Location text, Type text ) CREATE TABLE school_bus ( School_ID int, Driver_ID int, Years_Working int, If_full_time bool )
SELECT Type, COUNT(*) FROM school_bus AS T1 JOIN school AS T2 ON T1.School_ID = T2.School_ID GROUP BY T2.Type ORDER BY COUNT(*)
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 2535, 41, 10546, 834, 4309, 16, 17, 6, 5570, 1499, 6, 3450, 1499, 6, 1210, 834, 6726, 1499, 6, 7526, 16, 17, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 496, 41, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 6632, 6, 2847, 17161, 599, 1935, 61, 21680, 496, 834, 3465, 6157, 332, 536, 3, 15355, 3162, 496, 6157, 332, 357, 9191, 332, 5411, 29364, 834, 4309, 3274, 332, 4416, 29364, 834, 4309, 350, 4630, 6880, 272, 476, 332, ...
Who was the incumbent in the election of henry garland dupr (d) unopposed?
CREATE TABLE table_1342426_18 ( incumbent VARCHAR, candidates VARCHAR )
SELECT incumbent FROM table_1342426_18 WHERE candidates = "Henry Garland Dupré (D) Unopposed"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 23747, 2266, 2688, 834, 2606, 41, 28406, 584, 4280, 28027, 6, 4341, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 2645, 47, 8, 28406, 16, 8, 4356, 13, 3, 3225, 65...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 28406, 21680, 953, 834, 23747, 2266, 2688, 834, 2606, 549, 17444, 427, 4341, 3274, 96, 566, 35, 651, 2776, 7721, 970, 16280, 41, 308, 61, 597, 28236, 3843, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
How many Matches have an S/Rate smaller than 133.72, and a Team of yorkshire carnegie?
CREATE TABLE table_name_96 (matches VARCHAR, s_rate VARCHAR, team VARCHAR)
SELECT COUNT(matches) FROM table_name_96 WHERE s_rate < 133.72 AND team = "yorkshire carnegie"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4314, 41, 19515, 15, 7, 584, 4280, 28027, 6, 3, 7, 834, 2206, 584, 4280, 28027, 6, 372, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 12296, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 19515, 15, 7, 61, 21680, 953, 834, 4350, 834, 4314, 549, 17444, 427, 3, 7, 834, 2206, 3, 2, 3, 22974, 5, 5865, 3430, 372, 3274, 96, 63, 127, 157, 5718, 15460, 4044, 121, 1, -100, -100, -100, -1...
Who were the co drivers past 1994 in the WSC class?
CREATE TABLE table_name_43 (co_drivers VARCHAR, year VARCHAR, class VARCHAR)
SELECT co_drivers FROM table_name_43 WHERE year > 1994 AND class = "wsc"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4906, 41, 509, 834, 13739, 52, 7, 584, 4280, 28027, 6, 215, 584, 4280, 28027, 6, 853, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 2645, 130, 8, 576, 386...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 576, 834, 13739, 52, 7, 21680, 953, 834, 4350, 834, 4906, 549, 17444, 427, 215, 2490, 7520, 3430, 853, 3274, 96, 210, 7, 75, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What is the sum of P desc with a P 2007 of 0,00 and a P, Ap 2008 less than 30,00, and a P CL 2008 that is more than 10,56?
CREATE TABLE table_59239 ( "Team" text, "P desc" real, "P 2007" real, "P Ap 2008" real, "P Cl 2008" real )
SELECT SUM("P desc") FROM table_59239 WHERE "P 2007" = '0,00' AND "P Ap 2008" < '30,00' AND "P Cl 2008" > '10,56'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3390, 357, 3288, 41, 96, 18699, 121, 1499, 6, 96, 345, 93, 75, 121, 490, 6, 96, 345, 4101, 121, 490, 6, 96, 345, 5085, 2628, 121, 490, 6, 96, 345, 4779, 2628, 121, 490,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 180, 6122, 599, 121, 345, 93, 75, 8512, 21680, 953, 834, 3390, 357, 3288, 549, 17444, 427, 96, 345, 4101, 121, 3274, 3, 31, 27229, 31, 3430, 96, 345, 5085, 2628, 121, 3, 2, 3, 31, 519, 27229, 31, 3430, 96, 345, ...
What is Gold, when Total is less than 4, when Silver is 1, and when Bronze is 1?
CREATE TABLE table_name_71 (gold VARCHAR, bronze VARCHAR, total VARCHAR, silver VARCHAR)
SELECT gold FROM table_name_71 WHERE total < 4 AND silver = "1" AND bronze = "1"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4450, 41, 14910, 584, 4280, 28027, 6, 13467, 584, 4280, 28027, 6, 792, 584, 4280, 28027, 6, 4294, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 254...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 3, 23143, 14196, 2045, 21680, 953, 834, 4350, 834, 4450, 549, 17444, 427, 792, 3, 2, 314, 3430, 4294, 3274, 96, 536, 121, 3430, 13467, 3274, 96, 536, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What digital reaction has a hot 100 reaction of 4 (+4)?
CREATE TABLE table_52335 ( "Week" text, "Performer(s)" text, "Hot 100 Reaction" text, "Hot Digital Songs Reaction" text, "Notes" text )
SELECT "Hot Digital Songs Reaction" FROM table_52335 WHERE "Hot 100 Reaction" = '4 (+4)'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 755, 2773, 2469, 41, 96, 518, 10266, 121, 1499, 6, 96, 12988, 2032, 49, 599, 7, 61, 121, 1499, 6, 96, 4489, 17, 910, 419, 4787, 121, 1499, 6, 96, 4489, 17, 4190, 18142, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 4489, 17, 4190, 18142, 419, 4787, 121, 21680, 953, 834, 755, 2773, 2469, 549, 17444, 427, 96, 4489, 17, 910, 419, 4787, 121, 3274, 3, 31, 591, 17134, 7256, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, ...
what is the crude birth rate (per 1000) when the live births 1 is 356 013?
CREATE TABLE table_49351 ( "Average population (x 1000)" text, "Live births 1" text, "Deaths 1" text, "Natural change 1" text, "Crude birth rate (per 1000)" real, "Crude death rate (per 1000)" real, "Natural change (per 1000)" real )
SELECT SUM("Crude birth rate (per 1000)") FROM table_49351 WHERE "Live births 1" = '356 013'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3647, 2469, 536, 41, 96, 188, 624, 545, 2074, 41, 226, 5580, 61, 121, 1499, 6, 96, 24179, 3879, 7, 209, 121, 1499, 6, 96, 2962, 9, 189, 7, 209, 121, 1499, 6, 96, 567, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 180, 6122, 599, 121, 254, 17237, 15, 3879, 1080, 41, 883, 5580, 61, 8512, 21680, 953, 834, 3647, 2469, 536, 549, 17444, 427, 96, 24179, 3879, 7, 209, 121, 3274, 3, 31, 2469, 948, 7088, 519, 31, 1, -100, -100, -100...