instruction
stringlengths
5
766
input
stringlengths
38
5.51k
response
stringlengths
4
3.91k
Show the carriers of devices in stock at more than one shop.
CREATE TABLE stock ( shop_id number, device_id number, quantity number ) CREATE TABLE device ( device_id number, device text, carrier text, package_version text, applications text, software_platform text ) CREATE TABLE shop ( shop_id number, shop_name text, location text, open_date text, open_year number )
SELECT T2.carrier FROM stock AS T1 JOIN device AS T2 ON T1.device_id = T2.device_id GROUP BY T1.device_id HAVING COUNT(*) > 1
List the location and number of fans in attendance for game 7/
CREATE TABLE table_25367 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text )
SELECT COUNT("Location Attendance") FROM table_25367 WHERE "Game" = '7'
What is the NBA draft result of the player from Dunbar High School?
CREATE TABLE table_58211 ( "Player" text, "Height" text, "School" text, "Hometown" text, "College" text, "NBA Draft" text )
SELECT "NBA Draft" FROM table_58211 WHERE "School" = 'dunbar high school'
Which country has a finish of t22?
CREATE TABLE table_name_87 ( country VARCHAR, finish VARCHAR )
SELECT country FROM table_name_87 WHERE finish = "t22"
Which Year is the highest one that has a Reg Season of 3rd, western, and a Division larger than 2?
CREATE TABLE table_name_30 ( year INTEGER, reg_season VARCHAR, division VARCHAR )
SELECT MAX(year) FROM table_name_30 WHERE reg_season = "3rd, western" AND division > 2
Which colleges does each player with a name that starts with the letter D who tried out go to?
CREATE TABLE player ( pid number, pname text, ycard text, hs number ) CREATE TABLE tryout ( pid number, cname text, ppos text, decision text ) CREATE TABLE college ( cname text, state text, enr number )
SELECT T1.cname FROM tryout AS T1 JOIN player AS T2 ON T1.pid = T2.pid WHERE T2.pname LIKE 'D%'
Where is the school located that has mustangs as a mascot?
CREATE TABLE table_14078 ( "School" text, "Location" text, "Mascot" text, "Enrollment" real, "IHSAA Class" text, "# / County" text )
SELECT "Location" FROM table_14078 WHERE "Mascot" = 'mustangs'
Name the least wins for 6 points
CREATE TABLE table_67186 ( "Year" real, "Class" text, "Team" text, "Points" real, "Rank" text, "Wins" real )
SELECT MIN("Wins") FROM table_67186 WHERE "Points" = '6'
Which Tournament has A in 1987?
CREATE TABLE table_34846 ( "Tournament" text, "1981" text, "1982" text, "1983" text, "1984" text, "1985" text, "1986" text, "1987" text, "1988" text, "1989" text )
SELECT "Tournament" FROM table_34846 WHERE "1987" = 'a'
what is the total number of garratts produced in 1911 ?
CREATE TABLE table_204_637 ( id number, "type" text, "gauge" text, "railway" text, "works no." text, "year" text, "builder" text )
SELECT COUNT(*) FROM table_204_637 WHERE "year" = 1911
how many mayors were in office for a total of 9 years ?
CREATE TABLE table_201_10 ( id number, "#" number, "name" text, "office" text, "political party" text, "occupation" text )
SELECT COUNT("name") FROM table_201_10 WHERE "office" - "office" = 9
What is 2000, when 1996 is 'A', when 1997 is 'A', and when 2007 is 'A'?
CREATE TABLE table_48509 ( "Tournament" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "Career WR" text, "Career Win-Loss" text )
SELECT "2000" FROM table_48509 WHERE "1996" = 'a' AND "1997" = 'a' AND "2007" = 'a'
Name the average bronze with silver more than 0, total of 6 and gold more than 0
CREATE TABLE table_name_27 ( bronze INTEGER, gold VARCHAR, silver VARCHAR, total VARCHAR )
SELECT AVG(bronze) FROM table_name_27 WHERE silver > 0 AND total = 6 AND gold > 0
Which Finish has a To par of 1, and a Year(s) won of 1955?
CREATE TABLE table_name_61 ( finish VARCHAR, to_par VARCHAR, year_s__won VARCHAR )
SELECT finish FROM table_name_61 WHERE to_par = "–1" AND year_s__won = "1955"
what is the lowest height (ft) for messeturm and more than 55 floors?
CREATE TABLE table_54024 ( "Rank" real, "Name" text, "City" text, "Height (m)" real, "Height (ft)" real, "Floors" real )
SELECT MIN("Height (ft)") FROM table_54024 WHERE "Name" = 'messeturm' AND "Floors" > '55'
What place is S.K. Ho in?
CREATE TABLE table_name_93 ( place VARCHAR, player VARCHAR )
SELECT place FROM table_name_93 WHERE player = "s.k. ho"
What week corresponds to the last one to be played at the memorial stadium?
CREATE TABLE table_10647401_1 ( week INTEGER, stadium VARCHAR )
SELECT MAX(week) FROM table_10647401_1 WHERE stadium = "Memorial stadium"
What is the lowest value for 1990, when the Region is East Asia (10 Economies), and when 1960 has a value less than 12.6?
CREATE TABLE table_48980 ( "Region" text, "1950" real, "1960" real, "1970" real, "1980" real, "1990" real, "2000" real )
SELECT MIN("1990") FROM table_48980 WHERE "Region" = 'east asia (10 economies)' AND "1960" < '12.6'
What is the height in ft for the rockets from 1973-78?
CREATE TABLE table_11734041_16 ( height_in_ft VARCHAR, years_for_rockets VARCHAR )
SELECT height_in_ft FROM table_11734041_16 WHERE years_for_rockets = "1973-78"
What directors won an award on 14/6/6?
CREATE TABLE table_68592 ( "Film" text, "Director(s)" text, "Recipient" text, "Date" text, "Award" text )
SELECT "Director(s)" FROM table_68592 WHERE "Date" = '14/6/6'
How many celebrities had an 18October2007 Original air Date?
CREATE TABLE table_16979 ( "Total No." real, "Celebrity" text, "Director" text, "Original air date" text, "Viewers" text )
SELECT COUNT("Celebrity") FROM table_16979 WHERE "Original air date" = '18October2007'
When st kilda played as the away team, what date was that?
CREATE TABLE table_54830 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT "Date" FROM table_54830 WHERE "Away team" = 'st kilda'
What is Channel 4 and Channel 4+1's rating in E4 and E4+1 when the ratings were 780,200?
CREATE TABLE table_41882 ( "Episode number" real, "Title" text, "Original airing on Channel 4" text, "Time of airing on Channel 4" text, "Original airing on E4" text, "Time of airing on E4" text, "Position in Channel 4 and Channel 4+1's ratings" text, "Position in E4 and E4+1's ratings" text )
SELECT "Position in Channel 4 and Channel 4+1's ratings" FROM table_41882 WHERE "Position in E4 and E4+1's ratings" = '780,200'
What are the maximum and minimum age of students with major 600?
CREATE TABLE student ( stuid number, lname text, fname text, age number, sex text, major number, advisor number, city_code text ) CREATE TABLE voting_record ( stuid number, registration_date text, election_cycle text, president_vote number, vice_president_vote number, secretary_vote number, treasurer_vote number, class_president_vote number, class_senator_vote number )
SELECT MAX(age), MIN(age) FROM student WHERE major = 600
What was the Lightning's record at their home game against Carolina with an attendance over 16,526 and a decision of Holmqvist?
CREATE TABLE table_53115 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Decision" text, "Attendance" real, "Record" text )
SELECT "Record" FROM table_53115 WHERE "Decision" = 'holmqvist' AND "Attendance" > '16,526' AND "Visitor" = 'carolina'
Which country has a FIS Nordic World Ski Championship before 1989, was in the winter Olympics before 1980, and has a Holmenkollen of 1956?
CREATE TABLE table_49289 ( "Winner" text, "Country" text, "Winter Olympics" real, "FIS Nordic World Ski Championships" real, "Holmenkollen" text )
SELECT "Country" FROM table_49289 WHERE "FIS Nordic World Ski Championships" < '1989' AND "Winter Olympics" < '1980' AND "Holmenkollen" = '1956'
What date did Ben Gordon (8) have high assists?
CREATE TABLE table_name_20 ( date VARCHAR, high_assists VARCHAR )
SELECT date FROM table_name_20 WHERE high_assists = "ben gordon (8)"
Name the class for 4th position with year before 2006
CREATE TABLE table_name_67 ( class VARCHAR, pos VARCHAR, year VARCHAR )
SELECT class FROM table_name_67 WHERE pos = "4th" AND year < 2006
What's the Outcome for the Date of July 16, 2011?
CREATE TABLE table_69732 ( "Outcome" text, "Date" text, "Surface" text, "Partner" text, "Opponents" text, "Score" text )
SELECT "Outcome" FROM table_69732 WHERE "Date" = 'july 16, 2011'
What's the performance of Dire Tune?
CREATE TABLE table_name_89 ( performance VARCHAR, athlete VARCHAR )
SELECT performance FROM table_name_89 WHERE athlete = "dire tune"
in the irish national final for the eurovision song contest in 1990 , the artist singing which song received third place ?
CREATE TABLE table_203_695 ( id number, "draw" number, "artist" text, "song" text, "points" number, "place" text )
SELECT "artist" FROM table_203_695 WHERE "place" = 3
How many opponents did the Sun Devils play when they scored 41 points?
CREATE TABLE table_2401 ( "Game" real, "Date" text, "Opponent" text, "Result" text, "Sun Devils points" real, "Opponents" real, "Record" text )
SELECT COUNT("Opponent") FROM table_2401 WHERE "Sun Devils points" = '41'
What is the date with identifying number of No. 37817?
CREATE TABLE table_57923 ( "Number & name" text, "Description" text, "Current status" text, "Livery" text, "Date" real )
SELECT "Date" FROM table_57923 WHERE "Number & name" = 'no. 37817'
desideria ampon won the bronze medal the same year as who else ?
CREATE TABLE table_204_765 ( id number, "year" number, "location" text, "gold" text, "silver" text, "bronze" text )
SELECT "bronze" FROM table_204_765 WHERE "bronze" <> 'desideria ampon' AND "year" = (SELECT "year" FROM table_204_765 WHERE "bronze" = 'desideria ampon')
After 1961, who as the Entrant when the engine was a Ferrari v8, and when the points were lower than 23?
CREATE TABLE table_name_64 ( entrant VARCHAR, points VARCHAR, year VARCHAR, engine VARCHAR )
SELECT entrant FROM table_name_64 WHERE year > 1961 AND engine = "ferrari v8" AND points < 23
what is the highest gnis feature id# link a[ ] b[ ] when the name a[ ] is upper dewey lake dam?
CREATE TABLE table_14299 ( "Name A[\u203a ]" text, "Dam or A[\u203a ] Reservoir" text, "GNIS Feature ID # Link A[\u203a ] B[\u203a ]" real, "Elevation A[\u203a ]" text, "Borough or A[\u203a ] Census area" text )
SELECT MAX("GNIS Feature ID # Link A[\u203a ] B[\u203a ]") FROM table_14299 WHERE "Name A[\u203a ]" = 'upper dewey lake dam'
How many semifinalists had a total less than 2, 1st RU greater than 0, 2nd RU was 0 and Miss United Continent of 0?
CREATE TABLE table_44305 ( "Rank" real, "Country" text, "Miss United Continent" real, "Virreina" real, "1st RU" real, "2nd RU" real, "3rd RU" real, "4th RU" real, "Semifinalists" real, "Total" real )
SELECT COUNT("Semifinalists") FROM table_44305 WHERE "Miss United Continent" = '0' AND "2nd RU" = '0' AND "1st RU" > '0' AND "Total" < '2'
What was the 1st leg of the match that had an aggregate of 4-3?
CREATE TABLE table_34521 ( "Team 1" text, "Agg." text, "Team 2" text, "1st leg" text, "2nd leg" text )
SELECT "1st leg" FROM table_34521 WHERE "Agg." = '4-3'
What is the type of video game Call of Destiny.
CREATE TABLE student ( stuid number, lname text, fname text, age number, sex text, major number, advisor number, city_code text ) CREATE TABLE plays_games ( stuid number, gameid number, hours_played number ) CREATE TABLE sportsinfo ( stuid number, sportname text, hoursperweek number, gamesplayed number, onscholarship text ) CREATE TABLE video_games ( gameid number, gname text, gtype text )
SELECT gtype FROM video_games WHERE gname = "Call of Destiny"
List all results where the voting district is Maryland 7.
CREATE TABLE table_18357 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text, "Candidates" text )
SELECT "Result" FROM table_18357 WHERE "District" = 'Maryland 7'
Which representative has a Termination of MIssion date Mar 25, 1976?
CREATE TABLE table_name_59 ( representative VARCHAR, termination_of_mission VARCHAR )
SELECT representative FROM table_name_59 WHERE termination_of_mission = "mar 25, 1976"
What is the name of the airport with an IATA of KUF?
CREATE TABLE table_name_68 ( airport VARCHAR, iata VARCHAR )
SELECT airport FROM table_name_68 WHERE iata = "kuf"
What was the team's position when the new manager was Lucas Alcaraz?
CREATE TABLE table_21420 ( "Team" text, "Outgoing manager" text, "Manner of departure" text, "Date of vacancy" text, "Replaced by" text, "Date of appointment" text, "Position in table" text )
SELECT "Position in table" FROM table_21420 WHERE "Replaced by" = 'Lucas Alcaraz'
What is the sales when the artist is kelly clarkson?
CREATE TABLE table_14044 ( "Rank" real, "Artist" text, "Album" text, "Peak position" text, "Sales" real, "Certification" text )
SELECT COUNT("Sales") FROM table_14044 WHERE "Artist" = 'kelly clarkson'
What is Adam's score when Peter's score is less than 3 and the plat'num is greater than 6?
CREATE TABLE table_38655 ( "Discipline" text, "Peter" real, "Adam" real, "Jade" real, "Plat'num" real )
SELECT MIN("Adam") FROM table_38655 WHERE "Peter" < '3' AND "Plat'num" > '6'
What is the highest Attendance with a Result that is w 24-21?
CREATE TABLE table_name_50 ( attendance INTEGER, result VARCHAR )
SELECT MAX(attendance) FROM table_name_50 WHERE result = "w 24-21"
What title did Bill Foster direct ?
CREATE TABLE table_25276528_2 ( title VARCHAR, directed_by VARCHAR )
SELECT title FROM table_25276528_2 WHERE directed_by = "Bill Foster"
How many Points have a Position larger than 4, and Losses larger than 5, and a Conceded of 15, and a Scored larger than 11?
CREATE TABLE table_63139 ( "Position" real, "Team" text, "Played" real, "Wins" real, "Draws P.K. Wins / P.K. Losses" text, "Losses" real, "Scored" real, "Conceded" real, "Points" real )
SELECT COUNT("Points") FROM table_63139 WHERE "Position" > '4' AND "Losses" > '5' AND "Conceded" = '15' AND "Scored" > '11'
What is the Music for Team anna guzik & rafa kami ski that has a Points Jury of 24 (7,5,6,6)?
CREATE TABLE table_43108 ( "Team" text, "Dance" text, "Music" text, "Points jury" text, "Place" text )
SELECT "Music" FROM table_43108 WHERE "Team" = 'anna guzik & rafał kamiński' AND "Points jury" = '24 (7,5,6,6)'
as of october 25 , 2005 , how many voters are either democratic or republican ?
CREATE TABLE table_200_35 ( id number, "party" text, "active voters" number, "inactive voters" number, "total voters" number, "percentage" text )
SELECT SUM("total voters") FROM table_200_35 WHERE "party" IN ('democratic', 'republican')
where was the last competition held according to this chart ?
CREATE TABLE table_203_646 ( id number, "year" number, "competition" text, "venue" text, "position" text, "notes" text )
SELECT "venue" FROM table_203_646 ORDER BY "year" DESC LIMIT 1
What was the smallest crowd that Melbourne played for at home?
CREATE TABLE table_name_18 ( crowd INTEGER, home_team VARCHAR )
SELECT MIN(crowd) FROM table_name_18 WHERE home_team = "melbourne"
In what district was the successor seated August 31, 1943?
CREATE TABLE table_24498 ( "District" text, "Vacator" text, "Reason for change" text, "Successor" text, "Date successor seated" text )
SELECT "District" FROM table_24498 WHERE "Date successor seated" = 'August 31, 1943'
Who placed in t5 and scored 73-69-68=210?
CREATE TABLE table_name_76 ( player VARCHAR, place VARCHAR, score VARCHAR )
SELECT player FROM table_name_76 WHERE place = "t5" AND score = 73 - 69 - 68 = 210
Name the total number of weeks for si te vas and peak less than 7 and year less than 2000
CREATE TABLE table_75128 ( "Year" real, "Chart" text, "Track" text, "Peak" real, "Weeks on Chart" real )
SELECT COUNT("Weeks on Chart") FROM table_75128 WHERE "Track" = 'si te vas' AND "Peak" < '7' AND "Year" < '2000'
What's the average amount of Runs that has 40 innings, and Not outs larger than 6?
CREATE TABLE table_name_70 ( runs INTEGER, innings VARCHAR, not_outs VARCHAR )
SELECT AVG(runs) FROM table_name_70 WHERE innings = 40 AND not_outs > 6
Who was the deceased spouse who was married for 4 years?
CREATE TABLE table_26633 ( "Name" text, "Deceased Spouse" text, "Cause of Death" text, "Date of Spouses Death" text, "Length of Marriage" text, "Children Together" text, "Current Marital Status" text )
SELECT "Deceased Spouse" FROM table_26633 WHERE "Length of Marriage" = '4 years'
How many people were present at the July 10 game?
CREATE TABLE table_24619 ( "Week" real, "Date" text, "Opponent" text, "Location" text, "Final Score" text, "Attendance" real, "Record" text )
SELECT "Attendance" FROM table_24619 WHERE "Date" = 'July 10'
Find All_Games and Team_ID , and visualize them by a bar chart, and could you display by the x-axis in desc?
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 All_Games, Team_ID FROM basketball_match ORDER BY All_Games DESC
What was the founding of navy blue?
CREATE TABLE table_16916 ( "Institution" text, "Nickname" text, "Status" text, "Founded" real, "Color" text, "Location" text )
SELECT "Founded" FROM table_16916 WHERE "Color" = 'Navy Blue'
How many regions have 0.5% solar panels?
CREATE TABLE table_27330 ( "Region" text, "Public network" text, "Own/community generator" text, "Solar panel" text, "Other source" text, "None" text )
SELECT COUNT("Public network") FROM table_27330 WHERE "Solar panel" = '0.5%'
What is the sum of Weight for the person born in virginia, minnesota?
CREATE TABLE table_6843 ( "Position" text, "Name" text, "Height (cm)" real, "Weight (kg)" real, "Birthdate" text, "Birthplace" text, "1997\u20131998 Team" text )
SELECT SUM("Weight (kg)") FROM table_6843 WHERE "Birthplace" = 'virginia, minnesota'
What is City, when State is California, when AAM Accredited is No, when ASTC Member is Yes, and when AAM Member is No?
CREATE TABLE table_42124 ( "City" text, "State" text, "AAM Accredited" text, "AAM Member" text, "ASTC Member" text )
SELECT "City" FROM table_42124 WHERE "State" = 'california' AND "AAM Accredited" = 'no' AND "ASTC Member" = 'yes' AND "AAM Member" = 'no'
Which month has the most happy hours?
CREATE TABLE happy_hour ( hh_id number, shop_id number, month text, num_of_shaff_in_charge number ) CREATE TABLE member ( member_id number, name text, membership_card text, age number, time_of_purchase number, level_of_membership number, address text ) CREATE TABLE shop ( shop_id number, address text, num_of_staff text, score number, open_year text ) CREATE TABLE happy_hour_member ( hh_id number, member_id number, total_amount number )
SELECT month FROM happy_hour GROUP BY month ORDER BY COUNT(*) DESC LIMIT 1
What committees do the district 46 members serve on?
CREATE TABLE table_3695 ( "District" text, "Counties Represented" text, "Delegate" text, "Party" text, "First Elected" real, "Committee" text )
SELECT "Committee" FROM table_3695 WHERE "District" = '46'
Which Lost has a Position larger than 5, and Points 1 of 37, and less than 63 Goals Against?
CREATE TABLE table_name_87 ( lost INTEGER, goals_against VARCHAR, position VARCHAR, points_1 VARCHAR )
SELECT AVG(lost) FROM table_name_87 WHERE position > 5 AND points_1 = "37" AND goals_against < 63
Tell me the average rank for dharma productions before 2013
CREATE TABLE table_52205 ( "Rank" real, "Movie" text, "Year" real, "Studio(s)" text, "Third Week Nett. Gross" real )
SELECT AVG("Rank") FROM table_52205 WHERE "Studio(s)" = 'dharma productions' AND "Year" < '2013'
What was the value in 2012 when 2002 was Q1 and 2010 was 1R?
CREATE TABLE table_71531 ( "Tournament" text, "2001" text, "2002" text, "2003" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text )
SELECT "2012" FROM table_71531 WHERE "2002" = 'q1' AND "2010" = '1r'
what is the number of races won in in 2012 by etienne bax ?
CREATE TABLE table_203_425 ( id number, "season" number, "driver" text, "equipment" text, "position" number, "points" number, "races" number, "wins" number, "second" number, "third" number )
SELECT "wins" FROM table_203_425 WHERE "season" = 2012 AND "driver" = 'etienne bax'
What is the location of the Moorabbin Oval stadium?
CREATE TABLE table_28885977_1 ( location VARCHAR, stadium VARCHAR )
SELECT location FROM table_28885977_1 WHERE stadium = "Moorabbin Oval"
What is the First Pref Votes for the % FPv of 0.06?
CREATE TABLE table_9516 ( "Party" text, "Leader" text, "Seats" text, "% of seats" text, "First Pref votes" text, "% FPv" text )
SELECT "First Pref votes" FROM table_9516 WHERE "% FPv" = '0.06'
What date were the high rebounds Evans (14)?
CREATE TABLE table_52677 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Series" text )
SELECT "Date" FROM table_52677 WHERE "High rebounds" = 'evans (14)'
What team has +119 Points diff?
CREATE TABLE table_44341 ( "Team" text, "Tries for" text, "Tries against" text, "Try diff" text, "Points for" text, "Points against" text, "Points diff" text )
SELECT "Team" FROM table_44341 WHERE "Points diff" = '+119'
Which Country has a Rank of 5?
CREATE TABLE table_name_23 ( country VARCHAR, rank VARCHAR )
SELECT country FROM table_name_23 WHERE rank = 5
Name the report with cuban race
CREATE TABLE table_53312 ( "Name" text, "Circuit" text, "Date" text, "Winning driver" text, "Winning constructor" text, "Report" text )
SELECT "Report" FROM table_53312 WHERE "Name" = 'cuban race'
What is the total work number of Gowrie after 1875?
CREATE TABLE table_11413 ( "Name" text, "Builder" text, "Type" text, "Date" real, "Works number" real )
SELECT SUM("Works number") FROM table_11413 WHERE "Date" > '1875' AND "Name" = 'gowrie'
What is the full number of New Council when the previous council was 54 and the staying councilor number is bigger than 36?
CREATE TABLE table_name_82 ( new_council VARCHAR, previous_council VARCHAR, staying_councillors VARCHAR )
SELECT COUNT(new_council) FROM table_name_82 WHERE previous_council = 54 AND staying_councillors > 36
Give me the names of members whose address is in Harford or Waterbury.
CREATE TABLE happy_hour_member ( hh_id number, member_id number, total_amount number ) CREATE TABLE member ( member_id number, name text, membership_card text, age number, time_of_purchase number, level_of_membership number, address text ) CREATE TABLE happy_hour ( hh_id number, shop_id number, month text, num_of_shaff_in_charge number ) CREATE TABLE shop ( shop_id number, address text, num_of_staff text, score number, open_year text )
SELECT name FROM member WHERE address = 'Harford' OR address = 'Waterbury'
Who are the rowers with the time of 5:54.57?
CREATE TABLE table_65543 ( "Rank" real, "Rowers" text, "Country" text, "Time" text, "Notes" text )
SELECT "Rowers" FROM table_65543 WHERE "Time" = '5:54.57'
Which Monday Mona/Mani also had a Thursday Thunor/Thor of Tongersdei?
CREATE TABLE table_66876 ( "Sunday Sunna/S\u00f3l" text, "Monday Mona/ M\u00e1ni" text, "Tuesday Tiw/ Tyr" text, "Wednesday Woden / Odin" text, "Thursday Thunor / Thor" text, "Friday Frige or Freya" text, "Saturday Saturn" text )
SELECT "Monday Mona/ M\u00e1ni" FROM table_66876 WHERE "Thursday Thunor / Thor" = 'tongersdei'
Who was Milwaukee's opponent?
CREATE TABLE table_14309 ( "Date" text, "Opponent" text, "City" text, "Result" text, "Score" text )
SELECT "Opponent" FROM table_14309 WHERE "City" = 'milwaukee'
an intravenous steroid administered for septic shock, except for those patients who were tested and are responders to a corticotropin stimulation test, or patients who do not receive a steroid due to the clinical judgment of the treating physician, based on an alternate assessment ( e.g. normal baseline cortisol ) .
CREATE TABLE table_train_65 ( "id" int, "intention_to_arterial_catheter" bool, "steroid_therapy" bool, "intention_to_central_venous_catheter" bool, "central_venous_pressure_cvp" int, "receiving_vasopressor" bool, "pulmonary_artery_occlusive_pressure_paop" int, "septic_shock" bool, "age" float, "NOUSE" float )
SELECT * FROM table_train_65 WHERE steroid_therapy = 1 AND septic_shock = 1
Which visiting team wound up with a final score of 18-40?
CREATE TABLE table_71822 ( "Date" text, "Visiting Team" text, "Final Score" text, "Host Team" text, "Stadium" text )
SELECT "Visiting Team" FROM table_71822 WHERE "Final Score" = '18-40'
Who has Took Office of march 4, 1875?
CREATE TABLE table_52716 ( "Name" text, "Took Office" text, "Left Office" text, "Party" text, "District Residence" text )
SELECT "Name" FROM table_52716 WHERE "Took Office" = 'march 4, 1875'
How many leading scorers were there in the game against Utah?
CREATE TABLE table_18818 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text )
SELECT COUNT("High points") FROM table_18818 WHERE "Team" = 'Utah'
what is the flash size difference in the at90s8515 chip and the at90s4414 ?
CREATE TABLE table_204_416 ( id number, "chip" text, "flash size" text, "eeprom" number, "sram" number, "frequency\n[mhz]" number, "package" text )
SELECT ABS((SELECT "flash size" FROM table_204_416 WHERE "chip" = 'at90s8515') - (SELECT "flash size" FROM table_204_416 WHERE "chip" = 'at90s4414'))
Name the replaced by for 8 july 2009
CREATE TABLE table_2665 ( "Team" text, "Outgoing manager" text, "Manner of departure" text, "Date of vacancy" text, "Replaced by" text, "Date of appointment" text, "Position in table" text )
SELECT "Replaced by" FROM table_2665 WHERE "Date of appointment" = '8 July 2009'
Which Condition has a Bleeding time of unaffected, and a Partial thromboplastin time of prolonged, and a Prothrombin time of unaffected?
CREATE TABLE table_74970 ( "Condition" text, "Prothrombin time" text, "Partial thromboplastin time" text, "Bleeding time" text, "Platelet count" text )
SELECT "Condition" FROM table_74970 WHERE "Bleeding time" = 'unaffected' AND "Partial thromboplastin time" = 'prolonged' AND "Prothrombin time" = 'unaffected'
What is the league that has the pick #160?
CREATE TABLE table_name_36 ( league_from VARCHAR, pick__number VARCHAR )
SELECT league_from FROM table_name_36 WHERE pick__number = 160
Which producer worked for Animus Films LTD?
CREATE TABLE table_name_42 ( producer_s_ VARCHAR, recipient VARCHAR )
SELECT producer_s_ FROM table_name_42 WHERE recipient = "animus films ltd"
What was the lowest attendance at Windy Hill?
CREATE TABLE table_name_77 ( crowd INTEGER, venue VARCHAR )
SELECT MIN(crowd) FROM table_name_77 WHERE venue = "windy hill"
yankee stadium (i), and a Time of 3:00 has what attendance for this location?
CREATE TABLE table_79861 ( "Game" real, "Date" text, "Location" text, "Time" text, "Attendance" real )
SELECT "Attendance" FROM table_79861 WHERE "Location" = 'yankee stadium (i)' AND "Time" = '3:00'
What is the rank for the team that had a time of 6:41.45 and note FA?
CREATE TABLE table_63442 ( "Rank" real, "Rowers" text, "Country" text, "Time" text, "Notes" text )
SELECT SUM("Rank") FROM table_63442 WHERE "Notes" = 'fa' AND "Time" = '6:41.45'
Who is the opponent for week 5?
CREATE TABLE table_name_96 ( opponent VARCHAR, week VARCHAR )
SELECT opponent FROM table_name_96 WHERE week = 5
What date did the T328 that entered service on 18 June 1956 re-enter service?
CREATE TABLE table_name_22 ( re_entered_service__p_ VARCHAR, entered_service__t_ VARCHAR, pre_conversion VARCHAR )
SELECT re_entered_service__p_ FROM table_name_22 WHERE entered_service__t_ = "18 june 1956" AND pre_conversion = "t328"
What Date has a Result of l 21 34?
CREATE TABLE table_name_31 ( date VARCHAR, result VARCHAR )
SELECT date FROM table_name_31 WHERE result = "l 21–34"
Group by the result and count them by a bar chart.
CREATE TABLE submission ( Submission_ID int, Scores real, Author text, College text ) CREATE TABLE Acceptance ( Submission_ID int, Workshop_ID int, Result text ) CREATE TABLE workshop ( Workshop_ID int, Date text, Venue text, Name text )
SELECT Result, COUNT(Result) FROM Acceptance GROUP BY Result
what is the time/retired when the laps is 55?
CREATE TABLE table_name_96 ( time_retired VARCHAR, laps VARCHAR )
SELECT time_retired FROM table_name_96 WHERE laps = 55
What is the resulting score for the episodes where Rufus's guest is Sean Lock?
CREATE TABLE table_19930660_3 ( winner VARCHAR, rufus_guest VARCHAR )
SELECT winner FROM table_19930660_3 WHERE rufus_guest = "Sean Lock"
Name the club when tries for is 83
CREATE TABLE table_13564702_3 ( club VARCHAR, tries_for VARCHAR )
SELECT club FROM table_13564702_3 WHERE tries_for = "83"