sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT AVG Grid FROM table WHERE Laps < 11 AND Time/Retired = accident
CREATE TABLE INST, Here is a database schema( table schema);
Which grid has less than 11 laps, and a Time/Retired of accident?.It is not neccessary to use all the tables.
SELECT "Ranking" FROM table_15924 WHERE "Season finale" = 'May 8, 2006'
CREATE TABLE INST, Here is a database schema( table schema);
What was the ranking of the season finale aired on May 8, 2006?It is not neccessary to use all the tables.
SELECT MIN(07 AS _08_oi_best) FROM table_23938357_7
CREATE TABLE INST, Here is a database schema( table schema);
What is the smallest 07-08 oi best value?It is not neccessary to use all the tables.
SELECT Word Form FROM table WHERE ALA-LC = muay s″ain
CREATE TABLE INST, Here is a database schema( table schema);
What is the word form for the ALA-LC transliteration of muay s″ain?.It is not neccessary to use all the tables.
SELECT MAX Bronze FROM table WHERE Total = 9
CREATE TABLE INST, Here is a database schema( table schema);
what is the most bronze when the total is 9?.It is not neccessary to use all the tables.
SELECT Distance (km) FROM table WHERE Stage < 16 AND Stage winner = josé-manuel fuente
CREATE TABLE INST, Here is a database schema( table schema);
What is the distance for José-Manuel Fuente when the stage was less than 16?.It is not neccessary to use all the tables.
SELECT MAX Laps FROM table WHERE Grid > 6 AND Constructor = renault AND Time/Retired = ignition
CREATE TABLE INST, Here is a database schema( table schema);
When renault is the constructor, the grid is over 6, and the time was labeled ignition, what's the largest amount of laps on record?.It is not neccessary to use all the tables.
SELECT Source FROM table WHERE Race winners = ben adriaenssen / ben van den bogaart AND GP winner = ben adriaenssen / ben van den bogaart AND Date = 1 april
CREATE TABLE INST, Here is a database schema( table schema);
What source has a race winner of ben adriaenssen / ben van den bogaart, and the gp winner of ben adriaenssen / ben van den bogaart, for the date of 1 april?.It is not neccessary to use all the tables.
SELECT location FROM table_name_26 WHERE opponent = "fábio maldonado"
CREATE TABLE INST, Here is a database schema( table schema);
What location was fábio maldonado the opponent at?It is not neccessary to use all the tables.
SELECT track FROM table_name_34 WHERE catalogue = "apbo 0280"
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the track that has the catalogue of apbo 0280It is not neccessary to use all the tables.
SELECT COUNT(series__number) FROM table_12159115_3 WHERE written_by = "William N. Fordes"
CREATE TABLE INST, Here is a database schema( table schema);
How many episodes were written only by William N. Fordes?It is not neccessary to use all the tables.
SELECT COUNT("Population") FROM table_11074 WHERE "Foreign nationals in %" = '23,3%'
CREATE TABLE INST, Here is a database schema( table schema);
I want to know the total number of population for foreign nationals in percentage of 23,3%It is not neccessary to use all the tables.
SELECT Away Team FROM table WHERE Competition = 1st ``Republic of Srpska Football Day`` AND Home Team = U 14 Republic of Srpska
CREATE TABLE INST, Here is a database schema( table schema);
Who were the away teams when the competition was the 1st ``republic of srpska football day`` and the home team was u 14 republic of srpska?.It is not neccessary to use all the tables.
SELECT SUM(week) FROM table_name_7 WHERE date = "december 2, 2001"
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of Week when Date is December 2 2001?It is not neccessary to use all the tables.
SELECT date FROM table_name_62 WHERE time = "2:26" AND location = "riverfront stadium"
CREATE TABLE INST, Here is a database schema( table schema);
What was date when the time was 2:26 and the location was Riverfront Stadium?It is not neccessary to use all the tables.
SELECT First elected FROM table WHERE Candidates = Thomas Lawyer (DR) 54.9% William Beekman (F) 45.1%
CREATE TABLE INST, Here is a database schema( table schema);
when was the first elected when the candidates is thomas lawyer (dr) 54.9% william beekman (f) 45.1%?.It is not neccessary to use all the tables.
SELECT Social Democratic FROM table WHERE Socialist = 46.1%
CREATE TABLE INST, Here is a database schema( table schema);
If Socialist is at 46.1%, what are all percentages for social democratic?.It is not neccessary to use all the tables.
SELECT Premiere FROM table WHERE Host = Lieke van Lexmond Dennis Weening
CREATE TABLE INST, Here is a database schema( table schema);
What is the premiere where the host is lieke van lexmond dennis weening?.It is not neccessary to use all the tables.
SELECT SUM Form FROM table WHERE Pages > 17 AND Total Assets = $1,801,154
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of forms with greater than 17 pages and a total of $1,801,154?.It is not neccessary to use all the tables.
SELECT tournament FROM table_name_55 WHERE opponent_in_the_final = "raffaella reggi"
CREATE TABLE INST, Here is a database schema( table schema);
Which tournament has raffaella reggi listed as the opponent in the final?It is not neccessary to use all the tables.
SELECT AVG(bronze) FROM table_name_9 WHERE total > 0 AND gold = 3 AND games > 6
CREATE TABLE INST, Here is a database schema( table schema);
How many bronzes associated with over 0 total medals 3 golds and over 6 games?It is not neccessary to use all the tables.
SELECT DISTINCT location_name FROM locations
CREATE TABLE INST, Here is a database schema( table schema);
Show all distinct location names.It is not neccessary to use all the tables.
SELECT venue FROM table_name_97 WHERE competition = "1995 southeast asian games"
CREATE TABLE INST, Here is a database schema( table schema);
What's the venue of the 1995 Southeast Asian Games?It is not neccessary to use all the tables.
SELECT MIN ANSI code FROM table WHERE Pop. (2010) = 609
CREATE TABLE INST, Here is a database schema( table schema);
Name the least ansi code for 609 population 2010.It is not neccessary to use all the tables.
SELECT Round winner FROM table WHERE Circuit = Wanneroo Park
CREATE TABLE INST, Here is a database schema( table schema);
Who is the round winner of the wanneroo park circuit?.It is not neccessary to use all the tables.
SELECT miles__km_ FROM table_1771753_3 WHERE race_time = "1:34:01"
CREATE TABLE INST, Here is a database schema( table schema);
When 1:34:01 is the race time what is the miles in kilometers?It is not neccessary to use all the tables.
SELECT AVG(games) FROM table_name_65 WHERE season = "2003/2004" AND red_cards < 5
CREATE TABLE INST, Here is a database schema( table schema);
Which Games has a Season of 2003/2004 and a Red Cards smaller than 5?It is not neccessary to use all the tables.
SELECT COUNT("No Result") FROM table_39854 WHERE "Wins" < '6'
CREATE TABLE INST, Here is a database schema( table schema);
How many total No Results are recorded for less than 6 wins?It is not neccessary to use all the tables.
SELECT Champion FROM table WHERE Scoreboard = 22-14
CREATE TABLE INST, Here is a database schema( table schema);
Which Championship has a Scoreboard that is 22-14?.It is not neccessary to use all the tables.
SELECT 2008 FROM table_name_44 WHERE tournament = "year end ranking"
CREATE TABLE INST, Here is a database schema( table schema);
What's was the 2008 during the Year End Ranking?It is not neccessary to use all the tables.
SELECT MIN Goals FROM table WHERE Matches = 16 AND Scorer = park sang-in
CREATE TABLE INST, Here is a database schema( table schema);
Which Goals is the lowest one that has Matches of 16, and a Scorer of park sang-in?.It is not neccessary to use all the tables.
SELECT standard_yarn_weight_system FROM table_20297668_1 WHERE wraps_per_inch__wpi_ = "7 wpi"
CREATE TABLE INST, Here is a database schema( table schema);
Name the standard yarn weight system for 7 wpiIt is not neccessary to use all the tables.
SELECT admissions.age FROM admissions WHERE admissions.subject_id = 10811 AND admissions.dischtime IS NULL
CREATE TABLE INST, Here is a database schema( table schema);
what was the age of patient 10811 on the current hospital visit?It is not neccessary to use all the tables.
SELECT COUNT(wins) FROM table_name_28 WHERE top_25 > 6 AND cuts_made < 13
CREATE TABLE INST, Here is a database schema( table schema);
In the tournament with more than 6 top-25's and less than 13 cuts made, how many wins were there?It is not neccessary to use all the tables.
SELECT MAX Year FROM table WHERE Region = southeast
CREATE TABLE INST, Here is a database schema( table schema);
What's the highest Year with the Region of Southeast?.It is not neccessary to use all the tables.
SELECT Kickoff ( ET ) FROM table WHERE Opponent = miami dolphins
CREATE TABLE INST, Here is a database schema( table schema);
What time was the kickoff when the miami dolphins were the opponent?.It is not neccessary to use all the tables.
SELECT Entrepreneur(s) FROM table WHERE Money requested (£) = 60,000
CREATE TABLE INST, Here is a database schema( table schema);
What Entrepreneurs requested £60,000?.It is not neccessary to use all the tables.
SELECT league_division FROM table_name_29 WHERE club = "sai kung"
CREATE TABLE INST, Here is a database schema( table schema);
What division is Sai Kung in?It is not neccessary to use all the tables.
SELECT Lost FROM table WHERE Goal Average 1 = 1.21
CREATE TABLE INST, Here is a database schema( table schema);
List all losses with average goals of 1.21..It is not neccessary to use all the tables.
SELECT score FROM table_name_53 WHERE points = 2
CREATE TABLE INST, Here is a database schema( table schema);
what team has a score of 2It is not neccessary to use all the tables.
SELECT population_est__2012_ FROM table_name_61 WHERE capital = "santa fe"
CREATE TABLE INST, Here is a database schema( table schema);
What is the 2012 population for the state whose capital is Santa Fe?It is not neccessary to use all the tables.
SELECT FCC info FROM table WHERE ERP W = 3,000
CREATE TABLE INST, Here is a database schema( table schema);
WHich FCC info has 3,000 ERP W?.It is not neccessary to use all the tables.
SELECT Player FROM table WHERE Score > 70 AND To par = +1
CREATE TABLE INST, Here is a database schema( table schema);
Who has more than 70 score with +1 to par?.It is not neccessary to use all the tables.
SELECT MAX(game) FROM table_name_99 WHERE date = "january 5"
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest game that has January 5 as the date?It is not neccessary to use all the tables.
SELECT MAX(crowd) FROM table_name_48 WHERE venue = "windy hill"
CREATE TABLE INST, Here is a database schema( table schema);
What was the highest crowd count seen in the Windy Hill venue?It is not neccessary to use all the tables.
SELECT species FROM table_10477224_1 WHERE petal_width = "2.0" AND petal_length = "4.9"
CREATE TABLE INST, Here is a database schema( table schema);
Name the species when petal width is 2.0 and petal length is 4.9It is not neccessary to use all the tables.
SELECT allergy.drugname FROM allergy WHERE allergy.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '022-47102' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime DESC LIMIT 1))
CREATE TABLE INST, Here is a database schema( table schema);
what drug is actually the drug that patient 022-47102 is allergic to during their last hospital encounter?It is not neccessary to use all the tables.
SELECT record FROM table_name_45 WHERE score = "105-72"
CREATE TABLE INST, Here is a database schema( table schema);
What was the record for the game that had a score of 105-72?It is not neccessary to use all the tables.
SELECT SUM(wins) FROM table_name_82 WHERE matches > 5
CREATE TABLE INST, Here is a database schema( table schema);
How many wins had Matches greater than 5?It is not neccessary to use all the tables.
SELECT Away team FROM table WHERE Away team score = 18.14 (122)
CREATE TABLE INST, Here is a database schema( table schema);
What away team scored 18.14 (122)?.It is not neccessary to use all the tables.
SELECT MAX(extra) FROM table_name_51 WHERE meeting = "all africa games" AND year < 2003
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest extra total before 2003 at the Meeting of all africa games?It is not neccessary to use all the tables.
SELECT COUNT Walker % FROM table WHERE County = Kenosha
CREATE TABLE INST, Here is a database schema( table schema);
How many figures are given for Walker's percentage in Kenosha county?.It is not neccessary to use all the tables.
SELECT result FROM table_name_1 WHERE date = "july 24"
CREATE TABLE INST, Here is a database schema( table schema);
What was the Result on July 24?It is not neccessary to use all the tables.
SELECT Gender FROM table WHERE Roll = 338
CREATE TABLE INST, Here is a database schema( table schema);
What gender is allowed at the school which has a roll of 338?.It is not neccessary to use all the tables.
SELECT record FROM table_name_59 WHERE home = "colorado" AND visitor = "winnipeg"
CREATE TABLE INST, Here is a database schema( table schema);
What is the record of the game that had a home team of Colorado, and a visiting team of Winnipeg?It is not neccessary to use all the tables.
SELECT 2010 FROM table_name_43 WHERE 2011 = "q2" AND 2012 = "1r" AND 2009 = "1r"
CREATE TABLE INST, Here is a database schema( table schema);
What is the 2010 result of a tournament that is 1R in 2009 Q2 in 2011 and 1R in 2012?It is not neccessary to use all the tables.
SELECT model_designation FROM table_20866024_3 WHERE gvw__kg_ton_ = "2828/2.78" AND axle_ratio = "9/47"
CREATE TABLE INST, Here is a database schema( table schema);
What's the model designation of the model with GVW of 2828/2.78 kg/ton and axle ratio of 9/47?It is not neccessary to use all the tables.
SELECT AVG(sr) FROM table_name_48 WHERE average = 39.13 AND balls_faced > 318
CREATE TABLE INST, Here is a database schema( table schema);
Which average S.R. has an Average of 39.13 and Balls Faced larger than 318?It is not neccessary to use all the tables.
SELECT Canadian Kennel Club Toy Dogs Group FROM table WHERE Australian National Kennel Council Toy Dogs Group = australian silky terrier
CREATE TABLE INST, Here is a database schema( table schema);
What is the Canadian Kennel Club Toy Dogs Group with the australian silky terrier as the Australian National Kennel Council Toy Dogs Group breed?.It is not neccessary to use all the tables.
SELECT MAX Rank FROM table WHERE Director = henry hathaway
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest Rank, when Director is "Henry Hathaway"?.It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Time = 1:34
CREATE TABLE INST, Here is a database schema( table schema);
Which opponent has a Time of 1:34?.It is not neccessary to use all the tables.
SELECT result FROM table_1341897_23 WHERE district = "Massachusetts 3"
CREATE TABLE INST, Here is a database schema( table schema);
Name the result for massachusetts 3It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Date = october 13, 1968
CREATE TABLE INST, Here is a database schema( table schema);
Who did the Browns play on October 13, 1968?.It is not neccessary to use all the tables.
SELECT [PO 4 3− ]/[A] (%) FROM table WHERE [H 2 PO 4 − ]/[A] (%) = 94.5
CREATE TABLE INST, Here is a database schema( table schema);
what is [po 4 3− ]/[a] (%) where [h 2 po 4 − ]/[a] (%) is 94.5?.It is not neccessary to use all the tables.
SELECT 2010 FROM table_name_60 WHERE tournament = "australian open"
CREATE TABLE INST, Here is a database schema( table schema);
What is the 2010 value in the Australian Open?It is not neccessary to use all the tables.
SELECT draw FROM table_name_76 WHERE performer = "andrea cubric"
CREATE TABLE INST, Here is a database schema( table schema);
WHAT IS THE DRAW FOR PERFORMER ANDREA CUBRIC?It is not neccessary to use all the tables.
SELECT AVG(crimean_war) FROM table_name_49 WHERE second_afghan_war = "1" AND school = "hamblin and porter's school, cork"
CREATE TABLE INST, Here is a database schema( table schema);
What is the average Crimean War with a Second Afghan War totaling 1 and a School of hamblin and porter's school cork?It is not neccessary to use all the tables.
SELECT MIN 7th runner-up FROM table WHERE Top 18/20/24/30 > 5 AND 1st runner-up > 0 AND 11th runner-up < 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest 7th runner-up of the country with a top 18/20/24/30 greater than 5, a 1st runner-up greater than 0, and an 11th runner-up less than 0?.It is not neccessary to use all the tables.
SELECT team_1 FROM table_name_83 WHERE team_2 = "dynamos fc"
CREATE TABLE INST, Here is a database schema( table schema);
Which Team 1 faced Dynamos FC?It is not neccessary to use all the tables.
SELECT COUNT("Place") FROM table_78979 WHERE "Name" = 'bianka panova' AND "Clubs" < '10'
CREATE TABLE INST, Here is a database schema( table schema);
How many places have bianka panova as the name, with clubs less than 10?It is not neccessary to use all the tables.
SELECT Partner FROM table WHERE Outcome = Winner AND Surface = Hard
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the partner that has a winner outcome and a hard surface?.It is not neccessary to use all the tables.
SELECT COUNT(lost) FROM table_name_23 WHERE points > 15 AND name = "ev pegnitz"
CREATE TABLE INST, Here is a database schema( table schema);
How much Lost has Points larger than 15 and a Name of ev pegnitz?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Game = 1
CREATE TABLE INST, Here is a database schema( table schema);
What date has 1 for the game?.It is not neccessary to use all the tables.
SELECT dominant_religion__2002_ FROM table_2562572_46 WHERE cyrillic_name_other_names = "Војводинци (Romanian: Voivodinţ)"
CREATE TABLE INST, Here is a database schema( table schema);
What was the dominant religion in 2002 of the settlement with the cyrillic and other name of војводинци (romanian: voivodinţ)?It is not neccessary to use all the tables.
SELECT American FROM table WHERE British = ə
CREATE TABLE INST, Here is a database schema( table schema);
What is the American version of the British ə?.It is not neccessary to use all the tables.
SELECT High rebounds FROM table WHERE Date = April 11
CREATE TABLE INST, Here is a database schema( table schema);
who made highest rebounds on april 11.It is not neccessary to use all the tables.
SELECT competition FROM table_name_85 WHERE date = "10 august 2011"
CREATE TABLE INST, Here is a database schema( table schema);
What competition took place on 10 August 2011?It is not neccessary to use all the tables.
SELECT height FROM table_12962773_5 WHERE position = "Forward" AND current_club = "Real Madrid"
CREATE TABLE INST, Here is a database schema( table schema);
what's the height with position being forward and current club being real madridIt is not neccessary to use all the tables.
SELECT Season FROM table WHERE Points < 301 AND Races = 17
CREATE TABLE INST, Here is a database schema( table schema);
What season had less than 301 points and 17 races?.It is not neccessary to use all the tables.
SELECT notes FROM table_name_85 WHERE time = "3:19.167"
CREATE TABLE INST, Here is a database schema( table schema);
What are the notes for the time at 3:19.167?It is not neccessary to use all the tables.
SELECT college FROM table_name_68 WHERE player = "dorian finney-smith"
CREATE TABLE INST, Here is a database schema( table schema);
What College did Player Dorian Finney-Smith play for?It is not neccessary to use all the tables.
SELECT MAX Grid FROM table WHERE Driver = martin brundle
CREATE TABLE INST, Here is a database schema( table schema);
What is the top grid that is driven by martin brundle?.It is not neccessary to use all the tables.
SELECT SUM Year FROM table WHERE Citation = honor AND Author = kadir nelson
CREATE TABLE INST, Here is a database schema( table schema);
what is the year when the citation is honor and the author is kadir nelson?.It is not neccessary to use all the tables.
SELECT artist FROM torrents GROUP BY artist ORDER BY count(groupName) DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( torrents);
Which artist release the most CDs?. It is not neccessary to use all the tables.
SELECT AVG(grid) FROM table_name_69 WHERE laps < 14 AND driver = "reine wisell"
CREATE TABLE INST, Here is a database schema( table schema);
What is the average grid when the laps are smaller than 14 and Reine Wisell is the driver?It is not neccessary to use all the tables.
SELECT School/Club Team FROM table WHERE Season = 2006-2012
CREATE TABLE INST, Here is a database schema( table schema);
What is School/Club Team, when Season is 2006-2012?.It is not neccessary to use all the tables.
SELECT year_s__won FROM table_name_42 WHERE total = 289
CREATE TABLE INST, Here is a database schema( table schema);
During which years did the golfer with the total of 289 win?It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Record = 3-1
CREATE TABLE INST, Here is a database schema( table schema);
What was the result of the game with the record of 3-1?.It is not neccessary to use all the tables.
SELECT Name FROM table WHERE Roll < 81 AND Area = dalefield
CREATE TABLE INST, Here is a database schema( table schema);
What school in Dalefield has a roll less than 81?.It is not neccessary to use all the tables.
SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, program_course, semester WHERE course.course_id = course_offering.course_id AND course.department = 'PORTUG' AND program_course.category LIKE '%ULCS%' AND program_course.course_id = course.course_id AND semester.semester = 'Spring-Summer' AND semester.semester_id = course_offering.semester AND semester.year = 2016
CREATE TABLE INST, Here is a database schema( table schema);
What upper-level PORTUG courses are available this Spring-Summer ?It is not neccessary to use all the tables.
SELECT Bronze FROM table WHERE Place = melbourne
CREATE TABLE INST, Here is a database schema( table schema);
Who won the Bronze at Melbourne?.It is not neccessary to use all the tables.
SELECT COUNT Height (m) FROM table WHERE Prominence (ft) = 12,867 AND Prominence (m) > 3,922
CREATE TABLE INST, Here is a database schema( table schema);
What is the total height of the peak with a prominence of 12,867 ft and a prominence in m greater than 3,922?.It is not neccessary to use all the tables.
SELECT event FROM table_name_40 WHERE rank_points = "8" AND total = "20"
CREATE TABLE INST, Here is a database schema( table schema);
What event has 8 as the rank points with 20 as the total?It is not neccessary to use all the tables.
SELECT AVG(points) FROM table_name_88 WHERE against < 53 AND drawn < 10 AND played < 38
CREATE TABLE INST, Here is a database schema( table schema);
Against smaller than 53 and a Drawn smaller than 10 and a Played smaller than 38 has what average points?It is not neccessary to use all the tables.
SELECT AVG("total") FROM table_35491 WHERE "Year of census" > '1971' AND "Serbs" = '10,412 (32.88%)'
CREATE TABLE INST, Here is a database schema( table schema);
What is the average total of the census after 1971 with 10,412 (32.88%) Serbs?It is not neccessary to use all the tables.
SELECT engine FROM table_name_8 WHERE year > 2006 AND power = "bhp (kw)"
CREATE TABLE INST, Here is a database schema( table schema);
Which Engine has a Year that's Larger than 2006 and Power of BHP (KW)?It is not neccessary to use all the tables.
SELECT Internet Explorer FROM table WHERE Opera = 1.67% AND Period = 2012 q1
CREATE TABLE INST, Here is a database schema( table schema);
What internet explorer has 1.67% as the opera, with 2012 q1 as the period?.It is not neccessary to use all the tables.
SELECT SUM(assists) FROM table_name_60 WHERE club = "adler mannheim" AND points > 57
CREATE TABLE INST, Here is a database schema( table schema);
How many Assists have a Club of adler mannheim and Points larger than 57?It is not neccessary to use all the tables.
SELECT result FROM table_name_33 WHERE week = 3
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the result for week of 3It is not neccessary to use all the tables.
SELECT Revised Hepburn FROM table WHERE English = Roman characters
CREATE TABLE INST, Here is a database schema( table schema);
how many revised hepburn when english is roman characters.It is not neccessary to use all the tables.