sql
stringlengths 9
2.37k
| table
stringclasses 9
values | query
stringlengths 51
503
|
|---|---|---|
SELECT Set 3 FROM table WHERE Date = 29 sep AND Time = 16:40
|
CREATE TABLE INST, Here is a database schema( table schema);
|
For a date of 29 Sep and a time of 16:40, what is the corresponding Set 3?.It is not neccessary to use all the tables.
|
SELECT MAX(rank) FROM table_name_44 WHERE lane = 4
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the highest rank from Lane 4?It is not neccessary to use all the tables.
|
SELECT Home FROM table WHERE Record = 16–17–6
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which Home has a Record of 16–17–6?.It is not neccessary to use all the tables.
|
SELECT School FROM table WHERE IHSAA Class = aaaa AND Enrollment > 1,275 AND Mascot = spartans
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What school has a mascot of the spartans with an AAAA IHSAA class and more than 1,275 enrolled?.It is not neccessary to use all the tables.
|
SELECT MAX(super_g) FROM table_name_46 WHERE season > 1996
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the highest Super G when Season is later than 1996?It is not neccessary to use all the tables.
|
SELECT COUNT Neu-Vehlefanz FROM table WHERE Schwante = 2.043
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many times did Neu-Vehlefanz occur when Schwante had 2.043?.It is not neccessary to use all the tables.
|
SELECT MAX(age) FROM Dogs
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the age of the oldest dog?It is not neccessary to use all the tables.
|
SELECT Method FROM table WHERE Venue = club med sandpiper
|
CREATE TABLE INST, Here is a database schema( table schema);
|
The match that was held at Club Med Sandpiper has what method?.It is not neccessary to use all the tables.
|
SELECT COUNT(*) FROM Student WHERE city_code = "HKG" OR city_code = "CHI"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many students live in HKG or CHI?It is not neccessary to use all the tables.
|
SELECT loser FROM table_name_32 WHERE result = "35-27"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the Loser of the Game with a Result of 35-27?It is not neccessary to use all the tables.
|
SELECT Date FROM table WHERE Grand Prix = Italian Grand Prix
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the date of the Italian Grand Prix?.It is not neccessary to use all the tables.
|
SELECT prize FROM table_name_11 WHERE event = "ept sanremo"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the Prize when the Event is Ept Sanremo?It is not neccessary to use all the tables.
|
SELECT T1.custid, T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T2.balance < (SELECT MAX(balance) FROM checking)
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What are the customer id and name corresponding to accounts with a checking balance less than the largest checking balance?It is not neccessary to use all the tables.
|
SELECT winner FROM table_name_97 WHERE race_leader = "rest day"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Name the winner for rest day race leaderIt is not neccessary to use all the tables.
|
SELECT COUNT WIAA Classification FROM table WHERE High School = Fort Vancouver
|
CREATE TABLE INST, Here is a database schema( table schema);
|
how many wiaa classifications does fort vancouver high school have?.It is not neccessary to use all the tables.
|
SELECT T2.emp_fname, T1.prof_office FROM professor AS T1 JOIN employee AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T1.dept_code = T3.dept_code WHERE T3.dept_name = 'History' AND T1.prof_high_degree <> 'Ph.D.'
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What are the first names and offices of history professors who don't have Ph.D.s?It is not neccessary to use all the tables.
|
SELECT Reactor type FROM table WHERE Commercial operation = — AND Unit = tianwan-7
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What reactor type that has a commercial operation of —, and a tianwan-7 unit?.It is not neccessary to use all the tables.
|
SELECT idoe_profile FROM table_1984697_85 WHERE city___town = "North Manchester"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the IDOE Profile in North Manchester?It is not neccessary to use all the tables.
|
SELECT 2 AS nd_leg FROM table_19130829_4 WHERE team__number1 = "Iraklis"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What's the 2nd leg result in the round where team #1 is Iraklis?It is not neccessary to use all the tables.
|
SELECT SUM Attendance FROM table WHERE Date = august 16
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the attendance for the game on August 16?.It is not neccessary to use all the tables.
|
SELECT Event FROM table WHERE Athlete = sjerstin vermeulen AND Result = 66.452
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What event did Sjerstin Vermeulen receive a 66.452 result?.It is not neccessary to use all the tables.
|
SELECT COUNT(episode) FROM table_24910733_2 WHERE rating = "8.2"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many episodes received rating of 8.2?It is not neccessary to use all the tables.
|
SELECT COUNT(broadcast) FROM table_28298589_4 WHERE home_team = "Connecticut"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many Connecticut home games were broadcast?It is not neccessary to use all the tables.
|
SELECT Record FROM table WHERE Date = october 20
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the oilers record on October 20?.It is not neccessary to use all the tables.
|
SELECT Team FROM table WHERE Attempts = 307
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the name of the team that has 307 attempts?.It is not neccessary to use all the tables.
|
SELECT Example: did- FROM table WHERE Consonant final stem = -i AND Noun example: datv- = datv-is
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What example for did- is shown for a Consonant final stem of -i, and a Noun example: datv- of datv-is?.It is not neccessary to use all the tables.
|
SELECT 2006 FROM table_name_48 WHERE 2007 = "3r"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is 2006 has a 2007 of 3r?It is not neccessary to use all the tables.
|
SELECT attendance FROM table_16119656_1 WHERE date = "January 9, 1988"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many were in attendance during the game on January 9 1988?It is not neccessary to use all the tables.
|
SELECT Margin of victory FROM table WHERE Winning score = 63-68-68-68=267
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the margin of victory with the winning score "63-68-68-68=267"?.It is not neccessary to use all the tables.
|
SELECT U.S. R&B FROM table WHERE Year = 2003
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the U.S. R&B rank in 2003?.It is not neccessary to use all the tables.
|
SELECT date FROM table_name_89 WHERE home_team = "geelong"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
When did Geelong play as the home team?It is not neccessary to use all the tables.
|
SELECT Slalom FROM table WHERE Downhill = 4
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which Slalom has a Downhill of 4?.It is not neccessary to use all the tables.
|
SELECT Grid FROM table WHERE Points = 14
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the grid for the driver who earned 14 points?.It is not neccessary to use all the tables.
|
SELECT Constructor FROM table WHERE Driver = jenson button
|
CREATE TABLE INST, Here is a database schema( table schema);
|
who is the constructor when the driver is jenson button?.It is not neccessary to use all the tables.
|
SELECT classification FROM table_12936521_2 WHERE nickname = "Dolphins"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What's the classification of the institution nicknamed Dolphins?It is not neccessary to use all the tables.
|
SELECT phoneme FROM table_name_43 WHERE nuskhuri = "ⴥ"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the Phoneme symbol for ⴥ in Nuskhuri?It is not neccessary to use all the tables.
|
SELECT MAX(position) FROM table_20854943_2 WHERE loa__metres_ = "20.12"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What position is the boat with 20.12 LOA (metres)?It is not neccessary to use all the tables.
|
SELECT district FROM table_1342370_17 WHERE incumbent = "James O'Connor"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
In which district is James O'Connor the incumbent?It is not neccessary to use all the tables.
|
SELECT "I/O bus" FROM table_66142 WHERE "Release price ( USD )" = '$657'
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the I/O bus entry for the processor with a release price of $657?It is not neccessary to use all the tables.
|
SELECT MAX(fc_matches) FROM table_1176371_1 WHERE name_of_ground = "The Racecourse"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the maximum fc matches at the racecourse?It is not neccessary to use all the tables.
|
SELECT SUM Grid FROM table WHERE Time/Retired = +0.785 AND Laps > 29
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How much Grid has a Time/Retired of +0.785, and Laps larger than 29?.It is not neccessary to use all the tables.
|
SELECT MAX Series # FROM table WHERE Title = "Words"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the series # for the episode titled "words"?.It is not neccessary to use all the tables.
|
SELECT college FROM table_name_42 WHERE round = 11 AND position = "wr"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which College has a Round of 11 and a Position of wr?It is not neccessary to use all the tables.
|
SELECT runner_up FROM table_11214772_2 WHERE semi_finalist__number1 = "Embry-Riddle"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
When Embry-Riddle made it to the first semi finalist slot, list all the runners up.It is not neccessary to use all the tables.
|
SELECT COUNT(attendance) FROM table_name_67 WHERE away_team = "middlesbrough"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many people attended the Away team of middlesbrough?It is not neccessary to use all the tables.
|
SELECT name FROM table_name_96 WHERE reserved_for___sc___st__none_ = "none" AND constituency_number = "7"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which Name has a Reserved for of none and a Constituency number of 7?It is not neccessary to use all the tables.
|
SELECT winner FROM table_name_50 WHERE date = "20 august"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is Winner when Date is "20 August"?It is not neccessary to use all the tables.
|
SELECT R. Epp FROM table WHERE Ed Zacharias = rollen, jerolt, golt
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which of the R. Epp, has Ed Zacharias from Rollen, Jerolt, Golt?.It is not neccessary to use all the tables.
|
SELECT COUNT Females (%) FROM table WHERE State = karnataka AND Males Rank > 16
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many Females (%) have a State of karnataka, and Males Rank larger than 16?.It is not neccessary to use all the tables.
|
SELECT Score points FROM table WHERE Total = 16
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the score points when the total is 16?.It is not neccessary to use all the tables.
|
SELECT position FROM table_1473672_3 WHERE nhl_team = "Philadelphia Flyers"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which position did the player hold that played for the Philadelphia Flyers in NHL?It is not neccessary to use all the tables.
|
SELECT MIN Grid FROM table WHERE Driver = bob anderson
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the smallest grid for Bob Anderson?.It is not neccessary to use all the tables.
|
SELECT To par FROM table WHERE Score > 68
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which To par has a Score larger than 68?.It is not neccessary to use all the tables.
|
SELECT dates_active FROM table_name_75 WHERE name = "07"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What dates was the storm called 07 active?It is not neccessary to use all the tables.
|
SELECT MIN Goals conceded FROM table WHERE Points = 58
|
CREATE TABLE INST, Here is a database schema( table schema);
|
List the number of goals scored to equal 58..It is not neccessary to use all the tables.
|
SELECT Attendance FROM table WHERE Result = w 51-21
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which Attendance has a Result of w 51-21?.It is not neccessary to use all the tables.
|
SELECT round FROM table_name_58 WHERE position = "left wing"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
In what round was a left wing drafted?It is not neccessary to use all the tables.
|
SELECT Circuit FROM table WHERE Date = 9 September AND GT3 Winner = Hector Lester Allan Simonsen
|
CREATE TABLE INST, Here is a database schema( table schema);
|
what are all the circuit for 9 september and gt3 winner hector lester allan simonsen.It is not neccessary to use all the tables.
|
SELECT winning_score FROM table_name_90 WHERE year = 1965
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the Winning score in 1965?It is not neccessary to use all the tables.
|
SELECT 2 AS nd_party FROM table_name_17 WHERE election = "1857"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which 2nd Party has a Election of 1857?It is not neccessary to use all the tables.
|
SELECT Class FROM table WHERE Drivers = rob collard
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What class is Rob Collard in?.It is not neccessary to use all the tables.
|
SELECT Margin of victory FROM table WHERE Tournament = bob hope desert classic
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the Margin of victory at the Bob Hope Desert Classic Tournament?.It is not neccessary to use all the tables.
|
SELECT COUNT(result) FROM table_1341663_6 WHERE district = "California 38"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many outcomes were there in the elections in California 38?It is not neccessary to use all the tables.
|
SELECT COUNT Money requested (£) FROM table WHERE Company or product name = gaming alerts
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How much money did gaming alerts ask for?.It is not neccessary to use all the tables.
|
SELECT Team FROM table WHERE Record = 2-5
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What team did the Wizards play against when their record was 2-5?.It is not neccessary to use all the tables.
|
SELECT AVG(lost) FROM table_name_14 WHERE games < 82 AND points < 95 AND pct__percentage < 0.506
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the average Lost when Games is less than 82 when Points is less than 95 and when Pct % is less than 0.506?It is not neccessary to use all the tables.
|
SELECT owner FROM table_18536769_1 WHERE branding = "Classic Hits 102.1 CJCY"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
When classic hits 102.1 cjcy is the branding who is the owner?It is not neccessary to use all the tables.
|
SELECT circuit FROM table_name_67 WHERE winning_team = "marlboro team penske" AND fastest_lap = "unknown"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What circuit did marlboro team penske win with an unknown fastest lap?It is not neccessary to use all the tables.
|
SELECT country FROM table_name_72 WHERE rank > 4
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What country is ranked larger than 4?It is not neccessary to use all the tables.
|
SELECT Partner FROM table WHERE Surface = carpet
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Who was his partner when he played on carpet?.It is not neccessary to use all the tables.
|
SELECT ε (M -1 cm -1 ) FROM table WHERE mass (g/mol) = 1008
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which ε (M -1 cm -1) has a molar mass of 1008 g/mol?.It is not neccessary to use all the tables.
|
SELECT phone, postal_code FROM address WHERE address = '1031 Daugavpils Parkway'
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the phone number and postal code of the address 1031 Daugavpils Parkway?It is not neccessary to use all the tables.
|
SELECT Position FROM table WHERE Series = macau grand prix AND Season < 2007
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the value for Position, when the Series is the Macau Grand Prix, and when the Season is before 2007?.It is not neccessary to use all the tables.
|
SELECT largest_ethnic_group__2002_ FROM table_2562572_20 WHERE population__2011_ = 24112
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Name the largest ethnic group for 24112It is not neccessary to use all the tables.
|
SELECT COUNT(director) FROM table_25800134_12 WHERE airdate = "February 5, 1968"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many people directed the episode that aired on February 5 1968?It is not neccessary to use all the tables.
|
SELECT Result FROM table WHERE Week = 11
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the result of the game on week 11?.It is not neccessary to use all the tables.
|
SELECT COUNT(sales) FROM table_name_31 WHERE peak_position = 1 AND certification = "6x platinum"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many sales had a peak position of 1 and a certification of 6x platinum?It is not neccessary to use all the tables.
|
SELECT Q1+Q2 time FROM table WHERE Q1 order = 13
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the Q1+Q2 time for the driver whose Q1 order was 13?.It is not neccessary to use all the tables.
|
SELECT High assists FROM table WHERE Record = 0-1
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Who had the high assist total when the team was 0-1?.It is not neccessary to use all the tables.
|
SELECT MAX(year) FROM table_name_32 WHERE film = "baazigar"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which Year has a Film of baazigar?It is not neccessary to use all the tables.
|
SELECT league_finish FROM table_22962745_12 WHERE w = 11
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Name the league finish for w being 11It is not neccessary to use all the tables.
|
SELECT Runner(s)-up FROM table WHERE Tournament = atlantic city classic
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Who is the runner-up of Atlantic city classic?.It is not neccessary to use all the tables.
|
SELECT Res. FROM table WHERE Competition = friendly match
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the result for the friendly match competition?.It is not neccessary to use all the tables.
|
SELECT group FROM table_name_66 WHERE year < 2010 AND film_series = "thirst"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which group nominated Kim in years before 2010 for Thirst?It is not neccessary to use all the tables.
|
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.ethnicity = "ASIAN" AND procedures.long_title = "Colonoscopy"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
provide the number of patients whose ethnicity is asian and procedure long title is colonoscopy?It is not neccessary to use all the tables.
|
SELECT Game FROM table WHERE High points = Rudy Gay (12)
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which game did rudy gay (12) have the highest points?.It is not neccessary to use all the tables.
|
SELECT Pick # FROM table WHERE Player = Yves Archambault
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many players had been drafted in front of Yves archambault.It is not neccessary to use all the tables.
|
SELECT runner_up FROM table_name_26 WHERE year = 1999
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Who won the runner-up in 1999?It is not neccessary to use all the tables.
|
SELECT MAX Folded FROM table WHERE Stadium = Fraser Field
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the maximum folded value of the team whose stadium is Fraser Field?.It is not neccessary to use all the tables.
|
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.expire_flag = "0" AND procedures.icd9_code = "8872"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
how many patients whose death status is 0 and procedure icd9 code is 8872?It is not neccessary to use all the tables.
|
SELECT SUM("total") FROM table_204_302
|
CREATE TABLE INST, Here is a database schema( table schema);
|
how many total medals were there all together ?It is not neccessary to use all the tables.
|
SELECT MAX Position FROM table WHERE Played < 10
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the highest position of the team having played under 10 matches?.It is not neccessary to use all the tables.
|
SELECT MIN(win__percentage) FROM table_name_53 WHERE away = "3-2" AND season = "2011"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the lowest win% with an away score of 3-2 in 2011 season?It is not neccessary to use all the tables.
|
SELECT MIN Share FROM table WHERE Viewers (m) < 8.78 AND Timeslot Rank < 4
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the smallest share for a timeslot ranking less than 4 and fewer viewers than 8.78 million?.It is not neccessary to use all the tables.
|
SELECT MIN Losses FROM table WHERE Wins < 6 AND South West DFL = sandford
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which Losses have Wins smaller than 6, and a South West DFL of sandford?.It is not neccessary to use all the tables.
|
SELECT Copa Mercosur 1998 FROM table WHERE Team = Cruzeiro
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What were Cruzeiro results in the Copa Mercosur in 1998.It is not neccessary to use all the tables.
|
SELECT Father FROM table WHERE Date of birth = january 2, 1842
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Who is the father that was born on January 2, 1842?.It is not neccessary to use all the tables.
|
SELECT CFL Team FROM table WHERE Player = jeff brown
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What CFL team does Jeff brown play for?.It is not neccessary to use all the tables.
|
SELECT 0–100km/h (62mph) FROM table WHERE Model = slk200k AND Top Speed = 236km/h (147mph)
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How fast can the SLK200K, with a top speed of 236km/h (147mph), accelerate to 100km/h (62mph)?.It is not neccessary to use all the tables.
|
SELECT Deleted FROM table WHERE County = tolland
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the deleted for tolland?.It is not neccessary to use all the tables.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.