sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT fastest_lap FROM table_25322130_3 WHERE round = "3"
CREATE TABLE INST, Here is a database schema( table schema);
Name the fastest lap for round 3It is not neccessary to use all the tables.
SELECT no_in_series FROM table_2818164_8 WHERE directed_by = "Art Dielhenn"
CREATE TABLE INST, Here is a database schema( table schema);
the episode directed by art dielhenn was what number in the series?It is not neccessary to use all the tables.
SELECT result FROM table_name_79 WHERE week = 3
CREATE TABLE INST, Here is a database schema( table schema);
What was week 3 score?It is not neccessary to use all the tables.
SELECT COUNT Carrier FROM table WHERE Frequency = 900MHz and 1800MHz AND Launch date (dd.mm.yyyy) = 14.09.2005
CREATE TABLE INST, Here is a database schema( table schema);
When the launch date is 14.09.2005, and the frequency is 900mhz and 1800mhz, how many carriers are there?.It is not neccessary to use all the tables.
SELECT Song FROM table WHERE Length = 3:05
CREATE TABLE INST, Here is a database schema( table schema);
What song has a length of 3:05?.It is not neccessary to use all the tables.
SELECT driver FROM table_name_34 WHERE constructor = "maserati" AND laps < 18 AND grid < 14 AND time_retired = "oil leak"
CREATE TABLE INST, Here is a database schema( table schema);
Who drove the maserati under 18 laps with an oil leak that had a grid of under 14?It is not neccessary to use all the tables.
SELECT Dominant religion (2002) FROM table WHERE Cyrillic Name Other Names = Нови Сад
CREATE TABLE INST, Here is a database schema( table schema);
What is the dominant religion for нови сад in 2002?.It is not neccessary to use all the tables.
SELECT beer FROM table WHERE recorded = 4.08
CREATE TABLE INST, Here is a database schema( table schema);
What beer has a record of 4.08?.It is not neccessary to use all the tables.
SELECT completed FROM table_13397394_1 WHERE address = "410 22nd St E"
CREATE TABLE INST, Here is a database schema( table schema);
what is the maximum completed for address on 410 22nd st eIt is not neccessary to use all the tables.
SELECT to_par FROM table_name_89 WHERE player = "mike souchak"
CREATE TABLE INST, Here is a database schema( table schema);
What is Mike Souchak's to par?It is not neccessary to use all the tables.
SELECT last_match FROM table_23819979_3 WHERE final_place = "Argentina - Estadio José María Minella"
CREATE TABLE INST, Here is a database schema( table schema);
Name the last match for argentina - estadio josé maría minellaIt is not neccessary to use all the tables.
SELECT Name FROM table WHERE Pos. = cf
CREATE TABLE INST, Here is a database schema( table schema);
What's the name of the person in the CF Pos?.It is not neccessary to use all the tables.
SELECT Sarasota FROM table WHERE Indianapolis Concerts = Samantha Sharpe
CREATE TABLE INST, Here is a database schema( table schema);
Name the sarasota samantha sharpe.It is not neccessary to use all the tables.
SELECT MIN First elected FROM table WHERE District = Missouri 7
CREATE TABLE INST, Here is a database schema( table schema);
When was the first elected for district missouri 7?.It is not neccessary to use all the tables.
SELECT MAX Cuts made FROM table WHERE Wins = 0
CREATE TABLE INST, Here is a database schema( table schema);
Nme the most cuts made for wins being 0.It is not neccessary to use all the tables.
SELECT COUNT Single FROM table WHERE Artist = Lisa Stansfield
CREATE TABLE INST, Here is a database schema( table schema);
How many singles does Lisa Stansfield have?.It is not neccessary to use all the tables.
SELECT nfl_team FROM table_14650162_1 WHERE college = "Minnesota"
CREATE TABLE INST, Here is a database schema( table schema);
What is the NFL team of the player whose college is Minnesota?It is not neccessary to use all the tables.
SELECT phoneme FROM table_name_16 WHERE realization = "[ɑ]"
CREATE TABLE INST, Here is a database schema( table schema);
Name the phoneme when the realizationis [ɑ]It is not neccessary to use all the tables.
SELECT Pick # FROM table WHERE Position = defensive tackle AND Player = lorenzo freeman
CREATE TABLE INST, Here is a database schema( table schema);
What was the pick# for Lorenzo Freeman as defensive tackle?.It is not neccessary to use all the tables.
SELECT d_icd_diagnoses.short_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.icd9_code IN (SELECT t1.icd9_code FROM (SELECT diagnoses_icd.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM diagnoses_icd WHERE diagnoses_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.age >= 60) ...
CREATE TABLE INST, Here is a database schema( table schema);
of the patients of age 60 or above , what was the top five most frequent diagnoses?It is not neccessary to use all the tables.
SELECT MIN Avg. Attendance FROM table WHERE Regular Season = 3rd, Central
CREATE TABLE INST, Here is a database schema( table schema);
How many people saw the 3rd, Central regular season on average?.It is not neccessary to use all the tables.
SELECT record FROM table_23285761_7 WHERE game = 40
CREATE TABLE INST, Here is a database schema( table schema);
What's the record of the game with number 40?It is not neccessary to use all the tables.
SELECT country FROM table_name_8 WHERE iata = "evn"
CREATE TABLE INST, Here is a database schema( table schema);
Which country has an IATA of EVN?It is not neccessary to use all the tables.
SELECT MIN(market_value), MAX(market_value), AVG(market_value) FROM company
CREATE TABLE INST, Here is a database schema( table schema);
Show minimum maximum and average market value for all companies.It is not neccessary to use all the tables.
SELECT Entrant FROM table WHERE Year < 1990 AND Chassis = eurobrun er189
CREATE TABLE INST, Here is a database schema( table schema);
Name the entrant for year less than 1990 and chassis of eurobrun er189.It is not neccessary to use all the tables.
SELECT Region FROM table WHERE Catalog = 576 096-2
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the region for catalog of 576 096-2.It is not neccessary to use all the tables.
SELECT SUM Year of Recording FROM table WHERE Conductor = libor pesek
CREATE TABLE INST, Here is a database schema( table schema);
What is the year that a record was recorded with Libor Pesek as conductor?.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Game > 4 AND Time = 2:26
CREATE TABLE INST, Here is a database schema( table schema);
Game larger than 4, and a Time of 2:26 resulted in what score?.It is not neccessary to use all the tables.
SELECT round FROM table_name_72 WHERE h___a = "a" AND opponents = "notts county"
CREATE TABLE INST, Here is a database schema( table schema);
Which round has an H/A of A with Notts County as opponents?It is not neccessary to use all the tables.
SELECT Region FROM table WHERE Date = 19 june 2007
CREATE TABLE INST, Here is a database schema( table schema);
From which region is the album with release date of 19 June 2007?.It is not neccessary to use all the tables.
SELECT longitude FROM table_16799784_4 WHERE name = "Grechukha Tholi"
CREATE TABLE INST, Here is a database schema( table schema);
Grechukha Tholi has what longitude?It is not neccessary to use all the tables.
SELECT surface FROM table_name_61 WHERE opponent = "shahar pe'er"
CREATE TABLE INST, Here is a database schema( table schema);
What surface was played on against Shahar Pe'er?It is not neccessary to use all the tables.
SELECT no FROM table_12962773_10 WHERE height = "2.10"
CREATE TABLE INST, Here is a database schema( table schema);
Which player number is 2.10 meters tall?It is not neccessary to use all the tables.
SELECT T1.customer_id FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = "On Road" INTERSECT SELECT T1.customer_id FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = "Shipped"
CREATE TABLE INST, Here is a database schema( table schema);
Find the id of the customers who have order status both "On Road" and "Shipped".It is not neccessary to use all the tables.
SELECT pick__number FROM table_name_68 WHERE player = "william loftus"
CREATE TABLE INST, Here is a database schema( table schema);
what is the pick # for william loftus?It is not neccessary to use all the tables.
SELECT preliminary_average FROM table_16323766_3 WHERE state = "Maryland"
CREATE TABLE INST, Here is a database schema( table schema);
What was the preliminary average for Miss Maryland?It is not neccessary to use all the tables.
SELECT founded FROM table_1973816_2 WHERE institution = "Daniel Webster College"
CREATE TABLE INST, Here is a database schema( table schema);
When was Daniel Webster College founded?It is not neccessary to use all the tables.
SELECT MAX Overall FROM table WHERE Name = george nicula AND Pick < 9
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest overall pick number for george nicula who had a pick smaller than 9?.It is not neccessary to use all the tables.
SELECT SUM(goals_for) FROM table_name_27 WHERE goal_difference < 43 AND position < 3
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of goals when the goal difference was less than 43 and the position less than 3?It is not neccessary to use all the tables.
SELECT date FROM table_name_28 WHERE name__location_ = "belyanitsky, ivanovo, and balino"
CREATE TABLE INST, Here is a database schema( table schema);
What Date does the Name (location) Belyanitsky Ivanovo and Balino have?It is not neccessary to use all the tables.
SELECT COUNT Year FROM table WHERE BBC One Rank = 20th
CREATE TABLE INST, Here is a database schema( table schema);
How many years did BBC One rank 20th?.It is not neccessary to use all the tables.
SELECT MAX(rank) FROM table_1350350_2 WHERE per_capita_income = "$17,013"
CREATE TABLE INST, Here is a database schema( table schema);
what is the maximum rank with per capita income being $17013It is not neccessary to use all the tables.
SELECT home_team FROM table_name_44 WHERE away_team = "hawthorn"
CREATE TABLE INST, Here is a database schema( table schema);
Which home team played Hawthorn as the away team?It is not neccessary to use all the tables.
SELECT opponent FROM table_22862203_2 WHERE record = "11-2"
CREATE TABLE INST, Here is a database schema( table schema);
Who were the opponents when the record was 11-2?It is not neccessary to use all the tables.
SELECT t1.fname, t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title = "Nameless , Painless"
CREATE TABLE INST, Here is a database schema( table schema);
Find the first and last name of the author(s) who wrote the paper 'Nameless, Painless'.It is not neccessary to use all the tables.
SELECT Team FROM table WHERE High assists = nelson (5)
CREATE TABLE INST, Here is a database schema( table schema);
Name the team with high assists of nelson (5).It is not neccessary to use all the tables.
SELECT Mens doubles FROM table WHERE Mens singles = Jürgen Koch AND Womens singles = Sabine Ploner
CREATE TABLE INST, Here is a database schema( table schema);
who is the the mens doubles with mens singles being jürgen koch and womens singles being sabine ploner.It is not neccessary to use all the tables.
SELECT Socialist ticket FROM table WHERE Law Preservation ticket = (none) AND Socialist Labor ticket = belle j. rosen
CREATE TABLE INST, Here is a database schema( table schema);
Who's the Socialist ticket with a Law Preservation ticket of (none), and a Socialist Labor ticket of belle j. rosen?.It is not neccessary to use all the tables.
SELECT theme FROM table_name_28 WHERE paper_type = "tullis russell coatings" AND date_of_issue = "1 october 2008"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Theme with a Paper Type of tullis russell coatings and a Date with Issue of 1 october 2008?It is not neccessary to use all the tables.
SELECT COUNT(score) FROM table_23281862_5 WHERE team = "Sacramento"
CREATE TABLE INST, Here is a database schema( table schema);
Name the number of score for sacramentoIt is not neccessary to use all the tables.
SELECT COUNT(_number) FROM table_22904752_1 WHERE us_viewers__million_ = "17.44"
CREATE TABLE INST, Here is a database schema( table schema);
What is the # when u.s. viewers (million) is 17.44?It is not neccessary to use all the tables.
SELECT COUNT(pick__number) FROM table_29626583_1 WHERE affiliation = "University of Akron Reading United Michigan Bucks"
CREATE TABLE INST, Here is a database schema( table schema);
how many pick# does the university of akron reading united michigan bucks affiliation haveIt is not neccessary to use all the tables.
SELECT MIN Season # FROM table WHERE Title = "Impulse Control"
CREATE TABLE INST, Here is a database schema( table schema);
What is the season number for "Impulse Control"?.It is not neccessary to use all the tables.
SELECT Candidates FROM table WHERE District = New York 21
CREATE TABLE INST, Here is a database schema( table schema);
Name the candidates for new york 21.It is not neccessary to use all the tables.
SELECT MAX Number of Seats FROM table WHERE Leader = jillian evans
CREATE TABLE INST, Here is a database schema( table schema);
What is Jillian Evans highest number of seats?.It is not neccessary to use all the tables.
SELECT Name FROM table WHERE Winning driver = nello pagani
CREATE TABLE INST, Here is a database schema( table schema);
Which Grand Prix did Nello Pagani win?.It is not neccessary to use all the tables.
SELECT Air Date FROM table WHERE Who knows the most about the guest host? panelists = duncan james and kim woodburn
CREATE TABLE INST, Here is a database schema( table schema);
What date did the show air that had Duncan James and Kim Woodburn as panelists?.It is not neccessary to use all the tables.
SELECT AVG December FROM table WHERE Points = 38 AND Record = 18–6–2
CREATE TABLE INST, Here is a database schema( table schema);
Which December has Points of 38, and a Record of 18–6–2?.It is not neccessary to use all the tables.
SELECT f_id FROM song WHERE resolution > (SELECT AVG(resolution) FROM song WHERE genre_is = "modern")
CREATE TABLE INST, Here is a database schema( table schema);
What is ids of the songs whose resolution is higher than the average resolution of songs in modern genre?It is not neccessary to use all the tables.
SELECT MAX Silver FROM table WHERE Gold < 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the largest silver value associated with 0 golds?.It is not neccessary to use all the tables.
SELECT away_team FROM table_name_18 WHERE tie_no = "2"
CREATE TABLE INST, Here is a database schema( table schema);
What is the away team at the game with a Tie no of 2?It is not neccessary to use all the tables.
SELECT MIN(crowd) FROM table_name_56 WHERE home_team = "richmond"
CREATE TABLE INST, Here is a database schema( table schema);
What was the smallest crowd for the Richmond home team?It is not neccessary to use all the tables.
SELECT SUM(avg) FROM table_name_70 WHERE long = 32
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of averages with a long value of 32?It is not neccessary to use all the tables.
SELECT COUNT French FROM table WHERE Central-Southern Calabrian = zinnapòtamu
CREATE TABLE INST, Here is a database schema( table schema);
How many French words does zinnapòtamu in Central-Southern Calabrian translate to?.It is not neccessary to use all the tables.
SELECT Total FROM table WHERE School = University of the Cordilleras UC Dance Squad
CREATE TABLE INST, Here is a database schema( table schema);
What is every total for the University of the Cordilleras UC Dance Squad?.It is not neccessary to use all the tables.
SELECT Team Name FROM table WHERE Poles = 0 AND Final Placing = 29th
CREATE TABLE INST, Here is a database schema( table schema);
Which Team Name has Poles of 0, and a Final Placing of 29th?.It is not neccessary to use all the tables.
SELECT COUNT(womens_singles) FROM table_12027364_1 WHERE mens_singles = "Peter Rasmussen"
CREATE TABLE INST, Here is a database schema( table schema);
How many womens singles winners were there when peter rasmussen won the mens singles?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Name = ryan lochte
CREATE TABLE INST, Here is a database schema( table schema);
What is the date for the name ryan lochte?.It is not neccessary to use all the tables.
SELECT term FROM table_name_55 WHERE hometown = "ester creek"
CREATE TABLE INST, Here is a database schema( table schema);
What is the term for hometown Ester Creek?It is not neccessary to use all the tables.
SELECT method FROM table_name_33 WHERE event = "ufc 160"
CREATE TABLE INST, Here is a database schema( table schema);
What was the method for the resolution of the fight at UFC 160?It is not neccessary to use all the tables.
SELECT venue FROM table_name_19 WHERE away_team = "fitzroy"
CREATE TABLE INST, Here is a database schema( table schema);
At what venue was the away team Fitzroy?It is not neccessary to use all the tables.
SELECT pavilion_depth FROM table_name_36 WHERE brilliance_grade = "100%" AND pavilion_angle = "n/a"
CREATE TABLE INST, Here is a database schema( table schema);
Which Pavilion depth has a Brilliance Grade of 100% and a Pavilion angle of n/a?It is not neccessary to use all the tables.
SELECT "title" FROM table_204_672 WHERE "uk singles chart" > 20
CREATE TABLE INST, Here is a database schema( table schema);
what was the title of the only single to not receive top 20 on the uk singles chart ?It is not neccessary to use all the tables.
SELECT Quarterfinalists FROM table WHERE Runner-up = Andrew Pattison
CREATE TABLE INST, Here is a database schema( table schema);
What are the quarterfinalists when the runner up is andrew pattison?.It is not neccessary to use all the tables.
SELECT SUM Rec. FROM table WHERE Average < 32 AND s Touchdown < 3 AND Opponent = oregon state
CREATE TABLE INST, Here is a database schema( table schema);
Which Rec has an Average smaller than 32, and a Touchdown smaller than 3, and an Opponent of oregon state?.It is not neccessary to use all the tables.
SELECT COUNT(county) FROM table_20799587_1 WHERE mccain_percentage = "65.72%"
CREATE TABLE INST, Here is a database schema( table schema);
In how many counties did McCain get 65.72% of the votes?It is not neccessary to use all the tables.
SELECT MAX(first_elected) FROM table_1342451_38
CREATE TABLE INST, Here is a database schema( table schema);
What is the last year on this list someone was first elected?It is not neccessary to use all the tables.
SELECT score1 FROM table_name_9 WHERE match = 42
CREATE TABLE INST, Here is a database schema( table schema);
What is the Score1 of Match 42?It is not neccessary to use all the tables.
SELECT score FROM table_name_33 WHERE record = "55-51"
CREATE TABLE INST, Here is a database schema( table schema);
What was the score of the game when the Indians ended up with a record of 55-51?It is not neccessary to use all the tables.
SELECT forward_caste FROM table_name_80 WHERE scheduled_caste = "89.50%"
CREATE TABLE INST, Here is a database schema( table schema);
WHAT IS THE FORWARD CASTE WITH A SCHEDULED CASTE OF 89.50%?It is not neccessary to use all the tables.
SELECT COUNT Official Name FROM table WHERE Area km 2 = 508.30
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the parish where the area is 508.30?.It is not neccessary to use all the tables.
SELECT MAX(seats_up_for_election) FROM table_name_96 WHERE election_result > 8 AND staying_councillors = 24
CREATE TABLE INST, Here is a database schema( table schema);
Which Seats up for election have an Election result larger than 8 and Staying councillors of 24?It is not neccessary to use all the tables.
SELECT MAX(episode) FROM table_15187735_4 WHERE segment_d = "Blown Glass"
CREATE TABLE INST, Here is a database schema( table schema);
What is the last episode which has segment d as blown glass?It is not neccessary to use all the tables.
SELECT city FROM table_name_76 WHERE venue = "university gym (gold mine)"
CREATE TABLE INST, Here is a database schema( table schema);
What city is University Gym (Gold Mine) in?It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Round = second round
CREATE TABLE INST, Here is a database schema( table schema);
Who was the opponent during the second round?.It is not neccessary to use all the tables.
SELECT nickname FROM table_name_42 WHERE colors = "blue and gold"
CREATE TABLE INST, Here is a database schema( table schema);
What is the nickname of the team that has the colors blue and gold?It is not neccessary to use all the tables.
SELECT T1.Abbreviation, T1.Country FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY COUNT(*) LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
Find the abbreviation and country of the airline that has fewest number of flights?It is not neccessary to use all the tables.
SELECT Area( acres ) FROM table WHERE Poor law union = Bandon AND Townland = Lissagroom
CREATE TABLE INST, Here is a database schema( table schema);
How many acres does the area of Lissagroom with Bandon as its poor law union cover?.It is not neccessary to use all the tables.
SELECT SUM Bronze FROM table WHERE Silver > 1 AND Total > 3 AND Nation = turkey AND Gold < 2
CREATE TABLE INST, Here is a database schema( table schema);
Which Bronze has a Silver larger than 1, a Total larger than 3, a Nation of turkey, and a Gold smaller than 2?.It is not neccessary to use all the tables.
SELECT nationality FROM table_name_60 WHERE player = "kent patterson"
CREATE TABLE INST, Here is a database schema( table schema);
What is Kent Patterson's nationality?It is not neccessary to use all the tables.
SELECT Player FROM table WHERE Height = 6-3
CREATE TABLE INST, Here is a database schema( table schema);
What Player(s) have a Height of 6-3?.It is not neccessary to use all the tables.
SELECT (SELECT SUM(inputevents_cv.amount) FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 4401)) AND DATETIME(inputevents_cv.charttime, 'start of month') = DATETIME(CURRENT...
CREATE TABLE INST, Here is a database schema( table schema);
give me the difference between the total amount of input and the total output of patient 4401 on this month/30.It is not neccessary to use all the tables.
SELECT Year FROM table WHERE Film = your national gallery
CREATE TABLE INST, Here is a database schema( table schema);
In what Year was the Film Your National Gallery winner?.It is not neccessary to use all the tables.
SELECT COUNT(matches) FROM table_name_5 WHERE drawn < 24 AND lost < 17 AND win__percentage < 31.25
CREATE TABLE INST, Here is a database schema( table schema);
Drawn smaller than 24 and a Lost smaller than 17 and a Win % smaller than 31.25 had how many total number of matches?It is not neccessary to use all the tables.
SELECT AVG Silver FROM table WHERE Gold = 0 AND Rank < 3
CREATE TABLE INST, Here is a database schema( table schema);
What is the average number of silver medals for countries with 0 gold and rank under 3?.It is not neccessary to use all the tables.
SELECT Official rating 4+ FROM table WHERE Share 16-39 = 24,59%
CREATE TABLE INST, Here is a database schema( table schema);
What is the official 4+ rating of the episode with a 16-39 share of 24,59%?.It is not neccessary to use all the tables.
SELECT "Team" FROM table_61861 WHERE "Position" = 'of' AND "Pick" = '24'
CREATE TABLE INST, Here is a database schema( table schema);
WHAT IS THE TEAM WITH AN OF POSITION AND PICK OF 24?It is not neccessary to use all the tables.
SELECT SUM Pick # FROM table WHERE College = tennessee AND Overall < 270
CREATE TABLE INST, Here is a database schema( table schema);
How many Picks have a College of tennessee, and an Overall smaller than 270?.It is not neccessary to use all the tables.
SELECT MAX Week FROM table WHERE Attendance > 65,070
CREATE TABLE INST, Here is a database schema( table schema);
Which Week has an Attendance larger than 65,070?.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Opponent = seattle
CREATE TABLE INST, Here is a database schema( table schema);
Which Score has an Opponent of seattle?.It is not neccessary to use all the tables.