sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT Score-Final FROM table WHERE Apparatus = ribbon
CREATE TABLE INST, Here is a database schema( table schema);
What was her final score on the ribbon apparatus?.It is not neccessary to use all the tables.
SELECT SUM Pick FROM table WHERE Position = n/a AND Player = greg wendt AND Round < 6
CREATE TABLE INST, Here is a database schema( table schema);
What is the total of Pick with a Position of n/a and Greg Wendt as Player with a Round less than 6?.It is not neccessary to use all the tables.
SELECT AVG Year FROM table WHERE Women's singles = maja pohar
CREATE TABLE INST, Here is a database schema( table schema);
What is the average year of Maja Pohar's Women's singles matches?.It is not neccessary to use all the tables.
SELECT "time/retired" FROM table_204_473 WHERE "driver" = 'jo bonnier'
CREATE TABLE INST, Here is a database schema( table schema);
how long did it take jo bonnier to finish all 75 laps ?It is not neccessary to use all the tables.
SELECT Competition FROM table WHERE Res. = marian sandu
CREATE TABLE INST, Here is a database schema( table schema);
WHAT COMPETITION HAS MARIAN SANDU?.It is not neccessary to use all the tables.
SELECT player FROM table_name_52 WHERE hometown = "los angeles, ca"
CREATE TABLE INST, Here is a database schema( table schema);
Who has a hometown of los angeles ca?It is not neccessary to use all the tables.
SELECT AVG(rank) FROM table_name_71 WHERE cyclist = "alexandr pliuschin"
CREATE TABLE INST, Here is a database schema( table schema);
what is the average rank when the cyclist is alexandr pliuschin?It is not neccessary to use all the tables.
SELECT road_record FROM table_23183195_2 WHERE overall_record = "22-11"
CREATE TABLE INST, Here is a database schema( table schema);
What is the road record for the team with an overall record of 22-11?It is not neccessary to use all the tables.
SELECT result FROM table_29728596_1 WHERE away_team = "FK Rudar Ugljevik"
CREATE TABLE INST, Here is a database schema( table schema);
What was the result of the home match against FK Rudar Ugljevik?It is not neccessary to use all the tables.
SELECT authority FROM table_name_18 WHERE roll = 651
CREATE TABLE INST, Here is a database schema( table schema);
Which authority had a role of 651?It is not neccessary to use all the tables.
SELECT Away captain FROM table WHERE Result = draw AND Date = 12,13,14 jun 1902
CREATE TABLE INST, Here is a database schema( table schema);
Who was the Away captain that played on 12,13,14 Jun 1902 which resulted in a draw?.It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Method = decision AND Res. = win
CREATE TABLE INST, Here is a database schema( table schema);
What's the record for the match when the res was a win and the method was a decision?.It is not neccessary to use all the tables.
SELECT acc_percent FROM basketball_match ORDER BY acc_percent DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest acc percent score in the competition?It is not neccessary to use all the tables.
SELECT tournament FROM table_name_19 WHERE partner = "martín rodríguez"
CREATE TABLE INST, Here is a database schema( table schema);
Which Tournament has a Partner of martín rodríguez?It is not neccessary to use all the tables.
SELECT maximum_ceiling_temperature FROM table_1538516_1 WHERE temperature_classification = "Very Extra High"
CREATE TABLE INST, Here is a database schema( table schema);
Name the most ceiling temperature for very extra highIt is not neccessary to use all the tables.
SELECT COUNT(interview) FROM table_name_19 WHERE country = "louisiana" AND swimsuit > 9.1
CREATE TABLE INST, Here is a database schema( table schema);
What is the interview number in Louisiana and the swimsuit number is more than 9.1?It is not neccessary to use all the tables.
SELECT nat FROM table_name_24 WHERE name = "roma"
CREATE TABLE INST, Here is a database schema( table schema);
What nation had a ship named Roma?It is not neccessary to use all the tables.
SELECT MAX("Population (2011)") FROM table_27883 WHERE "Cyrillic Name Other Names" = 'Добрица'
CREATE TABLE INST, Here is a database schema( table schema);
What is the population of the settlement with the cyrillic name of ?It is not neccessary to use all the tables.
SELECT Frequency FROM table WHERE Order part number = tmn550dcr23gm
CREATE TABLE INST, Here is a database schema( table schema);
what is the frequency of part number tmn550dcr23gm?.It is not neccessary to use all the tables.
SELECT opponent FROM table_name_24 WHERE date = "october 28"
CREATE TABLE INST, Here is a database schema( table schema);
What was the opponent on october 28?It is not neccessary to use all the tables.
SELECT MAX Week FROM table WHERE Attendance = 48,510
CREATE TABLE INST, Here is a database schema( table schema);
Attendance of 48,510 had what highest week?.It is not neccessary to use all the tables.
SELECT MAX Pennant Number FROM table WHERE Ships in class = raahe
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest pennant number with ships in raahe class?.It is not neccessary to use all the tables.
SELECT COUNT(u_wins) FROM table_name_25 WHERE alianza_goals = 0 AND u_goals > 3
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of U Wins, when Alianza Goals is '0', and when U Goals is greater than 3?It is not neccessary to use all the tables.
SELECT Weekly Rank (#) FROM table WHERE Share = 9 AND Viewers (m) = 9.42
CREATE TABLE INST, Here is a database schema( table schema);
What is the weekly rank for a share of 9 and 9.42 million viewers?.It is not neccessary to use all the tables.
SELECT co_stars FROM table_2528382_2 WHERE music_director = "Kalyanji-Anandji" AND year = "1963"
CREATE TABLE INST, Here is a database schema( table schema);
Which co-stars did Kalyanji-anandji direct in 1963?It is not neccessary to use all the tables.
SELECT MAX(losses) FROM table_name_25 WHERE goals_against < 68 AND goal_difference < 23 AND draws = 10 AND club = "racing de santander"
CREATE TABLE INST, Here is a database schema( table schema);
What losses did racing de santander that scored less than 68 goals had a goal difference of less than 23 and 10 draws?It is not neccessary to use all the tables.
SELECT SUM Average FROM table WHERE State = hawaii AND Interview > 9.636
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of the average of Hawaii, with an interviewer larger than 9.636?.It is not neccessary to use all the tables.
SELECT MIN("First elected") FROM table_58741 WHERE "Party" = 'republican' AND "District" = 'minnesota 1'
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest First Elected, when Party is 'Republican', and when District is 'Minnesota 1'?It is not neccessary to use all the tables.
SELECT SUM(year) FROM table_name_83 WHERE outcome = "runner-up" AND championship = "indian wells"
CREATE TABLE INST, Here is a database schema( table schema);
How many years have runner-up as the outcome and indian wells as the championship?It is not neccessary to use all the tables.
SELECT Outcome FROM table WHERE Opponent = andy roddick
CREATE TABLE INST, Here is a database schema( table schema);
What was the outcome of the match against andy roddick?.It is not neccessary to use all the tables.
SELECT MAX Round FROM table WHERE Position = center
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest round in which a player was picked for the Center position?.It is not neccessary to use all the tables.
SELECT rider FROM table_name_95 WHERE laps > 23 AND manufacturer = "aprilia" AND grid = 14
CREATE TABLE INST, Here is a database schema( table schema);
Which rider had more than 23 laps a manufacturer of Aprilia and a grid of 14It is not neccessary to use all the tables.
SELECT College FROM table WHERE Player = Terrance Taylor
CREATE TABLE INST, Here is a database schema( table schema);
What college did Terrance Taylor play for?.It is not neccessary to use all the tables.
SELECT sr FROM table_name_46 WHERE average < 23.63 AND runs_scored = 49
CREATE TABLE INST, Here is a database schema( table schema);
Which S.R. has a Average smaller than 23.63 Runs Scored of 49?It is not neccessary to use all the tables.
SELECT score FROM table_name_87 WHERE tournament = "canada f7, toronto"
CREATE TABLE INST, Here is a database schema( table schema);
What was the score for the match at the tournament in canada f7 toronto?It is not neccessary to use all the tables.
SELECT Surface FROM table WHERE Score in the final = 6–4, 6–7 (1–7) , 6–7 (4–7) , 4–6
CREATE TABLE INST, Here is a database schema( table schema);
What is every surface with a score in the final of 6–4, 6–7 (1–7) , 6–7 (4–7) , 4–6?.It is not neccessary to use all the tables.
SELECT result FROM table_2668367_13 WHERE incumbent = "Thomas R. Gold"
CREATE TABLE INST, Here is a database schema( table schema);
What was the result in the district represented by Thomas R. Gold?It is not neccessary to use all the tables.
SELECT Seed FROM table WHERE School = California
CREATE TABLE INST, Here is a database schema( table schema);
What seed was California?.It is not neccessary to use all the tables.
SELECT AVG("GBP Price") FROM table_37888 WHERE "Event" = 'monterey' AND "Auction House" = 'rm' AND "Price" = '154,000' AND "Year" > '2003'
CREATE TABLE INST, Here is a database schema( table schema);
What is the average GBP Price with an event in Monterey, a RM auction house, and a price of $154,000 later than 2003?It is not neccessary to use all the tables.
SELECT MAX Game FROM table WHERE January = 28
CREATE TABLE INST, Here is a database schema( table schema);
Which Game is the highest that has a January of 28?.It is not neccessary to use all the tables.
SELECT MAX Front row starts FROM table WHERE Driver = alain prost
CREATE TABLE INST, Here is a database schema( table schema);
What was the highest front row starts for Alain Prost?.It is not neccessary to use all the tables.
SELECT MIN(top_5) FROM table_name_90 WHERE wins > 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the fewest number of top-5s for events with more than 1 win?It is not neccessary to use all the tables.
SELECT MAX(points) FROM table_name_34 WHERE grid < 13 AND time_retired = "+7.538 secs"
CREATE TABLE INST, Here is a database schema( table schema);
What is the biggest points when the grid is less than 13 and the time/retired is +7.538 secs?It is not neccessary to use all the tables.
SELECT set_3 FROM table_name_1 WHERE week = 6
CREATE TABLE INST, Here is a database schema( table schema);
What is set 3 on week 6?It is not neccessary to use all the tables.
SELECT series FROM table_name_96 WHERE season < 2003 AND podiums = "1" AND points = "n/a"
CREATE TABLE INST, Here is a database schema( table schema);
What Series has a season that is older than 2003 with a Podiums entry of 1 and a Points entry that is n/a?It is not neccessary to use all the tables.
SELECT Fleet series FROM table WHERE Quantity = 5
CREATE TABLE INST, Here is a database schema( table schema);
Name the fleet series with a quantity of 5.It is not neccessary to use all the tables.
SELECT undecided FROM table_name_22 WHERE roy_barnes = "47%"
CREATE TABLE INST, Here is a database schema( table schema);
What was the undecided with Roy Barnes at 47%?It is not neccessary to use all the tables.
SELECT Games covered FROM table WHERE Round = divisional finals
CREATE TABLE INST, Here is a database schema( table schema);
What Games covered had a round of divisional finals?.It is not neccessary to use all the tables.
SELECT Location FROM table WHERE Pole Position = Gordon Johncock
CREATE TABLE INST, Here is a database schema( table schema);
Which locations did Gordon Johncock hold the pole position? .It is not neccessary to use all the tables.
SELECT result FROM table_14977592_1 WHERE date = "November 14, 1965"
CREATE TABLE INST, Here is a database schema( table schema);
Name the result for november 14 1965It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.gender = "F" AND lab.label = "Nucleated Red Cells"
CREATE TABLE INST, Here is a database schema( table schema);
show me the number of female patients for whom nucleated red cells lab test order was placed.It is not neccessary to use all the tables.
SELECT COUNT(rank) FROM table_22916979_5 WHERE densest_incorporated_place = "Stone Park"
CREATE TABLE INST, Here is a database schema( table schema);
Name the number of rank for stone parkIt is not neccessary to use all the tables.
SELECT eliminated_from_competition FROM table_28068063_3 WHERE proceed_to_quarter_final = "Pau"
CREATE TABLE INST, Here is a database schema( table schema);
Who was eliminated from the competition when pau proceed to the quarter final?It is not neccessary to use all the tables.
SELECT Home FROM table WHERE Date = february 2, 1947
CREATE TABLE INST, Here is a database schema( table schema);
What is the Home team on February 2, 1947?.It is not neccessary to use all the tables.
SELECT F bolt FROM table WHERE P1 diameter (mm) = 11.35
CREATE TABLE INST, Here is a database schema( table schema);
What is the f bolt for 11.35 p1 diameter (mm)?.It is not neccessary to use all the tables.
SELECT home_team AS score FROM table_name_52 WHERE home_team = "footscray"
CREATE TABLE INST, Here is a database schema( table schema);
What was Home team Footscray's score?It is not neccessary to use all the tables.
SELECT Europe FROM table WHERE America = 403892
CREATE TABLE INST, Here is a database schema( table schema);
How many members did Europe have the year that America had 403892?.It is not neccessary to use all the tables.
SELECT Population FROM table WHERE Total Congregations < 4 AND % LDS = 0.54%
CREATE TABLE INST, Here is a database schema( table schema);
What is Population, when Total Congregations is less than 4, and when % LDS is 0.54%?.It is not neccessary to use all the tables.
SELECT MIN Poles FROM table
CREATE TABLE INST, Here is a database schema( table schema);
What is the minimum amount of poles?.It is not neccessary to use all the tables.
SELECT To par [a ] FROM table WHERE Course = st andrews AND Year < 1888
CREATE TABLE INST, Here is a database schema( table schema);
What's the To par of St Andrews before the year 1888?.It is not neccessary to use all the tables.
SELECT AVG("Wins") FROM table_31756 WHERE "Class" = '50cc' AND "Rank" = '8th'
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the average wins for class of 50cc and rank of 8thIt is not neccessary to use all the tables.
SELECT Outcome FROM table WHERE Date = april 24, 1988
CREATE TABLE INST, Here is a database schema( table schema);
what is the outcome on april 24, 1988?.It is not neccessary to use all the tables.
SELECT COUNT(no_in_series) FROM table_11058032_1 WHERE us_viewers__millions_ = "16.03"
CREATE TABLE INST, Here is a database schema( table schema);
How many episodes had 16.03 million viewers?It is not neccessary to use all the tables.
SELECT MIN(position) FROM table_name_2 WHERE points = 32 AND wins > 13
CREATE TABLE INST, Here is a database schema( table schema);
What is the minimum position when points are 32 and wins are greater than 13?It is not neccessary to use all the tables.
SELECT Completed FROM table WHERE Pennant number = h63
CREATE TABLE INST, Here is a database schema( table schema);
When is the completed date of the destroyer with a pennant number h63?.It is not neccessary to use all the tables.
SELECT COUNT Silver FROM table WHERE Nation = hungary AND Rank > 10
CREATE TABLE INST, Here is a database schema( table schema);
How many silvers have a Nation of hungary, and a Rank larger than 10?.It is not neccessary to use all the tables.
SELECT COUNT Portrayed by FROM table WHERE Character = Nick Lucas
CREATE TABLE INST, Here is a database schema( table schema);
How many people named Nick Lucas are on the show?.It is not neccessary to use all the tables.
SELECT MAX(november) FROM table_name_80 WHERE record = "11-7-3" AND game > 21
CREATE TABLE INST, Here is a database schema( table schema);
When in November were they 11-7-3 with over 21 games?It is not neccessary to use all the tables.
SELECT augmented_fifth FROM table_name_48 WHERE major_third = "d"
CREATE TABLE INST, Here is a database schema( table schema);
The Major third of D has what for the Augmented fifth?It is not neccessary to use all the tables.
SELECT COUNT(total_population) FROM table_1364343_2 WHERE catholic < 31370649.1405057 AND region = "North Africa"
CREATE TABLE INST, Here is a database schema( table schema);
how many total population with catholic being smaller than 31370649.1405057 and region being north africaIt is not neccessary to use all the tables.
SELECT MIN(time) FROM table_name_85 WHERE athlete = "paulo villar" AND lane < 9
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest time for Paulo Villar in lane 9?It is not neccessary to use all the tables.
SELECT "L3 cache" FROM table_13514 WHERE "sSpec number" = 'sr0r2(l1)sr0t6(l1)'
CREATE TABLE INST, Here is a database schema( table schema);
What is the l3 cache when the sspec number is sr0r2(l1)sr0t6(l1)?It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Location = Tampa, FL AND Opponent = Louisville
CREATE TABLE INST, Here is a database schema( table schema);
what is the record where the locaiton is tampa, fl and the opponent is louisville?.It is not neccessary to use all the tables.
SELECT t2.drug FROM (SELECT admissions.subject_id, diagnoses_icd.charttime, admissions.hadm_id FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE admissions.subject_id = 62298 AND diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'hyperlipidemia nec/nos') AND STRFTIME('%y-%m', diagnoses_icd.charttime) >= '2103-04') AS t1 JOIN (SELECT admissions.subject_id, prescriptions.drug, prescriptions.startdate, admissions.hadm_id FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE admissions.subject_id = 62298 AND STRFTIME('%y-%m', prescriptions.startdate) >= '2103-04') AS t2 ON t1.subject_id = t2.subject_id WHERE t1.charttime < t2.startdate AND t1.hadm_id = t2.hadm_id
CREATE TABLE INST, Here is a database schema( table schema);
what drug was patient 62298 prescribed for within the same hospital visit after being diagnosed with hyperlipidemia nec/nos since 04/2103?It is not neccessary to use all the tables.
SELECT MIN Game FROM table WHERE Date = 23 april AND Batting 2nd = england 5/113 (19)
CREATE TABLE INST, Here is a database schema( table schema);
what is the game for 23 april when batting 2nd is england 5/113 (19)?.It is not neccessary to use all the tables.
SELECT Zone FROM table WHERE Max People > 23 AND Group(s) < 2 AND Name = robbers roost
CREATE TABLE INST, Here is a database schema( table schema);
Which zone has max capacity of 23 in a group under 2 at Robbers Roost?.It is not neccessary to use all the tables.
SELECT COUNT("school/club team") FROM table_203_291
CREATE TABLE INST, Here is a database schema( table schema);
what 's the number of schools listed ?It is not neccessary to use all the tables.
SELECT COUNT(title) FROM table_20942925_1 WHERE production_code = "NABF07"
CREATE TABLE INST, Here is a database schema( table schema);
How many titles for the production code of NABF07?It is not neccessary to use all the tables.
SELECT Away team FROM table WHERE Away team score = 6.12 (48)
CREATE TABLE INST, Here is a database schema( table schema);
What away team scored 6.12 (48)?.It is not neccessary to use all the tables.
SELECT film_title_used_in_nomination FROM table_18987377_1 WHERE director = "André Téchiné Category:Articles with hCards"
CREATE TABLE INST, Here is a database schema( table schema);
Name the film title for andr t chin category:articles with hcardsIt is not neccessary to use all the tables.
SELECT Original West End Cast FROM table WHERE First US Tour Cast = lael van keuren
CREATE TABLE INST, Here is a database schema( table schema);
Who was the Original West End Cast when the irst US Tour Cast was lael van keuren?.It is not neccessary to use all the tables.
SELECT Original title FROM table WHERE Film title used in nomination = children of sarajevo
CREATE TABLE INST, Here is a database schema( table schema);
What is the Original title of Children of Sarajevo?.It is not neccessary to use all the tables.
SELECT SUM(position) FROM table_name_32 WHERE played > 9
CREATE TABLE INST, Here is a database schema( table schema);
Which Position has a Played larger than 9?It is not neccessary to use all the tables.
SELECT AVG ERP W FROM table WHERE City of license = beardstown, illinois AND Frequency MHz > 93.5
CREATE TABLE INST, Here is a database schema( table schema);
What is the average value of ERP W in Beardstown, Illinois for a frequency greater than 93.5?.It is not neccessary to use all the tables.
SELECT Republican ticket FROM table WHERE Workers ticket = edward lindgren
CREATE TABLE INST, Here is a database schema( table schema);
What is the name on the Republican ticket when the Workers ticket is edward lindgren?.It is not neccessary to use all the tables.
SELECT result FROM table_name_72 WHERE competition = "2014 fifa world cup qualification" AND score = "2 – 0"
CREATE TABLE INST, Here is a database schema( table schema);
Which Result has a Competition of 2014 fifa world cup qualification and a Score of 2 – 0?It is not neccessary to use all the tables.
SELECT Competition FROM table WHERE Date = may 31, 2008
CREATE TABLE INST, Here is a database schema( table schema);
What was the name of the competition that took place on may 31, 2008?.It is not neccessary to use all the tables.
SELECT School FROM table WHERE College = duke
CREATE TABLE INST, Here is a database schema( table schema);
Which school is the player who is headed to Duke from?.It is not neccessary to use all the tables.
SELECT Tail number FROM table WHERE Aircraft = an-26 AND Fatalities = 25/25
CREATE TABLE INST, Here is a database schema( table schema);
What tail number was on the an-26, with 25/25 fatalities?.It is not neccessary to use all the tables.
SELECT Finish FROM table WHERE Total < 292 AND Year(s) won = 1978
CREATE TABLE INST, Here is a database schema( table schema);
Of the 1978 winners, who had finish totals smaller than 292?.It is not neccessary to use all the tables.
SELECT High points FROM table WHERE High assists = Tim Duncan (5)
CREATE TABLE INST, Here is a database schema( table schema);
Who had the high points when high assists is tim duncan (5)?.It is not neccessary to use all the tables.
SELECT tries_for FROM table_13564637_4 WHERE points_against = "547"
CREATE TABLE INST, Here is a database schema( table schema);
How many tries for when the points against was 547?It is not neccessary to use all the tables.
SELECT COUNT Family Friendly FROM table WHERE Decade = 1990s
CREATE TABLE INST, Here is a database schema( table schema);
How many family friendly games are in the 1990s?.It is not neccessary to use all the tables.
SELECT Bore x stroke FROM table WHERE Year = 1929-32
CREATE TABLE INST, Here is a database schema( table schema);
Name the Bore x stroke of 1929-32.It is not neccessary to use all the tables.
SELECT "left office" FROM table_202_202 WHERE "name" = 'raymond h. fogler'
CREATE TABLE INST, Here is a database schema( table schema);
when did raymond h. fogler leave the office of assistant secretary of the navy ?It is not neccessary to use all the tables.
SELECT MIN(pick__number) FROM table_16729063_1 WHERE player = "Chris Brewer"
CREATE TABLE INST, Here is a database schema( table schema);
What draft pick was Chris Brewer?It is not neccessary to use all the tables.
SELECT MIN(pick) FROM table_name_83 WHERE school = "furman" AND round < 8
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest pick from the Furman School that is a round smaller than 8?It is not neccessary to use all the tables.
SELECT chapter FROM table_name_28 WHERE chinese = "釋水"
CREATE TABLE INST, Here is a database schema( table schema);
Name the chapter with chinese of 釋水It is not neccessary to use all the tables.
SELECT Results FROM table WHERE GT1 Winning Team = No.55 IPB Spartak Racing
CREATE TABLE INST, Here is a database schema( table schema);
When no.55 ipb spartak racing is the g1 winning team what are the results?.It is not neccessary to use all the tables.
SELECT district FROM table_1341663_33 WHERE incumbent = "S. William Green"
CREATE TABLE INST, Here is a database schema( table schema);
What district did S. William Green belong to?It is not neccessary to use all the tables.