sql stringlengths 9 2.37k | table stringclasses 9
values | query stringlengths 51 503 |
|---|---|---|
SELECT Away team score FROM table WHERE Away team = richmond | CREATE TABLE INST, Here is a database schema( table schema); | What is Richmond score as the away team?.It is not neccessary to use all the tables. |
SELECT founded FROM table_255205_1 WHERE nickname = "Fightin' Engineers" | CREATE TABLE INST, Here is a database schema( table schema); | This institution nicknamed Fightin' engineers was founded on what year?It is not neccessary to use all the tables. |
SELECT athlete FROM table_name_73 WHERE place = "reno" | CREATE TABLE INST, Here is a database schema( table schema); | What athlete has reno as the place?It is not neccessary to use all the tables. |
SELECT College FROM table WHERE Round = 1 | CREATE TABLE INST, Here is a database schema( table schema); | Which college was the player selected from in round 1?.It is not neccessary to use all the tables. |
SELECT team FROM table_name_42 WHERE score = "101" | CREATE TABLE INST, Here is a database schema( table schema); | what team's score is 101?It is not neccessary to use all the tables. |
SELECT record FROM table_name_72 WHERE nationality = "bahamas" AND games = "2012 hamilton" | CREATE TABLE INST, Here is a database schema( table schema); | What is the Record of the 2012 Hamilton Games from Bahamas?It is not neccessary to use all the tables. |
SELECT decision FROM table_name_33 WHERE home = "atlanta" | CREATE TABLE INST, Here is a database schema( table schema); | Who made the decision when atlanta was the home team?It is not neccessary to use all the tables. |
SELECT countries_visited FROM table_name_26 WHERE episode_no < 7 AND writer = "ray gosling" | CREATE TABLE INST, Here is a database schema( table schema); | Which countries visited had an episode number of less than 7 when Ray Gosling was the writer?It is not neccessary to use all the tables. |
SELECT original_air_date FROM table_name_84 WHERE title = "julie gets validated" | CREATE TABLE INST, Here is a database schema( table schema); | When did Julie gets Validated originally air?It is not neccessary to use all the tables. |
SELECT Władysławowo , Poland FROM table WHERE World record = olympic record AND Marcin Dołęga ( POL ) = olympic standard AND Snatch = clean & jerk | CREATE TABLE INST, Here is a database schema( table schema); | What shows for Władysławowo, Poland when the world record shows olympic record, a Marcin Dołęga (POL) is olympic standard, and Snatch is clean & jerk?.It is not neccessary to use all the tables. |
SELECT COUNT(competition_finish) FROM table_name_43 WHERE total = 90 AND rank_by_average > 5 | CREATE TABLE INST, Here is a database schema( table schema); | Name the total number of competition finish with total of 90 and rank by average more than 5It is not neccessary to use all the tables. |
SELECT city_of_license FROM table_name_22 WHERE frequency_mhz > 89.5 AND call_sign = "k213el" | CREATE TABLE INST, Here is a database schema( table schema); | Which City of license has a Frequency MHz larger than 89.5 and a Call sign of k213el?It is not neccessary to use all the tables. |
SELECT English title FROM table WHERE Year < 1999 AND Role = kim da-rim | CREATE TABLE INST, Here is a database schema( table schema); | What is the english title of the film before 1999 with a role of kim da-rim?.It is not neccessary to use all the tables. |
SELECT athlete FROM table_name_10 WHERE rank < 2 | CREATE TABLE INST, Here is a database schema( table schema); | who is the athlete with the rank smaller than 2?It is not neccessary to use all the tables. |
SELECT "Frequency" FROM table_66082 WHERE "Format" = 'active rock' | CREATE TABLE INST, Here is a database schema( table schema); | What is the frequency for the active rock format?It is not neccessary to use all the tables. |
SELECT MAX(new_zealand) FROM table_name_47 WHERE hong_kong < 0 | CREATE TABLE INST, Here is a database schema( table schema); | What is the highest New Zealand value with a Hong Kong value less than 0?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.admityear < "2150" AND procedures.long_title = "Hemodialysis" | CREATE TABLE INST, Here is a database schema( table schema); | give me the number of patients whose admission year is less than 2150 and procedure long title is hemodialysis?It is not neccessary to use all the tables. |
SELECT MAX Founded FROM table WHERE Nickname = Blue Hose | CREATE TABLE INST, Here is a database schema( table schema); | Name the maximum founded for blue hose.It is not neccessary to use all the tables. |
SELECT MAX Year FROM table WHERE Start = 1st AND Chassis = g-force | CREATE TABLE INST, Here is a database schema( table schema); | What was the most recent year when a g-force chassis started in 1st?.It is not neccessary to use all the tables. |
SELECT School/Club Team FROM table WHERE Number = 9 | CREATE TABLE INST, Here is a database schema( table schema); | Name the school/club team for 9.It is not neccessary to use all the tables. |
SELECT away_team AS score FROM table_name_21 WHERE home_team = "hawthorn" | CREATE TABLE INST, Here is a database schema( table schema); | What is the score of the away team who played home team Hawthorn?It is not neccessary to use all the tables. |
SELECT 2011 FROM table_name_2 WHERE 2006 = "a" AND tournament = "french open" | CREATE TABLE INST, Here is a database schema( table schema); | What is the 2011 value of the French Open which has a 2006 value of A?It is not neccessary to use all the tables. |
SELECT overall_record FROM table_name_28 WHERE school = "milford" | CREATE TABLE INST, Here is a database schema( table schema); | What is the Overall Record for the School in Milford?It is not neccessary to use all the tables. |
SELECT MAX(opponents) FROM table_21092427_1 WHERE record = "8-1" | CREATE TABLE INST, Here is a database schema( table schema); | Name the most opponents for 8-1 recordIt is not neccessary to use all the tables. |
SELECT IHSAA Class Football FROM table WHERE Year Joined = 1968 | CREATE TABLE INST, Here is a database schema( table schema); | What is the IHSAA Class for football for the team joining in 1968?.It is not neccessary to use all the tables. |
SELECT Former Province FROM table WHERE Area (km 2 ) = 694.9 | CREATE TABLE INST, Here is a database schema( table schema); | In what former province was the area 694.9 kilometers squared?.It is not neccessary to use all the tables. |
SELECT Attendance FROM table WHERE Runner-up = suntory sungoliath AND Title = 46th | CREATE TABLE INST, Here is a database schema( table schema); | What is the Attendance number when the runner-up was suntory sungoliath, and a Title of 46th?.It is not neccessary to use all the tables. |
SELECT Years FROM table WHERE Goals = 36 | CREATE TABLE INST, Here is a database schema( table schema); | What years had players who scored 36 goals?.It is not neccessary to use all the tables. |
SELECT Week 4 FROM table WHERE Week 1 = sheila levell | CREATE TABLE INST, Here is a database schema( table schema); | What kind of Week 4 has a Week 1 of sheila levell?.It is not neccessary to use all the tables. |
SELECT Playoffs FROM table WHERE Team Name = Bay Area Seals | CREATE TABLE INST, Here is a database schema( table schema); | What was the playoff result for the team name of bay area seals.It is not neccessary to use all the tables. |
SELECT "Catalog" FROM table_42770 WHERE "Region" = 'uk' AND "Label" = 'razor records' | CREATE TABLE INST, Here is a database schema( table schema); | What is Catalog, when the Region is UK, and when Label is Razor Records?It is not neccessary to use all the tables. |
SELECT Driver FROM table WHERE Laps = 20 | CREATE TABLE INST, Here is a database schema( table schema); | I want the Driver with Laps of 20.It is not neccessary to use all the tables. |
SELECT SUM(lost) FROM table_name_5 WHERE games < 7 | CREATE TABLE INST, Here is a database schema( table schema); | How many lost are there before game 7?It is not neccessary to use all the tables. |
SELECT "Date" FROM table_47198 WHERE "Region" = 'united kingdom' | CREATE TABLE INST, Here is a database schema( table schema); | Which date has a region of united kingdom?It is not neccessary to use all the tables. |
SELECT Directed by FROM table WHERE Original air date = January 15, 2008 | CREATE TABLE INST, Here is a database schema( table schema); | Who directed the episode that originally aired on January 15, 2008?.It is not neccessary to use all the tables. |
SELECT "time / behind" FROM table_204_330 WHERE "horse" = 'spokane' | CREATE TABLE INST, Here is a database schema( table schema); | how long did spokane take to finish the race ?It is not neccessary to use all the tables. |
SELECT Release date FROM table WHERE Series = mm AND Title = confederate honey | CREATE TABLE INST, Here is a database schema( table schema); | What is the release date of the mm series which has the title confederate honey?.It is not neccessary to use all the tables. |
SELECT Pick # FROM table WHERE College = Arizona State | CREATE TABLE INST, Here is a database schema( table schema); | What number picked were players from arizona state picked?.It is not neccessary to use all the tables. |
SELECT Date FROM table WHERE Score1 = 2 - 4 AND Opponent = chelsea under 18s | CREATE TABLE INST, Here is a database schema( table schema); | On what date is there a score1 of 2 - 4 with the opponent Chelsea under 18s?.It is not neccessary to use all the tables. |
SELECT AVG 2011-03 FROM table WHERE Unemployment = sweden AND 2009-03 > 8 | CREATE TABLE INST, Here is a database schema( table schema); | What is the average 2011-03, when Unemployment is Sweden, and when 2009-03 is greater than 8?.It is not neccessary to use all the tables. |
SELECT season FROM table_name_19 WHERE oberliga_bayern = "spvgg bayreuth" AND oberliga_südwest = "eintracht trier" | CREATE TABLE INST, Here is a database schema( table schema); | Which Season ha spvgg bayreuth and eintracht trier?It is not neccessary to use all the tables. |
SELECT MAX Total FROM table WHERE Player = bernhard langer | CREATE TABLE INST, Here is a database schema( table schema); | Bernhard Langer maximum total was what?.It is not neccessary to use all the tables. |
SELECT score FROM table_name_70 WHERE tournament = "spain f32, gran canaria" | CREATE TABLE INST, Here is a database schema( table schema); | What was the Score of the Spain F32 Gran Canaria Tournament?It is not neccessary to use all the tables. |
SELECT "Player" FROM table_62828 WHERE "Pick" > '53' AND "Position" = 'defensive tackle' | CREATE TABLE INST, Here is a database schema( table schema); | What player had a pick higher than 53, and a position of defensive tackle?It is not neccessary to use all the tables. |
SELECT date FROM table_name_62 WHERE record = "3-14-6" | CREATE TABLE INST, Here is a database schema( table schema); | When was the record 3-14-6?It is not neccessary to use all the tables. |
SELECT COUNT(attendance) FROM table_name_65 WHERE date = "october 8" | CREATE TABLE INST, Here is a database schema( table schema); | How many were in Attendance on October 8?It is not neccessary to use all the tables. |
SELECT round_of_32 FROM table_27294107_11 WHERE athlete = "Yakup Şener" | CREATE TABLE INST, Here is a database schema( table schema); | When yakup şener is the athlete what is the round of 32?It is not neccessary to use all the tables. |
SELECT Team FROM table WHERE Name = garth tander | CREATE TABLE INST, Here is a database schema( table schema); | What team features garth tander?.It is not neccessary to use all the tables. |
SELECT MIN(stage) FROM table_15088557_1 WHERE mountains_classification = "Aitor Osa" AND winner = "Aitor González" | CREATE TABLE INST, Here is a database schema( table schema); | what is the minimum stage where mountains classification is aitor osa and aitor gonzález won?It is not neccessary to use all the tables. |
SELECT MIN Khmer FROM table WHERE ALA-LC = kau sip AND Value < 90 | CREATE TABLE INST, Here is a database schema( table schema); | What is smallest Khmer valued less than 90 have a kau sip ALA-LC?.It is not neccessary to use all the tables. |
SELECT * FROM departments WHERE department_name = 'Marketing' | CREATE TABLE INST, Here is a database schema( table schema); | Display all the information about the department Marketing.It is not neccessary to use all the tables. |
SELECT skip FROM table_name_22 WHERE third = "martina baumann" | CREATE TABLE INST, Here is a database schema( table schema); | What skip has martina baumann as the third?It is not neccessary to use all the tables. |
SELECT country FROM table_name_99 WHERE player = "tom watson" | CREATE TABLE INST, Here is a database schema( table schema); | What is Country when Player is "Tom Watson"?It is not neccessary to use all the tables. |
SELECT programming FROM table_name_98 WHERE aspect = "4:3" AND psip_short_name = "metvla" | CREATE TABLE INST, Here is a database schema( table schema); | Which Programming has an Aspect of 4:3 and a PSIP Short Name of metvla?It is not neccessary to use all the tables. |
SELECT date FROM weather WHERE mean_sea_level_pressure_inches BETWEEN 30.3 AND 31 | CREATE TABLE INST, Here is a database schema( table schema); | What are the dates in which the mean sea level pressure was between 30.3 and 31?It is not neccessary to use all the tables. |
SELECT country FROM table_20754016_2 WHERE hometown = "Salto" | CREATE TABLE INST, Here is a database schema( table schema); | What country is the contestant from Salto from?It is not neccessary to use all the tables. |
SELECT release_date FROM table_name_34 WHERE voltage_range = "1.148 v - 1.196 v" | CREATE TABLE INST, Here is a database schema( table schema); | Which Release Date has a Voltage Range of 1.148 v - 1.196 v?It is not neccessary to use all the tables. |
SELECT count(*) FROM Fires WHERE FIRE_YEAR = 2010 AND STAT_CAUSE_DESCR LIKE "%Arson%" | CREATE TABLE INST, Here is a database schema( fires); | How many arson-related fires were there in 2010?. It is not neccessary to use all the tables. |
SELECT SUM(played) FROM table_name_52 WHERE points = 38 AND bp > 5 | CREATE TABLE INST, Here is a database schema( table schema); | Played that has a Points of 38 and a B.P. larger than 5 has what sum?It is not neccessary to use all the tables. |
SELECT MAX(production_number) FROM table_name_66 WHERE director = "i. freleng" AND release_date = "1955-04-02" | CREATE TABLE INST, Here is a database schema( table schema); | What is the highest production number released on 1955-04-02 with i. freleng as the director?It is not neccessary to use all the tables. |
SELECT COUNT(no) FROM table_21469545_2 WHERE margin_of_victory = "3 strokes" | CREATE TABLE INST, Here is a database schema( table schema); | Name the number for margin of victory being 3 strokesIt is not neccessary to use all the tables. |
SELECT MAX Wins FROM table WHERE Class = 500cc AND Points < 6 | CREATE TABLE INST, Here is a database schema( table schema); | Which Wins is the highest one that has a Class of 500cc, and Points smaller than 6?.It is not neccessary to use all the tables. |
SELECT place FROM table_name_48 WHERE score = 70 - 72 = 142 | CREATE TABLE INST, Here is a database schema( table schema); | what is the place when the score is 70-72=142?It is not neccessary to use all the tables. |
SELECT COUNT(dates) FROM table_1628792_1 WHERE margin_of_victory = "5 strokes" | CREATE TABLE INST, Here is a database schema( table schema); | Name the dates for margin of victory being 5 strokesIt is not neccessary to use all the tables. |
SELECT AVG(year) FROM table_name_71 WHERE mixed_doubles = "nathan robertson gail emms" | CREATE TABLE INST, Here is a database schema( table schema); | What is the average year with Nathan Robertson Gail Emms in mixed doubles?It is not neccessary to use all the tables. |
SELECT 3 AS rd_edition FROM table_name_90 WHERE episode = "4" | CREATE TABLE INST, Here is a database schema( table schema); | What is the 3rd Edition for Episode 4?It is not neccessary to use all the tables. |
SELECT result FROM table_name_14 WHERE nominee = "jason pennycooke" | CREATE TABLE INST, Here is a database schema( table schema); | Did Jason Pennycooke win the award he was nominated for?It is not neccessary to use all the tables. |
SELECT place FROM table_name_73 WHERE country = "spain" | CREATE TABLE INST, Here is a database schema( table schema); | What place is Spain in?It is not neccessary to use all the tables. |
SELECT MAX(total_goals) FROM table_name_10 WHERE total_apps = "42 (3)" AND league_goals < 1 | CREATE TABLE INST, Here is a database schema( table schema); | Which Total Goals have Total Apps of 42 (3) and League Goals smaller than 1?It is not neccessary to use all the tables. |
SELECT sunk_by FROM table_name_67 WHERE flag = "norway" | CREATE TABLE INST, Here is a database schema( table schema); | Who sunk the ship with the flag of Norway?It is not neccessary to use all the tables. |
SELECT operator FROM table_name_13 WHERE width = "2.65 m" AND type_designation = "m5000" | CREATE TABLE INST, Here is a database schema( table schema); | Which Operator has a Width of 2.65 m and a Type designation of m5000?It is not neccessary to use all the tables. |
SELECT MIN(laps) FROM table_name_83 WHERE grid > 7 AND name = "fabian coulthard" | CREATE TABLE INST, Here is a database schema( table schema); | What is the lowest Laps when Grid is greater than 7 and when Name is "Fabian Coulthard"?It is not neccessary to use all the tables. |
SELECT cylinder_layout FROM table_26352332_4 WHERE years_produced = "2007-current" AND engine_family = "MaxxForce 5" | CREATE TABLE INST, Here is a database schema( table schema); | The engine family MaxxForce 5 in the years produced 2007-current have what cylinder layout?It is not neccessary to use all the tables. |
SELECT SUM Finishes FROM table WHERE Podiums = 0 AND Stage wins = 0 AND Driver = lambros athanassoulas | CREATE TABLE INST, Here is a database schema( table schema); | What's the finishes for Lambros Athanassoulas having 0 podiums and 0 stage wins?.It is not neccessary to use all the tables. |
SELECT Mens Doubles FROM table WHERE Season = 1963/64 | CREATE TABLE INST, Here is a database schema( table schema); | Name the winners of the mens doubles in the season of 1963/64..It is not neccessary to use all the tables. |
SELECT Location FROM table WHERE Round = round 3 AND Score = 1-1 | CREATE TABLE INST, Here is a database schema( table schema); | At what Location in Round 3 is the Score 1-1?.It is not neccessary to use all the tables. |
SELECT MIN 2008-03 FROM table WHERE 2012-03 < 10.3 AND 2010-03 = 8.1 AND 2009-03 < 7.3 | CREATE TABLE INST, Here is a database schema( table schema); | What is the lowest 2008-03, when 2012-03 is less than 10.3, when 2010-03 is 8.1, and when 2009-03 is less than 7.3?.It is not neccessary to use all the tables. |
SELECT institution FROM table_name_78 WHERE location = "akron, oh" | CREATE TABLE INST, Here is a database schema( table schema); | what is the institution at akron oh?It is not neccessary to use all the tables. |
SELECT away_team FROM table_name_77 WHERE home_team = "south melbourne" | CREATE TABLE INST, Here is a database schema( table schema); | What was the away team when the home team was South Melbourne?It is not neccessary to use all the tables. |
SELECT DISTINCT T2.emp_fname, T3.prof_high_degree FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN professor AS T3 ON T2.emp_num = T3.emp_num JOIN department AS T4 ON T4.dept_code = T3.dept_code WHERE T4.dept_name = 'Computer Info. Systems' | CREATE TABLE INST, Here is a database schema( table schema); | Find the first names and degree of all professors who are teaching some class in Computer Info. Systems department.It is not neccessary to use all the tables. |
SELECT Barangay FROM table WHERE Area (in km 2 ) = 3.6787 | CREATE TABLE INST, Here is a database schema( table schema); | What's the name of the barangay whose area is 3.6787 km² ?.It is not neccessary to use all the tables. |
SELECT SUM Viewers FROM table WHERE Rating > 7.8 AND Airdate = october 26, 2006 AND Share > 14 | CREATE TABLE INST, Here is a database schema( table schema); | Of all shows who have a rating larger than 7.8, aired on October 26, 2006, and has a share of over 14, what is the sum of the viewers?.It is not neccessary to use all the tables. |
SELECT Suburb FROM table WHERE Date first settled as a suburb = 1962 | CREATE TABLE INST, Here is a database schema( table schema); | Which Suburb was First Settled as a Suburb in 1962?.It is not neccessary to use all the tables. |
SELECT COUNT Age FROM table WHERE Hometown = Andujar | CREATE TABLE INST, Here is a database schema( table schema); | How many contestants of whatever age are there whose hometown of Andujar?.It is not neccessary to use all the tables. |
SELECT Entrant FROM table WHERE Chassis = march cg891 | CREATE TABLE INST, Here is a database schema( table schema); | Which entrant had a chassis of March CG891?.It is not neccessary to use all the tables. |
SELECT position FROM table_name_20 WHERE overall = 133 | CREATE TABLE INST, Here is a database schema( table schema); | What position did the draft pick number play that was overall pick number 133?It is not neccessary to use all the tables. |
SELECT affiliation FROM table_name_53 WHERE nickname = "ramblers" | CREATE TABLE INST, Here is a database schema( table schema); | Who is affiliated with the nickname Ramblers?It is not neccessary to use all the tables. |
SELECT Round of 16 FROM table WHERE Quarterfinals = Did not advance AND Event = Light flyweight | CREATE TABLE INST, Here is a database schema( table schema); | Name the round 16 for did not advance and light flyweight.It is not neccessary to use all the tables. |
SELECT player FROM table_name_78 WHERE score = 73 - 68 - 66 = 207 | CREATE TABLE INST, Here is a database schema( table schema); | What player scored 73-68-66=207?It is not neccessary to use all the tables. |
SELECT AVG Quantity FROM table WHERE Number(s) = 1104 | CREATE TABLE INST, Here is a database schema( table schema); | What is the average quantity that has 1104 as the number(s)?.It is not neccessary to use all the tables. |
SELECT Opponent FROM table WHERE Method = technical submission (guillotine choke) | CREATE TABLE INST, Here is a database schema( table schema); | Who is the opponent when the method is technical submission (guillotine choke)?.It is not neccessary to use all the tables. |
SELECT SUM("Round") FROM table_45972 WHERE "College" = 'tennessee' AND "Overall" > '153' AND "Pick" < '14' | CREATE TABLE INST, Here is a database schema( table schema); | What is the sum of the rounds where the draft pick came from the college of tennessee and had an overall pick number bigger than 153 and a pick less than 14?It is not neccessary to use all the tables. |
SELECT Place FROM table WHERE Score = 72-66=138 AND Player = bob may | CREATE TABLE INST, Here is a database schema( table schema); | What place did Bob May get when his score was 72-66=138?.It is not neccessary to use all the tables. |
SELECT height FROM table_name_72 WHERE school = "lake howell high school" | CREATE TABLE INST, Here is a database schema( table schema); | What's the heigh of the player who went to lake howell high school?It is not neccessary to use all the tables. |
SELECT Opponent FROM table WHERE Record = 1–3–0 | CREATE TABLE INST, Here is a database schema( table schema); | Who is the Opponent in the game with a Record of 1–3–0?.It is not neccessary to use all the tables. |
SELECT MIN(wins) FROM table_name_17 WHERE goals_against < 39 AND losses > 2 AND ties > 0 | CREATE TABLE INST, Here is a database schema( table schema); | What has the lowest number of wins with GA smaller than 39 more than 2 losses and ties greater than 0?It is not neccessary to use all the tables. |
SELECT years FROM table_name_9 WHERE decile = 3 AND name = "kakahi school" | CREATE TABLE INST, Here is a database schema( table schema); | What years does Kakahi school with a decile of 3 have?It is not neccessary to use all the tables. |
SELECT children_together FROM table_24143253_5 WHERE name = "Benjamin Harrison" | CREATE TABLE INST, Here is a database schema( table schema); | Who were the children of Benjamin Harrison?It is not neccessary to use all the tables. |
SELECT Event FROM table WHERE Long Course/Short Course = short course AND Year Set = 2010 | CREATE TABLE INST, Here is a database schema( table schema); | What event had a short course in 2010?.It is not neccessary to use all the tables. |
SELECT 2010 AS _11 FROM table_name_99 WHERE event = "autumn gold" | CREATE TABLE INST, Here is a database schema( table schema); | WHich in 2010–11 has an Event of autumn gold?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.