instruction
stringlengths
12
317
input
stringlengths
38
973
response
stringlengths
25
526
What was the result when the opponent was manchester united in venue h?
CREATE TABLE table_44303 ( "Date" text, "Round" text, "Opponent" text, "Venue" text, "Result" text, "Attendance" real )
SELECT "Result" FROM table_44303 WHERE "Opponent" = 'manchester united' AND "Venue" = 'h'
Can you tell me the sum of Money ($) that has the Score of 69-72-67-71=279, and the Player of loren roberts?
CREATE TABLE table_name_84 ( money___ INTEGER, player VARCHAR, score VARCHAR )
SELECT SUM(money___) AS $__ FROM table_name_84 WHERE score = 69 - 72 - 67 - 71 = 279 AND player = "loren roberts"
What is the total of overall values with a safety position in a round greater than 1?
CREATE TABLE table_name_26 ( overall VARCHAR, position VARCHAR, round VARCHAR )
SELECT COUNT(overall) FROM table_name_26 WHERE position = "safety" AND round > 1
What is the total for guests with a ship name of rv indochina, and a crew smaller than 28?
CREATE TABLE table_65764 ( "Ship name" text, "Year built" real, "Length" text, "Crew" real, "Guests" real, "Staterooms" real, "Comments" text )
SELECT COUNT("Guests") FROM table_65764 WHERE "Ship name" = 'rv indochina' AND "Crew" < '28'
What year was Sam Kazman a producer?
CREATE TABLE table_name_35 ( year VARCHAR, producer VARCHAR )
SELECT year FROM table_name_35 WHERE producer = "sam kazman"
How many yards per attempt have net yards greater than 631?
CREATE TABLE table_name_17 ( yards_per_attempt INTEGER, net_yards INTEGER )
SELECT SUM(yards_per_attempt) FROM table_name_17 WHERE net_yards > 631
What is the home for the away of 4-0?
CREATE TABLE table_name_1 ( home VARCHAR, away VARCHAR )
SELECT home FROM table_name_1 WHERE away = "4-0"
Name the number of rank for 9.52 profits
CREATE TABLE table_21123 ( "Rank" real, "Company" text, "Country" text, "Industry" text, "Sales (billion $)" text, "Profits (billion $)" text, "Assets (billion $)" text, "Market Value (billion $)" text )
SELECT COUNT("Rank") FROM table_21123 WHERE "Profits (billion $)" = '9.52'
what is the sspec number when the socket is standard power?
CREATE TABLE table_name_75 ( sspec_number VARCHAR, socket VARCHAR )
SELECT sspec_number FROM table_name_75 WHERE socket = "standard power"
What team has a high score with tracy mcgrady (24)?
CREATE TABLE table_5814 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "Location Attendance" text, "Record" text )
SELECT "Team" FROM table_5814 WHERE "High points" = 'tracy mcgrady (24)'
What is the genre of the Mass Effect game?
CREATE TABLE table_name_14 ( genre VARCHAR, game VARCHAR )
SELECT genre FROM table_name_14 WHERE game = "mass effect"
What date was there a crowd larger than 30,343?
CREATE TABLE table_32164 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT "Date" FROM table_32164 WHERE "Crowd" > '30,343'
What is the score in the final of the tournament with a clay surface on 18 April 2011?
CREATE TABLE table_13705 ( "Outcome" text, "Date" text, "Tournament" text, "Surface" text, "Opponent in the final" text, "Score in the final" text )
SELECT "Score in the final" FROM table_13705 WHERE "Surface" = 'clay' AND "Date" = '18 april 2011'
What is the population of Chimbote?
CREATE TABLE table_name_38 ( population INTEGER, name_of_city VARCHAR )
SELECT SUM(population) FROM table_name_38 WHERE name_of_city = "chimbote"
What was the date of the game when Atlanta was the home team?
CREATE TABLE table_51441 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Decision" text, "Attendance" real, "Record" text )
SELECT "Date" FROM table_51441 WHERE "Home" = 'atlanta'
what is the total of new points that have been given ?
CREATE TABLE table_204_651 ( id number, "date" text, "championship" text, "location" text, "category" text, "surface" text, "prev. result" text, "prev. points" number, "new points" number, "outcome" text )
SELECT SUM("new points") FROM table_204_651
For those records from the products and each product's manufacturer, find founder and the average of revenue , and group by attribute founder, and visualize them by a bar chart, I want to list X in descending order please.
CREATE TABLE Manufacturers ( Code INTEGER, Name VARCHAR(255), Headquarter VARCHAR(255), Founder VARCHAR(255), Revenue REAL ) CREATE TABLE Products ( Code INTEGER, Name VARCHAR(255), Price DECIMAL, Manufacturer INTEGER )
SELECT Founder, AVG(Revenue) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder ORDER BY Founder DESC
What was the away team that faced Carlton?
CREATE TABLE table_32245 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT "Away team" FROM table_32245 WHERE "Home team" = 'carlton'
What is the score for Billy Andrade?
CREATE TABLE table_8435 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text )
SELECT "Score" FROM table_8435 WHERE "Player" = 'billy andrade'
What is the score when the attendance is less than 83 and Raunds Town is the away team?
CREATE TABLE table_name_91 ( score VARCHAR, attendance VARCHAR, away_team VARCHAR )
SELECT score FROM table_name_91 WHERE attendance < 83 AND away_team = "raunds town"
Which championship after 1985 had a winning score of 8 (68-72-69-71=280)?
CREATE TABLE table_name_17 ( championship VARCHAR, year VARCHAR, winning_score VARCHAR )
SELECT championship FROM table_name_17 WHERE year > 1985 AND winning_score = –8(68 - 72 - 69 - 71 = 280)
Which Yacht Club is part of the America 3 Foundation syndicate on the America 3 yacht?
CREATE TABLE table_name_84 ( yacht VARCHAR, syndicate VARCHAR )
SELECT yacht AS Club FROM table_name_84 WHERE syndicate = "america 3 foundation" AND yacht = "america 3"
What was the active period for the pop genre?
CREATE TABLE table_15678 ( "Artist" text, "Country of origin" text, "Period active" text, "Release-year of first charted record" real, "Genre" text, "Claimed sales" text )
SELECT "Period active" FROM table_15678 WHERE "Genre" = 'pop'
What is the name in Basque of the municipality whose official name is Kuartango?
CREATE TABLE table_300283_1 ( name_in_basque VARCHAR, official_name VARCHAR )
SELECT name_in_basque FROM table_300283_1 WHERE official_name = "Kuartango"
When the change (2011 to 2012) is +13.4% what is the country?
CREATE TABLE table_14752049_6 ( country VARCHAR, change__2011_to_2012_ VARCHAR )
SELECT country FROM table_14752049_6 WHERE change__2011_to_2012_ = "+13.4%"
Who is team 1 when team 2 is koper?
CREATE TABLE table_19294812_2 ( team_1 VARCHAR, team_2 VARCHAR )
SELECT team_1 FROM table_19294812_2 WHERE team_2 = "Koper"
What was the record set during the game played at Hubert H. Humphrey Metrodome?
CREATE TABLE table_13258851_2 ( record VARCHAR, game_site VARCHAR )
SELECT record FROM table_13258851_2 WHERE game_site = "Hubert H. Humphrey Metrodome"
Which series with a total of 27 albums did Dargaud edit?
CREATE TABLE table_52044 ( "Series" text, "Years" text, "Magazine" text, "Albums" text, "Editor" text )
SELECT "Series" FROM table_52044 WHERE "Editor" = 'dargaud' AND "Albums" = '27'
What is the lowest pick of player paul stasiuk from a round greater than 12?
CREATE TABLE table_12800 ( "Draft" real, "Round" real, "Pick" real, "Player" text, "Nationality" text )
SELECT MIN("Pick") FROM table_12800 WHERE "Player" = 'paul stasiuk' AND "Round" > '12'
Where was the game against the buffalo sabres?
CREATE TABLE table_name_27 ( location VARCHAR, opponent VARCHAR )
SELECT location FROM table_name_27 WHERE opponent = "buffalo sabres"
What year did jockey Ramon Dominguez have a distance of 1-1/16?
CREATE TABLE table_53833 ( "Year" text, "Winner" text, "Jockey" text, "Trainer" text, "Owner" text, "Distance" text, "Time" text, "Purse" text )
SELECT "Year" FROM table_53833 WHERE "Distance" = '1-1/16' AND "Jockey" = 'ramon dominguez'
What Label has a Catalog of 486 136-2?
CREATE TABLE table_name_13 ( label VARCHAR, catalog VARCHAR )
SELECT label FROM table_name_13 WHERE catalog = "486 136-2"
What position did the sheffield eagles finish in?
CREATE TABLE table_17926 ( "Position" real, "Club" text, "Played" real, "Won" real, "Drawn" real, "Lost" real, "Pts For" real, "Pts Agst" real, "B.P." real, "Points" real )
SELECT MAX("Position") FROM table_17926 WHERE "Club" = 'Sheffield Eagles'
What is the track in Washington state?
CREATE TABLE table_35698 ( "Track" text, "City" text, "State" text, "Opened (closing date if defunct)" text, "Surface" text, "Length" text )
SELECT "Track" FROM table_35698 WHERE "State" = 'washington'
What is the total where there are 4 MLS Cups and more US Open Cups than 1?
CREATE TABLE table_58991 ( "Name" text, "Years" text, "MLS Cup" real, "U.S. Open Cup" real, "CONCACAF" real, "Other" real, "Total" real )
SELECT COUNT("Total") FROM table_58991 WHERE "MLS Cup" = '4' AND "U.S. Open Cup" > '1'
How many finals had more than 0 goals and 8 assists?
CREATE TABLE table_63272 ( "Name" text, "Games" text, "A-League" text, "Finals" text, "Goals" real, "Assists" real, "Years" text )
SELECT "Finals" FROM table_63272 WHERE "Goals" > '0' AND "Assists" = '8'
Name the 3rd place with winners of weymouth wildcats and 4th place of boston barracudas
CREATE TABLE table_69694 ( "Year" real, "Winners" text, "2nd place" text, "3rd place" text, "4th place" text )
SELECT "3rd place" FROM table_69694 WHERE "Winners" = 'weymouth wildcats' AND "4th place" = 'boston barracudas'
What is the long-term capital gain rate when the long-term gain on commercial buildings is 25% and long term gain on collectibles is 28% while short-term capital gain rate is 33%?
CREATE TABLE table_55784 ( "Ordinary income rate" text, "Long-term capital gain rate" text, "Short-term capital gain rate" text, "Long-term gain on commercial buildings*" text, "Long-term gain on collectibles" text )
SELECT "Long-term capital gain rate" FROM table_55784 WHERE "Long-term gain on commercial buildings*" = '25%' AND "Long-term gain on collectibles" = '28%' AND "Short-term capital gain rate" = '33%'
what is france and germany 's deficit combined ?
CREATE TABLE table_204_466 ( id number, "rank" number, "bib" number, "country" text, "time" text, "penalties (p+s)" text, "deficit" text )
SELECT SUM("deficit") FROM table_204_466 WHERE "country" IN ('france', 'germany')
What is the broadcast date with 7.0 million viewers?
CREATE TABLE table_59775 ( "Episode" text, "Broadcast date" text, "Run time" text, "Viewers (in millions)" text, "Archive" text )
SELECT "Broadcast date" FROM table_59775 WHERE "Viewers (in millions)" = '7.0'
Find the full name of employee who supported the most number of customers.
CREATE TABLE employees ( first_name VARCHAR, last_name VARCHAR, id VARCHAR ) CREATE TABLE customers ( support_rep_id VARCHAR )
SELECT T1.first_name, T1.last_name FROM employees AS T1 JOIN customers AS T2 ON T1.id = T2.support_rep_id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 1
Which player had a position of OT during round 27?
CREATE TABLE table_9768 ( "Round" real, "Pick" real, "Overall" real, "Name" text, "Position" text, "College" text )
SELECT "Name" FROM table_9768 WHERE "Position" = 'ot' AND "Round" = '27'
Was there HDTV when the service was Priv ?
CREATE TABLE table_20385 ( "N\u00b0" real, "Television service" text, "Country" text, "Language" text, "Content" text, "DAR" text, "HDTV" text, "PPV" text, "Package/Option" text )
SELECT "HDTV" FROM table_20385 WHERE "Television service" = 'PRIVÈ'
What is the score for the player who won $3,600?
CREATE TABLE table_name_40 ( score VARCHAR, money___$__ VARCHAR )
SELECT score FROM table_name_40 WHERE money___$__ = "3,600"
The common of Chieri has what population density?
CREATE TABLE table_1449176_1 ( density__inhabitants_km_2__ VARCHAR, common_of VARCHAR )
SELECT density__inhabitants_km_2__ FROM table_1449176_1 WHERE common_of = "Chieri"
nelsano albano served in the same year as which washington twp . member ?
CREATE TABLE table_204_699 ( id number, "district" text, "name" text, "party" text, "residence" text, "first served" number )
SELECT "name" FROM table_204_699 WHERE "name" <> 'nelson albano' AND "first served" = (SELECT "first served" FROM table_204_699 WHERE "name" = 'nelson albano') AND "residence" = 'washington twp'
Which couple participated in the Paso Doble style and were safe?
CREATE TABLE table_name_91 ( couple VARCHAR, results VARCHAR, style VARCHAR )
SELECT couple FROM table_name_91 WHERE results = "safe" AND style = "paso doble"
current plasma creatinine >= 0.5 mg / dl
CREATE TABLE table_train_111 ( "id" int, "mini_mental_state_examination_mmse" int, "liver_disease" bool, "geriatric_depression_scale_gds" int, "rosen_modified_hachinski_ischemic_score" int, "plasma_creatinine" float, "NOUSE" float )
SELECT * FROM table_train_111 WHERE plasma_creatinine >= 0.5
Which Callsign includes a frequency under 1210, Newsradio 740 KTRH, and webcasts with listen live?
CREATE TABLE table_36233 ( "Frequency" real, "Callsign" text, "Brand" text, "City of License" text, "Website" text, "Webcast" text )
SELECT "Callsign" FROM table_36233 WHERE "Webcast" = 'listen live' AND "Frequency" < '1210' AND "Brand" = 'newsradio 740 ktrh'
How many races had 4 podiums, 5 poles and more than 3 Flaps?
CREATE TABLE table_name_64 ( race INTEGER, flap VARCHAR, podium VARCHAR, pole VARCHAR )
SELECT SUM(race) FROM table_name_64 WHERE podium = 4 AND pole = 5 AND flap > 3
What is the date for the Operational Livery?
CREATE TABLE table_name_51 ( date VARCHAR, livery VARCHAR )
SELECT date FROM table_name_51 WHERE livery = "operational"
What was the original air date of the episode that had 5.30 million U.S. viewers?
CREATE TABLE table_25548505_1 ( original_air_date VARCHAR, us_viewers__millions_ VARCHAR )
SELECT original_air_date FROM table_25548505_1 WHERE us_viewers__millions_ = "5.30"
Which venue has Tickets Sold/ Available with a Gross Revenue (1979) of $665,232?
CREATE TABLE table_68530 ( "Venue" text, "City" text, "Tickets Sold / Available" text, "Gross Revenue (1979)" text, "Gross Revenue (2012)" text )
SELECT "Tickets Sold / Available" FROM table_68530 WHERE "Gross Revenue (1979)" = '$665,232'
What is the percentage of others when the number of others is 2286?
CREATE TABLE table_21582 ( "County" text, "Kerry%" text, "Kerry#" real, "Bush%" text, "Bush#" real, "Others%" text, "Others#" real )
SELECT "Others%" FROM table_21582 WHERE "Others#" = '2286'
Name the host team for january 1 (2006)
CREATE TABLE table_67111 ( "Date" text, "Visiting Team" text, "Final Score" text, "Host Team" text, "Stadium" text )
SELECT "Host Team" FROM table_67111 WHERE "Date" = 'january 1 (2006)'
Regarding players before 2000, what is the USC player's position?
CREATE TABLE table_55461 ( "Year" real, "Player" text, "Position" text, "College/Country" text, "WNBA Team" text )
SELECT "Position" FROM table_55461 WHERE "Year" < '2000' AND "College/Country" = 'usc'
What were the location and attendance for the game against New Jersey?
CREATE TABLE table_name_33 ( location_attendance VARCHAR, team VARCHAR )
SELECT location_attendance FROM table_name_33 WHERE team = "new jersey"
What is the student capacity and type of gender for the dorm whose name as the phrase Donor in it?
CREATE TABLE has_amenity ( dormid number, amenid number ) CREATE TABLE lives_in ( stuid number, dormid number, room_number number ) CREATE TABLE student ( stuid number, lname text, fname text, age number, sex text, major number, advisor number, city_code text ) CREATE TABLE dorm ( dormid number, dorm_name text, student_capacity number, gender text ) CREATE TABLE dorm_amenity ( amenid number, amenity_name text )
SELECT student_capacity, gender FROM dorm WHERE dorm_name LIKE '%Donor%'
Which Surface has a Week of march 1?
CREATE TABLE table_8542 ( "Tournament" text, "Surface" text, "Week" text, "Winner and score" text, "Finalist" text, "Semifinalists" text )
SELECT "Surface" FROM table_8542 WHERE "Week" = 'march 1'
when is the venue nikos goumas stadium and the score is 2 2 4 4 a.e.t. 6 5 pso?
CREATE TABLE table_name_44 ( year VARCHAR, venue VARCHAR, score VARCHAR )
SELECT year FROM table_name_44 WHERE venue = "nikos goumas stadium" AND score = "2–2 4–4 a.e.t. 6–5 pso"
diabetes type i and ii
CREATE TABLE table_train_96 ( "id" int, "gender" string, "elevated_creatinine" float, "diabetic" string, "cerebrovascular_disease" bool, "moca_score" int, "parkinsonism" bool, "NOUSE" float )
SELECT * FROM table_train_96 WHERE diabetic = 'i' OR diabetic = 'ii'
What is the average round in which a Safety with an overall rank higher than 89 was drafted?
CREATE TABLE table_33305 ( "Round" real, "Overall" real, "Player" text, "Position" text, "College" text )
SELECT AVG("Round") FROM table_33305 WHERE "Position" = 'safety' AND "Overall" > '89'
What home has 136-134 as the score?
CREATE TABLE table_38119 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Leading scorer" text, "Record" text )
SELECT "Home" FROM table_38119 WHERE "Score" = '136-134'
impaired renal function defined as serum creatinine > 1.5 .
CREATE TABLE table_train_178 ( "id" int, "gender" string, "pregnancy_or_lactation" bool, "hiv_infection" bool, "hepatitis_c" bool, "renal_disease" bool, "hypoglycemia" bool, "serum_creatinine" float, "seizure_disorder" bool, "body_mass_index_bmi" float, "NOUSE" float )
SELECT * FROM table_train_178 WHERE renal_disease = 1 OR serum_creatinine > 1.5
What is the highest 1937 value that has a 1940 value over 126?
CREATE TABLE table_42885 ( "Table 2: Depression Data" text, "1929" real, "1931" real, "1933" real, "1937" real, "1938" real, "1940" real )
SELECT MAX("1937") FROM table_42885 WHERE "1940" > '126'
Which away team's Venue is western oval?
CREATE TABLE table_10284 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT "Away team" FROM table_10284 WHERE "Venue" = 'western oval'
What number in the series are the episodes with production code 5016/5017?
CREATE TABLE table_17482534_1 ( no_in_series VARCHAR, production_code VARCHAR )
SELECT no_in_series FROM table_17482534_1 WHERE production_code = "5016/5017"
What is the time for Cuba, with a notes entry of QS?
CREATE TABLE table_name_54 ( time VARCHAR, notes VARCHAR, country VARCHAR )
SELECT time FROM table_name_54 WHERE notes = "qs" AND country = "cuba"
A bar chart about how many captains are in each rank?, and could you order by the X-axis from high to low?
CREATE TABLE captain ( Captain_ID int, Name text, Ship_ID int, age text, Class text, Rank text ) CREATE TABLE Ship ( Ship_ID int, Name text, Type text, Built_Year real, Class text, Flag text )
SELECT Rank, COUNT(*) FROM captain GROUP BY Rank ORDER BY Rank DESC
In heat rank 7, what is the sum of lanes?
CREATE TABLE table_31969 ( "Heat Rank" real, "Lane" real, "Swimmer" text, "Country" text, "Time" real, "Overall Rank" text )
SELECT SUM("Lane") FROM table_31969 WHERE "Heat Rank" = '7'
Which Report is Dated 9 March?
CREATE TABLE table_name_72 ( report VARCHAR, date VARCHAR )
SELECT report FROM table_name_72 WHERE date = "9 march"
What is the average dismissals of 83 test and catches less than 33?
CREATE TABLE table_70130 ( "Player" text, "Test Career" text, "Tests" real, "Catches" real, "Stumpings" real, "Total Dismissals" real )
SELECT AVG("Total Dismissals") FROM table_70130 WHERE "Tests" = '83' AND "Catches" < '33'
What is Graham Gooch's nationality?
CREATE TABLE table_name_87 ( nationality VARCHAR, player VARCHAR )
SELECT nationality FROM table_name_87 WHERE player = "graham gooch"
Who was the home team against the Bolton Wanderers?
CREATE TABLE table_43959 ( "Tie no" text, "Home team" text, "Score" text, "Away team" text, "Attendance" text )
SELECT "Home team" FROM table_43959 WHERE "Away team" = 'bolton wanderers'
Give me the comparison about the average of School_ID over the All_Home , and group by attribute All_Home by a bar chart, I want to display by the x axis from low to high.
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 ) CREATE TABLE university ( School_ID int, School text, Location text, Founded real, Affiliation text, Enrollment real, Nickname text, Primary_conference text )
SELECT All_Home, AVG(School_ID) FROM basketball_match GROUP BY All_Home ORDER BY All_Home
What is the mark for Grenada in group A?
CREATE TABLE table_64536 ( "Rank" text, "Group" text, "Name" text, "Nationality" text, "Mark" text )
SELECT "Mark" FROM table_64536 WHERE "Group" = 'a' AND "Nationality" = 'grenada'
What competition has the club villareal?
CREATE TABLE table_name_89 ( competition VARCHAR, club VARCHAR )
SELECT competition FROM table_name_89 WHERE club = "villareal"
For each manufacturer name, what are the names and prices of their most expensive product?
CREATE TABLE manufacturers ( code number, name text, headquarter text, founder text, revenue number ) CREATE TABLE products ( code number, name text, price number, manufacturer number )
SELECT T1.name, MAX(T1.price), T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name
who is the incumbent where the district is florida 9?
CREATE TABLE table_724 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text, "Candidates" text )
SELECT "Incumbent" FROM table_724 WHERE "District" = 'Florida 9'
What is the name of the airport in S o Filipe that has an IATA of sfl?
CREATE TABLE table_8235 ( "ISLAND" text, "CITY / TOWN" text, "ICAO" text, "IATA" text, "AIRPORTNAME" text )
SELECT "AIRPORTNAME" FROM table_8235 WHERE "CITY / TOWN" = 'são filipe' AND "IATA" = 'sfl'
this will include patients that have 2 / 4 systemic inflammatory response syndrome criteria, a suspected infection and either a initial serum lactate > 4 mmol / l or a initial systolic blood pressure < 90 millimeters of mercury.
CREATE TABLE table_train_21 ( "id" int, "pregnancy_or_lactation" bool, "severe_sepsis" bool, "systolic_blood_pressure_sbp" int, "active_infection" bool, "limited_care" bool, "septic_shock" bool, "coagulopathy" bool, "age" float, "lactate" int, "NOUSE" float )
SELECT * FROM table_train_21 WHERE active_infection = 1 AND (lactate > 4 OR systolic_blood_pressure_sbp < 90)
For those records from the products and each product's manufacturer, visualize a scatter chart about the correlation between manufacturer and revenue , and group by attribute headquarter.
CREATE TABLE Products ( Code INTEGER, Name VARCHAR(255), Price DECIMAL, Manufacturer INTEGER ) CREATE TABLE Manufacturers ( Code INTEGER, Name VARCHAR(255), Headquarter VARCHAR(255), Founder VARCHAR(255), Revenue REAL )
SELECT Manufacturer, Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter
What's the lowest February for less than 57 points?
CREATE TABLE table_36185 ( "Game" real, "February" real, "Opponent" text, "Score" text, "Record" text, "Points" real )
SELECT MIN("February") FROM table_36185 WHERE "Points" < '57'
Tell me the lowest year for shubert theatre
CREATE TABLE table_32109 ( "Year" real, "Play" text, "Role" text, "Theatre" text, "Location" text )
SELECT MIN("Year") FROM table_32109 WHERE "Theatre" = 'shubert theatre'
Which tournament has a 2011 of 1r?
CREATE TABLE table_54432 ( "Tournament" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013" text )
SELECT "Tournament" FROM table_54432 WHERE "2011" = '1r'
Show all card type codes and the number of cards in each type.
CREATE TABLE customers ( customer_id number, customer_first_name text, customer_last_name text, customer_address text, customer_phone text, customer_email text, other_customer_details text ) CREATE TABLE financial_transactions ( transaction_id number, previous_transaction_id number, account_id number, card_id number, transaction_type text, transaction_date time, transaction_amount number, transaction_comment text, other_transaction_details text ) CREATE TABLE customers_cards ( card_id number, customer_id number, card_type_code text, card_number text, date_valid_from time, date_valid_to time, other_card_details text ) CREATE TABLE accounts ( account_id number, customer_id number, account_name text, other_account_details text )
SELECT card_type_code, COUNT(*) FROM customers_cards GROUP BY card_type_code
What are the speeds of the longest roller coaster?
CREATE TABLE country ( country_id number, name text, population number, area number, languages text ) CREATE TABLE roller_coaster ( roller_coaster_id number, name text, park text, country_id number, length number, height number, speed text, opened text, status text )
SELECT speed FROM roller_coaster ORDER BY length DESC LIMIT 1
What are McCain's Percent when Obama has 36.47%?
CREATE TABLE table_20688030_1 ( mccain_percentage VARCHAR, obama_percentage VARCHAR )
SELECT mccain_percentage FROM table_20688030_1 WHERE obama_percentage = "36.47%"
How many total events have cuts made over 12, more than 2 top-5s, and more than 11 top-10s?
CREATE TABLE table_name_66 ( events INTEGER, top_10 VARCHAR, cuts_made VARCHAR, top_5 VARCHAR )
SELECT SUM(events) FROM table_name_66 WHERE cuts_made > 12 AND top_5 > 2 AND top_10 > 11
What is the smallest sales area (m ) that has 4,094/m and more than 2 stores?
CREATE TABLE table_name_20 ( sales_area__m²_ INTEGER, sales_per_area VARCHAR, no_of_stores VARCHAR )
SELECT MIN(sales_area__m²_) FROM table_name_20 WHERE sales_per_area = "€4,094/m²" AND no_of_stores > 2
Which 2012 has a 2007 of 0 / 4?
CREATE TABLE table_35146 ( "Tournament" text, "1998" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "Career SR" text, "Career Win-Loss" text )
SELECT "2012" FROM table_35146 WHERE "2007" = '0 / 4'
Who directed the episode with production code 40811-005?
CREATE TABLE table_name_7 ( director VARCHAR, prod_code VARCHAR )
SELECT director FROM table_name_7 WHERE prod_code = "40811-005"
Frequency (MHz) that has a Type of primary, and a Call letters of ktbb-fm has what total number?
CREATE TABLE table_5631 ( "Frequency (MHz)" real, "Call letters" text, "Licensed location" text, "Type" text, "Format" text )
SELECT COUNT("Frequency (MHz)") FROM table_5631 WHERE "Type" = 'primary' AND "Call letters" = 'ktbb-fm'
What is the new/returning/same network name for This Week in Baseball?
CREATE TABLE table_169766_13 ( new_returning_same_network VARCHAR, show VARCHAR )
SELECT new_returning_same_network FROM table_169766_13 WHERE show = "This Week in Baseball"
Who was the opponent in the game held on February 4?
CREATE TABLE table_2732 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text )
SELECT "Team" FROM table_2732 WHERE "Date" = 'February 4'
What is the grid 13 time score?
CREATE TABLE table_58220 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real )
SELECT "Time/Retired" FROM table_58220 WHERE "Grid" = '13'
what is the lowest qualifying rank?
CREATE TABLE table_17994 ( "Year" real, "Competition" text, "Location" text, "Event" text, "Final-Rank" text, "Final-Score" text, "Qualifying Rank" real, "Qualifying Score" text )
SELECT MIN("Qualifying Rank") FROM table_17994
For which venue did Leicester City lose?
CREATE TABLE table_62256 ( "Season" text, "Date" text, "Winner" text, "Loser" text, "Score" text, "Venue" text, "Attendance" text )
SELECT "Venue" FROM table_62256 WHERE "Loser" = 'leicester city'
What state is Ding and has a royal house of Ji?
CREATE TABLE table_12473 ( "State" text, "Type" text, "Name" text, "Title" text, "Royal house" text, "From" text )
SELECT "State" FROM table_12473 WHERE "Royal house" = 'ji' AND "Name" = 'ding'
Name the traditional for area 544
CREATE TABLE table_23563 ( "English Name" text, "Simplified" text, "Traditional" text, "Pinyin" text, "Foochow" text, "Area" real, "Population" real, "Density" real )
SELECT "Traditional" FROM table_23563 WHERE "Area" = '544'