sql stringlengths 9 2.37k | table stringclasses 9
values | query stringlengths 51 503 |
|---|---|---|
SELECT location FROM table_name_94 WHERE time = "1:37" | CREATE TABLE INST, Here is a database schema( table schema); | Where was the fight that took a time of 1:37?It is not neccessary to use all the tables. |
SELECT winner FROM table_19930660_2 WHERE rufus_guest = "Sean Lock" | CREATE TABLE INST, Here is a database schema( table schema); | Who won the episode in which Sean Lock was Rufus's guest?It is not neccessary to use all the tables. |
SELECT Location/Attendance FROM table WHERE Record = 16-6 | CREATE TABLE INST, Here is a database schema( table schema); | What was the location/attendance for the game with a record of 16-6?.It is not neccessary to use all the tables. |
SELECT 1994 FROM table_name_35 WHERE 1998 = "0β1" | CREATE TABLE INST, Here is a database schema( table schema); | Which 1994 has a 1998 of 0β1?It is not neccessary to use all the tables. |
SELECT Team FROM table WHERE Date = January 23 | CREATE TABLE INST, Here is a database schema( table schema); | Who was the team played on January 23?.It is not neccessary to use all the tables. |
SELECT score FROM table_name_86 WHERE player = "ernie els" | CREATE TABLE INST, Here is a database schema( table schema); | What was Ernie Els's score?It is not neccessary to use all the tables. |
SELECT try_diff FROM table_name_34 WHERE tries_for = 12 | CREATE TABLE INST, Here is a database schema( table schema); | Which Try diff has Tries for of 12?It is not neccessary to use all the tables. |
SELECT Lead FROM table WHERE Skip = wang bingyu AND Event = 2009 wcc | CREATE TABLE INST, Here is a database schema( table schema); | What was the Lead for the 2009 WCC when Wang Bingyu news was the skip?.It is not neccessary to use all the tables. |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "FEMORAL ARTERY THROMBOSIS" AND demographic.age < "85" | CREATE TABLE INST, Here is a database schema( table schema); | give me the number of patients whose primary disease is femoral artery thrombosis and age is less than 85?It is not neccessary to use all the tables. |
SELECT Venue FROM table WHERE Home team score = 10.17 (77) | CREATE TABLE INST, Here is a database schema( table schema); | What venue featured the home side scoring 10.17 (77)?.It is not neccessary to use all the tables. |
SELECT directed_by FROM table_23916272_6 WHERE original_air_date = "September 29, 2003" | CREATE TABLE INST, Here is a database schema( table schema); | Who was the director for the episode originally airing September 29 2003?It is not neccessary to use all the tables. |
SELECT ad_freq FROM table_name_58 WHERE show_name = "health matters" | CREATE TABLE INST, Here is a database schema( table schema); | What is the ad frequency for the show named Health Matters?It is not neccessary to use all the tables. |
SELECT AVG(score) FROM table_name_39 WHERE place = "t8" AND player = "lee trevino" | CREATE TABLE INST, Here is a database schema( table schema); | What is the average score of player lee trevino who has a t8 place?It is not neccessary to use all the tables. |
SELECT Opponent FROM table WHERE Date = october 28, 2001 | CREATE TABLE INST, Here is a database schema( table schema); | Who is the opponent on October 28, 2001?.It is not neccessary to use all the tables. |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "TRSF WITHIN THIS FACILITY" AND demographic.dob_year < "2137" | CREATE TABLE INST, Here is a database schema( table schema); | provide the number of patients whose admission location is trsf within this facility and year of birth is less than 2137?It is not neccessary to use all the tables. |
SELECT District FROM table WHERE Incumbent = Jerry Kleczka | CREATE TABLE INST, Here is a database schema( table schema); | What district was incumbent Jerry Kleczka in?.It is not neccessary to use all the tables. |
SELECT SUM(season) FROM table_name_1 WHERE winners = "dalian wanda" AND fourth_placed = "yanbian aodong" | CREATE TABLE INST, Here is a database schema( table schema); | What season had Dalian Wanda as the winner with Yanbian Aodong winning 4th?It is not neccessary to use all the tables. |
SELECT partner FROM table_1547951_3 WHERE opponents = "Mark Woodforde Martina Navratilova" | CREATE TABLE INST, Here is a database schema( table schema); | Name the partner for mark woodforde martina navratilovaIt is not neccessary to use all the tables. |
SELECT Result FROM table WHERE Nominee = declan donnellan | CREATE TABLE INST, Here is a database schema( table schema); | What was the result of Declan Donnellan's nomination?.It is not neccessary to use all the tables. |
SELECT Airport FROM table WHERE IATA = seb | CREATE TABLE INST, Here is a database schema( table schema); | Which airport has SEB as its IATA code?.It is not neccessary to use all the tables. |
SELECT house_name FROM table_11464746_1 WHERE colours = "Green" | CREATE TABLE INST, Here is a database schema( table schema); | What is the name of the green house?It is not neccessary to use all the tables. |
SELECT MAX 3d6 or 1d20 Resolution (+10) FROM table WHERE 1d10 Resolution (+5) = 5 AND +1d12 (6) < 6 | CREATE TABLE INST, Here is a database schema( table schema); | What is the highest 3d6 or 1d20 Resolution (+10) with a 1d10 Resolution (+5) with 5, and a +1d12 (6) smaller than 6?.It is not neccessary to use all the tables. |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.discharge_location = "LEFT AGAINST MEDICAL ADVI" AND lab.label = "RDW" | CREATE TABLE INST, Here is a database schema( table schema); | what is the number of patients whose discharge location is left against medical advi and lab test name is rdw?It is not neccessary to use all the tables. |
SELECT COUNT(no_of_premierships) FROM table_name_72 WHERE nickname = "kangaroos" | CREATE TABLE INST, Here is a database schema( table schema); | How many Premierships have Nicknamed of kangaroos?It is not neccessary to use all the tables. |
SELECT MIN("Pos") FROM table_19349 WHERE "Clubs" = '16' | CREATE TABLE INST, Here is a database schema( table schema); | what is the minimum pos with clubs being 16It is not neccessary to use all the tables. |
SELECT Platform(s) FROM table WHERE Year = 2006 (10th) | CREATE TABLE INST, Here is a database schema( table schema); | What is the platform(s) for the year 2006 (10th)?.It is not neccessary to use all the tables. |
SELECT location FROM table_name_75 WHERE event = "200m backstroke" | CREATE TABLE INST, Here is a database schema( table schema); | What is the location of the 200m backstroke?It is not neccessary to use all the tables. |
SELECT position FROM table_29626583_3 WHERE mls_team = "New York Red Bulls" | CREATE TABLE INST, Here is a database schema( table schema); | What position did the team new york red bulls pick?It is not neccessary to use all the tables. |
SELECT event FROM table_name_70 WHERE time = "1:16" | CREATE TABLE INST, Here is a database schema( table schema); | What Event is at the Time 1:16?It is not neccessary to use all the tables. |
SELECT player FROM table_name_79 WHERE position = "center" AND year_born = 1977 | CREATE TABLE INST, Here is a database schema( table schema); | What player is a center born in 1977?It is not neccessary to use all the tables. |
SELECT Away team FROM table WHERE Venue = arden street oval | CREATE TABLE INST, Here is a database schema( table schema); | Who was the away team at Arden Street Oval?.It is not neccessary to use all the tables. |
SELECT long_term_c_pk FROM table_222448_1 WHERE short_term_c_pk = "2.00" | CREATE TABLE INST, Here is a database schema( table schema); | What is long-term C PK when the short-term C PK is 2.00?It is not neccessary to use all the tables. |
SELECT operator FROM table_28035004_1 WHERE bodybuilder = "Roe" | CREATE TABLE INST, Here is a database schema( table schema); | Who is the operator when Roe was the bodybuilder?It is not neccessary to use all the tables. |
SELECT MAX GDP (PPP) per capita (2008) FROM table WHERE Combined gross enrollment ratio (2009) = 86.6 | CREATE TABLE INST, Here is a database schema( table schema); | What is the gdp per capita in 2008 for the region with a combined gross enrollment ratio of 86.6 in 2009?.It is not neccessary to use all the tables. |
SELECT MIN(points_won) FROM table_name_66 WHERE total_matches = 4 AND total_w_l_h = "4-0-0" | CREATE TABLE INST, Here is a database schema( table schema); | Can you tell me the lowest Points won that has the Total matches of 4 and the Total W-L-H of 4-0-0?It is not neccessary to use all the tables. |
SELECT record FROM table_21839208_4 WHERE opponent = "Stampeders" | CREATE TABLE INST, Here is a database schema( table schema); | What was their record when they played the stampeders?It is not neccessary to use all the tables. |
SELECT Crowd FROM table WHERE Home team = st kilda | CREATE TABLE INST, Here is a database schema( table schema); | What is the crowd size for st kilda as the home team?.It is not neccessary to use all the tables. |
SELECT COUNT Year FROM table WHERE Game = the walking dead | CREATE TABLE INST, Here is a database schema( table schema); | What year was The Walking Dead?.It is not neccessary to use all the tables. |
SELECT Party_Theme, LOCATION FROM party | CREATE TABLE INST, Here is a database schema( table schema); | What are the themes and locations of parties?It is not neccessary to use all the tables. |
SELECT Runner-up FROM table WHERE Year = 2004 | CREATE TABLE INST, Here is a database schema( table schema); | Who was the runner-up in 2004?.It is not neccessary to use all the tables. |
SELECT Date FROM table WHERE Opponent in the final = kimberly po nathalie tauziat | CREATE TABLE INST, Here is a database schema( table schema); | What date has kimberly po nathalie tauziat as the opponent in the final?.It is not neccessary to use all the tables. |
SELECT DISTINCT YEAR FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.stars >= 4 ORDER BY T1.year | CREATE TABLE INST, Here is a database schema( table schema); | Find all years that have a movie that received a rating of 4 or 5 and sort them in increasing order of year.It is not neccessary to use all the tables. |
SELECT winning_team FROM table_name_92 WHERE losing_team = "san francisco giants" | CREATE TABLE INST, Here is a database schema( table schema); | Who won the series when the San Francisco Giants lost?It is not neccessary to use all the tables. |
SELECT round FROM table_name_43 WHERE opponents = "southampton" | CREATE TABLE INST, Here is a database schema( table schema); | Name the round for southampton opponentsIt is not neccessary to use all the tables. |
SELECT Opponent FROM table WHERE Game site = arrowhead stadium | CREATE TABLE INST, Here is a database schema( table schema); | What was the Opponent at Arrowhead Stadium?.It is not neccessary to use all the tables. |
SELECT SUM(avg_g) FROM table_name_61 WHERE effic = 858.4 | CREATE TABLE INST, Here is a database schema( table schema); | What is the sum avg/g with an effic of 858.4?It is not neccessary to use all the tables. |
SELECT time FROM table_name_55 WHERE team = "348cc k4 honda" AND speed = "97.743mph" | CREATE TABLE INST, Here is a database schema( table schema); | What is the time of the rider from the 348cc K4 Honda team with a speed of 97.743mph?It is not neccessary to use all the tables. |
SELECT Res. FROM table WHERE Opponent = steve schneider | CREATE TABLE INST, Here is a database schema( table schema); | What was the resolution of the fight against steve schneider?.It is not neccessary to use all the tables. |
SELECT Attendance FROM table WHERE Record = 6-1 | CREATE TABLE INST, Here is a database schema( table schema); | How many people were at the game with a record of 6-1?.It is not neccessary to use all the tables. |
SELECT MIN(attendance) FROM table_name_1 WHERE date = "8 october 1986" | CREATE TABLE INST, Here is a database schema( table schema); | What was the lowest Attendance on 8 October 1986?It is not neccessary to use all the tables. |
SELECT COUNT Week FROM table WHERE Date = bye | CREATE TABLE INST, Here is a database schema( table schema); | What is the Week with a Date of Bye?.It is not neccessary to use all the tables. |
SELECT result FROM table_name_3 WHERE competition = "uncaf nations cup 2009" AND goal = 6 | CREATE TABLE INST, Here is a database schema( table schema); | Name the result for uncaf nations cup 2009 and 6 goalIt is not neccessary to use all the tables. |
SELECT MotoGP winner FROM table WHERE 250cc winner = marco simoncelli AND Round = 15 | CREATE TABLE INST, Here is a database schema( table schema); | Which MotoGP winner has a 250cc winner of marco simoncelli, and a Round of 15?.It is not neccessary to use all the tables. |
SELECT AVG District FROM table WHERE Republican = dan mansell | CREATE TABLE INST, Here is a database schema( table schema); | Which District has a Republican of dan mansell?.It is not neccessary to use all the tables. |
SELECT Vote FROM table WHERE Immunity = David AND Reward = None | CREATE TABLE INST, Here is a database schema( table schema); | What is the vote number when immunity listed as David and reward is listed as none?.It is not neccessary to use all the tables. |
SELECT away_team FROM table_name_72 WHERE venue = "glenferrie oval" | CREATE TABLE INST, Here is a database schema( table schema); | What is the name of the away team with glenferrie oval venue?It is not neccessary to use all the tables. |
SELECT Player FROM table WHERE Division = west AND Team = special teams AND School = toledo western michigan | CREATE TABLE INST, Here is a database schema( table schema); | What Player is from the west Division and the Team of special teams and is from the School Toledo Western Michigan?.It is not neccessary to use all the tables. |
SELECT MIN(laps) FROM table_name_69 WHERE driver = "tarso marques" | CREATE TABLE INST, Here is a database schema( table schema); | What were the lowest laps of Tarso Marques?It is not neccessary to use all the tables. |
SELECT COUNT Date of Polls FROM table WHERE State = Madhya Pradesh | CREATE TABLE INST, Here is a database schema( table schema); | How many dates of polls occur in the Madhya Pradesh state?.It is not neccessary to use all the tables. |
SELECT score FROM table_name_72 WHERE couple = "shannon & derek" | CREATE TABLE INST, Here is a database schema( table schema); | What was the score when the couple was shannon & derek?It is not neccessary to use all the tables. |
SELECT Venue FROM table WHERE Home team = fitzroy | CREATE TABLE INST, Here is a database schema( table schema); | What is Fitzroy's home field?.It is not neccessary to use all the tables. |
SELECT COUNT(qual) FROM table_name_16 WHERE laps > 93 AND rank = 32 AND grid < 32 | CREATE TABLE INST, Here is a database schema( table schema); | Tell me the total number of Qual Laps higher than 93 with a Rank of 32 with Grid less than 32It is not neccessary to use all the tables. |
SELECT MIN(heat) FROM table_name_65 WHERE race_title = "lakeside" | CREATE TABLE INST, Here is a database schema( table schema); | What is the lowest heat of the Lakeside race?It is not neccessary to use all the tables. |
SELECT MIN("Year") FROM table_55804 WHERE "Manager" = 'gene hassell' AND "Finish" = '6th' | CREATE TABLE INST, Here is a database schema( table schema); | Name the least year for gene hassell manager and 6th finishIt is not neccessary to use all the tables. |
SELECT order_year FROM table_name_86 WHERE length__ft_ = "30" AND model = "05.505" | CREATE TABLE INST, Here is a database schema( table schema); | What order year has a 30 Length (ft.) and 05.505 model?It is not neccessary to use all the tables. |
SELECT Local name FROM table WHERE Network = nova tv | CREATE TABLE INST, Here is a database schema( table schema); | Which Local name has a Network of nova tv?.It is not neccessary to use all the tables. |
SELECT Visitor FROM table WHERE Home = nets | CREATE TABLE INST, Here is a database schema( table schema); | Who were the Visitor when the Nets were the Home team?.It is not neccessary to use all the tables. |
SELECT Team FROM table WHERE Points > 572 AND Games > 29 | CREATE TABLE INST, Here is a database schema( table schema); | What team scored more than 572 points and had more than 29 games?.It is not neccessary to use all the tables. |
SELECT against FROM table_name_67 WHERE position > 8 AND points > 9 | CREATE TABLE INST, Here is a database schema( table schema); | Which Against has a Position larger than 8 and Points larger than 9?It is not neccessary to use all the tables. |
SELECT Location FROM table WHERE Nickname = Panthers | CREATE TABLE INST, Here is a database schema( table schema); | Where is the school whose students are nicknamed Panthers located?.It is not neccessary to use all the tables. |
SELECT media_debut FROM table_26615633_3 WHERE species = "Asian black bear" | CREATE TABLE INST, Here is a database schema( table schema); | what is the media debut for the asian black bear?It is not neccessary to use all the tables. |
SELECT score FROM table_name_9 WHERE date = "april 25" | CREATE TABLE INST, Here is a database schema( table schema); | What was the score on April 25?It is not neccessary to use all the tables. |
SELECT title FROM table_name_33 WHERE role = "richard kolner" | CREATE TABLE INST, Here is a database schema( table schema); | Which title did richard kolner play?It is not neccessary to use all the tables. |
SELECT Nationality FROM table WHERE Player = keith bogans AND Years in Orlando = 2006β2009 | CREATE TABLE INST, Here is a database schema( table schema); | Which Nationality has a Player of keith bogans, and a Years in Orlando of 2006β2009?.It is not neccessary to use all the tables. |
SELECT MAX(rank) FROM table_name_99 WHERE team = "grupo capitol valladolid" AND games > 34 | CREATE TABLE INST, Here is a database schema( table schema); | What is Grupo Capitol Valladolid's highest rank with more than 34 games?It is not neccessary to use all the tables. |
SELECT Candidates FROM table WHERE Incumbent = James Patrick Sutton | CREATE TABLE INST, Here is a database schema( table schema); | What candidates were in the election when james patrick sutton was incumbent?.It is not neccessary to use all the tables. |
SELECT Television service FROM table WHERE Package/Option = sky famiglia AND Language = italian | CREATE TABLE INST, Here is a database schema( table schema); | What is Television Service, when Package/Option is Sky Famiglia, and when Language is Italian?.It is not neccessary to use all the tables. |
SELECT Team, Starting_Year FROM technician | CREATE TABLE INST, Here is a database schema( table schema); | What are the team and starting year of technicians?It is not neccessary to use all the tables. |
SELECT T2.middle_name, T1.student_id FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id ORDER BY T2.middle_name DESC | CREATE TABLE INST, Here is a database schema( table schema); | A bar chart about what are the student IDs and middle names of the students enrolled in at most two courses?, and I want to sort by the bars in descending.It is not neccessary to use all the tables. |
SELECT Away team score FROM table WHERE Ground = Telstra Stadium | CREATE TABLE INST, Here is a database schema( table schema); | What was the away team's score of at the game of telstra stadium?.It is not neccessary to use all the tables. |
SELECT SUM Graduated FROM table WHERE Player = omar gonzalez | CREATE TABLE INST, Here is a database schema( table schema); | What year did Omar Gonzalez graduate?.It is not neccessary to use all the tables. |
SELECT MigratedPosts.Id AS "post_link", MigrationHistory.CreationDate AS DateMigrated, CloseHistory.CreationDate AS DateClosed, MigrationHistory.Comment AS OriginalUrl FROM Posts AS MigratedPosts JOIN Posts AS ClosedPosts ON ClosedPosts.Id = MigratedPosts.Id JOIN PostHistory AS MigrationHistory ON MigrationHistory.Post... | CREATE TABLE INST, Here is a database schema( table schema); | Rejected migrations from SO in 2013.It is not neccessary to use all the tables. |
SELECT AVG Week FROM table WHERE Date = september 4, 1994 | CREATE TABLE INST, Here is a database schema( table schema); | What Week falls on September 4, 1994?.It is not neccessary to use all the tables. |
SELECT MAX(order) FROM table_name_55 WHERE weeks < 15 AND majors < 1 | CREATE TABLE INST, Here is a database schema( table schema); | What was the highest order amount in weeks prier to 15 and a major less than 1?It is not neccessary to use all the tables. |
SELECT former_codes FROM table_222666_1 WHERE new_country_names_and_codes = "Merged into Panama ( PA , PAN , 591 )" | CREATE TABLE INST, Here is a database schema( table schema); | Name the former codes for merged into panama ( pa pan 591 )It is not neccessary to use all the tables. |
SELECT date FROM table_name_5 WHERE visitor = "chicago black hawks" AND record = "2β2" | CREATE TABLE INST, Here is a database schema( table schema); | What is the Date that chicago black hawks has a Record of 2β2?It is not neccessary to use all the tables. |
SELECT Opponent FROM table WHERE Site = war memorial stadium β’ little rock, ar AND Result = l6β7 | CREATE TABLE INST, Here is a database schema( table schema); | What Opponent has a Site of war memorial stadium β’ little rock, ar, and a Result of l6β7?.It is not neccessary to use all the tables. |
SELECT Rating FROM table WHERE 18β49 Rating = 0.4 | CREATE TABLE INST, Here is a database schema( table schema); | What is the rating for the episode in which the 18-49 rating is 0.4?.It is not neccessary to use all the tables. |
SELECT surface FROM table_29127804_3 WHERE location = "Noida , Uttar Pradesh, India" | CREATE TABLE INST, Here is a database schema( table schema); | what is the material of the surface in noida uttar pradesh indiaIt is not neccessary to use all the tables. |
SELECT patient.hospitaladmittime FROM patient WHERE patient.uniquepid = '027-186593' AND patient.hospitaladmitsource = 'operating room' AND STRFTIME('%y', patient.hospitaladmittime) = '2101' ORDER BY patient.hospitaladmittime DESC LIMIT 1 | CREATE TABLE INST, Here is a database schema( table schema); | for the last time in 2101, when did patient 027-186593 get admitted via operating room to the hospital?It is not neccessary to use all the tables. |
SELECT MIN(demographic.age) FROM demographic WHERE demographic.insurance = "Medicaid" AND demographic.ethnicity = "HISPANIC/LATINO - PUERTO RICAN" | CREATE TABLE INST, Here is a database schema( table schema); | find the minimum age of patients with medicaid insurance whose ethnicity is hispanic/latino-puerto rican.It is not neccessary to use all the tables. |
SELECT COUNT(game) FROM table_11961582_4 WHERE high_assists = "A. Johnson (6)" | CREATE TABLE INST, Here is a database schema( table schema); | What was the total number of games where A. Johnson (6) gave the most high assists?It is not neccessary to use all the tables. |
SELECT Prize Money FROM table WHERE Runner-Up = Fabrizio Baldassari | CREATE TABLE INST, Here is a database schema( table schema); | When Fabrizio Baldassari is the runner-up what is the total prize money?.It is not neccessary to use all the tables. |
SELECT Visitor FROM table WHERE Home = tampa bay | CREATE TABLE INST, Here is a database schema( table schema); | Who was the visitor team in tampa bay?.It is not neccessary to use all the tables. |
SELECT Year FROM table WHERE Manufacturer = letecke zavody n.p., jinonice | CREATE TABLE INST, Here is a database schema( table schema); | In what year was Letecke Zavody N.P., Jinonice the manufacturer?.It is not neccessary to use all the tables. |
SELECT Leg FROM table WHERE Rally leader = C. Atkinson | CREATE TABLE INST, Here is a database schema( table schema); | What is the leg for c. atkinson.It is not neccessary to use all the tables. |
SELECT season FROM table_name_70 WHERE overall = "77" | CREATE TABLE INST, Here is a database schema( table schema); | What year's Season had an Overall of 77?It is not neccessary to use all the tables. |
SELECT Proposed FROM table WHERE Listed = 03/31/1989 AND County = rockingham | CREATE TABLE INST, Here is a database schema( table schema); | When was the site listed 03/31/1989 in rockingham county proposed?.It is not neccessary to use all the tables. |
SELECT railway FROM table_name_58 WHERE location = "shildon" AND objectnumber = "1975-7022" | CREATE TABLE INST, Here is a database schema( table schema); | Which Railway has a Location of shildon and an ObjectNumber of 1975-7022?It is not neccessary to use all the tables. |
SELECT COUNT Province FROM table WHERE % 2011 = 0.0% | CREATE TABLE INST, Here is a database schema( table schema); | What is the province amount if the % 2011 is 0.0%.It is not neccessary to use all the tables. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.