sql stringlengths 9 2.37k | table stringclasses 9
values | query stringlengths 51 503 |
|---|---|---|
SELECT Circumstances FROM table WHERE Nature of incident = hostile AND Location = road to jalalabad | CREATE TABLE INST, Here is a database schema( table schema); | What were the circumstances of the Hostile incident on the road to Jalalabad?.It is not neccessary to use all the tables. |
SELECT MIN(earnings__) AS $__ FROM table_name_38 WHERE rank < 2 | CREATE TABLE INST, Here is a database schema( table schema); | Who has the lowest earnings that has a rank smaller than 2?It is not neccessary to use all the tables. |
SELECT Label FROM table WHERE Date = 28 march 2007 AND Catalog = magik muzik cd 07 | CREATE TABLE INST, Here is a database schema( table schema); | Which label released the catalog Magik Muzik CD 07 on 28 March 2007?.It is not neccessary to use all the tables. |
SELECT MAX Season # FROM table WHERE Prod. code = 334 | CREATE TABLE INST, Here is a database schema( table schema); | What number episode in the season had a production code of 334?.It is not neccessary to use all the tables. |
SELECT club_province FROM table_name_28 WHERE caps > 18 AND position = "fly-half" | CREATE TABLE INST, Here is a database schema( table schema); | What club/province for the player with over 18 caps and plays the fly-half?It is not neccessary to use all the tables. |
SELECT AVG(year) FROM table_name_13 WHERE mintage < 10 OFFSET 000 | CREATE TABLE INST, Here is a database schema( table schema); | What was the average year for a coin that had a mintage smaller than 10000?It is not neccessary to use all the tables. |
SELECT Result FROM table WHERE Opponent = tampa bay buccaneers | CREATE TABLE INST, Here is a database schema( table schema); | Who one in the Tampa Bay Buccaneers?.It is not neccessary to use all the tables. |
SELECT AVG(drawn) FROM table_name_79 WHERE goals_for < 36 AND lost > 21 | CREATE TABLE INST, Here is a database schema( table schema); | For entries with lost larger than 21 and goals for smaller than 36 what is the average drawn?It is not neccessary to use all the tables. |
SELECT AVG(demographic.age) FROM demographic WHERE demographic.admission_type = "EMERGENCY" AND demographic.diagnosis = "HYPOXIA" | CREATE TABLE INST, Here is a database schema( table schema); | what is average age of patients whose admission type is emergency and primary disease is hypoxia?It is not neccessary to use all the tables. |
SELECT SUM Silver FROM table WHERE Rank = 5 AND Bronze < 14 | CREATE TABLE INST, Here is a database schema( table schema); | What is the number of silver when rank was 5, and a bronze was smaller than 14?.It is not neccessary to use all the tables. |
SELECT MAX(laps) FROM table_name_52 WHERE time_retired = "+3.370 secs" | CREATE TABLE INST, Here is a database schema( table schema); | Which Laps is the highest one that has a Time/Retired of +3.370 secs?It is not neccessary to use all the tables. |
SELECT AVG Week FROM table WHERE Attendance = 19,741 | CREATE TABLE INST, Here is a database schema( table schema); | Attendance of 19,741 had what average week?.It is not neccessary to use all the tables. |
SELECT cfl_team FROM table_21321804_3 WHERE college = "Nebraska" | CREATE TABLE INST, Here is a database schema( table schema); | What team does the player who went to Nebraska play for?It is not neccessary to use all the tables. |
SELECT Position FROM table WHERE Player = robert nkemdiche | CREATE TABLE INST, Here is a database schema( table schema); | Which position does Robert Nkemdiche play?.It is not neccessary to use all the tables. |
SELECT COUNT(goals_for) FROM table_name_13 WHERE played > 44 | CREATE TABLE INST, Here is a database schema( table schema); | Name the total number of goals which have played more than 44It is not neccessary to use all the tables. |
SELECT DISTINCT TYPE FROM institution | CREATE TABLE INST, Here is a database schema( table schema); | Show all the distinct institution types.It is not neccessary to use all the tables. |
SELECT MAX Number of electorates (2009) FROM table WHERE District = raisen AND Constituency number = 142 | CREATE TABLE INST, Here is a database schema( table schema); | What was the highest number of 2009 electorates for Raisen when the consituency number was 142?.It is not neccessary to use all the tables. |
SELECT Money ( $ ) FROM table WHERE Place = t3 AND Country = united states | CREATE TABLE INST, Here is a database schema( table schema); | What was the money for place t3 and United States?.It is not neccessary to use all the tables. |
SELECT ep_winning_team FROM table_29225103_2 WHERE fm_winning_team = "Brabham - Ford" AND hm_winning_team = "Osca" | CREATE TABLE INST, Here is a database schema( table schema); | Who was the EP winning team when the FM winning team was Brabham - Ford and the HM winning team was Osca?It is not neccessary to use all the tables. |
SELECT birthplace FROM table_name_79 WHERE position = "d" AND height__cm_ = 190 AND jersey_number = 11 | CREATE TABLE INST, Here is a database schema( table schema); | What is the birthplace of the player who is 190 CM tall plays the D position and wears number 11?It is not neccessary to use all the tables. |
SELECT rated_power FROM table_name_52 WHERE finish_construction = "may 10, 1978" | CREATE TABLE INST, Here is a database schema( table schema); | What is the rated power for the reactor that ended construction on May 10 1978?It is not neccessary to use all the tables. |
SELECT Date FROM table WHERE Loss = farrell (6-13) | CREATE TABLE INST, Here is a database schema( table schema); | What date is associated with the Loss of Farrell (6-13)?.It is not neccessary to use all the tables. |
SELECT Date FROM table WHERE Save = ayala AND Loss = olivares | CREATE TABLE INST, Here is a database schema( table schema); | When is the Save of Ayala and a Loss of Olivares.It is not neccessary to use all the tables. |
SELECT opponent FROM table_name_78 WHERE week > 3 AND date = "october 6, 1991" | CREATE TABLE INST, Here is a database schema( table schema); | Which Opponent that has a Week larger than 3 on october 6 1991?It is not neccessary to use all the tables. |
SELECT Result FROM table WHERE Goal > 6 AND Score = 1–0 AND Competition = friendly AND Date = may 31, 1998 | CREATE TABLE INST, Here is a database schema( table schema); | Which Result has a Goal larger than 6, and a Score of 1–0, and a Competition of friendly, and a Date of may 31, 1998?.It is not neccessary to use all the tables. |
SELECT MAX Lost FROM table WHERE Win % = 20% AND Opponent = david nalbandian | CREATE TABLE INST, Here is a database schema( table schema); | What is the largest number Lost to david nalbandian with a Win Rate of 20%?.It is not neccessary to use all the tables. |
SELECT Televotes FROM table WHERE Jury votes = 4 | CREATE TABLE INST, Here is a database schema( table schema); | How many televotes are there where there is 4 jury votes?.It is not neccessary to use all the tables. |
SELECT AVG Pick FROM table WHERE Player = jay bruchak AND Round < 6 | CREATE TABLE INST, Here is a database schema( table schema); | How many picks on average did Jay Bruchak have before round 6?.It is not neccessary to use all the tables. |
SELECT opponent FROM table_name_86 WHERE attendance = "31,002" | CREATE TABLE INST, Here is a database schema( table schema); | Who was the opponent when the attendance was 31002?It is not neccessary to use all the tables. |
SELECT Time FROM table WHERE Group = g2 AND Race = hobartville stakes | CREATE TABLE INST, Here is a database schema( table schema); | What was the time for the G2 group at the Hobartville Stakes?.It is not neccessary to use all the tables. |
SELECT MIN(year_s_) FROM table_name_64 WHERE spokesperson = "colin berry" AND radio_commentator = "ray moore" | CREATE TABLE INST, Here is a database schema( table schema); | What is the earliest year with colin berry as the spokesperson and ray moore as the radio commentator?It is not neccessary to use all the tables. |
SELECT SUM("Decile") FROM table_68662 WHERE "Authority" = 'state' AND "Name" = 'pokuru school' AND "Roll" < '109' | CREATE TABLE INST, Here is a database schema( table schema); | What is the total amount of decile with the authority of state around the Pokuru School and a roll smaller than 109?It is not neccessary to use all the tables. |
SELECT MAX(year) FROM table_name_51 WHERE best_finish = "2" AND scoring_average < 71.24 | CREATE TABLE INST, Here is a database schema( table schema); | What is the latest year when the best finish is 2 and the scoring average is less than 71.24?It is not neccessary to use all the tables. |
SELECT Flange thickness (mm) FROM table WHERE Weight (kg/m) = 19.9 | CREATE TABLE INST, Here is a database schema( table schema); | What is the flange thickness when the weight is 19.9?.It is not neccessary to use all the tables. |
SELECT COUNT(round) FROM table_name_49 WHERE pick__number = 129 | CREATE TABLE INST, Here is a database schema( table schema); | What is the total round of the 129 pick?It is not neccessary to use all the tables. |
SELECT Doctor FROM table WHERE Title = city of death | CREATE TABLE INST, Here is a database schema( table schema); | Which Doctor is featured in City of Death?.It is not neccessary to use all the tables. |
SELECT Segment C FROM table WHERE Netflix = s08e16 | CREATE TABLE INST, Here is a database schema( table schema); | Which Segment C has a Netflix of s08e16?.It is not neccessary to use all the tables. |
SELECT T2.dept_name, T2.dept_address, COUNT(*) FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY COUNT(*) DESC LIMIT 3 | CREATE TABLE INST, Here is a database schema( table schema); | Find the name address number of students in the departments that have the top 3 highest number of students.It is not neccessary to use all the tables. |
SELECT SUM Stories FROM table WHERE City = guadalajara AND Completed > 2007 | CREATE TABLE INST, Here is a database schema( table schema); | I want the sum of stories for guadalajara done after 2007.It is not neccessary to use all the tables. |
SELECT SUM(rank) FROM table_name_60 WHERE county = "galway" AND total > 13 | CREATE TABLE INST, Here is a database schema( table schema); | What's the total of Rank for the County of Galway and has a Total that's larger than 13?It is not neccessary to use all the tables. |
SELECT school FROM table_name_50 WHERE ihsaa_class = "aaa" AND mascot = "tiger cubs" | CREATE TABLE INST, Here is a database schema( table schema); | What school has an IHSAA Class of aaa and their mascot is Tiger Cubs?It is not neccessary to use all the tables. |
SELECT part_2 FROM table_name_4 WHERE class = "6" | CREATE TABLE INST, Here is a database schema( table schema); | What is the Part 2 when the class is 6?It is not neccessary to use all the tables. |
SELECT MAX(production_code) FROM table_11951237_1 WHERE original_air_date = "October 27, 1994" | CREATE TABLE INST, Here is a database schema( table schema); | What is the production code for the show that aired on October 27 1994?It is not neccessary to use all the tables. |
SELECT 2 AS nd_round FROM table_name_91 WHERE team_2 = "red star (d1)" | CREATE TABLE INST, Here is a database schema( table schema); | Who is the 2nd round opponent when Team 2 is Red Star (D1)?It is not neccessary to use all the tables. |
SELECT Competition FROM table WHERE Result = lost 1-2 | CREATE TABLE INST, Here is a database schema( table schema); | What Competition had a Result of lost 1-2?.It is not neccessary to use all the tables. |
SELECT MAX Attendance FROM table WHERE Result = w 16-13 AND Week < 12 | CREATE TABLE INST, Here is a database schema( table schema); | How many people attended the game with a result of w 16-13 and a week earlier than 12?.It is not neccessary to use all the tables. |
SELECT location FROM table_name_28 WHERE date = "2009-09-05" | CREATE TABLE INST, Here is a database schema( table schema); | Where was the incident of 2009-09-05?It is not neccessary to use all the tables. |
SELECT Title FROM table WHERE # = 14 | CREATE TABLE INST, Here is a database schema( table schema); | What is the title of episode number 14?.It is not neccessary to use all the tables. |
SELECT patient.hospitaladmitsource FROM patient WHERE patient.uniquepid = '027-124213' AND DATETIME(patient.hospitaladmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') ORDER BY patient.hospitaladmittime LIMIT 1 | CREATE TABLE INST, Here is a database schema( table schema); | how is patient 027-124213 first admitted to the hospital the previous year?It is not neccessary to use all the tables. |
SELECT SUM(ends) FROM table_name_70 WHERE transfer_fee = "£8.5m" | CREATE TABLE INST, Here is a database schema( table schema); | When the transfer fee is £8.5m what is the total ends?It is not neccessary to use all the tables. |
SELECT COUNT(*), role_code FROM users GROUP BY role_code | CREATE TABLE INST, Here is a database schema( table schema); | Find the number of users in each role.It is not neccessary to use all the tables. |
SELECT Public FROM table WHERE Couple = Mikey and Melanie | CREATE TABLE INST, Here is a database schema( table schema); | Name the public for mikey and melanie.It is not neccessary to use all the tables. |
SELECT score FROM table_name_4 WHERE opponent = "baltimore bullets" AND date = "march 14" | CREATE TABLE INST, Here is a database schema( table schema); | What is the score of the game against the baltimore bullets on March 14?It is not neccessary to use all the tables. |
SELECT designation FROM table_name_84 WHERE quantity = 52 | CREATE TABLE INST, Here is a database schema( table schema); | Which Designation has a Quantity of 52?It is not neccessary to use all the tables. |
SELECT COUNT Country of owner FROM table WHERE Horse = Utah Bulwark | CREATE TABLE INST, Here is a database schema( table schema); | How many countries did Utah Bulwark's owner come from?.It is not neccessary to use all the tables. |
SELECT away_team AS score FROM table_name_30 WHERE venue = "junction oval" | CREATE TABLE INST, Here is a database schema( table schema); | What did the away team score at Junction oval?It is not neccessary to use all the tables. |
SELECT English name FROM table WHERE Color = green | CREATE TABLE INST, Here is a database schema( table schema); | Which English name has a Color of green?.It is not neccessary to use all the tables. |
SELECT surface FROM table_name_92 WHERE semifinalists = "wally masur malivai washington" | CREATE TABLE INST, Here is a database schema( table schema); | Which Surface has Semifinalists of wally masur malivai washington?It is not neccessary to use all the tables. |
SELECT Height in Ft. FROM table WHERE School/Club Team/Country = Hartford | CREATE TABLE INST, Here is a database schema( table schema); | What is the height of the player who attended Hartford?.It is not neccessary to use all the tables. |
SELECT City / State FROM table WHERE Circuit = hidden valley raceway | CREATE TABLE INST, Here is a database schema( table schema); | What's the city/state of Hidden Valley Raceway?.It is not neccessary to use all the tables. |
SELECT MIN(interview) FROM table_name_52 WHERE state = "south dakota" AND evening_gown < 8.513 | CREATE TABLE INST, Here is a database schema( table schema); | Who had the lowest interview score from South Dakota with an evening gown less than 8.513?It is not neccessary to use all the tables. |
SELECT "player" FROM table_19611329_1 WHERE year_inducted = 1945 AND inducted_as = "player" | CREATE TABLE INST, Here is a database schema( table schema); | Name the player for 1945 for playerIt is not neccessary to use all the tables. |
SELECT city FROM table_name_42 WHERE venue = "arco arena" | CREATE TABLE INST, Here is a database schema( table schema); | Which city has a venue of the Arco Arena?It is not neccessary to use all the tables. |
SELECT SUM Fall 09 FROM table WHERE Maryland Counties = allegany AND Fall 07 < 751 | CREATE TABLE INST, Here is a database schema( table schema); | What is the sum of all values in Fall 09 in Allegany county with Fall 07 less than 751?.It is not neccessary to use all the tables. |
SELECT Country FROM table WHERE Champion = jocelyne bourassa | CREATE TABLE INST, Here is a database schema( table schema); | What country does jocelyne bourassa play for?.It is not neccessary to use all the tables. |
SELECT Wicket FROM table WHERE Runs (Balls) = 100 (45) | CREATE TABLE INST, Here is a database schema( table schema); | Which wicket had a 100 (45) Runs (balls) amount?.It is not neccessary to use all the tables. |
SELECT bullet FROM table_name_25 WHERE shoulder = "10.92 (.430)" | CREATE TABLE INST, Here is a database schema( table schema); | Which bullet has a Shoulder of 10.92 (.430)?It is not neccessary to use all the tables. |
SELECT MIN Attendance FROM table WHERE Week < 10 AND Date = november 12, 1967 | CREATE TABLE INST, Here is a database schema( table schema); | What is the lowest attendance for a game before 10 weeks on November 12, 1967.It is not neccessary to use all the tables. |
SELECT number FROM table_name_91 WHERE percentage___percentage_ = "80.62" | CREATE TABLE INST, Here is a database schema( table schema); | What is the number with an 80.62 percentage?It is not neccessary to use all the tables. |
SELECT location FROM table_182499_1 WHERE substrate = "Coproporphyrinogen III" | CREATE TABLE INST, Here is a database schema( table schema); | give the location of subtrate coproporphyrinogen iiiIt is not neccessary to use all the tables. |
SELECT Supercopa 1994 FROM table WHERE Team = estudiantes | CREATE TABLE INST, Here is a database schema( table schema); | Which Supercopa 1994 has a Team of estudiantes?.It is not neccessary to use all the tables. |
SELECT high_points FROM table_23286158_8 WHERE record = "30-23" | CREATE TABLE INST, Here is a database schema( table schema); | Name the high points for 30-23It is not neccessary to use all the tables. |
SELECT F/Laps FROM table WHERE Wins = 0 AND Position = 4th | CREATE TABLE INST, Here is a database schema( table schema); | What was the F/Laps when the Wins were 0 and the Position was 4th?.It is not neccessary to use all the tables. |
SELECT AVG(snatch) FROM table_name_19 WHERE total__kg_ > 318 AND bodyweight = 84.15 | CREATE TABLE INST, Here is a database schema( table schema); | WHTA IS THE SNATCH WITH A TOTAL OF LARGER THAN 318 KG AND BODY WEIGHT OF 84.15?It is not neccessary to use all the tables. |
SELECT Ship FROM table WHERE Line = cunard AND From = liverpool AND Dates = 19 – 29 july | CREATE TABLE INST, Here is a database schema( table schema); | What is the ship in the Cunard line from Liverpool 19 – 29 July?.It is not neccessary to use all the tables. |
SELECT COUNT(races) FROM table_25561038_1 WHERE points = "15" | CREATE TABLE INST, Here is a database schema( table schema); | How many series awarded 15 points?It is not neccessary to use all the tables. |
SELECT rating FROM table_13110459_2 WHERE viewers__m_ = "2.89" | CREATE TABLE INST, Here is a database schema( table schema); | what are all the rating with viewers (m) being 2.89It is not neccessary to use all the tables. |
SELECT d_42_√ FROM table_name_13 WHERE d_43_√ = "r 5" | CREATE TABLE INST, Here is a database schema( table schema); | What's the D 42 √ when D 43 √ is r 5?It is not neccessary to use all the tables. |
SELECT product_id FROM product_suppliers ORDER BY total_amount_purchased DESC LIMIT 3 | CREATE TABLE INST, Here is a database schema( table schema); | What are the ids of the top three products that were purchased in the largest amount?It is not neccessary to use all the tables. |
SELECT Visitor FROM table WHERE Date = march 21 | CREATE TABLE INST, Here is a database schema( table schema); | Who was the visitor on march 21?.It is not neccessary to use all the tables. |
SELECT away_team FROM table_name_28 WHERE home_team = "sydney spirit" | CREATE TABLE INST, Here is a database schema( table schema); | who is the away team when the home team is sydney spirit?It is not neccessary to use all the tables. |
SELECT Attendance FROM table WHERE Date = october 19, 2003 | CREATE TABLE INST, Here is a database schema( table schema); | what is the attendance on october 19, 2003?.It is not neccessary to use all the tables. |
SELECT date__ddmmyyyy_ FROM table_name_45 WHERE axis_unit = "5./jg 3" | CREATE TABLE INST, Here is a database schema( table schema); | What was the date of the victory when the Axis Unit was 5./jg 3?It is not neccessary to use all the tables. |
SELECT team FROM table_name_46 WHERE position > 1 AND date = "9/1953" AND driver = "emmanuel de graffenried" | CREATE TABLE INST, Here is a database schema( table schema); | what team has a drive name emmanuel de graffenried and a position larger than 1 as well as the date of 9/1953?It is not neccessary to use all the tables. |
SELECT year FROM table_name_29 WHERE 1851 = "634" | CREATE TABLE INST, Here is a database schema( table schema); | What's the year when 1851 had 634?It is not neccessary to use all the tables. |
SELECT Attendance FROM table WHERE Away = hispano | CREATE TABLE INST, Here is a database schema( table schema); | What was the attendance for the game with an away team of Hispano?.It is not neccessary to use all the tables. |
SELECT Title FROM table WHERE Directed by = Laura Innes | CREATE TABLE INST, Here is a database schema( table schema); | Which season titles were directed by Laura Innes?.It is not neccessary to use all the tables. |
SELECT Bronze FROM table WHERE Total > 7 AND Silver = 3 AND Games = summer AND Gold = 5 | CREATE TABLE INST, Here is a database schema( table schema); | Which Bronze has a Total larger than 7 and a Silver of 3, and a Games of summer, and a Gold of 5?.It is not neccessary to use all the tables. |
SELECT MAX(cuts_made) FROM table_name_18 WHERE events = 7 AND top_25 > 2 | CREATE TABLE INST, Here is a database schema( table schema); | What is the most number of cuts made that had more than 7 events played and more than 2 top-25s?It is not neccessary to use all the tables. |
SELECT Nationality, SUM(meter_100) FROM swimmer GROUP BY Nationality ORDER BY SUM(meter_100) | CREATE TABLE INST, Here is a database schema( table schema); | Visualize a bar chart about the distribution of Nationality and the sum of meter_100 , and group by attribute Nationality, sort by the Y-axis in asc.It is not neccessary to use all the tables. |
SELECT Home team FROM table WHERE Venue = windy hill | CREATE TABLE INST, Here is a database schema( table schema); | Who is the home team based at windy hill?.It is not neccessary to use all the tables. |
SELECT SUM(rank) FROM table_name_39 WHERE built < 2007 AND building = "howard johnson hotel bucharest" | CREATE TABLE INST, Here is a database schema( table schema); | What is the sum of Rank with a build year earlier than 2007 for the howard johnson hotel bucharest?It is not neccessary to use all the tables. |
SELECT Entrant FROM table WHERE Rounds = 16 AND Constructor = ferrari | CREATE TABLE INST, Here is a database schema( table schema); | What was the entrant in round 16 were Ferrari was the constructor?.It is not neccessary to use all the tables. |
SELECT region FROM table_name_47 WHERE catalog = "576 097-2" | CREATE TABLE INST, Here is a database schema( table schema); | Name the region with catalog of 576 097-2It is not neccessary to use all the tables. |
SELECT Pregame host FROM table WHERE Play-by-play = jp dellacamera AND Year < 2009 AND Color commentator(s) = ty keough | CREATE TABLE INST, Here is a database schema( table schema); | What is the name of the pregame host when the Play-by-play was by JP Dellacamera, earlier than 2009, and Color commentator(s) was Ty Keough?.It is not neccessary to use all the tables. |
SELECT County FROM table WHERE Kerry# = 59740 | CREATE TABLE INST, Here is a database schema( table schema); | What is the county where kerry# is 59740?.It is not neccessary to use all the tables. |
SELECT Length (miles) FROM table WHERE Endpoints = Pico to 7th St/Metro Center | CREATE TABLE INST, Here is a database schema( table schema); | What is the length (miles) when pico to 7th st/metro center are the endpoints?.It is not neccessary to use all the tables. |
SELECT meet FROM table_name_67 WHERE club = "centro de natacon carabobo" | CREATE TABLE INST, Here is a database schema( table schema); | Which Meet has a Club of centro de natacon carabobo?It is not neccessary to use all the tables. |
SELECT time_retired FROM table_name_86 WHERE grid > 20 AND laps < 26 AND manufacturer = "aprilia" | CREATE TABLE INST, Here is a database schema( table schema); | What is the time for a grid greater than 20 fewer than 26 laps and the Aprilia manufacturer?It is not neccessary to use all the tables. |
SELECT Nationality, AVG(Age) FROM journalist GROUP BY Nationality | CREATE TABLE INST, Here is a database schema( table schema); | What are the nationalities and their average ages of journalists. Show me a bar chart.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.