sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT MAX Grid FROM table WHERE Rider = fonsi nieto
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest grid for rider Fonsi Nieto?.It is not neccessary to use all the tables.
SELECT Rank FROM table WHERE Games = 426
CREATE TABLE INST, Here is a database schema( table schema);
What is the rank that shows 426 games?.It is not neccessary to use all the tables.
SELECT chartevents.charttime FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 3125)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'heart rat...
CREATE TABLE INST, Here is a database schema( table schema);
when was the first time patient 3125 was having less than 92.0 heart rate today?It is not neccessary to use all the tables.
SELECT Country FROM table WHERE Type = signed AND Moving from = porto
CREATE TABLE INST, Here is a database schema( table schema);
What country has signed type moving from porto?.It is not neccessary to use all the tables.
SELECT time FROM table_name_88 WHERE heat = 3 AND lane > 3 AND nationality = "chinese taipei"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Time of the swimmer from Chinese Taipei in Heat 3?It is not neccessary to use all the tables.
SELECT "Venue" FROM table_18796 WHERE "Captain" = 'Luke Blackwell'
CREATE TABLE INST, Here is a database schema( table schema);
Which venue did Luke Blackwell serve as captain?It is not neccessary to use all the tables.
SELECT "Finalist" FROM table_50863 WHERE "Semifinalists" = 'andre agassi (1) lleyton hewitt (14)'
CREATE TABLE INST, Here is a database schema( table schema);
Which finalist has Semifinalists of andre agassi (1) lleyton hewitt (14)?It is not neccessary to use all the tables.
SELECT to_par FROM table_name_57 WHERE place = "t5" AND score = 70 - 68 = 138
CREATE TABLE INST, Here is a database schema( table schema);
What is To par when Place is "T5" and when Score is "70-68=138"?It is not neccessary to use all the tables.
SELECT "Winning Driver" FROM table_67501 WHERE "Second Driver" = 'jimmy bryan'
CREATE TABLE INST, Here is a database schema( table schema);
Which Winning Driver has a Second Driver of jimmy bryan?It is not neccessary to use all the tables.
SELECT PBA team FROM table WHERE College = ateneo AND Pick = 17
CREATE TABLE INST, Here is a database schema( table schema);
What PBA team is the player from Ateneo college and a pick of 17?.It is not neccessary to use all the tables.
SELECT Country FROM table WHERE Stadium = Lusail National Stadium
CREATE TABLE INST, Here is a database schema( table schema);
Name the country for lusail national stadium.It is not neccessary to use all the tables.
SELECT t1.celllabel FROM (SELECT intakeoutput.celllabel, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM intakeoutput WHERE intakeoutput.cellpath LIKE '%output%' AND STRFTIME('%y', intakeoutput.intakeoutputtime) = '2104' GROUP BY intakeoutput.celllabel) AS t1 WHERE t1.c1 <= 4
CREATE TABLE INST, Here is a database schema( table schema);
tell me the four most common output events in 2104?It is not neccessary to use all the tables.
SELECT episode FROM table_name_16 WHERE year = 2004 AND nominee_s_ = "jenny bicks and cindy chupack"
CREATE TABLE INST, Here is a database schema( table schema);
Name the episode for jenny bicks and cindy chupack nominees in 2004It is not neccessary to use all the tables.
SELECT COUNT(*) > 0 FROM course WHERE department = 'EECS' AND has_lab = 'Y' AND number = 566
CREATE TABLE INST, Here is a database schema( table schema);
Does 566 include a lab ?It is not neccessary to use all the tables.
SELECT surface FROM table_name_84 WHERE championship = "australian open (1)"
CREATE TABLE INST, Here is a database schema( table schema);
What surface was the Australian Open (1) played on?It is not neccessary to use all the tables.
SELECT MAX("Roll") FROM table_69118 WHERE "Decile" > '2' AND "Area" = 'te puna'
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest roll number of the school in Te puna with a decile larger than 2?It is not neccessary to use all the tables.
SELECT category_3 FROM table_name_77 WHERE category_1 = 0.05
CREATE TABLE INST, Here is a database schema( table schema);
If category 1 is 0.05 what is category 3?It is not neccessary to use all the tables.
SELECT Title in country FROM table WHERE Country / region = France
CREATE TABLE INST, Here is a database schema( table schema);
What country is in the region of France?.It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Date = november 16
CREATE TABLE INST, Here is a database schema( table schema);
What opponent did the Broncos play on November 16?.It is not neccessary to use all the tables.
SELECT prize FROM table_name_31 WHERE year > 2002 AND competition = "camra london and south east regional competition" AND beer_name = "good old boy"
CREATE TABLE INST, Here is a database schema( table schema);
What prize did good old boy win in 2002 at the camra london and south east regional competition?It is not neccessary to use all the tables.
SELECT name FROM table_name_19 WHERE rank < 5 AND time < 55.62 AND lane < 5 AND nationality = "netherlands"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Name of the person from the Netherlands in a Lane lower than 5 with a Rank better than 5 and a time of less than 55.62?It is not neccessary to use all the tables.
SELECT bi_tone FROM table_2869843_1 WHERE olive_drab = "No" AND caliber = "9×19mm Parabellum" AND model = "XDM 5.25 Competition"
CREATE TABLE INST, Here is a database schema( table schema);
are there bi-tone is there's no olive drab and the caliber is 9×19mm parabellum and model is xdm 5.25 competitionIt is not neccessary to use all the tables.
SELECT MAX(round) FROM table_name_54 WHERE school_club_team = "michigan"
CREATE TABLE INST, Here is a database schema( table schema);
In what round was a player from Michigan selected?It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Home = edmonton oilers AND Score = 3–6
CREATE TABLE INST, Here is a database schema( table schema);
Which Record has a Home of edmonton oilers, and a Score of 3–6?.It is not neccessary to use all the tables.
SELECT "Rank" FROM table_51685 WHERE "Years until mandatory retirement" = '6 years'
CREATE TABLE INST, Here is a database schema( table schema);
what rank has years until mandatory retirement of 6 years?It is not neccessary to use all the tables.
SELECT Week 12 FROM table WHERE Week 4 = gerard ewelina
CREATE TABLE INST, Here is a database schema( table schema);
Who is the week 12 for the week 4 of Gerard Ewelina?.It is not neccessary to use all the tables.
SELECT director FROM table_name_60 WHERE language = "romanian"
CREATE TABLE INST, Here is a database schema( table schema);
Who directed the Romanian film?It is not neccessary to use all the tables.
SELECT MIN(total) FROM table_name_89 WHERE draws < 2 AND wins < 1 AND goal_difference = "1:2" AND losses > 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest total that has draws less than 2 and wins less than 1 losses bigger than 1 with a goal difference of 1:2It is not neccessary to use all the tables.
SELECT COUNT(per_capita_average_annual_renewable_water_resources_m_3) FROM table_22854436_1 WHERE average_annual_rainfall__mm_ = "650"
CREATE TABLE INST, Here is a database schema( table schema);
Name the total water resources m3 for rainfall being 650It is not neccessary to use all the tables.
SELECT pictorials FROM table_1566850_9 WHERE date = "11-98"
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the pictorial in the 11-98 issue?It is not neccessary to use all the tables.
SELECT Party FROM table WHERE Incumbent = Peter Little
CREATE TABLE INST, Here is a database schema( table schema);
what is Peter Little's party?.It is not neccessary to use all the tables.
SELECT method FROM table_name_70 WHERE record = "11-10"
CREATE TABLE INST, Here is a database schema( table schema);
Which method has a record of 11-10?It is not neccessary to use all the tables.
SELECT Finalist FROM table WHERE Tournament = miami
CREATE TABLE INST, Here is a database schema( table schema);
Who was the finalist in Miami?.It is not neccessary to use all the tables.
SELECT COUNT(*), District FROM city WHERE Population > (SELECT AVG(Population) FROM city) GROUP BY District
CREATE TABLE INST, Here is a database schema( table schema);
Find the number of cities in each district whose population is greater than the average population of cities?It is not neccessary to use all the tables.
SELECT section_name FROM Sections ORDER BY section_name DESC
CREATE TABLE INST, Here is a database schema( table schema);
List the section_name in reversed lexicographical order.It is not neccessary to use all the tables.
SELECT Lane FROM table WHERE Nationality = new zealand
CREATE TABLE INST, Here is a database schema( table schema);
what lane was new zealand in?.It is not neccessary to use all the tables.
SELECT FINAL FROM table WHERE LANE = 4
CREATE TABLE INST, Here is a database schema( table schema);
What were the final time for the swimmer on lane 4?.It is not neccessary to use all the tables.
SELECT SUM(week) FROM table_name_33 WHERE result = "w 38-24" AND attendance < 43 OFFSET 449
CREATE TABLE INST, Here is a database schema( table schema);
What's the week when the result was W 38-24 and attendance was less than 43449?It is not neccessary to use all the tables.
SELECT total_career_titles FROM table_23408094_14 WHERE player = "Roy Emerson"
CREATE TABLE INST, Here is a database schema( table schema);
How many career titles does roy emerson have?It is not neccessary to use all the tables.
SELECT MAX Age (years) FROM table WHERE Place = 1st AND Performance = 62.20m
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest age (years) that the 1st place had a performance of 62.20m?.It is not neccessary to use all the tables.
SELECT original_air_date FROM table_24466855_1 WHERE written_by = "Jay J. Demopoulos"
CREATE TABLE INST, Here is a database schema( table schema);
Name the air date for jay j. demopoulosIt is not neccessary to use all the tables.
SELECT Incumbent FROM table WHERE District = Virginia 3
CREATE TABLE INST, Here is a database schema( table schema);
Who was the incumbent in Virginia 3?.It is not neccessary to use all the tables.
SELECT MIN Against FROM table WHERE Wins % = 50.4% AND Losses < 20
CREATE TABLE INST, Here is a database schema( table schema);
What is the Lowest value in Against with Wins % of 50.4% and Losses less than 20?.It is not neccessary to use all the tables.
SELECT finish FROM table_name_49 WHERE wins = "28"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Finish of 28 Wins?It is not neccessary to use all the tables.
SELECT name FROM useracct WHERE NOT u_id IN (SELECT u_id FROM review)
CREATE TABLE INST, Here is a database schema( table schema);
Find the names of users who did not leave any review.It is not neccessary to use all the tables.
SELECT AVG("Frequency MHz") FROM table_52309 WHERE "City of license" = 'eastville, virginia'
CREATE TABLE INST, Here is a database schema( table schema);
What is the average frequency MHz for license of eastville, virginia?It is not neccessary to use all the tables.
SELECT Partner FROM table WHERE Date = 14 october 2007
CREATE TABLE INST, Here is a database schema( table schema);
Name the partner for 14 october 2007.It is not neccessary to use all the tables.
SELECT date FROM table_name_34 WHERE winning_constructor = "fiat" AND winning_driver = "louis wagner"
CREATE TABLE INST, Here is a database schema( table schema);
Which Date has a Winning constructor of fiat and a Winning driver of louis wagner?It is not neccessary to use all the tables.
SELECT surface FROM table_name_94 WHERE opponent = "roger federer"
CREATE TABLE INST, Here is a database schema( table schema);
What was the surface for the opponent Roger Federer?It is not neccessary to use all the tables.
SELECT Team FROM table WHERE Capacity > 16,981 AND Venue = atatürk olympic stadium
CREATE TABLE INST, Here is a database schema( table schema);
What is Team, when Capacity is greater than 16,981, and when Venue is "Atatürk Olympic Stadium"?.It is not neccessary to use all the tables.
SELECT Township FROM table WHERE GEO ID = 3807116660
CREATE TABLE INST, Here is a database schema( table schema);
What was the township with a geo ID of 3807116660?.It is not neccessary to use all the tables.
SELECT COUNT TV season FROM table WHERE Rating (adults 18–49) = 1.2
CREATE TABLE INST, Here is a database schema( table schema);
How many tv series had an adult rating of 1.2?.It is not neccessary to use all the tables.
SELECT Entrant FROM table WHERE Pts. = 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the entrant that has 0 points?.It is not neccessary to use all the tables.
SELECT result FROM table_name_33 WHERE week > 9 AND attendance = "65,858"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Result when the week is later than 9 and there are 65858 people in attendance?It is not neccessary to use all the tables.
SELECT nhl_team FROM table_2679061_2 WHERE college_junior_club_team = "Toronto Marlboros (OHL)" AND position = "Centre"
CREATE TABLE INST, Here is a database schema( table schema);
What is the nhl team when the college junior club team is toronto marlboros (ohl) and the position is centre?It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Week = 13
CREATE TABLE INST, Here is a database schema( table schema);
Who was the opponent in week 13?.It is not neccessary to use all the tables.
SELECT 08:00 PM FROM table WHERE 07:00 PM = i am siam (rerun)
CREATE TABLE INST, Here is a database schema( table schema);
What is the 08:00 PM when the 07:00 PM is I am siam (rerun)?.It is not neccessary to use all the tables.
SELECT AVG Attendance FROM table WHERE Visitor = toronto
CREATE TABLE INST, Here is a database schema( table schema);
What is the average Attendance, when Visitor is Toronto?.It is not neccessary to use all the tables.
SELECT 2011 FROM table WHERE 2010 = olympic games
CREATE TABLE INST, Here is a database schema( table schema);
Name the 2011 for 2010 of olympic games.It is not neccessary to use all the tables.
SELECT COUNT(party) FROM table_1341423_36 WHERE district = "Oklahoma 5"
CREATE TABLE INST, Here is a database schema( table schema);
How many party were listed for district oklahoma 5?It is not neccessary to use all the tables.
SELECT county AS town FROM table_name_34 WHERE irish_name = "an dún (contae an dúin)"
CREATE TABLE INST, Here is a database schema( table schema);
Irish name of an dún (contae an dúin) has what county town?It is not neccessary to use all the tables.
SELECT pos FROM table_name_75 WHERE driver = "adrian sutil"
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the pos for adrian sutilIt is not neccessary to use all the tables.
SELECT Away FROM table WHERE Home = guelph gargoyles
CREATE TABLE INST, Here is a database schema( table schema);
What is Away, when Home is Guelph Gargoyles?.It is not neccessary to use all the tables.
SELECT SUM Goals Scored FROM table WHERE Draw < 8 AND Points = 19 AND Goals Conceded > 26
CREATE TABLE INST, Here is a database schema( table schema);
what is the goals scored when draw is less than 8, points is 19 and goals conceded is more than 26?.It is not neccessary to use all the tables.
SELECT COUNT(party) FROM table_1342292_4 WHERE incumbent = "William B. Cravens"
CREATE TABLE INST, Here is a database schema( table schema);
How many parties does william b. cravens represent?It is not neccessary to use all the tables.
SELECT opponent FROM table_name_32 WHERE week > 6 AND result = "l 30–24"
CREATE TABLE INST, Here is a database schema( table schema);
Who did they play against in a week after 6 and the result was l 30–24?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Venue = lake oval
CREATE TABLE INST, Here is a database schema( table schema);
On what date was a match played at Lake Oval?.It is not neccessary to use all the tables.
SELECT AVG(number_of_electorates__2009_) FROM table_name_6 WHERE name = "modi nagar"
CREATE TABLE INST, Here is a database schema( table schema);
What is the electorates in 2009 for Modi Nagar?It is not neccessary to use all the tables.
SELECT attendance FROM table_name_7 WHERE date = "november 6, 1966"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Attendance of the game on November 6 1966?It is not neccessary to use all the tables.
SELECT "Year(s) won" FROM table_46262 WHERE "Player" = 'raymond floyd'
CREATE TABLE INST, Here is a database schema( table schema);
Which years did raymond floyd win?It is not neccessary to use all the tables.
SELECT COUNT(round) FROM table_name_64 WHERE college = "appalachian state" AND overall < 156
CREATE TABLE INST, Here is a database schema( table schema);
Which Round has a College of appalachian state and an Overall smaller than 156?It is not neccessary to use all the tables.
SELECT DISTINCT title FROM Movie EXCEPT SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T3.name = 'Chris Jackson'
CREATE TABLE INST, Here is a database schema( table schema);
Find the titles of all movies not reviewed by Chris Jackson.It is not neccessary to use all the tables.
SELECT Name FROM table WHERE Location = nigeria
CREATE TABLE INST, Here is a database schema( table schema);
Which is located in Nigeria?.It is not neccessary to use all the tables.
SELECT COUNT Crowd FROM table WHERE Home team = fitzroy
CREATE TABLE INST, Here is a database schema( table schema);
What is the size of the crowd when the home team is Fitzroy?.It is not neccessary to use all the tables.
SELECT Event FROM table WHERE Athlete = ali ekranpour
CREATE TABLE INST, Here is a database schema( table schema);
What is the event result for athlete Ali Ekranpour?.It is not neccessary to use all the tables.
SELECT COUNT(*) FROM race
CREATE TABLE INST, Here is a database schema( table schema);
How many races are there?It is not neccessary to use all the tables.
SELECT MAX(weight__kg_) FROM table_name_57 WHERE name = "scott gomez"
CREATE TABLE INST, Here is a database schema( table schema);
What is Scott Gomez's biggest weight?It is not neccessary to use all the tables.
SELECT MAX Founded FROM table WHERE Team = Dinos
CREATE TABLE INST, Here is a database schema( table schema);
What is the year founded for the team Dinos?.It is not neccessary to use all the tables.
SELECT muzzle_velocity FROM table_16010376_1 WHERE cartridge = ".375 Remington Ultra Magnum"
CREATE TABLE INST, Here is a database schema( table schema);
When using a .375 Remington Ultra Magnum what is the muzzle velocity?It is not neccessary to use all the tables.
SELECT "Winning applicant" FROM table_74565 WHERE "Block" = '10b' AND "Area" = 'derbyshire'
CREATE TABLE INST, Here is a database schema( table schema);
Who is the Winning Applicant of Block 10B in Derbyshire Area?It is not neccessary to use all the tables.
SELECT Partner FROM table WHERE Year = asian games
CREATE TABLE INST, Here is a database schema( table schema);
What is the Partner during the Asian Games Year?.It is not neccessary to use all the tables.
SELECT Ceremony FROM table WHERE Date = may 15, 1965
CREATE TABLE INST, Here is a database schema( table schema);
Which award ceremony took place on May 15, 1965?.It is not neccessary to use all the tables.
SELECT division FROM table_name_90 WHERE conference = "afc" AND wins = 10 AND appearances > 18
CREATE TABLE INST, Here is a database schema( table schema);
Which division in the AFC Conference had a total of 10 wins and appeared more than 18 times?It is not neccessary to use all the tables.
SELECT MIN(goals_conceded) FROM table_name_72 WHERE played < 18
CREATE TABLE INST, Here is a database schema( table schema);
If the games played are smaller than 18 what are the lowest goals conceded?It is not neccessary to use all the tables.
SELECT position FROM table_name_67 WHERE pick < 33 AND player = "darrell arthur"
CREATE TABLE INST, Here is a database schema( table schema);
WHAT POSITION HAS A PICK SMALLER THAN 33 AND PLAYER BEING DARRELL ARTHUR?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Away team = carlisle united
CREATE TABLE INST, Here is a database schema( table schema);
What was the date when the away team was carlisle united?.It is not neccessary to use all the tables.
SELECT JOB_ID, SUM(EMPLOYEE_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' GROUP BY JOB_ID ORDER BY JOB_ID DESC
CREATE TABLE INST, Here is a database schema( table schema);
For those employees who was hired before 2002-06-21, show me about the distribution of job_id and the sum of employee_id , and group by attribute job_id in a bar chart, show bars from high to low order please.It is not neccessary to use all the tables.
SELECT COUNT(species) FROM table_10477224_1 WHERE sepal_width = "3.4" AND sepal_length = "5.4"
CREATE TABLE INST, Here is a database schema( table schema);
Name the number of species with sepal width of 3.4 and sepal length of 5.4It is not neccessary to use all the tables.
SELECT MIN(lane) FROM table_name_55 WHERE nationality = "brazil" AND time < 21.15
CREATE TABLE INST, Here is a database schema( table schema);
What's Brazil's lane with a time less than 21.15?It is not neccessary to use all the tables.
SELECT Type FROM table WHERE Manufacturer = unknown
CREATE TABLE INST, Here is a database schema( table schema);
Which type had an unknown manufacturer?.It is not neccessary to use all the tables.
SELECT AVG(total) FROM table_name_60 WHERE name = "simon gillett category:articles with hcards" AND other > 3
CREATE TABLE INST, Here is a database schema( table schema);
What is the average Total when the Name is Simon Gillett Category:Articles with hCards and when the Other is greater than 3?It is not neccessary to use all the tables.
SELECT time_retired FROM table_name_2 WHERE grid > 16 AND driver = "nelson philippe"
CREATE TABLE INST, Here is a database schema( table schema);
When Nelson Philippe drove with a grid larger than 16 what was the timre/retired?It is not neccessary to use all the tables.
SELECT * FROM table_dev_53 WHERE (gender = 'female' AND hematocrit_hct < 36) OR (gender = 'male' AND hematocrit_hct < 38)
CREATE TABLE INST, Here is a database schema( table schema);
hematocrit < 36 ( female ) , < 38 ( male )It is not neccessary to use all the tables.
SELECT COUNT(us_airdate) FROM table_19422702_1 WHERE no_in_season = 4
CREATE TABLE INST, Here is a database schema( table schema);
How many U.S. air dates were from an episode in Season 4?It is not neccessary to use all the tables.
SELECT airport FROM table_13836704_4 WHERE total_passengers_2009 = 157933
CREATE TABLE INST, Here is a database schema( table schema);
what's the airport with total passengers 2009 being 157933It is not neccessary to use all the tables.
SELECT Date FROM table WHERE cause = gas explosion AND Death toll < 63 AND Location = penygraig
CREATE TABLE INST, Here is a database schema( table schema);
When has a cause of gas explosion, a Death toll smaller than 63, and a Location of penygraig?.It is not neccessary to use all the tables.
SELECT Competition FROM table WHERE Year = 2010 AND Snatch = 185kg
CREATE TABLE INST, Here is a database schema( table schema);
Which competition had a year of 2010 with Snatch weight of 185kg?.It is not neccessary to use all the tables.
SELECT directed_by FROM table_18424435_4 WHERE production_code = 301
CREATE TABLE INST, Here is a database schema( table schema);
Who directed the episode with a production code of 301?It is not neccessary to use all the tables.
SELECT name FROM table_name_93 WHERE statistic = "most assists"
CREATE TABLE INST, Here is a database schema( table schema);
Who had the statistic of most assists?It is not neccessary to use all the tables.
SELECT Format FROM table WHERE Frequency = fm 99.9
CREATE TABLE INST, Here is a database schema( table schema);
What is FM 99.9's Format?.It is not neccessary to use all the tables.