sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT fourth FROM table_name_93 WHERE event = "2008 telstra men's pro"
CREATE TABLE INST, Here is a database schema( table schema);
Who was Fourth in the 2008 Telstra Men's Pro Event?It is not neccessary to use all the tables.
SELECT Player FROM table WHERE Position = no pick AND Year = 1976
CREATE TABLE INST, Here is a database schema( table schema);
What player has a no pick position in 1976?.It is not neccessary to use all the tables.
SELECT place_of_birth FROM table_name_7 WHERE elevator = "nicholas iv" AND elector = "napoleone orsini frangipani"
CREATE TABLE INST, Here is a database schema( table schema);
What is the place of birth when the elevator is Nicholas IV and elector is Napoleone Orsini Frangipani?It is not neccessary to use all the tables.
SELECT COUNT Zone FROM table WHERE Station users 2007–08 > 243,800 AND Year opened = 1855
CREATE TABLE INST, Here is a database schema( table schema);
Can you tell me the total number of Zone than has the Station users 2007-08 larger than 243,800, and the Year opened of 1855?.It is not neccessary to use all the tables.
SELECT record FROM table_name_9 WHERE attendance = "22,713"
CREATE TABLE INST, Here is a database schema( table schema);
What was the record when the attendance was 22,713?It is not neccessary to use all the tables.
SELECT date FROM table_name_71 WHERE runner_s__up = "oliver wilson"
CREATE TABLE INST, Here is a database schema( table schema);
What is Date when Runner(s)-Up is Oliver Wilson?It is not neccessary to use all the tables.
SELECT date FROM table_name_48 WHERE region = "france" AND catalog = "82876-70291-2"
CREATE TABLE INST, Here is a database schema( table schema);
What Date is listed for the Region of France and Catalog of 82876-70291-2?It is not neccessary to use all the tables.
SELECT SUM Wins FROM table WHERE Points = 48 AND Year < 2007
CREATE TABLE INST, Here is a database schema( table schema);
Before 2007, how many wins were there when the point total was 48?.It is not neccessary to use all the tables.
SELECT MIN Decile FROM table WHERE Area = matakohe AND Roll > 86
CREATE TABLE INST, Here is a database schema( table schema);
Can you tell me the lowest Decile that has the Area of matakohe, and the Roll larger than 86?.It is not neccessary to use all the tables.
SELECT location_attendance FROM table_17288825_7 WHERE high_assists = "Rafer Alston (10)"
CREATE TABLE INST, Here is a database schema( table schema);
At what location and what was the attendance when Rafer Alston (10) achieved high assists?It is not neccessary to use all the tables.
SELECT "Game site" FROM table_30072 WHERE "Date" = 'Saturday, April 21'
CREATE TABLE INST, Here is a database schema( table schema);
what is the location for saturday, april 21It is not neccessary to use all the tables.
SELECT MIN(production_code) FROM table_20098479_1
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest production codeIt is not neccessary to use all the tables.
SELECT seats_contested FROM table_20728138_1 WHERE party = "Independents"
CREATE TABLE INST, Here is a database schema( table schema);
How many seats are contested for independents?It is not neccessary to use all the tables.
SELECT event FROM table_name_54 WHERE record = "3-0"
CREATE TABLE INST, Here is a database schema( table schema);
What event did tim Hague have a record of 3-0?It is not neccessary to use all the tables.
SELECT COUNT(game) FROM table_name_98 WHERE score = "3–3 ot"
CREATE TABLE INST, Here is a database schema( table schema);
How many Games have a Score of 3–3 ot?It is not neccessary to use all the tables.
SELECT Incumbent FROM table WHERE Candidates = Percy E. Quin (D) Unopposed
CREATE TABLE INST, Here is a database schema( table schema);
who is the the incumbent with candidates being percy e. quin (d) unopposed.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Status = five nations AND Against = 7
CREATE TABLE INST, Here is a database schema( table schema);
When has a Status of five nations, and a Against of 7?.It is not neccessary to use all the tables.
SELECT COUNT(tournament) FROM table_11900378_1 WHERE singles_champions = "Ludovic Walter"
CREATE TABLE INST, Here is a database schema( table schema);
How many singles tournaments did Ludovic Walter win?It is not neccessary to use all the tables.
SELECT COUNT Total FROM table WHERE Bush # = 1552
CREATE TABLE INST, Here is a database schema( table schema);
how many total with bush # being 1552.It is not neccessary to use all the tables.
SELECT MIN Division FROM table WHERE Team = benfica AND Apps = 22
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest Division, when Team is "Benfica", and when Apps is 22?.It is not neccessary to use all the tables.
SELECT English title FROM table WHERE Director = jayme monjardim
CREATE TABLE INST, Here is a database schema( table schema);
What is the English title of the film Directed by Jayme Monjardim?.It is not neccessary to use all the tables.
SELECT Institution FROM table WHERE Founded = 1920
CREATE TABLE INST, Here is a database schema( table schema);
Name the place that was founded in 1920.It is not neccessary to use all the tables.
SELECT language FROM table_name_65 WHERE draw = 9
CREATE TABLE INST, Here is a database schema( table schema);
What's the language of Draw number 9?It is not neccessary to use all the tables.
SELECT Duration FROM table WHERE Stage > 13 AND Difficulty = middle AND Start = son bou
CREATE TABLE INST, Here is a database schema( table schema);
How long does the one that stars with son bou of middle difficulty, and on a stage number larger than 13 last?.It is not neccessary to use all the tables.
SELECT name, COUNT(*) FROM flight AS T1 JOIN aircraft AS T2 ON T1.aid = T2.aid GROUP BY T1.aid ORDER BY name DESC
CREATE TABLE INST, Here is a database schema( table schema);
Display a bar chart for what is the name of each aircraft and how many flights does each one complete?, and could you sort by the x axis in desc?It is not neccessary to use all the tables.
SELECT team FROM table_name_10 WHERE location_attendance = "madison square garden" AND score = "87-83"
CREATE TABLE INST, Here is a database schema( table schema);
Which team was the opponent that had a location of Madison Square Garden with a score of 87-83?It is not neccessary to use all the tables.
SELECT SUM Year FROM table WHERE Location = newport, rhode island
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum for the year with a location of newport, rhode island?.It is not neccessary to use all the tables.
SELECT Name FROM table WHERE Titles = The Ring Light heavyweight (175)
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the title winner in the ring light heavyweight (175) division?.It is not neccessary to use all the tables.
SELECT Airport FROM table WHERE Country = egypt AND ICAO = heba
CREATE TABLE INST, Here is a database schema( table schema);
What is Airport, when Country is "Egypt", and when ICAO is "Heba"?.It is not neccessary to use all the tables.
SELECT MIN Wins FROM table WHERE Points < 32 AND Class = 350cc AND Rank = 8th
CREATE TABLE INST, Here is a database schema( table schema);
What is the fewest number of wins for a team ranked 8th with fewer than 32 points in the 350cc class?.It is not neccessary to use all the tables.
SELECT Title FROM table WHERE No. in series = 168
CREATE TABLE INST, Here is a database schema( table schema);
What is the title of Melsrose Place episode number 168?.It is not neccessary to use all the tables.
SELECT COUNT(round) FROM table_11803648_20 WHERE player = "Matthew Puempel"
CREATE TABLE INST, Here is a database schema( table schema);
How many rounds is the player Matthew Puempel associated with?It is not neccessary to use all the tables.
SELECT Service FROM table WHERE Age at first step = 37y 8m 4d
CREATE TABLE INST, Here is a database schema( table schema);
The astronaut who was 37y 8m 4d when making a first step on the moon was in which service?.It is not neccessary to use all the tables.
SELECT DISTINCT instrument FROM Instruments
CREATE TABLE INST, Here is a database schema( table schema);
What are all the instruments used?It is not neccessary to use all the tables.
SELECT COUNT W(OT) FROM table WHERE W(GWS)* = 0 AND Season = 2009–10 AND L(OT) < 0
CREATE TABLE INST, Here is a database schema( table schema);
How many wins in OT are associated with a W(GWS)* of 0, a Season of 2009–10, and a L(OT) less than 0?.It is not neccessary to use all the tables.
SELECT Aircraft FROM table WHERE In service = 2 AND Origin = united states AND Versions = b-58
CREATE TABLE INST, Here is a database schema( table schema);
Which version B-58 aircraft model originated in the United States has 2 in service?.It is not neccessary to use all the tables.
SELECT rank FROM table_name_77 WHERE points < 408.8 AND placings = 160
CREATE TABLE INST, Here is a database schema( table schema);
What is the Rank of the couple with less than 408.8 Points and Placings of 160?It is not neccessary to use all the tables.
SELECT home_team FROM table_name_70 WHERE venue = "mcg"
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the home team for venue of mcgIt is not neccessary to use all the tables.
SELECT Name FROM table WHERE Latitude = 10.0S
CREATE TABLE INST, Here is a database schema( table schema);
Which name is at latitude 10.0s?.It is not neccessary to use all the tables.
SELECT Round FROM table WHERE Player = michael hjalm
CREATE TABLE INST, Here is a database schema( table schema);
What was the round number when Michael Hjalm played?.It is not neccessary to use all the tables.
SELECT COUNT(game) FROM table_17360840_4 WHERE record = "1-3-3"
CREATE TABLE INST, Here is a database schema( table schema);
How many games with record 1-3-3It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Home = ny islanders AND Visitor = montreal
CREATE TABLE INST, Here is a database schema( table schema);
Name the score when the home is ny islanders and the visitor is montreal.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 < "2146" AND procedures.short_title = "Cardiopulm resuscita NOS"
CREATE TABLE INST, Here is a database schema( table schema);
how many patients whose admission year is less than 2146 and procedure short title is cardiopulm resuscita nos?It is not neccessary to use all the tables.
SELECT period FROM table_24565004_11 WHERE appearances¹ = 219
CREATE TABLE INST, Here is a database schema( table schema);
What time period had appearances of 219?It is not neccessary to use all the tables.
SELECT MAX(fumb_yds) FROM table_name_9 WHERE fumb_f = 0 AND int_lg < 0
CREATE TABLE INST, Here is a database schema( table schema);
Which Fumb Yds has a Fumb F. of 0 and a Int LG smaller than 0?It is not neccessary to use all the tables.
SELECT COUNT("title") FROM table_203_633 WHERE "platform" = 'playstation portable'
CREATE TABLE INST, Here is a database schema( table schema);
what was the number of games available on playstation portable ?It is not neccessary to use all the tables.
SELECT MIN(round) FROM table_name_9 WHERE player = "adam wiesel"
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest round that Adam Wiesel was picked?It is not neccessary to use all the tables.
SELECT MAX(series__number) FROM table_27823058_1
CREATE TABLE INST, Here is a database schema( table schema);
What's the highest series number ?It is not neccessary to use all the tables.
SELECT bleeding_time FROM table_1099080_1 WHERE partial_thromboplastin_time = "Unaffected" AND platelet_count = "Unaffected"
CREATE TABLE INST, Here is a database schema( table schema);
What were the bleeding times when both the platelet count was unaffected and the partial thromboplastin time was unaffectedIt is not neccessary to use all the tables.
SELECT Score FROM table WHERE Champion = Jan Stephenson
CREATE TABLE INST, Here is a database schema( table schema);
What was the score in the tournament won by Jan Stephenson?.It is not neccessary to use all the tables.
SELECT CALLSIGN FROM table WHERE ICAO = sco
CREATE TABLE INST, Here is a database schema( table schema);
Who is the callsign that has ICAO of SCO?.It is not neccessary to use all the tables.
SELECT cfl_team FROM table_20170644_1 WHERE position = "OL"
CREATE TABLE INST, Here is a database schema( table schema);
What team was in position OL?It is not neccessary to use all the tables.
SELECT MAX(age) FROM table_27515452_3 WHERE hometown = "Veraguas"
CREATE TABLE INST, Here is a database schema( table schema);
what is the oldest and lives in veraguasIt is not neccessary to use all the tables.
SELECT Track title FROM table WHERE Duration = 5:30
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the track that lasts 5:30?.It is not neccessary to use all the tables.
SELECT money___$__ FROM table_name_21 WHERE place = "t8" AND score = 74 - 72 - 75 - 71 = 292
CREATE TABLE INST, Here is a database schema( table schema);
What was the money when the place was t8 and the score was 74-72-75-71=292?It is not neccessary to use all the tables.
SELECT MIN(drawn) FROM table_name_38 WHERE position < 7 AND against = 19
CREATE TABLE INST, Here is a database schema( table schema);
What is the smallest amount of draws when the position is less than 7 and the against is 19?It is not neccessary to use all the tables.
SELECT MAX(available_subnets) FROM table_149426_4
CREATE TABLE INST, Here is a database schema( table schema);
available subnets leading total is?It is not neccessary to use all the tables.
SELECT Club FROM table WHERE Founded = 1962
CREATE TABLE INST, Here is a database schema( table schema);
Which club was founded in 1962?.It is not neccessary to use all the tables.
SELECT score FROM table_17058178_8 WHERE game = 38
CREATE TABLE INST, Here is a database schema( table schema);
What was the final score in game 38?It is not neccessary to use all the tables.
SELECT attendance FROM table_name_65 WHERE date = "november 6, 1960"
CREATE TABLE INST, Here is a database schema( table schema);
What was the Attendance on November 6 1960?It is not neccessary to use all the tables.
SELECT passed FROM table_256286_19 WHERE description = "Bus and Truck Operating License Bill"
CREATE TABLE INST, Here is a database schema( table schema);
What was the passing result for the measure with a description of bus and truck operating license bill?It is not neccessary to use all the tables.
SELECT away_team AS score FROM table_name_74 WHERE home_team = "footscray"
CREATE TABLE INST, Here is a database schema( table schema);
During footscray's home game how much did the away team score?It is not neccessary to use all the tables.
SELECT MIN(attendance) FROM table_name_1 WHERE date = "8 october 1986"
CREATE TABLE INST, Here is a database schema( table schema);
What was the lowest Attendance on 8 October 1986?It is not neccessary to use all the tables.
SELECT MIN(pick) FROM table_name_30 WHERE name = "mark doak" AND overall < 147
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest draft pick number for mark doak who had an overall pick smaller than 147?It is not neccessary to use all the tables.
SELECT original_air_date FROM table_10413597_5 WHERE setting = "1544"
CREATE TABLE INST, Here is a database schema( table schema);
What was the original air date of an episode set in 1544?It is not neccessary to use all the tables.
SELECT MIN(played) FROM table_18607260_6
CREATE TABLE INST, Here is a database schema( table schema);
Name the least playedIt is not neccessary to use all the tables.
SELECT COUNT("Matches") FROM table_7892 WHERE "Strike Rate" < '152.3' AND "Balls" = '395'
CREATE TABLE INST, Here is a database schema( table schema);
Can you tell me the total number of Matched that has the Strike Rate smallet than 152.3, and the Balls of 395?It is not neccessary to use all the tables.
SELECT ministers FROM table WHERE Cabinet (Nickname) = Steingrímur Hermannsson III
CREATE TABLE INST, Here is a database schema( table schema);
How many ministers are there when the cabinet (nickname) is Steingrímur Hermannsson III?.It is not neccessary to use all the tables.
SELECT Winning team FROM table WHERE Circuit = homestead-miami speedway
CREATE TABLE INST, Here is a database schema( table schema);
Who was the winning team at the Homestead-Miami Speedway?.It is not neccessary to use all the tables.
SELECT Writer FROM table WHERE Film title = toy story
CREATE TABLE INST, Here is a database schema( table schema);
Who wrote Toy Story?.It is not neccessary to use all the tables.
SELECT format FROM table_name_37 WHERE country = "japan"
CREATE TABLE INST, Here is a database schema( table schema);
Which format is in Japan?It is not neccessary to use all the tables.
SELECT COUNT("nation") FROM table_203_612 WHERE "total" > 100
CREATE TABLE INST, Here is a database schema( table schema);
how many countries have earned over a hundred medals in total ?It is not neccessary to use all the tables.
SELECT Game FROM table WHERE Team = Milwaukee
CREATE TABLE INST, Here is a database schema( table schema);
Which game was played by team milwaukee.It is not neccessary to use all the tables.
SELECT id, name, market_share FROM browser
CREATE TABLE INST, Here is a database schema( table schema);
List the ids names and market shares of all browsers.It is not neccessary to use all the tables.
SELECT Customer_Phone FROM PERFORMERS WHERE Customer_Name = "Ashley"
CREATE TABLE INST, Here is a database schema( table schema);
What is the phone number of the performer Ashley?It is not neccessary to use all the tables.
SELECT MIN(points) FROM table_name_24 WHERE name = "ehc münchen ii" AND position < 7
CREATE TABLE INST, Here is a database schema( table schema);
what is the lowest points when name is ehc münchen ii and position is less than 7?It is not neccessary to use all the tables.
SELECT high_assists FROM table_11960944_4 WHERE date = "December 12"
CREATE TABLE INST, Here is a database schema( table schema);
Who had the high assists on the date December 12?It is not neccessary to use all the tables.
SELECT rank FROM table_name_69 WHERE scorer = "lee sang-cheol"
CREATE TABLE INST, Here is a database schema( table schema);
Which Rank has a Scorer of lee sang-cheol?It is not neccessary to use all the tables.
SELECT party FROM table_1341472_15 WHERE first_elected = "1980"
CREATE TABLE INST, Here is a database schema( table schema);
what's the party for the first elected in 1980It is not neccessary to use all the tables.
SELECT "UCI Rating" FROM table_37564 WHERE "Location" = 'italy' AND "Team" = 'progetto ciclismo alplast'
CREATE TABLE INST, Here is a database schema( table schema);
What is the UCI rating of the race in Italy with the progetto ciclismo alplast team?It is not neccessary to use all the tables.
SELECT (SELECT "sequence identity" FROM table_204_358 WHERE "common name" = 'frog') - (SELECT "sequence identity" FROM table_204_358 WHERE "common name" = 'zebra fish')
CREATE TABLE INST, Here is a database schema( table schema);
whats the percentage of difference between the frog and zebra fish ?It is not neccessary to use all the tables.
SELECT "Score" FROM table_57811 WHERE "Tournament" = 'cordenons'
CREATE TABLE INST, Here is a database schema( table schema);
What is the score for the Tournament of Cordenons?It is not neccessary to use all the tables.
SELECT "Friday" FROM table_1825 WHERE "Monday" = '515 The Adventures of Tintin'
CREATE TABLE INST, Here is a database schema( table schema);
which episode was Transmitted on friday if the episode of '515 the adventures of tintin' was transmitted on monday?It is not neccessary to use all the tables.
SELECT New entries this round FROM table WHERE Leagues entering at this round = tff third league & turkish regional amateur league
CREATE TABLE INST, Here is a database schema( table schema);
How many new entries when the leagues entering in the round are tff third league & turkish regional amateur league?.It is not neccessary to use all the tables.
SELECT Category FROM table WHERE Participants/Recipients = Otōto
CREATE TABLE INST, Here is a database schema( table schema);
What category was the the participant/recipient otōto?.It is not neccessary to use all the tables.
SELECT nationality FROM table_name_32 WHERE lane < 6 AND rank = 1
CREATE TABLE INST, Here is a database schema( table schema);
What nationality has a lane less than 6, with 1 as the rank?It is not neccessary to use all the tables.
SELECT Handicap FROM table WHERE Prize Money = 120s
CREATE TABLE INST, Here is a database schema( table schema);
What was the handicap when the prize money was 120s?.It is not neccessary to use all the tables.
SELECT MAX("Against") FROM table_12692 WHERE "Wins" > '2' AND "Matches" < '17'
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest Against, when Wins is greater than 2, and when Matches is less than 17?It is not neccessary to use all the tables.
SELECT MAX(goals_for) FROM table_name_8 WHERE losses < 16 AND wins < 11 AND goal_difference > -9
CREATE TABLE INST, Here is a database schema( table schema);
What was the highest goals with fewer than 16 losses fewer than 11 wins and a goal difference greater than -9?It is not neccessary to use all the tables.
SELECT completed FROM table_name_28 WHERE launched = "12 april 1934"
CREATE TABLE INST, Here is a database schema( table schema);
Name what was completed on 12 april 1934It is not neccessary to use all the tables.
SELECT AVG(points_for_higher) FROM table_name_25 WHERE points_for_ordinary = 0 AND grade = "ng" AND points_for_foundation < 0
CREATE TABLE INST, Here is a database schema( table schema);
What average points for highers has 0 has points for ordinary and Ng as the grade and less than 0 as points for foundation?It is not neccessary to use all the tables.
SELECT host_team FROM table_name_67 WHERE final_score = "26-24"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the host team for the game with the final score of 26-24?It is not neccessary to use all the tables.
SELECT COUNT("Winning %") FROM table_9759 WHERE "Seasons" = '2' AND "Coach" = 'guy lowman'
CREATE TABLE INST, Here is a database schema( table schema);
how many times is the seasons 2 and the coach guy lowman?It is not neccessary to use all the tables.
SELECT COUNT(*) FROM instruments WHERE instrument = "drums"
CREATE TABLE INST, Here is a database schema( table schema);
How many songs have used the instrument "drums"?It is not neccessary to use all the tables.
SELECT Hand FROM table WHERE 1 credit = 200
CREATE TABLE INST, Here is a database schema( table schema);
Name the hand for 1 credit 200.It is not neccessary to use all the tables.
SELECT COUNT(rank) FROM table_name_19 WHERE country = "greece"
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of rank for the country of greece?It is not neccessary to use all the tables.
SELECT Romanised name FROM table WHERE Portfolio attachment = education
CREATE TABLE INST, Here is a database schema( table schema);
What is the Romanised name of the Undersecretary with an education portfolio attachment?.It is not neccessary to use all the tables.
SELECT podiums FROM table_name_65 WHERE season > 2008 AND series = "gp2 asia series"
CREATE TABLE INST, Here is a database schema( table schema);
What is the value for Podiums when the Season is after 2008 and when the Series is GP2 Asia Series?It is not neccessary to use all the tables.
SELECT AVG(grid) FROM table_name_26 WHERE driver = "johnny dumfries" AND laps < 8
CREATE TABLE INST, Here is a database schema( table schema);
What is the average grid for johnny dumfries with less than 8 laps?It is not neccessary to use all the tables.
SELECT 1973 Democratic initial primary FROM table WHERE Queens = 19%
CREATE TABLE INST, Here is a database schema( table schema);
Who won the 1973 democratic initial primary for queens of 19%?.It is not neccessary to use all the tables.