sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT Away FROM table WHERE Attendance < 2614 AND Home = victoria
CREATE TABLE INST, Here is a database schema( table schema);
Who was the away team that had attendance under 2614 and a home team of Victoria?.It is not neccessary to use all the tables.
SELECT Worship Leader FROM table WHERE Lead Supporting Vocal = marcus temu
CREATE TABLE INST, Here is a database schema( table schema);
Who was the worship leader that had a lead supporting vocal Marcus Temu?.It is not neccessary to use all the tables.
SELECT # / County FROM table WHERE Year Joined < 1981 AND Location = chalmers
CREATE TABLE INST, Here is a database schema( table schema);
which # / county is correct for year less than 1981 and chalmers as location?.It is not neccessary to use all the tables.
SELECT place FROM table_name_72 WHERE score = 67 - 67 = 134
CREATE TABLE INST, Here is a database schema( table schema);
What place had a score of 67-67=134?It is not neccessary to use all the tables.
SELECT record FROM table_name_92 WHERE home = "ny rangers"
CREATE TABLE INST, Here is a database schema( table schema);
What is the record for the NY Rangers?It is not neccessary to use all the tables.
SELECT District FROM table WHERE Incumbent = Albert W. Johnson
CREATE TABLE INST, Here is a database schema( table schema);
What district is incumbent albert w. johnson from?.It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Away team = st kilda
CREATE TABLE INST, Here is a database schema( table schema);
What venue does st kilda play at as the away team?.It is not neccessary to use all the tables.
SELECT Winner FROM table WHERE Runner-up = teikyo
CREATE TABLE INST, Here is a database schema( table schema);
Who was the winner in the game that had Teikyo as the runner-up?.It is not neccessary to use all the tables.
SELECT position FROM table_name_62 WHERE round = "t" AND team = "minneapolis lakers"
CREATE TABLE INST, Here is a database schema( table schema);
What was the position of the team Minneapolis Lakers during round T?It is not neccessary to use all the tables.
SELECT round_winner FROM table_19886463_1 WHERE entrant = "Craven Mild Racing"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the round winner when entrant is craven mild racing?It is not neccessary to use all the tables.
SELECT Event FROM table WHERE Position = 1st AND Year = 1983 AND Venue = budapest
CREATE TABLE INST, Here is a database schema( table schema);
What Event has a Position of 1st, a Year of 1983, and a Venue of budapest?.It is not neccessary to use all the tables.
SELECT MIN Code FROM table WHERE Most spoken language = xhosa AND Place = addo elephant national park AND Area (km 2 ) < 1.08
CREATE TABLE INST, Here is a database schema( table schema);
What's the lowest Code that's got a Most Spoke Language of Xhosa, a Place of Addo Elephant National Park, and an Area (KM 2) that's smaller than 1.08?.It is not neccessary to use all the tables.
SELECT Sensor res., size FROM table WHERE Model = s9200
CREATE TABLE INST, Here is a database schema( table schema);
Name the sensor res for model of s9200.It is not neccessary to use all the tables.
SELECT SUM Rank FROM table WHERE Name = fernando cavenaghi AND Appearances < 7
CREATE TABLE INST, Here is a database schema( table schema);
What was the sum of ranks of those called Fernando Cavenaghi who appeared less than 7..It is not neccessary to use all the tables.
SELECT AVG(laps) FROM table_name_70 WHERE time_retired = "+1 lap" AND driver = "olivier panis" AND grid > 4
CREATE TABLE INST, Here is a database schema( table schema);
What is the average number of laps that has a Time/Retired of +1 lap a Driver of olivier panis and a Grid larger than 4?It is not neccessary to use all the tables.
SELECT MIN Total FROM table WHERE Country = united states AND Player = phil mickelson
CREATE TABLE INST, Here is a database schema( table schema);
What was the total for united states player phil mickelson?.It is not neccessary to use all the tables.
SELECT air_date FROM table_name_33 WHERE episode_number = 5
CREATE TABLE INST, Here is a database schema( table schema);
What was the air date of episode 5?It is not neccessary to use all the tables.
SELECT country FROM table_name_81 WHERE player = "gary evans"
CREATE TABLE INST, Here is a database schema( table schema);
From what Country is Gary Evans?It is not neccessary to use all the tables.
SELECT enterprise FROM table_name_1 WHERE datacenter = "yes" AND features = "memory modules: hot replacement"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Enterprise for teh memory modules: hot replacement Feature that has a Datacenter of Yes?It is not neccessary to use all the tables.
SELECT AVG("UBIGEO") FROM table_48662 WHERE "Province" = 'chepén'
CREATE TABLE INST, Here is a database schema( table schema);
What is Chep n's average UBIGEO?It is not neccessary to use all the tables.
SELECT score FROM table_name_47 WHERE country = "scotland"
CREATE TABLE INST, Here is a database schema( table schema);
What is Score when Country is "Scotland"?It is not neccessary to use all the tables.
SELECT rank FROM table_name_42 WHERE bronze = 1 AND nation = "czechoslovakia"
CREATE TABLE INST, Here is a database schema( table schema);
What was the rank for czechoslovakia with 1 bronze?It is not neccessary to use all the tables.
SELECT "rank" FROM table_204_741 WHERE "rank" IN (7, 3) GROUP BY "rank" ORDER BY COUNT(*) LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
does ranking 7 or 3 have the least amount of listings ?It is not neccessary to use all the tables.
SELECT COUNT(wins) FROM table_1507423_4 WHERE position = "26th"
CREATE TABLE INST, Here is a database schema( table schema);
How many wins were there when the position was 26th?It is not neccessary to use all the tables.
SELECT publisher FROM table_name_60 WHERE year_of_release = "2000" AND original_platforms = "dreamcast"
CREATE TABLE INST, Here is a database schema( table schema);
Which publisher has release year of 2000 and an original dreamcast platform?It is not neccessary to use all the tables.
SELECT No. 8 FROM table WHERE No. 4 = noah
CREATE TABLE INST, Here is a database schema( table schema);
What is the No. 8 of the person with a No. 4 of Noah?.It is not neccessary to use all the tables.
SELECT MAX(position) FROM table_18597302_1 WHERE team = "Atl. Colegiales"
CREATE TABLE INST, Here is a database schema( table schema);
What was the position of the Atl. Colegiales team?It is not neccessary to use all the tables.
SELECT sprints_classification FROM table_name_18 WHERE points_classification = "mark cavendish" AND team_classification = "caisse d'epargne"
CREATE TABLE INST, Here is a database schema( table schema);
What Sprints classification has the Points classification, Mark Cavendish and Team classification, Caisse D'epargne?It is not neccessary to use all the tables.
SELECT COUNT Round FROM table WHERE Pick > 303 AND Position = end
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of rounds of the end player with a pick number greater than 303?.It is not neccessary to use all the tables.
SELECT country FROM table_name_58 WHERE react < 0.242 AND points > 1041
CREATE TABLE INST, Here is a database schema( table schema);
Which country has a reaction time of under 0.242 seconds and over 1041 points?It is not neccessary to use all the tables.
SELECT laps FROM table_name_38 WHERE grid < 2
CREATE TABLE INST, Here is a database schema( table schema);
what is the laps when the grid is less than 2?It is not neccessary to use all the tables.
SELECT "Qual" FROM table_68296 WHERE "Rank" = '29' AND "Year" = '1957'
CREATE TABLE INST, Here is a database schema( table schema);
What is the qualification for rank of 29 in 1957?It is not neccessary to use all the tables.
SELECT Fastest Lap FROM table WHERE Grand Prix = belgian grand prix
CREATE TABLE INST, Here is a database schema( table schema);
What is the fastest lap for Belgian Grand Prix?.It is not neccessary to use all the tables.
SELECT Writer FROM table WHERE Artist = mort drucker AND Issue > 470 AND Actual Title = law & order: svu
CREATE TABLE INST, Here is a database schema( table schema);
What writer has mort drucker as the artist, an issue greater than 470, and law & order: svu as an actual title?.It is not neccessary to use all the tables.
SELECT show FROM table_name_81 WHERE date = "19 april"
CREATE TABLE INST, Here is a database schema( table schema);
Which show aired on 19 april?It is not neccessary to use all the tables.
SELECT COUNT(losses) FROM table_name_43 WHERE byes > 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of losses for teams with more than 0 byes?It is not neccessary to use all the tables.
SELECT Relegated FROM table WHERE 2nd Division = middlesex
CREATE TABLE INST, Here is a database schema( table schema);
What was relegated in the 2nd division of middlesex?.It is not neccessary to use all the tables.
SELECT heat FROM table_name_54 WHERE rank < 18 AND result = "55.15"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Heat of the Player with a Rank of 18 or less and Result of 55.15?It is not neccessary to use all the tables.
SELECT COUNT(portrayed_by) FROM table_11240028_3 WHERE relationship = "Informant of Don Flack"
CREATE TABLE INST, Here is a database schema( table schema);
How many characters were portrayed by the informant of don flack?It is not neccessary to use all the tables.
SELECT AVG(silver) FROM table_name_62 WHERE bronze > 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the average number of silvers for nations with over 1 bronze medal?It is not neccessary to use all the tables.
SELECT Writer FROM table WHERE Viewers (millions) = 5.93
CREATE TABLE INST, Here is a database schema( table schema);
Who wrote the episode that had 5.93 million viewers?.It is not neccessary to use all the tables.
SELECT COUNT Silver FROM table WHERE Gold < 1 AND Rank = 13 AND Bronze > 2
CREATE TABLE INST, Here is a database schema( table schema);
How many values for silver occur when gold is less than 1, the rank is 13, and bronze is greater than 2?.It is not neccessary to use all the tables.
SELECT MAX(rank) FROM table_name_37 WHERE definition = "core districts + inner suburbs" AND population = "10123000"
CREATE TABLE INST, Here is a database schema( table schema);
What rank was Core Districts + Inner Suburbs and had a population of 10123000?It is not neccessary to use all the tables.
SELECT SUM Decile FROM table WHERE Area = waikanae
CREATE TABLE INST, Here is a database schema( table schema);
What is the total Decile with Waikanae Area?.It is not neccessary to use all the tables.
SELECT phoneme FROM table_name_18 WHERE letter_name = "zɛn"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Phoneme symbol for the letter name zɛn?It is not neccessary to use all the tables.
SELECT Rank FROM table WHERE Location = fortaleza
CREATE TABLE INST, Here is a database schema( table schema);
What rank is the airport in Fortaleza?.It is not neccessary to use all the tables.
SELECT Original air date FROM table WHERE UK viewers (million) = 6.02
CREATE TABLE INST, Here is a database schema( table schema);
What was the airdate of the episode with a UK viewership of 6.02 million?.It is not neccessary to use all the tables.
SELECT Location FROM table WHERE Nickname = 49ers
CREATE TABLE INST, Here is a database schema( table schema);
What location is nicknamed the 49ers?.It is not neccessary to use all the tables.
SELECT 3rd day FROM table WHERE 4th Day = bumped by caius
CREATE TABLE INST, Here is a database schema( table schema);
What is the 3rd day when the 4th day is bumped by Caius?.It is not neccessary to use all the tables.
SELECT cust_name, credit_score FROM customer AS T1 JOIN loan AS T2 ON T1.cust_ID = T2.cust_ID
CREATE TABLE INST, Here is a database schema( table schema);
Find the name and credit score of the customers who have some loans. Plot them as pie chart.It is not neccessary to use all the tables.
SELECT Winners FROM table WHERE Not winning editions = 1992, 2003
CREATE TABLE INST, Here is a database schema( table schema);
Who is Winners that has editions of 1992, 2003 as Not Winning.It is not neccessary to use all the tables.
SELECT language FROM table_name_54 WHERE director = "nagisa oshima"
CREATE TABLE INST, Here is a database schema( table schema);
Which Language Director of nagisa oshima use in his film?It is not neccessary to use all the tables.
SELECT Remarks FROM table WHERE Destination number < 19 AND Rank < 5
CREATE TABLE INST, Here is a database schema( table schema);
What were the remarks for a destination under 19 and rank less than 5?.It is not neccessary to use all the tables.
SELECT SUM(speed__km_h_) FROM table_name_43 WHERE pilot = "john egginton"
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of speed in km per hour reached by John Egginton?It is not neccessary to use all the tables.
SELECT call_sign FROM table_name_38 WHERE erp_w > 10
CREATE TABLE INST, Here is a database schema( table schema);
What is the call sign for the translator with an ERP W larger than 10?It is not neccessary to use all the tables.
SELECT 2008 FROM table WHERE 2009 = a AND 2010 = a AND 2012 = 1r AND Tournament = cincinnati masters
CREATE TABLE INST, Here is a database schema( table schema);
Which 2008 has a 2009 of A, and a 2010 of A, and a 2012 of 1r, and a Tournament of cincinnati masters?.It is not neccessary to use all the tables.
SELECT Team FROM table WHERE Aggregate score = L 1–2
CREATE TABLE INST, Here is a database schema( table schema);
what is the name of the team which aggregate score is l 1–2.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Venue = vfl park
CREATE TABLE INST, Here is a database schema( table schema);
What date was the game played at vfl park?.It is not neccessary to use all the tables.
SELECT score FROM table_name_53 WHERE bowl_game = "insight bowl"
CREATE TABLE INST, Here is a database schema( table schema);
What was the score of the Insight Bowl?It is not neccessary to use all the tables.
SELECT COUNT Built FROM table WHERE Floors < 22 AND Rank < 8 AND Name = white, mediacityuk
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of Built, when Floors is less than 22, when Rank is less than 8, and when Name is White, Mediacityuk?.It is not neccessary to use all the tables.
SELECT score FROM table_name_35 WHERE team = "@ kansas city-omaha kings"
CREATE TABLE INST, Here is a database schema( table schema);
What is Score when Team is @ Kansas City-Omaha Kings?It is not neccessary to use all the tables.
SELECT Condition FROM table WHERE Prothrombin time = unaffected AND Bleeding time = prolonged AND Partial thromboplastin time = unaffected AND Platelet count = decreased or unaffected
CREATE TABLE INST, Here is a database schema( table schema);
I want to know the condition with Prothrombin time of unaffected and bleeding time of prolonged with partial thromboplastin time of unaffected with platelet count of decreased or unaffected.It is not neccessary to use all the tables.
SELECT attendance FROM table_name_92 WHERE result = "t 14-14"
CREATE TABLE INST, Here is a database schema( table schema);
Name the attendance with result of t 14-14It is not neccessary to use all the tables.
SELECT Country FROM table WHERE Format = cd AND Label = sony music AND Catalogue No. = sicp-2055
CREATE TABLE INST, Here is a database schema( table schema);
What is the country that has the format of cd, the label of sony music and the catalogue no sicp-2055?.It is not neccessary to use all the tables.
SELECT Engine FROM table WHERE Notes = srt8
CREATE TABLE INST, Here is a database schema( table schema);
What is then engine when the notes state srt8?.It is not neccessary to use all the tables.
SELECT AVG(gold) FROM table_name_14 WHERE total = 2 AND bronze > 1 AND silver < 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the average gold medals of the nation with 2 total medals more than 1 bronze and less than 0 silvers?It is not neccessary to use all the tables.
SELECT COUNT(*) FROM table_204_156 WHERE "crystal bicycle\n(best professional cyclist)" = 'johan museeuw'
CREATE TABLE INST, Here is a database schema( table schema);
what is the average number of times johan museeuw starred ?It is not neccessary to use all the tables.
SELECT location_attendance FROM table_17323092_8 WHERE high_assists = "Anthony Parker (7)"
CREATE TABLE INST, Here is a database schema( table schema);
Where was the location and what was the attendance in the game that Anthony Parker (7) earned high assists?It is not neccessary to use all the tables.
SELECT city FROM table_name_65 WHERE date = "october 13"
CREATE TABLE INST, Here is a database schema( table schema);
Wjich city had a date of october 13?It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT state) FROM college WHERE enr < (SELECT AVG(enr) FROM college)
CREATE TABLE INST, Here is a database schema( table schema);
How many states have smaller colleges than average?It is not neccessary to use all the tables.
SELECT COUNT(grid) FROM table_name_51 WHERE time = "+43.191" AND laps < 22
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of Grid when Time is +43.191 and when Laps is less than 22?It is not neccessary to use all the tables.
SELECT DISTINCT Fname FROM STUDENT WHERE Fname LIKE '%a%'
CREATE TABLE INST, Here is a database schema( table schema);
Find the first names of students whose first names contain letter "a".It is not neccessary to use all the tables.
SELECT Couple FROM table WHERE Week 2 = 23
CREATE TABLE INST, Here is a database schema( table schema);
Which couple had a week 2 score of exactly 23?.It is not neccessary to use all the tables.
SELECT player_id FROM salary WHERE year = "2015" ORDER BY salary DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
Who is the player had the highest salary in 2015?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Home team score = 12.7 (79)
CREATE TABLE INST, Here is a database schema( table schema);
When did the home team score 12.7 (79)?.It is not neccessary to use all the tables.
SELECT home_team FROM table_name_83 WHERE away_team = "bradford city"
CREATE TABLE INST, Here is a database schema( table schema);
Where the away team is Bradford City who is the home team?It is not neccessary to use all the tables.
SELECT COUNT(date) FROM table_name_37 WHERE type = "0-4-4 forney locomotive" AND number < 20 AND works_number = 1251
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of number with type 0-4-4 forney locomotive number smaller than 20 and works number of 1251?It is not neccessary to use all the tables.
SELECT constructor FROM table_name_9 WHERE grid = 17
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the constructor for grid of 17It is not neccessary to use all the tables.
SELECT visitor FROM table_name_55 WHERE date = "may 7"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the visiting team on May 7?It is not neccessary to use all the tables.
SELECT music FROM table_name_6 WHERE style = "samba"
CREATE TABLE INST, Here is a database schema( table schema);
WHAT IS THE MUSIC WITH SAMBA?It is not neccessary to use all the tables.
SELECT Home FROM table WHERE Record = 11–8–2
CREATE TABLE INST, Here is a database schema( table schema);
What team was the home team when the record was 11–8–2?.It is not neccessary to use all the tables.
SELECT date FROM table_22903773_2 WHERE record = "17-7"
CREATE TABLE INST, Here is a database schema( table schema);
What game date had a record of 17-7?It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Stadium = cn centre AND Date = april 5, 2008
CREATE TABLE INST, Here is a database schema( table schema);
What was the score at CN Centre on April 5, 2008?.It is not neccessary to use all the tables.
SELECT to_par FROM table_name_38 WHERE country = "united states" AND place = "t5"
CREATE TABLE INST, Here is a database schema( table schema);
What is the to par of the player from the United States with a t5 place?It is not neccessary to use all the tables.
SELECT Chassis FROM table WHERE Entrant = trivellato racing team
CREATE TABLE INST, Here is a database schema( table schema);
Can you tell me the Chassis that has the Entrant of trivellato racing team?.It is not neccessary to use all the tables.
SELECT Regiment FROM table WHERE County = Fulton
CREATE TABLE INST, Here is a database schema( table schema);
which regiment was in the Fulton County.It is not neccessary to use all the tables.
SELECT Constituency FROM table WHERE Conservative = darren millar
CREATE TABLE INST, Here is a database schema( table schema);
What constituency does the Conservative Darren Millar belong to?.It is not neccessary to use all the tables.
SELECT the_wørd FROM table_25691838_2 WHERE original_airdate = "February 11"
CREATE TABLE INST, Here is a database schema( table schema);
What was the word for the episode that aired February 11?It is not neccessary to use all the tables.
SELECT Player FROM table WHERE Pick = 26
CREATE TABLE INST, Here is a database schema( table schema);
What is Player, when Pick is "26"?.It is not neccessary to use all the tables.
SELECT Country FROM table WHERE To par > 9 AND Year(s) won = 1984
CREATE TABLE INST, Here is a database schema( table schema);
Can you tell me the Country that has the To par larger than 9, and the Year(s) won of 1984?.It is not neccessary to use all the tables.
SELECT outcome FROM table_name_30 WHERE tournament = "buenos aires"
CREATE TABLE INST, Here is a database schema( table schema);
What was the outcome of the Tournament in Buenos Aires?It is not neccessary to use all the tables.
SELECT result FROM table_26336739_1 WHERE elected = 1986
CREATE TABLE INST, Here is a database schema( table schema);
What was the result for the district with an election in 1986It is not neccessary to use all the tables.
SELECT "Mahmoud Ahmadinejad" FROM table_26001 WHERE "Mir-Hossein Mousavi" = '218481'
CREATE TABLE INST, Here is a database schema( table schema);
List all the results for mahmoud ahmadinejad when candidate mir-hossein mousavi obtained 218481 votes.It is not neccessary to use all the tables.
SELECT Written by FROM table WHERE U.S. viewers (million) = 5.95
CREATE TABLE INST, Here is a database schema( table schema);
Who wrote the episode that got 5.95 million U.S. viewers?.It is not neccessary to use all the tables.
SELECT college_junior_club_team FROM table_2781227_9 WHERE player = "Dmitri Gorenko"
CREATE TABLE INST, Here is a database schema( table schema);
What college/junior/club team did dmitri gorenko play for?It is not neccessary to use all the tables.
SELECT format FROM table_name_70 WHERE frequency > 1050 AND station = "kvto"
CREATE TABLE INST, Here is a database schema( table schema);
Which format has a Frequency larger than 1050 and a Station of kvto?It is not neccessary to use all the tables.
SELECT hometown FROM table_name_40 WHERE school = "camarillo high school"
CREATE TABLE INST, Here is a database schema( table schema);
Where is the Hometown that the person who attended Camarillo High School is from?It is not neccessary to use all the tables.
SELECT score_in_the_final FROM table_name_85 WHERE partner = "jorge lozano" AND outcome = "runner-up" AND opponents_in_the_final = "udo riglewski michael stich"
CREATE TABLE INST, Here is a database schema( table schema);
Name the Score which has a Partner of jorge lozano an Outcome of runner-up and Opponents in the final of udo riglewski michael stich?It is not neccessary to use all the tables.
SELECT AVG Capacity FROM table WHERE Stadium = rod laver arena
CREATE TABLE INST, Here is a database schema( table schema);
What is the average capacity that has rod laver arena as the stadium?.It is not neccessary to use all the tables.
SELECT Socket FROM table WHERE Multiplier 1 = 11.5x
CREATE TABLE INST, Here is a database schema( table schema);
What is the socket type for the processor with a multiplier 1 of 11.5x?.It is not neccessary to use all the tables.