instruction
stringlengths 12
317
| input
stringlengths 38
973
| response
stringlengths 25
526
|
---|---|---|
moderate to severe renal impairment ( crea level > 1.7 mg / dl or glomerular filtration rate < 35 ml / min ) . | CREATE TABLE table_test_16 (
"id" int,
"left_ventricular_ejection_fraction_lvef" int,
"systolic_blood_pressure_sbp" int,
"severe_hypertension" bool,
"adrenaline" bool,
"stroke" bool,
"renal_disease" bool,
"severe_uncontrolled_arterial_hypertension" bool,
"hepatic_disease" bool,
"dobutamine" bool,
"temperature" float,
"creatinine_clearance_cl" float,
"estimated_glomerular_filtration_rate_egfr" int,
"cardiogenic_shock" bool,
"diastolic_blood_pressure_dbp" int,
"liver_disease" bool,
"intravenous_vasoactive_agents" bool,
"kidney_disease" bool,
"hypertension" bool,
"age" float,
"NOUSE" float
) | SELECT * FROM table_test_16 WHERE renal_disease = 1 OR (creatinine_clearance_cl > 1.7 OR estimated_glomerular_filtration_rate_egfr < 35) |
Who was the opponent when the result was w24-7? | CREATE TABLE table_50221 (
"Date" text,
"Opponent#" text,
"Rank #" text,
"Site" text,
"Result" text,
"Attendance" text
) | SELECT "Opponent#" FROM table_50221 WHERE "Result" = 'w24-7' |
What is the best time for a team with a first-qualifying time of 59.448? | CREATE TABLE table_name_6 (
best VARCHAR,
qual_1 VARCHAR
) | SELECT best FROM table_name_6 WHERE qual_1 = "59.448" |
What country placed t3 with a score of 70-65=135? | CREATE TABLE table_name_52 (
country VARCHAR,
place VARCHAR,
score VARCHAR
) | SELECT country FROM table_name_52 WHERE place = "t3" AND score = 70 - 65 = 135 |
Which method had Travis Fulton as an opponent? | CREATE TABLE table_name_68 (
method VARCHAR,
opponent VARCHAR
) | SELECT method FROM table_name_68 WHERE opponent = "travis fulton" |
What scored is recorded on April 24? | CREATE TABLE table_name_92 (
score VARCHAR,
date VARCHAR
) | SELECT score FROM table_name_92 WHERE date = "april 24" |
Who is the home team based at windy hill? | CREATE TABLE table_name_56 (
home_team VARCHAR,
venue VARCHAR
) | SELECT home_team FROM table_name_56 WHERE venue = "windy hill" |
Which entrant has a Mclaren m7c Chassis? | CREATE TABLE table_14649 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
) | SELECT "Entrant" FROM table_14649 WHERE "Chassis" = 'mclaren m7c' |
Which average's against score has 2 as a difference and a lost of 5? | CREATE TABLE table_name_34 (
against INTEGER,
difference VARCHAR,
lost VARCHAR
) | SELECT AVG(against) FROM table_name_34 WHERE difference = "2" AND lost = 5 |
Name the tournament for top-5 more thn 1 and top-25 of 13 with wins of 3 | CREATE TABLE table_name_4 (
tournament VARCHAR,
wins VARCHAR,
top_5 VARCHAR,
top_25 VARCHAR
) | SELECT tournament FROM table_name_4 WHERE top_5 > 1 AND top_25 = 13 AND wins = 3 |
What were the winnings for the Chevrolet with a number larger than 29 and scored 102 points? | CREATE TABLE table_77725 (
"Driver" text,
"Car #" real,
"Make" text,
"Points" real,
"Laps" real,
"Winnings" text
) | SELECT "Winnings" FROM table_77725 WHERE "Make" = 'chevrolet' AND "Car #" > '29' AND "Points" = '102' |
Return a pie chart about the proportion of All_Games and School_ID. | 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, School_ID FROM basketball_match |
What was the score for the game that had an attendance of 41,087? | CREATE TABLE table_68420 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text
) | SELECT "Score" FROM table_68420 WHERE "Attendance" = '41,087' |
Which series number has the production code 7.07? | CREATE TABLE table_24881 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text
) | SELECT COUNT("No. in series") FROM table_24881 WHERE "Production code" = '7.07' |
What is the T4 Place Player with a Score of 71-74-66=211? | CREATE TABLE table_name_57 (
player VARCHAR,
place VARCHAR,
score VARCHAR
) | SELECT player FROM table_name_57 WHERE place = "t4" AND score = 71 - 74 - 66 = 211 |
Which city includes Barclays Center? | CREATE TABLE table_name_55 (
city VARCHAR,
home_arena VARCHAR
) | SELECT city FROM table_name_55 WHERE home_arena = "barclays center" |
What group has 1200 m as the distance? | CREATE TABLE table_name_82 (
group VARCHAR,
distance VARCHAR
) | SELECT group FROM table_name_82 WHERE distance = "1200 m" |
What was the nationality for the player with 33 goals? | CREATE TABLE table_13176 (
"Ranking" text,
"Nationality" text,
"Name" text,
"Years" text,
"Goals" real
) | SELECT "Nationality" FROM table_13176 WHERE "Goals" = '33' |
How many captains with younger than 50 are in each rank. Visualize by pie chart. | 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 WHERE age < 50 GROUP BY Rank |
What is the 2011 Australian Open and a 2010 QF? | CREATE TABLE table_12787 (
"Tournament" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"Win %" text
) | SELECT "2011" FROM table_12787 WHERE "Tournament" = 'australian open' AND "2010" = 'qf' |
WHAT POSITION IS 273? | CREATE TABLE table_name_26 (
position VARCHAR,
overall VARCHAR
) | SELECT position FROM table_name_26 WHERE overall = 273 |
What are the different nationalities of pilots? Show each nationality and the number of pilots of each nationality. | CREATE TABLE pilot (
Pilot_ID int,
Pilot_name text,
Rank int,
Age int,
Nationality text,
Position text,
Join_Year int,
Team text
)
CREATE TABLE pilot_record (
Record_ID int,
Pilot_ID int,
Aircraft_ID int,
Date text
)
CREATE TABLE aircraft (
Aircraft_ID int,
Order_Year int,
Manufacturer text,
Model text,
Fleet_Series text,
Powertrain text,
Fuel_Propulsion text
) | SELECT Nationality, COUNT(*) FROM pilot GROUP BY Nationality |
What away team plays at Victoria Park? | CREATE TABLE table_name_60 (
away_team VARCHAR,
venue VARCHAR
) | SELECT away_team FROM table_name_60 WHERE venue = "victoria park" |
What is Dennis Kucinich, when Classification is 'Democrat'? | CREATE TABLE table_59428 (
"Classification" text,
"% of all" text,
"John Kerry" text,
"John Edwards" text,
"Dennis Kucinich" text
) | SELECT "Dennis Kucinich" FROM table_59428 WHERE "Classification" = 'democrat' |
Where did South Melbourne go to play a team at home? | CREATE TABLE table_name_98 (
home_team VARCHAR,
away_team VARCHAR
) | SELECT home_team FROM table_name_98 WHERE away_team = "south melbourne" |
List the number of assists against illinois-chicago. | CREATE TABLE table_28613 (
"#" real,
"Player" text,
"Points" real,
"Rebounds" real,
"Assists" real,
"Opponent" text,
"Date" text
) | SELECT "Assists" FROM table_28613 WHERE "Opponent" = 'Illinois-Chicago' |
What team has an incoming manager named Kenny Dalglish? | CREATE TABLE table_24172157_3 (
team VARCHAR,
incoming_manager VARCHAR
) | SELECT team FROM table_24172157_3 WHERE incoming_manager = "Kenny Dalglish" |
What is the area of the civil parish kilworth and townland monadrishane? | CREATE TABLE table_30120556_1 (
area__acres__ VARCHAR,
civil_parish VARCHAR,
townland VARCHAR
) | SELECT area__acres__ FROM table_30120556_1 WHERE civil_parish = "Kilworth" AND townland = "Monadrishane" |
What is the smallest Satu Mare value associated with Baia Mare over 523? | CREATE TABLE table_69412 (
"Installation" text,
"Cluj" real,
"Oradea" real,
"Baia Mare" real,
"Bistrita" real,
"Satu Mare" real,
"Zalau" real,
"Electrica North Transylvania" real
) | SELECT MIN("Satu Mare") FROM table_69412 WHERE "Baia Mare" > '523' |
What is Name, when Venue is 'Motherwell'? | CREATE TABLE table_60410 (
"Date" real,
"Name" text,
"Venue" text,
"Winner" text,
"Runner-up" text,
"Score" text
) | SELECT "Name" FROM table_60410 WHERE "Venue" = 'motherwell' |
Away result of 0 3, and a Season of 1969-70 is what competition? | CREATE TABLE table_75507 (
"Season" text,
"Competition" text,
"Round" text,
"Club" text,
"Home result" text,
"Away result" text
) | SELECT "Competition" FROM table_75507 WHERE "Away result" = '0–3' AND "Season" = '1969-70' |
Which Game is the average one that has a February larger than 20, and a Record of 41 17 4, and Points smaller than 86? | CREATE TABLE table_39505 (
"Game" real,
"February" real,
"Opponent" text,
"Score" text,
"Record" text,
"Points" real
) | SELECT AVG("Game") FROM table_39505 WHERE "February" > '20' AND "Record" = '41–17–4' AND "Points" < '86' |
Name the total number of round for wide receiver for kent state | CREATE TABLE table_name_51 (
round VARCHAR,
position VARCHAR,
college VARCHAR
) | SELECT COUNT(round) FROM table_name_51 WHERE position = "wide receiver" AND college = "kent state" |
What is Fred Stolle's final year of competing in a championship? | CREATE TABLE table_2201724_1 (
year INTEGER
) | SELECT MAX(year) FROM table_2201724_1 |
What's the part number of the model with TDP of 2.9 (max.4.1~5.4) w? | CREATE TABLE table_26559 (
"Model number" text,
"Frequency" text,
"L1 Cache" text,
"FSB" text,
"Mult." text,
"Voltage" text,
"TDP" text,
"Socket" text,
"Release date" text,
"Part number(s)" text,
"sSpec number" text
) | SELECT "Part number(s)" FROM table_26559 WHERE "TDP" = '2.9 (Max.4.1~5.4) W' |
How many campuses are there in Los Angeles county? | CREATE TABLE campuses (
county VARCHAR
) | SELECT COUNT(*) FROM campuses WHERE county = "Los Angeles" |
How many schools are in the basketball match? | CREATE TABLE university (
school_id number,
school text,
location text,
founded number,
affiliation text,
enrollment number,
nickname text,
primary_conference text
)
CREATE TABLE basketball_match (
team_id number,
school_id number,
team_name text,
acc_regular_season text,
acc_percent text,
acc_home text,
acc_road text,
all_games text,
all_games_percent number,
all_home text,
all_road text,
all_neutral text
) | SELECT COUNT(DISTINCT school_id) FROM basketball_match |
Which Player has a To par of 2, and a Country of wales? | CREATE TABLE table_60735 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
) | SELECT "Player" FROM table_60735 WHERE "To par" = '–2' AND "Country" = 'wales' |
Name the result for the bafta tv awards | CREATE TABLE table_name_83 (
result VARCHAR,
award VARCHAR
) | SELECT result FROM table_name_83 WHERE award = "bafta tv awards" |
What is the date of the circuit gilles villeneuve? | CREATE TABLE table_16667 (
"Round" real,
"Grand Prix" text,
"Date" text,
"Location" text,
"Pole Position" text,
"Fastest Lap" text,
"Winning Driver" text,
"Winning Constructor" text,
"Report" text
) | SELECT "Date" FROM table_16667 WHERE "Location" = 'Circuit Gilles Villeneuve' |
Create a pie chart showing the number of carrier across carrier. | CREATE TABLE market (
Market_ID int,
District text,
Num_of_employees int,
Num_of_shops real,
Ranking int
)
CREATE TABLE phone (
Name text,
Phone_ID int,
Memory_in_G int,
Carrier text,
Price real
)
CREATE TABLE phone_market (
Market_ID int,
Phone_ID text,
Num_of_stock int
) | SELECT Carrier, COUNT(Carrier) FROM phone GROUP BY Carrier |
Which Rank by average is the lowest one that has a Total of 425, and a Place larger than 1? | CREATE TABLE table_name_54 (
rank_by_average INTEGER,
total VARCHAR,
place VARCHAR
) | SELECT MIN(rank_by_average) FROM table_name_54 WHERE total = 425 AND place > 1 |
Which customer status code has least number of customers? | CREATE TABLE Customers (
customer_status_code VARCHAR
) | SELECT customer_status_code FROM Customers GROUP BY customer_status_code ORDER BY COUNT(*) LIMIT 1 |
name the total number of timeslot for number 1 | CREATE TABLE table_73154 (
"#" real,
"Episode" text,
"UK air date" text,
"Timeslot" text,
"Viewers (millions)" text,
"Audience share in timeslot" text
) | SELECT COUNT("Timeslot") FROM table_73154 WHERE "#" = '1' |
What was the money value that went along with the score of 68-67-69-76=280? | CREATE TABLE table_45964 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" text
) | SELECT "Money ( $ )" FROM table_45964 WHERE "Score" = '68-67-69-76=280' |
display the employee number, name( first name and last name ) and job title for all employees whose salary is more than any salary of those employees whose job title is PU_MAN. | CREATE TABLE employees (
employee_id VARCHAR,
first_name VARCHAR,
last_name VARCHAR,
job_id VARCHAR,
salary INTEGER
) | SELECT employee_id, first_name, last_name, job_id FROM employees WHERE salary > (SELECT MAX(salary) FROM employees WHERE job_id = 'PU_MAN') |
How many games were lost when the order was 2nd and the play was more than 13 | CREATE TABLE table_34236 (
"Season" text,
"Order" text,
"Played" real,
"Drawn" real,
"Lost" real,
"Penalties" real,
"Points For" real,
"Points Against" real,
"Points Diff" real,
"Coach" text
) | SELECT COUNT("Lost") FROM table_34236 WHERE "Order" = '2nd' AND "Played" > '13' |
What was the title of the episode with a production code of 1gowo04? | CREATE TABLE table_name_3 (
episode_title VARCHAR,
prod_code VARCHAR
) | SELECT episode_title FROM table_name_3 WHERE prod_code = "1gowo04" |
Tell me the right ascensuon for object type of globular cluster and apparent magnitude of 8.5 and NGC number of 6273 | CREATE TABLE table_name_2 (
right_ascension___j2000__ VARCHAR,
ngc_number VARCHAR,
object_type VARCHAR,
apparent_magnitude VARCHAR
) | SELECT right_ascension___j2000__ FROM table_name_2 WHERE object_type = "globular cluster" AND apparent_magnitude = 8.5 AND ngc_number = 6273 |
What was the surface that Laura Golarsa and her opponent played on in the final? | CREATE TABLE table_name_67 (
surface VARCHAR,
opponent_in_the_final VARCHAR
) | SELECT surface FROM table_name_67 WHERE opponent_in_the_final = "laura golarsa" |
In what years was there a rank lower than 9, under 84 goals, and more than 158 matches? | CREATE TABLE table_name_63 (
years VARCHAR,
goals VARCHAR,
matches VARCHAR,
rank VARCHAR
) | SELECT years FROM table_name_63 WHERE matches > 158 AND rank > 9 AND goals < 84 |
What id the team with a smaller Time than 18? | CREATE TABLE table_15511 (
"Date" text,
"Time ( CEST )" real,
"Team #1" text,
"Res." text,
"Team #2" text,
"Round" text,
"Attendance" real
) | SELECT "Team #1" FROM table_15511 WHERE "Time ( CEST )" < '18' |
What was the lowest crowd size when the away team scored 11.17 (83)? | CREATE TABLE table_32690 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT MIN("Crowd") FROM table_32690 WHERE "Away team score" = '11.17 (83)' |
Which inhabitants have 2009 as the election, with cremona as the municipality? | CREATE TABLE table_13089 (
"Municipality" text,
"Inhabitants" real,
"Mayor" text,
"Party" text,
"Election" real
) | SELECT "Inhabitants" FROM table_13089 WHERE "Election" = '2009' AND "Municipality" = 'cremona' |
What is the time of songs that have the writer Aaron Schroeder and Wally Gold? | CREATE TABLE table_name_55 (
time VARCHAR,
writer_s_ VARCHAR
) | SELECT time FROM table_name_55 WHERE writer_s_ = "aaron schroeder and wally gold" |
What date did the episode with a production code of 3x6316 originally air? | CREATE TABLE table_28116528_1 (
original_air_date VARCHAR,
production_code VARCHAR
) | SELECT original_air_date FROM table_28116528_1 WHERE production_code = "3X6316" |
College of boston college has what pick? | CREATE TABLE table_name_61 (
pick VARCHAR,
college VARCHAR
) | SELECT pick FROM table_name_61 WHERE college = "boston college" |
Bar graph to show how many year from different year, and rank y-axis from low to high order. | CREATE TABLE wine (
No INTEGER,
Grape TEXT,
Winery TEXT,
Appelation TEXT,
State TEXT,
Name TEXT,
Year INTEGER,
Price INTEGER,
Score INTEGER,
Cases INTEGER,
Drink TEXT
)
CREATE TABLE appellations (
No INTEGER,
Appelation TEXT,
County TEXT,
State TEXT,
Area TEXT,
isAVA TEXT
)
CREATE TABLE grapes (
ID INTEGER,
Grape TEXT,
Color TEXT
) | SELECT Year, COUNT(Year) FROM wine ORDER BY COUNT(Year) |
What boat builder built the valmai with a number less than 65? | CREATE TABLE table_name_28 (
boat_builder VARCHAR,
number VARCHAR,
name VARCHAR
) | SELECT boat_builder FROM table_name_28 WHERE number < 65 AND name = "valmai" |
How much is the lowest Operating Expenditures when Contributions are more than 8,245,241? | CREATE TABLE table_54361 (
"Candidate" text,
"Contributions" real,
"Loans Received" real,
"All Receipts" real,
"Operating Expenditures" real,
"All Disbursements" real
) | SELECT MIN("Operating Expenditures") FROM table_54361 WHERE "Contributions" > '8,245,241' |
what was the total population of the five largest cities in the province of ontario in 2006 ? | CREATE TABLE table_203_834 (
id number,
"rank" number,
"census subdivision" text,
"province" text,
"type" text,
"land area\n(km2, 2011)" number,
"population 2011" number,
"population 2006" number,
"population 2001" number,
"population 1996" number,
"change in % 2006-2011" number,
"change in % 1996-2011" number
) | SELECT SUM("population 2006") FROM table_203_834 WHERE id IN (SELECT id FROM table_203_834 WHERE "province" = 'ontario' ORDER BY "population 2006" DESC LIMIT 5) |
Who was the winning driver for the goodwood circuit? | CREATE TABLE table_16780 (
"Race Name" text,
"Circuit" text,
"Date" text,
"Winning driver" text,
"Constructor" text,
"Report" text
) | SELECT "Winning driver" FROM table_16780 WHERE "Circuit" = 'Goodwood' |
How many military deaths were there when there were 1,200+ military and/or civilian wounded? | CREATE TABLE table_61744 (
"Conflicts prior to Israel's independence" text,
"Military deaths" text,
"Civilian deaths" text,
"Total deaths" text,
"Military and/or Civilian wounded" text,
"Total casualties" text
) | SELECT "Military deaths" FROM table_61744 WHERE "Military and/or Civilian wounded" = '1,200+' |
What is the Latitude of the monument built in 1901? | CREATE TABLE table_name_83 (
latitude VARCHAR,
year_built VARCHAR
) | SELECT latitude FROM table_name_83 WHERE year_built = 1901 |
Who had a rank under 17 with a total of 119? | CREATE TABLE table_66216 (
"Rank" real,
"Athlete" text,
"Country" text,
"Day 1" real,
"Total" text
) | SELECT "Athlete" FROM table_66216 WHERE "Rank" < '17' AND "Total" = '119' |
name a year whose second venue was the same as 2011 . | CREATE TABLE table_204_983 (
id number,
"year" number,
"1st venue" text,
"2nd venue" text,
"3rd venue" text,
"4th venue" text,
"5th venue" text,
"6th venue" text
) | SELECT "year" FROM table_204_983 WHERE "year" <> 2011 AND "2nd venue" = (SELECT "2nd venue" FROM table_204_983 WHERE "year" = 2011) |
What is the first prize amount of the person who has a score of 207 (-9) and a purse amount of more than 800,000? | CREATE TABLE table_58122 (
"Date" text,
"Tournament" text,
"Location" text,
"Purse( $ )" real,
"Winner" text,
"Score" text,
"1st Prize( $ )" real
) | SELECT COUNT("1st Prize( $ )") FROM table_58122 WHERE "Score" = '207 (-9)' AND "Purse( $ )" > '800,000' |
What is the sequencer when ion torrent pgm is 200-400 bp? | CREATE TABLE table_17773 (
"Sequencer" text,
"Ion Torrent PGM" text,
"454 GS FLX" text,
"HiSeq 2000" text,
"SOLiDv4" text,
"PacBio" text,
"Sanger 3730xl" text
) | SELECT "Sequencer" FROM table_17773 WHERE "Ion Torrent PGM" = '200-400 bp' |
What is the status of the junior coaster model that opened in 2008? | CREATE TABLE table_55047 (
"Name" text,
"Model" text,
"Park" text,
"Opened" text,
"Status" text
) | SELECT "Status" FROM table_55047 WHERE "Opened" = '2008' AND "Model" = 'junior coaster' |
list the titles that include host as the role . | CREATE TABLE table_201_42 (
id number,
"year" text,
"title" text,
"role" text,
"notes" text
) | SELECT "title" FROM table_201_42 WHERE "role" = 'host' |
For those records from the products and each product's manufacturer, a bar chart shows the distribution of name and the sum of code , and group by attribute name, rank bars in descending order. | 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 T1.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Name DESC |
COunt the sum of Diameter (km) which has a Latitude of 62.7n? | CREATE TABLE table_50139 (
"Name" text,
"Latitude" text,
"Longitude" text,
"Diameter (km)" real,
"Year named" real,
"Name origin" text
) | SELECT SUM("Diameter (km)") FROM table_50139 WHERE "Latitude" = '62.7n' |
What is the average number in attendance on September 16? | CREATE TABLE table_name_23 (
attendance INTEGER,
date VARCHAR
) | SELECT AVG(attendance) FROM table_name_23 WHERE date = "september 16" |
Name the total number of played when points of is 31-7, position is 16 and goals for is less than 35 | CREATE TABLE table_name_67 (
played VARCHAR,
goals_for VARCHAR,
points VARCHAR,
position VARCHAR
) | SELECT COUNT(played) FROM table_name_67 WHERE points = "31-7" AND position = 16 AND goals_for < 35 |
What is the CPU chip in the Dishplayer 7100, which is a dish tuner with a v.90 modem? | CREATE TABLE table_name_10 (
cpu_chip VARCHAR,
model VARCHAR,
modem VARCHAR,
type VARCHAR
) | SELECT cpu_chip FROM table_name_10 WHERE modem = "v.90" AND type = "dish tuner" AND model = "dishplayer 7100" |
Who was the womens double winner when the womens singles winner was Ding Ning? | CREATE TABLE table_30328 (
"Year Location" text,
"Mens Singles" text,
"Womens Singles" text,
"Mens Doubles" text,
"Womens Doubles" text
) | SELECT "Womens Doubles" FROM table_30328 WHERE "Womens Singles" = 'Ding Ning' |
Which visitor lives in Minnesota? | CREATE TABLE table_49275 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text,
"Points" real
) | SELECT "Visitor" FROM table_49275 WHERE "Home" = 'minnesota' |
Who was the recipient when the show was nominated for Most Popular Drama after 2004? | CREATE TABLE table_71295 (
"Year" real,
"Award Show" text,
"Category" text,
"Recipient(s)" text,
"Result" text
) | SELECT "Recipient(s)" FROM table_71295 WHERE "Result" = 'nominated' AND "Category" = 'most popular drama' AND "Year" > '2004' |
What is the segment A on episode 237? | CREATE TABLE table_15187735_19 (
segment_a VARCHAR,
episode VARCHAR
) | SELECT segment_a FROM table_15187735_19 WHERE episode = 237 |
In which year did he finish 8th? | CREATE TABLE table_14378 (
"Year" real,
"Tournament" text,
"Venue" text,
"Result" text,
"Distance" text
) | SELECT "Year" FROM table_14378 WHERE "Result" = '8th' |
Return the names and typical buying prices for all products. | CREATE TABLE characteristics (
characteristic_id number,
characteristic_type_code text,
characteristic_data_type text,
characteristic_name text,
other_characteristic_details text
)
CREATE TABLE product_characteristics (
product_id number,
characteristic_id number,
product_characteristic_value text
)
CREATE TABLE products (
product_id number,
color_code text,
product_category_code text,
product_name text,
typical_buying_price text,
typical_selling_price text,
product_description text,
other_product_details text
)
CREATE TABLE ref_product_categories (
product_category_code text,
product_category_description text,
unit_of_measure text
)
CREATE TABLE ref_colors (
color_code text,
color_description text
)
CREATE TABLE ref_characteristic_types (
characteristic_type_code text,
characteristic_type_description text
) | SELECT product_name, typical_buying_price FROM products |
Which US air date had 4.4 million viewers? | CREATE TABLE table_17901155_4 (
original_us_air_date VARCHAR,
viewers__millions_ VARCHAR
) | SELECT original_us_air_date FROM table_17901155_4 WHERE viewers__millions_ = "4.4" |
Was the University of Michigan Signed? | CREATE TABLE table_68515 (
"Round" real,
"Name" text,
"Position" text,
"School" text,
"Signed" text
) | SELECT "Signed" FROM table_68515 WHERE "School" = 'university of michigan' |
What are the names and seatings for all tracks opened after 2000, ordered by seating? | CREATE TABLE track (
track_id number,
name text,
location text,
seating number,
year_opened number
)
CREATE TABLE race (
race_id number,
name text,
class text,
date text,
track_id text
) | SELECT name, seating FROM track WHERE year_opened > 2000 ORDER BY seating |
When the total is larger than 1,and the bronze is less than 3, and silver larger than 2, and a gold larger than 2, what is the nation? | CREATE TABLE table_79612 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT "Nation" FROM table_79612 WHERE "Total" > '1' AND "Bronze" < '3' AND "Silver" > '2' AND "Gold" > '2' |
what is the number of routes that intersect highway 91 ? | CREATE TABLE table_203_333 (
id number,
"kilometers" number,
"name" text,
"location" text,
"intersecting routes" text
) | SELECT COUNT("intersecting routes") FROM table_203_333 |
What district has benjamin eggleston for incumbent? | CREATE TABLE table_name_52 (
district VARCHAR,
incumbent VARCHAR
) | SELECT district FROM table_name_52 WHERE incumbent = "benjamin eggleston" |
WHAT IS THE BIRTH DATE THAT HAS Ceased to be Duke of Girona OF 21 NOVEMBER 1582? | CREATE TABLE table_name_22 (
birth VARCHAR,
ceased_to_be_duke_of_girona VARCHAR
) | SELECT birth FROM table_name_22 WHERE ceased_to_be_duke_of_girona = "21 november 1582" |
What is Authors, when Novelty is Gen Nov, when Location is South Africa, and when Name is Criocephalosaurus? | CREATE TABLE table_40609 (
"Name" text,
"Novelty" text,
"Status" text,
"Authors" text,
"Location" text
) | SELECT "Authors" FROM table_40609 WHERE "Novelty" = 'gen nov' AND "Location" = 'south africa' AND "Name" = 'criocephalosaurus' |
Which team played their first leg at home with an aggregate score of 3-4? | CREATE TABLE table_name_70 (
home__1st_leg_ VARCHAR,
aggregate VARCHAR
) | SELECT home__1st_leg_ FROM table_name_70 WHERE aggregate = "3-4" |
How many points did the away team score at Arden Street Oval? | CREATE TABLE table_name_59 (
away_team VARCHAR,
venue VARCHAR
) | SELECT away_team AS score FROM table_name_59 WHERE venue = "arden street oval" |
When is the last episode air date for season 3? | CREATE TABLE table_35649 (
"Season" real,
"Episodes" real,
"First air date" text,
"Last air date" text,
"Timeslot" text,
"DVD Release" text
) | SELECT "Last air date" FROM table_35649 WHERE "Season" = '3' |
In what genre did Microvision develop a game? | CREATE TABLE table_name_49 (
genre VARCHAR,
developer VARCHAR
) | SELECT genre FROM table_name_49 WHERE developer = "microvision" |
Who directed episode 266 in the series? | CREATE TABLE table_2221484_2 (
directed_by VARCHAR,
series__number VARCHAR
) | SELECT directed_by FROM table_2221484_2 WHERE series__number = 266 |
only player to serve as captain from 1998-2007 | CREATE TABLE table_204_342 (
id number,
"#" number,
"player" text,
"span" text,
"caps" number,
"total caps" number,
"win %" text
) | SELECT "player" FROM table_204_342 WHERE "span" = '1998-2007' |
What competition took place in a year later than 2009 with team notes? | CREATE TABLE table_7779 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Notes" text
) | SELECT "Competition" FROM table_7779 WHERE "Year" > '2009' AND "Notes" = 'team' |
What player was drafted in Round 5? | CREATE TABLE table_name_30 (
player VARCHAR,
round VARCHAR
) | SELECT player FROM table_name_30 WHERE round = 5 |
What is the Total Apps when League Cup Apps is 0 (1), and position is df? | CREATE TABLE table_name_55 (
total_apps VARCHAR,
league_cup_apps VARCHAR,
position VARCHAR
) | SELECT total_apps FROM table_name_55 WHERE league_cup_apps = "0 (1)" AND position = "df" |
Which title aired on 18 dec 2006- 10 feb 2007? | CREATE TABLE table_name_67 (
english_title__chinese_title_ VARCHAR,
airing_date VARCHAR
) | SELECT english_title__chinese_title_ FROM table_name_67 WHERE airing_date = "18 dec 2006- 10 feb 2007" |
Which lowest played has a Position of 2, and Goals against larger than 53? | CREATE TABLE table_name_6 (
played INTEGER,
position VARCHAR,
goals_against VARCHAR
) | SELECT MIN(played) FROM table_name_6 WHERE position = 2 AND goals_against > 53 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.