sql stringlengths 9 2.37k | table stringclasses 9
values | query stringlengths 51 503 |
|---|---|---|
SELECT Championship FROM table WHERE Outcome = runner-up AND Opponents in final = gigi fernández natalia zvereva | CREATE TABLE INST, Here is a database schema( table schema); | What is Championship, when Outcome is "runner-up", and when Opponents In Final is "Gigi Fernández Natalia Zvereva"?.It is not neccessary to use all the tables. |
SELECT team_2 FROM table_name_90 WHERE team_1 = "taipower" AND result = "0-1" | CREATE TABLE INST, Here is a database schema( table schema); | What team is 2 when 1 is Taipower and the result is 0-1?It is not neccessary to use all the tables. |
SELECT Third FROM table WHERE Skip = barbora vojtusova | CREATE TABLE INST, Here is a database schema( table schema); | What is the name of the third who has Barbora Vojtusova as Skip?.It is not neccessary to use all the tables. |
SELECT award FROM table_name_85 WHERE year < 1998 AND type = "won" AND category = "best sound" AND title = "the exorcist" | CREATE TABLE INST, Here is a database schema( table schema); | What award was won in the best sound category for the exorcist before 1998?It is not neccessary to use all the tables. |
SELECT SUM(grid) FROM table_name_35 WHERE constructor = "renault" AND laps < 4 | CREATE TABLE INST, Here is a database schema( table schema); | How many grids had a constructor of renault and less than 4 laps?It is not neccessary to use all the tables. |
SELECT stake FROM table_name_97 WHERE wards__branches_in_arkansas = 16 | CREATE TABLE INST, Here is a database schema( table schema); | What stake has 16 wards/branches in Arkansas?It is not neccessary to use all the tables. |
SELECT Manager FROM table WHERE Team = manchester city | CREATE TABLE INST, Here is a database schema( table schema); | Which manager has Manchester City as the team?.It is not neccessary to use all the tables. |
SELECT finish FROM table_name_95 WHERE rank = "1" | CREATE TABLE INST, Here is a database schema( table schema); | Which finish has 1 as the rank?It is not neccessary to use all the tables. |
SELECT Nationality FROM table WHERE Position = forward AND School/Club Team = depaul | CREATE TABLE INST, Here is a database schema( table schema); | What is the nationality of the player that plays forward and is from depaul?.It is not neccessary to use all the tables. |
SELECT AVG(access_count) FROM documents GROUP BY document_structure_code ORDER BY COUNT(*) LIMIT 1 | CREATE TABLE INST, Here is a database schema( table schema); | Find the average access count of documents with the least popular structure.It is not neccessary to use all the tables. |
SELECT roll FROM table_name_2 WHERE area = "mahia" | CREATE TABLE INST, Here is a database schema( table schema); | Which roll has an Area of mahia?It is not neccessary to use all the tables. |
SELECT gt3_winner FROM table_30062172_3 WHERE pole_position = "Tim Bridgman Gregor Fisken" | CREATE TABLE INST, Here is a database schema( table schema); | When tim bridgman gregor fisken is the pole position who is the gt3 winner?It is not neccessary to use all the tables. |
SELECT MIN Laps FROM table WHERE Finish = 7 AND Start = 6 | CREATE TABLE INST, Here is a database schema( table schema); | What's the smallest amount of Laps that had a finish of 7 with a start of 6?.It is not neccessary to use all the tables. |
SELECT MIN(closed) FROM table_1987995_5 WHERE demod = 1994 | CREATE TABLE INST, Here is a database schema( table schema); | When was the park demolished in 1994 closed?It is not neccessary to use all the tables. |
SELECT COUNT Mens doubles FROM table WHERE Season = 2004/2005 | CREATE TABLE INST, Here is a database schema( table schema); | Name the number of mens doubles for 2004/2005.It is not neccessary to use all the tables. |
SELECT Home team FROM table WHERE Away team = carlton | CREATE TABLE INST, Here is a database schema( table schema); | Which team has an Away team of carlton?.It is not neccessary to use all the tables. |
SELECT MIN(games) AS ↑ FROM table_name_88 WHERE number = 98 | CREATE TABLE INST, Here is a database schema( table schema); | Which Games↑ is the lowest one that has a Number of 98?It is not neccessary to use all the tables. |
SELECT Written by FROM table WHERE Directed by = Joe Daniello AND Production code = 6AJN05 | CREATE TABLE INST, Here is a database schema( table schema); | who wrote the episode having joe daniello as director with production code 6ajn05?.It is not neccessary to use all the tables. |
SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', transfers.intime)) FROM transfers WHERE transfers.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 60136 AND admissions.dischtime IS NULL)) AND transfers... | CREATE TABLE INST, Here is a database schema( table schema); | how many hours are passed since the last time patient 60136 stayed in ward 14 in this hospital visit?It is not neccessary to use all the tables. |
SELECT SUM Week FROM table WHERE Date = september 14, 2008 | CREATE TABLE INST, Here is a database schema( table schema); | How many weeks have September 14, 2008 as the date?.It is not neccessary to use all the tables. |
SELECT "Place" FROM table_45150 WHERE "Country" = 'scotland' | CREATE TABLE INST, Here is a database schema( table schema); | What is the Place of the Player from Scotland?It is not neccessary to use all the tables. |
SELECT Software_Platform FROM device GROUP BY Software_Platform ORDER BY COUNT(*) DESC LIMIT 1 | CREATE TABLE INST, Here is a database schema( table schema); | List the software platform shared by the greatest number of devices.It is not neccessary to use all the tables. |
SELECT result FROM table_name_54 WHERE date = "april 3" | CREATE TABLE INST, Here is a database schema( table schema); | What is Result when Date is "April 3"?It is not neccessary to use all the tables. |
SELECT COUNT(starts) FROM table_20590020_2 WHERE player = "Leif Olson" | CREATE TABLE INST, Here is a database schema( table schema); | What is the total number of entries for Leif Olson?It is not neccessary to use all the tables. |
SELECT MAX(first_elected) FROM table_1342270_3 WHERE district = "Alabama 5" | CREATE TABLE INST, Here is a database schema( table schema); | what is the maximum first elected with district being alabama 5It is not neccessary to use all the tables. |
SELECT T2.title, T1.rID, T1.stars, MIN(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T1.rID | CREATE TABLE INST, Here is a database schema( table schema); | Find the title and star rating of the movie that got the least rating star for each reviewer.It is not neccessary to use all the tables. |
SELECT TV Time FROM table WHERE Giants' points = 14 | CREATE TABLE INST, Here is a database schema( table schema); | What was the TV time for the game where the Giants had 14 points?.It is not neccessary to use all the tables. |
SELECT lead FROM table_name_10 WHERE skip = "ritvars gulbis" | CREATE TABLE INST, Here is a database schema( table schema); | Who was the lead when Ritvars Gulbis was the skip?It is not neccessary to use all the tables. |
SELECT Tournament FROM table WHERE Surface = hard AND Score = 3–6, 6–3, 7–6 | CREATE TABLE INST, Here is a database schema( table schema); | In what Tournament was the Score of 3–6, 6–3, 7–6 in a match played on a hard Surface?.It is not neccessary to use all the tables. |
SELECT Championship FROM table WHERE Year < 1952 AND Race Title = grand prix watkins glen AND Drivers = miles collier | CREATE TABLE INST, Here is a database schema( table schema); | Was the Grand Prix Watkins GLen that Miles Collier raced in before 1952 a championship?.It is not neccessary to use all the tables. |
SELECT home_team AS score FROM table_name_57 WHERE venue = "lake oval" | CREATE TABLE INST, Here is a database schema( table schema); | What is the home team of lake oval's score?It is not neccessary to use all the tables. |
SELECT Location FROM table WHERE Copies per particle = 0 AND Protein = nsp3 | CREATE TABLE INST, Here is a database schema( table schema); | Which location has a copies per particle of 0 and a protein of nsp3?.It is not neccessary to use all the tables. |
SELECT affiliation FROM table_25818630_1 WHERE candidate = "Daren Ireland" | CREATE TABLE INST, Here is a database schema( table schema); | What is every affiliation for candidate Daren Ireland?It is not neccessary to use all the tables. |
SELECT MIN Points FROM table WHERE Losses < 8 AND Team Name = vancouver burrards AND Games < 24 | CREATE TABLE INST, Here is a database schema( table schema); | What's the lowest number of points with fewer than 8 losses and fewer than 24 games for the vancouver burrards?.It is not neccessary to use all the tables. |
SELECT COUNT(season) FROM table_20398823_1 WHERE team = "team Bruichladdich" | CREATE TABLE INST, Here is a database schema( table schema); | Name the number of season for team bruichladdichIt is not neccessary to use all the tables. |
SELECT republican FROM table_17503169_1 WHERE incumbent = "Thelma Drake" | CREATE TABLE INST, Here is a database schema( table schema); | Who was the republican candidate in the race with incumbent thelma drake?It is not neccessary to use all the tables. |
SELECT name FROM table_name_84 WHERE lane = 5 | CREATE TABLE INST, Here is a database schema( table schema); | Who was in Lane 5?It is not neccessary to use all the tables. |
SELECT COUNT(us_viewers__million_) FROM table_13336122_6 WHERE no_in_season = 2 | CREATE TABLE INST, Here is a database schema( table schema); | Name the number of shows when there was 2 million viewsIt is not neccessary to use all the tables. |
SELECT Incumbent FROM table WHERE Results = re-elected AND Party = democratic AND District = minnesota 7 | CREATE TABLE INST, Here is a database schema( table schema); | What is Incumbent, when Results is "Re-Elected", when Party is "Democratic", and when District is "Minnesota 7"?.It is not neccessary to use all the tables. |
SELECT SUM Points FROM table WHERE Home = pittsburgh AND Score = 1–7 | CREATE TABLE INST, Here is a database schema( table schema); | How many Points have a Home of pittsburgh, and a Score of 1–7?.It is not neccessary to use all the tables. |
SELECT higher_harmonics FROM table_name_36 WHERE speed = "0.0821373" | CREATE TABLE INST, Here is a database schema( table schema); | Which higher harmonics have a speed of 0.0821373?It is not neccessary to use all the tables. |
SELECT civil_parish FROM table_30121096_1 WHERE townland = "Clooncugger" | CREATE TABLE INST, Here is a database schema( table schema); | Which civil parish is for the townland clooncugger?It is not neccessary to use all the tables. |
SELECT COUNT Release Date FROM table WHERE Story # = 7 | CREATE TABLE INST, Here is a database schema( table schema); | How many different release dates are there for the audio book with a story number 7?.It is not neccessary to use all the tables. |
SELECT MAX(draws) FROM table_name_94 WHERE goal_difference > 3 AND losses < 8 | CREATE TABLE INST, Here is a database schema( table schema); | For a goal difference greater than 3 and fewer than 8 losses what is the most draws scored?It is not neccessary to use all the tables. |
SELECT Name FROM table WHERE Decile = 1 AND Authority = state AND Area = otahuhu | CREATE TABLE INST, Here is a database schema( table schema); | What is the name of the school with a decile of 1, a state authority, and located in Otahuhu?.It is not neccessary to use all the tables. |
SELECT Mens singles FROM table WHERE Year = 2008 | CREATE TABLE INST, Here is a database schema( table schema); | What is the mens singles of 2008?.It is not neccessary to use all the tables. |
SELECT bore FROM table_name_8 WHERE cyl = "9-cyl radial" AND name = "9 ad" | CREATE TABLE INST, Here is a database schema( table schema); | What is the bore for a 9-cyl radial on a 9 AD?It is not neccessary to use all the tables. |
SELECT MAX Weight (kg) FROM table WHERE Position = f AND Jersey # = 12 | CREATE TABLE INST, Here is a database schema( table schema); | What was the highest weight in kg for F Position, Jersey #12?.It is not neccessary to use all the tables. |
SELECT 2012 FROM table WHERE 2009 = 1r AND 2008 = 1r AND 2007 = 2r | CREATE TABLE INST, Here is a database schema( table schema); | What is the 2012 result of a tournament that is 2R in 2007, 1R in 2008 and 1R in 2009?.It is not neccessary to use all the tables. |
SELECT Top 10 FROM table WHERE Team(s) = #10 Phil Parsons Racing AND Avg. Finish = 22.9 | CREATE TABLE INST, Here is a database schema( table schema); | What is every value of Top 10 when team is #10 Phil Parsons Racing and average finish is 22.9?.It is not neccessary to use all the tables. |
SELECT Contestant FROM table WHERE Province, Community = Baoruco | CREATE TABLE INST, Here is a database schema( table schema); | Which contestant is from the province of baoruco.It is not neccessary to use all the tables. |
SELECT MAX Score FROM table WHERE Player = bernhard langer | CREATE TABLE INST, Here is a database schema( table schema); | What was Bernhard Langer's highest score?.It is not neccessary to use all the tables. |
SELECT Attempts FROM table WHERE Completions = 223 | CREATE TABLE INST, Here is a database schema( table schema); | What number of attempts were recorded when the completions were 223?.It is not neccessary to use all the tables. |
SELECT MAX(top_25) FROM table_name_15 WHERE wins < 0 | CREATE TABLE INST, Here is a database schema( table schema); | What is the highest number of top-25s for events with 0 wins?It is not neccessary to use all the tables. |
SELECT "Weapon" FROM table_15903 WHERE "Direction" = 'East' | CREATE TABLE INST, Here is a database schema( table schema); | What are the weapons used by guardians for the direction East?It is not neccessary to use all the tables. |
SELECT year_s__won FROM table_name_87 WHERE player = "tom watson" | CREATE TABLE INST, Here is a database schema( table schema); | What year did Tom Watson win?It is not neccessary to use all the tables. |
SELECT Party FROM table WHERE Incumbent = Clyde T. Ellis | CREATE TABLE INST, Here is a database schema( table schema); | What party does clyde t. ellis represent?.It is not neccessary to use all the tables. |
SELECT Location FROM table WHERE Elevation (m) = 3798 | CREATE TABLE INST, Here is a database schema( table schema); | Which location has an elevation of 3798?.It is not neccessary to use all the tables. |
SELECT Meet FROM table WHERE Time = 2:15.93 | CREATE TABLE INST, Here is a database schema( table schema); | I want to meet that has a time 2:15.93.It is not neccessary to use all the tables. |
SELECT Party FROM table WHERE Seats won < 21 AND Percent of seats = 0 AND Votes cast = 69757 | CREATE TABLE INST, Here is a database schema( table schema); | Which party won less than 21 seats, has 0 percent of seats, and 69757 votes cast?.It is not neccessary to use all the tables. |
SELECT COUNT(*) FROM Flights AS T1 JOIN Airports AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.city = "Aberdeen" OR T2.city = "Abilene" | CREATE TABLE INST, Here is a database schema( table schema); | Find the number of flights landing in the city of Aberdeen or Abilene.It is not neccessary to use all the tables. |
SELECT Laid down FROM table WHERE Launched = 16 february 1934 | CREATE TABLE INST, Here is a database schema( table schema); | Name the laid down for launched being 16 february 1934.It is not neccessary to use all the tables. |
SELECT MIN(apps) FROM table_name_86 WHERE season = "2009" AND division < 1 | CREATE TABLE INST, Here is a database schema( table schema); | What is the lowest value for apps in 2009 season in a division less than 1?It is not neccessary to use all the tables. |
SELECT Player FROM table WHERE Position = fly-half | CREATE TABLE INST, Here is a database schema( table schema); | Which player was a fly-half?.It is not neccessary to use all the tables. |
SELECT date FROM table_25213146_2 WHERE winning_team = "Prema Powerteam" | CREATE TABLE INST, Here is a database schema( table schema); | On what date(s) was the winning team Prema Powerteam?It is not neccessary to use all the tables. |
SELECT COUNT Air Date FROM table WHERE Overall = 83/95 | CREATE TABLE INST, Here is a database schema( table schema); | how many air date with overall being 83/95.It is not neccessary to use all the tables. |
SELECT set_1 FROM table_name_6 WHERE set_2 = "15–5" AND set_3 = "15–3" | CREATE TABLE INST, Here is a database schema( table schema); | What is the Set 1 with a Set 2 of 15–5 and a Set 3 with 15–3?It is not neccessary to use all the tables. |
SELECT district FROM table_1341640_43 WHERE incumbent = "Al Gore" | CREATE TABLE INST, Here is a database schema( table schema); | Where was Al Gore electedIt is not neccessary to use all the tables. |
SELECT MIN Episodes FROM table | CREATE TABLE INST, Here is a database schema( table schema); | What was the minimum number of episodes in any of the series? .It is not neccessary to use all the tables. |
SELECT fri_4_june FROM table_25220821_3 WHERE wed_2_june = "20' 50.62 108.608mph" | CREATE TABLE INST, Here is a database schema( table schema); | What is the Friday 4 June if the Wednesday 2 June is 20' 50.62 108.608mph?It is not neccessary to use all the tables. |
SELECT Constructor FROM table WHERE Time/Retired = collision AND Grid = 11 | CREATE TABLE INST, Here is a database schema( table schema); | What companyw as the constructor when the Time/Retired was collision, and a Grid of 11?.It is not neccessary to use all the tables. |
SELECT class FROM table_name_77 WHERE vessel_name = "hyundai tenacity" | CREATE TABLE INST, Here is a database schema( table schema); | In which class would the vessel Hyundai Tenacity be placed?It is not neccessary to use all the tables. |
SELECT "Votes %" FROM table_58540 WHERE "Candidate" = 'cliff breitkreuz' | CREATE TABLE INST, Here is a database schema( table schema); | What is the vote % for Cliff Breitkreuz?It is not neccessary to use all the tables. |
SELECT Away team FROM table WHERE Venue = junction oval | CREATE TABLE INST, Here is a database schema( table schema); | Who was the away team at Junction Oval?.It is not neccessary to use all the tables. |
SELECT station FROM table_name_73 WHERE zone_2008 = "8" AND zone_2007 = "outside zones" AND services = "london overground" | CREATE TABLE INST, Here is a database schema( table schema); | Which Station has a Zone 2008 of 8 and a Zone 2007 of outside zones and Services of london overground?It is not neccessary to use all the tables. |
SELECT COUNT(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = "Tennis Club" | CREATE TABLE INST, Here is a database schema( table schema); | How many members does the club 'Tennis Club' has?It is not neccessary to use all the tables. |
SELECT owner FROM table_name_10 WHERE trainer = "nick zito" AND year = "1996" | CREATE TABLE INST, Here is a database schema( table schema); | Who was the owner in 1996 of trainer Nick Zito?It is not neccessary to use all the tables. |
SELECT proto_italo_western_1 FROM table_25401_15 WHERE english = "door" | CREATE TABLE INST, Here is a database schema( table schema); | What is every entry for Proto-Italo-Western 1 when door is English?It is not neccessary to use all the tables. |
SELECT opponent FROM table_name_44 WHERE res = "win" AND time = "1:10" | CREATE TABLE INST, Here is a database schema( table schema); | Which Opponent had a Win as Res and a Time of 1:10?It is not neccessary to use all the tables. |
SELECT Region FROM table WHERE Date = early september 1999 | CREATE TABLE INST, Here is a database schema( table schema); | Which Region has a Date of early september 1999?.It is not neccessary to use all the tables. |
SELECT District FROM table WHERE First elected = 1904 AND Incumbent = duncan e. mckinlay | CREATE TABLE INST, Here is a database schema( table schema); | Which District has a First Elected of 1904 and an Incumbent of Duncan E. Mckinlay?.It is not neccessary to use all the tables. |
SELECT Venue FROM table WHERE Result = Lost 3-4 | CREATE TABLE INST, Here is a database schema( table schema); | What was the venue of the game that was lost 3-4?.It is not neccessary to use all the tables. |
SELECT Result FROM table WHERE Competition = world group, consolation round | CREATE TABLE INST, Here is a database schema( table schema); | What is the result for world group, consolation round?.It is not neccessary to use all the tables. |
SELECT us_airdate FROM table_12294557_3 WHERE canadian_airdate = "May 4, 2009" | CREATE TABLE INST, Here is a database schema( table schema); | what are the u.s. air dates with a Canadian air date of may 4 2009It is not neccessary to use all the tables. |
SELECT margin_of_victory FROM table_name_39 WHERE tournament = "semgroup championship" | CREATE TABLE INST, Here is a database schema( table schema); | What is the margin of victory in a semgroup championship?It is not neccessary to use all the tables. |
SELECT crowd FROM table_name_12 WHERE home_team = "st kilda" | CREATE TABLE INST, Here is a database schema( table schema); | During st kilda's home game what was the number of people in the crowd?It is not neccessary to use all the tables. |
SELECT COUNT(DISTINCT product_type_code) FROM products_for_hire | CREATE TABLE INST, Here is a database schema( table schema); | How many different product types are there?It is not neccessary to use all the tables. |
SELECT г_г_[ɡ] FROM table_202365_2 WHERE а_а_[a] = "Ҕә ҕә [ʁʷ/ɣʷ]" | CREATE TABLE INST, Here is a database schema( table schema); | what is г г [ɡ] when а а [a] is ҕә ҕә [ʁʷ/ɣʷ]?It is not neccessary to use all the tables. |
SELECT MAX(bronze) FROM table_name_28 WHERE total < 17 AND nation = "poland" AND gold > 1 | CREATE TABLE INST, Here is a database schema( table schema); | When the nation of poland had less than 17 medals but more than 1 gold medal what's the Highest number of bronze medals?It is not neccessary to use all the tables. |
SELECT High School FROM table WHERE Mascot = Storm | CREATE TABLE INST, Here is a database schema( table schema); | How many high schools have storm mascots?.It is not neccessary to use all the tables. |
SELECT AVG(T1.Price), T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name | CREATE TABLE INST, Here is a database schema( table schema); | Select the average price of each manufacturer's products, showing the manufacturer's name.It is not neccessary to use all the tables. |
SELECT "Country" FROM table_65424 WHERE "Time" = '6:14.84' | CREATE TABLE INST, Here is a database schema( table schema); | What country had a Time of 6:14.84?It is not neccessary to use all the tables. |
SELECT engine FROM table_name_85 WHERE rounds = "10-13" | CREATE TABLE INST, Here is a database schema( table schema); | What was the featured in Engine through rounds 10-13?It is not neccessary to use all the tables. |
SELECT ABS((SELECT "population" FROM table_204_616 WHERE "township" = 'easton') - (SELECT "population" FROM table_204_616 WHERE "township" = 'reno')) | CREATE TABLE INST, Here is a database schema( table schema); | what is the difference of population in easton and reno ?It is not neccessary to use all the tables. |
SELECT COUNT(losses) FROM table_name_82 WHERE wins < 9 | CREATE TABLE INST, Here is a database schema( table schema); | What is the total number of losses for years with fewer than 9 wins?It is not neccessary to use all the tables. |
SELECT MIN Founded FROM table WHERE School = Lawrence Academy at Groton | CREATE TABLE INST, Here is a database schema( table schema); | when was lawrence academy at groton established? .It is not neccessary to use all the tables. |
SELECT winning_driver FROM table_25773116_2 WHERE date = "April 11" | CREATE TABLE INST, Here is a database schema( table schema); | Who won the April 11 race?It is not neccessary to use all the tables. |
SELECT COUNT Game FROM table WHERE Record = 2-3 | CREATE TABLE INST, Here is a database schema( table schema); | What game was the record 2-3?.It is not neccessary to use all the tables. |
SELECT game_site FROM table_name_87 WHERE date = "april 10, 2004" | CREATE TABLE INST, Here is a database schema( table schema); | Which game site hosted a match on April 10 2004?It is not neccessary to use all the tables. |
SELECT Original air date FROM table WHERE Directed by = Di Drew | CREATE TABLE INST, Here is a database schema( table schema); | If Di Drew is the director, what was the original air date for episode A Whole Lot to Lose?.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.