sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT date FROM table_name_28 WHERE record = "54-69"
CREATE TABLE INST, Here is a database schema( table schema);
When was the game with a record of 54-69?It is not neccessary to use all the tables.
SELECT Team captain FROM table WHERE Team = Cardiff City
CREATE TABLE INST, Here is a database schema( table schema);
Who is the captain of Cardiff City?.It is not neccessary to use all the tables.
SELECT T2.name, T2.year FROM results AS T1 JOIN races AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T1.driverid = T3.driverid WHERE T3.forename = "Lewis"
CREATE TABLE INST, Here is a database schema( table schema);
What are the names and years of all races that had a driver with the last name Lewis?It is not neccessary to use all the tables.
SELECT date FROM table_name_30 WHERE visitor = "anaheim"
CREATE TABLE INST, Here is a database schema( table schema);
What was the date of the Red Wings home game against Anaheim?It is not neccessary to use all the tables.
SELECT SUM Rank FROM table WHERE Name = meagen nay AND Lane > 5
CREATE TABLE INST, Here is a database schema( table schema);
What is Meagen Nay's rank with a lane greater than 5?.It is not neccessary to use all the tables.
SELECT title FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid GROUP BY T1.songid ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
Which song has the most vocals?It is not neccessary to use all the tables.
SELECT MIN("Crowd") FROM table_74718 WHERE "Away team score" = '10.7 (67)'
CREATE TABLE INST, Here is a database schema( table schema);
What is the smallest crowd to see the away team score 10.7 (67)?It is not neccessary to use all the tables.
SELECT Opponent# FROM table WHERE Attendance = 42,000
CREATE TABLE INST, Here is a database schema( table schema);
Who was the opponent in the game that was attended by 42,000 people?.It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Opponent = Wesley Moodie
CREATE TABLE INST, Here is a database schema( table schema);
Name the result for wesley moodie.It is not neccessary to use all the tables.
SELECT status FROM table_name_9 WHERE opposing_teams = "south africa"
CREATE TABLE INST, Here is a database schema( table schema);
What was the status for the opposing team South Africa?It is not neccessary to use all the tables.
SELECT AVG Episode number FROM table WHERE Title = sugar daddy
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of the episode titled 'Sugar Daddy'?.It is not neccessary to use all the tables.
SELECT COUNT(athlete) FROM table_17289604_38 WHERE round_of_64 = "Llagostera Vives ( ESP ) L 6–2, 3–6, 5–7"
CREATE TABLE INST, Here is a database schema( table schema);
How many number of athletes were in round of 64 was llagostera Vives ( esp ) l 6–2 3–6 5–7?It is not neccessary to use all the tables.
SELECT date_of_transaction, SUM(share_count) FROM Transactions ORDER BY date_of_transaction DESC
CREATE TABLE INST, Here is a database schema( table schema);
Bin all date of transactions into the YEAR interval, and sum the share count of each bin What is the trend?, and order by the X-axis from high to low please.It is not neccessary to use all the tables.
SELECT years FROM table_name_33 WHERE duration = "15 years" AND character = "giulia poggi"
CREATE TABLE INST, Here is a database schema( table schema);
What are the years that have a duration of 15 years and giulia poggi as the character?It is not neccessary to use all the tables.
SELECT date FROM table_name_89 WHERE winning_score = −9(72 - 68 - 64 - 67 = 271)
CREATE TABLE INST, Here is a database schema( table schema);
When was the winning score −9 (72-68-64-67=271)?It is not neccessary to use all the tables.
SELECT Mountain Range FROM table WHERE Mountain Peak = sierra blanca peak
CREATE TABLE INST, Here is a database schema( table schema);
Which mountain range contains Sierra Blanca Peak?.It is not neccessary to use all the tables.
SELECT Partner FROM table WHERE Year > 2012 AND Outcome = winner
CREATE TABLE INST, Here is a database schema( table schema);
Who was the partner of the winner after 2012?.It is not neccessary to use all the tables.
SELECT Malayalam name FROM table WHERE Zodiac sign = Leo
CREATE TABLE INST, Here is a database schema( table schema);
Name the malayalam name for leo.It is not neccessary to use all the tables.
SELECT drawn FROM table_14058433_4 WHERE points_for = "350"
CREATE TABLE INST, Here is a database schema( table schema);
what's the drawn with points for being 350It is not neccessary to use all the tables.
SELECT Attendance FROM table WHERE Home = cleveland AND Date = january 30
CREATE TABLE INST, Here is a database schema( table schema);
What is Attendance, when Home is Cleveland, and when Date is January 30?.It is not neccessary to use all the tables.
SELECT tie_no FROM table_name_30 WHERE away_team = "burnley"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Tie no when the away team was Burnley?It is not neccessary to use all the tables.
SELECT candidates FROM table_1342331_43 WHERE incumbent = "James P. Buchanan"
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the candidate where the incumbent is named James P. Buchanan?It is not neccessary to use all the tables.
SELECT order FROM table_name_18 WHERE title = "deacon of ss. cosma e damiano"
CREATE TABLE INST, Here is a database schema( table schema);
What order has the title Deacon of SS. Cosma E Damiano?It is not neccessary to use all the tables.
SELECT Position FROM table WHERE Matches for NQF = 2009
CREATE TABLE INST, Here is a database schema( table schema);
If the matches for NQF is 2009, what is the position?.It is not neccessary to use all the tables.
SELECT nhl_team FROM table_2840500_2 WHERE player = "Travis Brigley"
CREATE TABLE INST, Here is a database schema( table schema);
Which team drafted Travis Brigley?It is not neccessary to use all the tables.
SELECT MAX(round) FROM table_name_21 WHERE position = "guard" AND overall > 71
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest round with a guard position and an overall greater than 71?It is not neccessary to use all the tables.
SELECT MAX(Ends) AS lost FROM table_26912584_2
CREATE TABLE INST, Here is a database schema( table schema);
What is the largest amount of ends lost?It is not neccessary to use all the tables.
SELECT score FROM table_name_11 WHERE tie_no < 2
CREATE TABLE INST, Here is a database schema( table schema);
What was the score when the Tie no less than 2?It is not neccessary to use all the tables.
SELECT winner FROM table_name_35 WHERE date = "3 june"
CREATE TABLE INST, Here is a database schema( table schema);
Who won on 3 june?It is not neccessary to use all the tables.
SELECT COUNT Elapsed Time FROM table WHERE Event = $16.50 Fixed-Limit Badugi
CREATE TABLE INST, Here is a database schema( table schema);
How many categories for elapsed time exist for the $16.50 fixed-limit badugi game?.It is not neccessary to use all the tables.
SELECT Engine FROM table WHERE Turbo = Yes (Mitsubishi TD04-15g )
CREATE TABLE INST, Here is a database schema( table schema);
" what's the engine with turbo being yes (mitsubishi td04-15g ) ".It is not neccessary to use all the tables.
SELECT Res. FROM table WHERE Time = 1:09
CREATE TABLE INST, Here is a database schema( table schema);
What is Res., when Time is "1:09"?.It is not neccessary to use all the tables.
SELECT title FROM table_name_76 WHERE translation = "i know"
CREATE TABLE INST, Here is a database schema( table schema);
Which title has a translation of I know in it?It is not neccessary to use all the tables.
SELECT Displacement cc FROM table WHERE Engine = i6 AND Year = 1936
CREATE TABLE INST, Here is a database schema( table schema);
What cc displacement has an i6 engine in 1936?.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Venue = brunswick street oval
CREATE TABLE INST, Here is a database schema( table schema);
The venue of Brunswick Street Oval was used on what date?.It is not neccessary to use all the tables.
SELECT away_team FROM table_name_52 WHERE match_no = "9"
CREATE TABLE INST, Here is a database schema( table schema);
What is the away team of match 9?It is not neccessary to use all the tables.
SELECT Attendance FROM table WHERE Date = 11/10/1928
CREATE TABLE INST, Here is a database schema( table schema);
What is the Attendance on 11/10/1928?.It is not neccessary to use all the tables.
SELECT "Away team" FROM table_32813 WHERE "Home team" = 'fitzroy'
CREATE TABLE INST, Here is a database schema( table schema);
What was the away team that played Fitzroy?It is not neccessary to use all the tables.
SELECT High assists FROM table WHERE Date = April 2
CREATE TABLE INST, Here is a database schema( table schema);
List all players with highest assists from April 2..It is not neccessary to use all the tables.
SELECT general_election FROM table_106367_2 WHERE result = "PQ majority" AND _percentage_of_popular_vote = "44.75%"
CREATE TABLE INST, Here is a database schema( table schema);
Which general election had a pq majority and a 44.75% of the popular vote?It is not neccessary to use all the tables.
SELECT COUNT Brief description FROM table WHERE Fatalities = 0/161
CREATE TABLE INST, Here is a database schema( table schema);
How many different brief descriptions are there for crashes with 0/161 fatalities?.It is not neccessary to use all the tables.
SELECT player_name FROM table_10966926_2 WHERE college = "Michigan State"
CREATE TABLE INST, Here is a database schema( table schema);
Which player went to Michigan State?It is not neccessary to use all the tables.
SELECT Laid down FROM table WHERE Completed = 3 july 1926
CREATE TABLE INST, Here is a database schema( table schema);
when was the ship laid down when it was completed on 3 july 1926?.It is not neccessary to use all the tables.
SELECT MAX(labevents.valuenum) FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 31300) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'albumin, body fluid') AND STRFTIME('%y-%m', labevents.charttime) <= '2105-04'
CREATE TABLE INST, Here is a database schema( table schema);
what is until 04/2105 maximum albumin, body fluid value of patient 31300?It is not neccessary to use all the tables.
SELECT score FROM table_name_92 WHERE record = "32-37"
CREATE TABLE INST, Here is a database schema( table schema);
When the record was 32-37 what was the score?It is not neccessary to use all the tables.
SELECT MAX TD's FROM table WHERE Avg. > 8.5 AND Rec. < 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest number of TDs when the Avg is larger than 8.5 and the Rec is less than 1?.It is not neccessary to use all the tables.
SELECT result FROM table_name_14 WHERE event = "strikeforce" AND method = "ko (double roundhouse kick)"
CREATE TABLE INST, Here is a database schema( table schema);
Which Result has the Event Strikeforce and Method Ko (double roundhouse kick)?It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Episode = Top 3
CREATE TABLE INST, Here is a database schema( table schema);
What was the result of the Top 3 episode?.It is not neccessary to use all the tables.
SELECT total FROM table_name_88 WHERE rank = "did not participate"
CREATE TABLE INST, Here is a database schema( table schema);
What is the total of the ranks that did not participate?It is not neccessary to use all the tables.
SELECT SUM(rank) FROM table_name_21 WHERE heat = 9 AND nation = "great britain"
CREATE TABLE INST, Here is a database schema( table schema);
what is the rank when heat is 9 and the nation is great britain?It is not neccessary to use all the tables.
SELECT Release date FROM table WHERE Production Number = 1018, br 1352
CREATE TABLE INST, Here is a database schema( table schema);
What was the release date of the feature with a production number of 1018, BR 1352?.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Away team = hawthorn
CREATE TABLE INST, Here is a database schema( table schema);
When did Hawthorn play as the away team?.It is not neccessary to use all the tables.
SELECT directed_by FROM table_2221484_2 WHERE series__number = 266
CREATE TABLE INST, Here is a database schema( table schema);
Who directed episode 266 in the series?It is not neccessary to use all the tables.
SELECT Series FROM table WHERE Date = april 18
CREATE TABLE INST, Here is a database schema( table schema);
Which Series is on april 18?.It is not neccessary to use all the tables.
SELECT Position FROM table WHERE NHL team = New York Islanders
CREATE TABLE INST, Here is a database schema( table schema);
What was the position of the player who played for New York Islanders NHL Team?.It is not neccessary to use all the tables.
SELECT COUNT(name_of_team_song) FROM table_28243323_1 WHERE writer_composer = "Harry Angus"
CREATE TABLE INST, Here is a database schema( table schema);
How man teams have a writer named harry angus?It is not neccessary to use all the tables.
SELECT score FROM table_name_66 WHERE home_team = "saskatoon accelerators" AND date = "january 6, 2008"
CREATE TABLE INST, Here is a database schema( table schema);
What was Saskatoon Accelerators score on January 6 2008?It is not neccessary to use all the tables.
SELECT points FROM table_name_20 WHERE time_retired = "collision" AND car_no = "10"
CREATE TABLE INST, Here is a database schema( table schema);
How many points were scored by car number 10 that ended with a collision?It is not neccessary to use all the tables.
SELECT printer_ports FROM table_1300080_1 WHERE model_number = "EX Plus3"
CREATE TABLE INST, Here is a database schema( table schema);
What's the type of printer ports in the model number EX Plus3?It is not neccessary to use all the tables.
SELECT "Away team score" FROM table_33591 WHERE "Home team" = 'essendon'
CREATE TABLE INST, Here is a database schema( table schema);
What was home team Essendon's opponents score?It is not neccessary to use all the tables.
SELECT SUM("Rank") FROM table_61819 WHERE "Total" < '1'
CREATE TABLE INST, Here is a database schema( table schema);
What's the rank that has a total of less than 1?It is not neccessary to use all the tables.
SELECT pick__number FROM table_20170644_3 WHERE college = "Calgary"
CREATE TABLE INST, Here is a database schema( table schema);
What number picks were the players who went to Calgary?It is not neccessary to use all the tables.
SELECT Class FROM table WHERE City of license = black mountain, north carolina
CREATE TABLE INST, Here is a database schema( table schema);
What class is the city of black mountain, north carolina?.It is not neccessary to use all the tables.
SELECT third FROM table_name_20 WHERE champion = "metalurh novomoskovsk"
CREATE TABLE INST, Here is a database schema( table schema);
Which Third has a Champion of metalurh novomoskovsk?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Week = 8
CREATE TABLE INST, Here is a database schema( table schema);
What day did the team play on week 8?.It is not neccessary to use all the tables.
SELECT kids FROM Reservations WHERE FirstName = "ROY" AND LastName = "SWEAZY"
CREATE TABLE INST, Here is a database schema( table schema);
How many kids stay in the rooms reserved by ROY SWEAZY?It is not neccessary to use all the tables.
SELECT Name FROM table WHERE Transfer fee = loan
CREATE TABLE INST, Here is a database schema( table schema);
What is the Name, when the Transfer fee is "loan"?.It is not neccessary to use all the tables.
SELECT First Air Date FROM table WHERE Episode = 11
CREATE TABLE INST, Here is a database schema( table schema);
When 11 is the episode what is the air date?.It is not neccessary to use all the tables.
SELECT Country FROM table WHERE Player = vijay singh
CREATE TABLE INST, Here is a database schema( table schema);
Name the country vijay singh is from.It is not neccessary to use all the tables.
SELECT AVG Crowd FROM table WHERE Home team score = 11.15 (81)
CREATE TABLE INST, Here is a database schema( table schema);
Which average crowd has a Home team score of 11.15 (81)?.It is not neccessary to use all the tables.
SELECT Class AA FROM table WHERE School Year = 1994-95
CREATE TABLE INST, Here is a database schema( table schema);
What team was class AA in years 1994-95?.It is not neccessary to use all the tables.
SELECT home_away FROM table_name_68 WHERE field = "nickerson field" AND date = "july 10"
CREATE TABLE INST, Here is a database schema( table schema);
What is the home/away of the game at Nickerson Field at July 10?It is not neccessary to use all the tables.
SELECT home_team FROM table_name_66 WHERE venue = "junction oval"
CREATE TABLE INST, Here is a database schema( table schema);
What team is based at junction oval?It is not neccessary to use all the tables.
SELECT "Away team score" FROM table_51599 WHERE "Away team" = 'south melbourne'
CREATE TABLE INST, Here is a database schema( table schema);
When South Melbourne was the Away Team, what was their score?It is not neccessary to use all the tables.
SELECT "nation" FROM table_204_922 WHERE "gold" = 0
CREATE TABLE INST, Here is a database schema( table schema);
name all the nations that did not win any gold medals .It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Public = 8
CREATE TABLE INST, Here is a database schema( table schema);
When 8 is the public what are the results?.It is not neccessary to use all the tables.
SELECT COUNT("Laps") FROM table_14659 WHERE "Year" = '1949'
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of laps that were completed in 1949?It is not neccessary to use all the tables.
SELECT team FROM table_name_24 WHERE record = "32–50"
CREATE TABLE INST, Here is a database schema( table schema);
Which Team has a Record of 32–50?It is not neccessary to use all the tables.
SELECT ERP W FROM table WHERE Frequency MHz > 93.3 AND City of license = washington, georgia
CREATE TABLE INST, Here is a database schema( table schema);
Name the ERP W with a frequency mhz more than 93.3 and city license of washington, georgia.It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Date = december 18, 2005
CREATE TABLE INST, Here is a database schema( table schema);
Who were the Opponents on December 18, 2005?.It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Season = 2010/11
CREATE TABLE INST, Here is a database schema( table schema);
Which opponent has a Season of 2010/11?.It is not neccessary to use all the tables.
SELECT Athlete FROM table WHERE Score = 236.023
CREATE TABLE INST, Here is a database schema( table schema);
Which athlete had a score of 236.023?.It is not neccessary to use all the tables.
SELECT date FROM table_name_10 WHERE venue = "stade général seyni kountché , niamey"
CREATE TABLE INST, Here is a database schema( table schema);
what is the date when the venue is stade général seyni kountché niamey?It is not neccessary to use all the tables.
SELECT competition FROM table_name_68 WHERE final_position___round = "2"
CREATE TABLE INST, Here is a database schema( table schema);
Which competition had a final position/round of 2?It is not neccessary to use all the tables.
SELECT Party, COUNT(*) FROM representative GROUP BY Party
CREATE TABLE INST, Here is a database schema( table schema);
What are the different parties of representative? Show the party name and the number of representatives in each party.It is not neccessary to use all the tables.
SELECT MAX Top-10 FROM table WHERE Cuts made > 1 AND Events = 8
CREATE TABLE INST, Here is a database schema( table schema);
For majors with 8 events played and more than 1 made cut, what is the most top-10s recorded?.It is not neccessary to use all the tables.
SELECT DISTINCT label FROM Albums
CREATE TABLE INST, Here is a database schema( table schema);
What are all the labels?It is not neccessary to use all the tables.
SELECT lyricist FROM table_11827596_4 WHERE film_name = "Gopal Krishna" AND co_singer = "Solo"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the lyricist for gopal krishna and co singer of solo?It is not neccessary to use all the tables.
SELECT MAX(level) FROM table_1751142_2
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest possible level?It is not neccessary to use all the tables.
SELECT l2_cache FROM table_18823880_10 WHERE release_date = "September 2009" AND part_number_s_ = "BY80607002529AF"
CREATE TABLE INST, Here is a database schema( table schema);
When by80607002529af is the part number and september 2009 is the release date what is the l2 cache?It is not neccessary to use all the tables.
SELECT Class, COUNT(Class) FROM captain GROUP BY Rank, Class ORDER BY Class
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of captains in each rank and class? Let class as X-axis, and categorize by rank with a stacked bar chart, rank by the X-axis in ascending.It is not neccessary to use all the tables.
SELECT "Abbreviation" FROM table_57606 WHERE "Country" = 'libya'
CREATE TABLE INST, Here is a database schema( table schema);
What's the abbreviation for libya?It is not neccessary to use all the tables.
SELECT date FROM table_name_53 WHERE home = "hornets"
CREATE TABLE INST, Here is a database schema( table schema);
Which date had the Hornets as the home team?It is not neccessary to use all the tables.
SELECT MIN(attendance) FROM table_name_50 WHERE date = "14 april 2007"
CREATE TABLE INST, Here is a database schema( table schema);
How many were in attendance on 14 April 2007?It is not neccessary to use all the tables.
SELECT * FROM table_train_248 WHERE body_mass_index_bmi > 26 OR body_weight > 80
CREATE TABLE INST, Here is a database schema( table schema);
body mass index above 26 and / or weight > 80 kg;It is not neccessary to use all the tables.
SELECT Rank FROM table WHERE Opposition = limerick
CREATE TABLE INST, Here is a database schema( table schema);
Which Rank has an Opposition of limerick?.It is not neccessary to use all the tables.
SELECT "Record" FROM table_2968 WHERE "Opponent" = 'Stampeders'
CREATE TABLE INST, Here is a database schema( table schema);
If the opponent is the Stampeders, what is the record?It is not neccessary to use all the tables.
SELECT Athlete (NOC) FROM table WHERE Swimming = 2:05.63 (1296 pts)
CREATE TABLE INST, Here is a database schema( table schema);
Who's the player with 2:05.63 (1296 pts) swimming score?.It is not neccessary to use all the tables.
SELECT COUNT("Goals per Match") FROM table_62099 WHERE "Name" = 'cha bum-kun'
CREATE TABLE INST, Here is a database schema( table schema);
What is Cha Bum-Kun's average number of goals per match?It is not neccessary to use all the tables.
SELECT U.S. viewers (million) FROM table WHERE No. = 38
CREATE TABLE INST, Here is a database schema( table schema);
How many viewers in millions for episode number 38?.It is not neccessary to use all the tables.