output stringlengths 18 557 | instruction stringlengths 22 540 |
|---|---|
SELECT MIN(height__m_) FROM table_name_94 WHERE parent = "grasmoor" AND prom__m_ > 117 | CREATE TABLE table_name_94 (height__m_ INTEGER, parent VARCHAR, prom__m_ VARCHAR), What is the lowest height for Parent grasmoor when it has a Prom larger than 117? |
SELECT class FROM table_name_34 WHERE prom__m_ > 30 AND peak = "sail" | CREATE TABLE table_name_34 (class VARCHAR, prom__m_ VARCHAR, peak VARCHAR), Which Class is Peak Sail when it has a Prom larger than 30? |
SELECT parent FROM table_name_52 WHERE height__m_ < 756 AND prom__m_ = 39 | CREATE TABLE table_name_52 (parent VARCHAR, height__m_ VARCHAR, prom__m_ VARCHAR), Which Parent has height smaller than 756 and a Prom of 39? |
SELECT MIN(interview) FROM table_name_52 WHERE state = "south dakota" AND evening_gown < 8.513 | CREATE TABLE table_name_52 (interview INTEGER, state VARCHAR, evening_gown VARCHAR), Who had the lowest interview score from South Dakota with an evening gown less than 8.513? |
SELECT MAX(average) FROM table_name_57 WHERE state = "texas" AND evening_gown > 8.875 | CREATE TABLE table_name_57 (average INTEGER, state VARCHAR, evening_gown VARCHAR), What is the highest average of the contestant from Texas with an evening gown larger than 8.875? |
SELECT AVG(interview) FROM table_name_27 WHERE state = "kentucky" | CREATE TABLE table_name_27 (interview INTEGER, state VARCHAR), What is the average interview score from Kentucky? |
SELECT MIN(interview) FROM table_name_3 WHERE evening_gown < 8.938 AND state = "texas" AND average < 8.846 | CREATE TABLE table_name_3 (interview INTEGER, average VARCHAR, evening_gown VARCHAR, state VARCHAR), What is the lowest evening score of the contestant with an evening gown less than 8.938, from Texas, and with an average less than 8.846 has? |
SELECT MAX(swimsuit) FROM table_name_91 WHERE evening_gown > 9.175 AND interview < 8.425 | CREATE TABLE table_name_91 (swimsuit INTEGER, evening_gown VARCHAR, interview VARCHAR), What is the highest swimsuit score of the contestant with an evening gown larger than 9.175 and an interview score less than 8.425? |
SELECT MIN(average) FROM table_name_31 WHERE interview = 8.275 AND evening_gown > 8.7 | CREATE TABLE table_name_31 (average INTEGER, interview VARCHAR, evening_gown VARCHAR), What is the lowest average of the contestant with an interview of 8.275 and an evening gown bigger than 8.7? |
SELECT AVG(crowd) FROM table_name_86 WHERE venue = "arden street oval" | CREATE TABLE table_name_86 (crowd INTEGER, venue VARCHAR), How many attended the game at Arden Street Oval? |
SELECT away_team AS score FROM table_name_84 WHERE home_team = "geelong" | CREATE TABLE table_name_84 (away_team VARCHAR, home_team VARCHAR), What was the score for Geelong? |
SELECT MIN(joined) FROM table_name_81 WHERE city = "college park" AND conference_championships < 0 | CREATE TABLE table_name_81 (joined INTEGER, city VARCHAR, conference_championships VARCHAR), What is the lowest year joined in the city of College Park at the Conference championships smaller than 0? |
SELECT MAX(joined) FROM table_name_84 WHERE conference_championships = 5 AND institution = "university of north carolina" | CREATE TABLE table_name_84 (joined INTEGER, conference_championships VARCHAR, institution VARCHAR), What is the latest year joined with a Conference championships of 5, and an Institution of university of north carolina? |
SELECT joined FROM table_name_15 WHERE conference_championships = 5 AND nickname = "wolfpack" | CREATE TABLE table_name_15 (joined VARCHAR, conference_championships VARCHAR, nickname VARCHAR), What is the year joined with a Conference championships of 5, and a Nickname of wolfpack? |
SELECT MIN(total_produced) FROM table_name_68 WHERE model = "fm h-15-44" | CREATE TABLE table_name_68 (total_produced INTEGER, model VARCHAR), Which is the smallest Total produced with a model of FM H-15-44? |
SELECT date FROM table_name_47 WHERE attendance > 20 OFFSET 268 | CREATE TABLE table_name_47 (date VARCHAR, attendance INTEGER), Name the date for attendance more than 20,268 |
SELECT d_47 FROM table_name_32 WHERE d_45 = "d 32" | CREATE TABLE table_name_32 (d_47 VARCHAR, d_45 VARCHAR), Name the D 47 when it has a D 45 of d 32 |
SELECT d_47 FROM table_name_93 WHERE d_41 = "r 36" | CREATE TABLE table_name_93 (d_47 VARCHAR, d_41 VARCHAR), Name the D 47 when it has a D 41 of r 36 |
SELECT d_47 FROM table_name_35 WHERE d_48 = "d 49" AND d_42 = "r 42" | CREATE TABLE table_name_35 (d_47 VARCHAR, d_48 VARCHAR, d_42 VARCHAR), Name the D 47 when it has a D 48 of d 49 and D 42 of r 42 |
SELECT d_48 FROM table_name_29 WHERE d_44 = "d 33" | CREATE TABLE table_name_29 (d_48 VARCHAR, d_44 VARCHAR), Name the D 48 when it has a D 44 of d 33 |
SELECT d_44 FROM table_name_63 WHERE d_46 = "d 31" | CREATE TABLE table_name_63 (d_44 VARCHAR, d_46 VARCHAR), Name the D 44 when it has a D 46 of d 31 |
SELECT model FROM table_name_68 WHERE fuel_or_propulsion = "diesel" AND manufacturer = "orion" AND year = 2005 | CREATE TABLE table_name_68 (model VARCHAR, year VARCHAR, fuel_or_propulsion VARCHAR, manufacturer VARCHAR), Tell me the model with fuel or propulsion of diesel and orion manufacturer in 2005 |
SELECT SUM(quantity) FROM table_name_60 WHERE year < 2011 AND model = "slf-230" | CREATE TABLE table_name_60 (quantity INTEGER, year VARCHAR, model VARCHAR), Name the sum of quantity for before 2011 model slf-230 |
SELECT fleet_series FROM table_name_96 WHERE quantity = 5 | CREATE TABLE table_name_96 (fleet_series VARCHAR, quantity VARCHAR), Name the fleet series with a quantity of 5 |
SELECT date FROM table_name_57 WHERE race_title = "mallala" | CREATE TABLE table_name_57 (date VARCHAR, race_title VARCHAR), When was the Mallala race held? |
SELECT winner FROM table_name_61 WHERE circuit = "phillip island grand prix circuit" | CREATE TABLE table_name_61 (winner VARCHAR, circuit VARCHAR), Which driver won the Phillip Island Grand Prix Circuit? |
SELECT winner FROM table_name_44 WHERE race_title = "lakeside" | CREATE TABLE table_name_44 (winner VARCHAR, race_title VARCHAR), What was the name of the driver that won the Lakeside race? |
SELECT clerk FROM table_name_14 WHERE highway_commissioners = "albert lewis" | CREATE TABLE table_name_14 (clerk VARCHAR, highway_commissioners VARCHAR), Who was the clerk when the highway commissioner was Albert Lewis? |
SELECT supervisor FROM table_name_43 WHERE years = "1846" | CREATE TABLE table_name_43 (supervisor VARCHAR, years VARCHAR), Who was the supervisor in the year 1846? |
SELECT highway_commissioners FROM table_name_37 WHERE "treasurer" = "treasurer" | CREATE TABLE table_name_37 (highway_commissioners VARCHAR), When Treasurer was treasurer, who was the highway commissioner? |
SELECT COUNT(snatch) FROM table_name_73 WHERE total < 267.5 | CREATE TABLE table_name_73 (snatch VARCHAR, total INTEGER), How many snatches were there with a total of 267.5? |
SELECT event FROM table_name_2 WHERE snatch = 122.5 | CREATE TABLE table_name_2 (event VARCHAR, snatch VARCHAR), What event has a 122.5 snatch rate? |
SELECT MIN(total) FROM table_name_21 WHERE snatch < 170 AND event = "56 kg" AND clean_ & _jerk < 145 | CREATE TABLE table_name_21 (total INTEGER, snatch VARCHAR, event VARCHAR, clean_ VARCHAR, _jerk VARCHAR), What is the lowest total that had less than 170 snatches, 56 kg events and less than 145 clean & jerk? |
SELECT COUNT(total) FROM table_name_54 WHERE event = "+105 kg" AND clean_ & _jerk < 227.5 | CREATE TABLE table_name_54 (total VARCHAR, event VARCHAR, clean_ VARCHAR, _jerk VARCHAR), What is the total that had an event of +105 kg and clean & jerk less than 227.5? |
SELECT AVG(attendance) FROM table_name_58 WHERE visitor = "montreal" AND decision = "price" | CREATE TABLE table_name_58 (attendance INTEGER, visitor VARCHAR, decision VARCHAR), What was the average attendance when the decision was price and montreal were the visitors? |
SELECT MIN(attendance) FROM table_name_50 WHERE week = 2 | CREATE TABLE table_name_50 (attendance INTEGER, week VARCHAR), What is the lowest attendance for week 2? |
SELECT shuttle_run__sec_ FROM table_name_36 WHERE grade = "c" | CREATE TABLE table_name_36 (shuttle_run__sec_ VARCHAR, grade VARCHAR), Tell me the shuttle run with grade c |
SELECT MAX(attendance) FROM table_name_42 WHERE date = "january 15" | CREATE TABLE table_name_42 (attendance INTEGER, date VARCHAR), On January 15, what was the most in attendance? |
SELECT visitor FROM table_name_17 WHERE decision = "mason" AND date = "january 29" | CREATE TABLE table_name_17 (visitor VARCHAR, decision VARCHAR, date VARCHAR), On January 29, who had the decision of Mason? |
SELECT time_retired FROM table_name_15 WHERE grid = 3 | CREATE TABLE table_name_15 (time_retired VARCHAR, grid VARCHAR), What was the time of the driver on grid 3? |
SELECT time_retired FROM table_name_17 WHERE laps = 43 AND grid = 18 | CREATE TABLE table_name_17 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR), What was the retired time on someone who had 43 laps on a grip of 18? |
SELECT MIN(laps) FROM table_name_89 WHERE time_retired = "+18.445" | CREATE TABLE table_name_89 (laps INTEGER, time_retired VARCHAR), What was the fewest laps for somone who finished +18.445? |
SELECT date FROM table_name_40 WHERE venue = "junction oval" | CREATE TABLE table_name_40 (date VARCHAR, venue VARCHAR), On which date was a game played at Junction Oval? |
SELECT date FROM table_name_13 WHERE home_team = "essendon" | CREATE TABLE table_name_13 (date VARCHAR, home_team VARCHAR), On which date was Essendon the home team? |
SELECT record FROM table_name_72 WHERE date = "october 27" | CREATE TABLE table_name_72 (record VARCHAR, date VARCHAR), What was the record on the game that was played on october 27? |
SELECT MIN(rec) FROM table_name_83 WHERE yards > 647 AND avg < 14 | CREATE TABLE table_name_83 (rec INTEGER, yards VARCHAR, avg VARCHAR), How many receptions for players with over 647 yards and an under 14 yard average? |
SELECT home_team AS score FROM table_name_31 WHERE venue = "victoria park" | CREATE TABLE table_name_31 (home_team VARCHAR, venue VARCHAR), What is the home teams score at Victoria Park? |
SELECT home_team FROM table_name_20 WHERE venue = "mcg" | CREATE TABLE table_name_20 (home_team VARCHAR, venue VARCHAR), What is the home team at the venue mcg? |
SELECT MAX(attendance) FROM table_name_56 WHERE home = "lakers" | CREATE TABLE table_name_56 (attendance INTEGER, home VARCHAR), What is the highest attendace of the game with the Lakers as the home team? |
SELECT record FROM table_name_55 WHERE date = "december 5, 2007" | CREATE TABLE table_name_55 (record VARCHAR, date VARCHAR), What is the record of the game on December 5, 2007? |
SELECT winner_and_nominees FROM table_name_44 WHERE director = "cary joji fukunaga" | CREATE TABLE table_name_44 (winner_and_nominees VARCHAR, director VARCHAR), Who was the winner and nominees for the movie directed by cary joji fukunaga? |
SELECT original_title FROM table_name_58 WHERE winner_and_nominees = "the king's speech" | CREATE TABLE table_name_58 (original_title VARCHAR, winner_and_nominees VARCHAR), What was the original title for the king's speech? |
SELECT original_title FROM table_name_99 WHERE winner_and_nominees = "the king's speech" | CREATE TABLE table_name_99 (original_title VARCHAR, winner_and_nominees VARCHAR), What was the original title of the king's speech? |
SELECT director FROM table_name_77 WHERE original_title = "the king's speech" | CREATE TABLE table_name_77 (director VARCHAR, original_title VARCHAR), Who was the director of the king's speech? |
SELECT nationality FROM table_name_51 WHERE round = 7 AND position = "goalie" | CREATE TABLE table_name_51 (nationality VARCHAR, round VARCHAR, position VARCHAR), What is the nationality of the goalie in Round 7? |
SELECT score FROM table_name_84 WHERE date = "june 22" | CREATE TABLE table_name_84 (score VARCHAR, date VARCHAR), What was the score from the game played on June 22? |
SELECT people_assisted FROM table_name_14 WHERE year = "1997" | CREATE TABLE table_name_14 (people_assisted VARCHAR, year VARCHAR), How many people were assisted in 1997? |
SELECT year FROM table_name_15 WHERE countries_affected = "usa" | CREATE TABLE table_name_15 (year VARCHAR, countries_affected VARCHAR), Which year did USA undergo a disaster? |
SELECT nature_of_help FROM table_name_31 WHERE people_assisted = "1,000" | CREATE TABLE table_name_31 (nature_of_help VARCHAR, people_assisted VARCHAR), In the disaster in which 1,000 people were helped, what was the nature of help? |
SELECT pick FROM table_name_2 WHERE school = "penn state" | CREATE TABLE table_name_2 (pick VARCHAR, school VARCHAR), What is the pick number of Penn State? |
SELECT round FROM table_name_2 WHERE pick = 112 | CREATE TABLE table_name_2 (round VARCHAR, pick VARCHAR), Which Round is pick 112 in? |
SELECT MAX(pick) FROM table_name_18 WHERE school = "washington" | CREATE TABLE table_name_18 (pick INTEGER, school VARCHAR), What is the highest pick from Washington? |
SELECT COUNT(pick) FROM table_name_60 WHERE round = "2" | CREATE TABLE table_name_60 (pick VARCHAR, round VARCHAR), What is the total pick number from round 2? |
SELECT COUNT(pick) FROM table_name_7 WHERE position = "wide receiver" | CREATE TABLE table_name_7 (pick VARCHAR, position VARCHAR), What is the total pick number for a wide receiver? |
SELECT position FROM table_name_85 WHERE player = "thad jemison" | CREATE TABLE table_name_85 (position VARCHAR, player VARCHAR), What is Thad Jemison's position? |
SELECT club_province FROM table_name_3 WHERE caps = 74 AND player = "girvan dempsey" | CREATE TABLE table_name_3 (club_province VARCHAR, caps VARCHAR, player VARCHAR), What is the club or province of Girvan Dempsey, who has 74 caps? |
SELECT player FROM table_name_4 WHERE caps < 49 AND position = "wing" AND club_province = "ulster" | CREATE TABLE table_name_4 (player VARCHAR, club_province VARCHAR, caps VARCHAR, position VARCHAR), Which Ulster player has fewer than 49 caps and plays the wing position? |
SELECT player FROM table_name_67 WHERE position = "fly-half" AND club_province = "munster" | CREATE TABLE table_name_67 (player VARCHAR, position VARCHAR, club_province VARCHAR), Which player Munster from Munster is a fly-half? |
SELECT time_retired FROM table_name_28 WHERE laps < 67 AND points = 6 | CREATE TABLE table_name_28 (time_retired VARCHAR, laps VARCHAR, points VARCHAR), What was time/retired with less than 67 laps and 6 points? |
SELECT AVG(laps) FROM table_name_54 WHERE driver = "alex tagliani" AND points > 17 | CREATE TABLE table_name_54 (laps INTEGER, driver VARCHAR, points VARCHAR), How many average laps for Alex Tagliani with more than 17 points? |
SELECT SUM(attendance) FROM table_name_18 WHERE week < 10 AND result = "l 30-21" | CREATE TABLE table_name_18 (attendance INTEGER, week VARCHAR, result VARCHAR), What sum of Attendance has a Week smaller than 10, and a Result of l 30-21? |
SELECT MAX(week) FROM table_name_40 WHERE result = "w 24-0" AND attendance < 10 OFFSET 000 | CREATE TABLE table_name_40 (week INTEGER, result VARCHAR, attendance VARCHAR), Which Week has a Result of w 24-0, and an Attendance smaller than 10,000? |
SELECT MIN(attendance) FROM table_name_95 WHERE opponent = "green bay packers" AND week > 10 | CREATE TABLE table_name_95 (attendance INTEGER, opponent VARCHAR, week VARCHAR), Which Attendance has an Opponent of green bay packers, and a Week larger than 10? |
SELECT venue FROM table_name_21 WHERE home_team = "fitzroy" | CREATE TABLE table_name_21 (venue VARCHAR, home_team VARCHAR), Where did fitzroy play as the home team? |
SELECT home_team FROM table_name_33 WHERE away_team = "north melbourne" | CREATE TABLE table_name_33 (home_team VARCHAR, away_team VARCHAR), Who was North Melbourne's home opponent? |
SELECT venue FROM table_name_93 WHERE home_team = "essendon" | CREATE TABLE table_name_93 (venue VARCHAR, home_team VARCHAR), Where did Essendon play as the home team? |
SELECT date_of_appointment FROM table_name_68 WHERE replaced_by = "lucien favre" | CREATE TABLE table_name_68 (date_of_appointment VARCHAR, replaced_by VARCHAR), When was the appointment date for the manager replaced by Lucien Favre? |
SELECT date_of_appointment FROM table_name_60 WHERE outgoing_manager = "petrik sander" | CREATE TABLE table_name_60 (date_of_appointment VARCHAR, outgoing_manager VARCHAR), When is the appointment date for outgoing manager Petrik Sander? |
SELECT date_of_appointment FROM table_name_72 WHERE team = "vfl wolfsburg" | CREATE TABLE table_name_72 (date_of_appointment VARCHAR, team VARCHAR), When was the appointment date for VFL Wolfsburg? |
SELECT date_of_departure FROM table_name_41 WHERE replaced_by = "bojan prašnikar" | CREATE TABLE table_name_41 (date_of_departure VARCHAR, replaced_by VARCHAR), When was the departure date when a manager was replaced by Bojan Prašnikar? |
SELECT sport FROM table_name_92 WHERE year_of_award = 2011 | CREATE TABLE table_name_92 (sport VARCHAR, year_of_award VARCHAR), In 2011 which sport had the year award? |
SELECT COUNT(laps) FROM table_name_36 WHERE driver = "giancarlo fisichella" AND grid > 15 | CREATE TABLE table_name_36 (laps VARCHAR, driver VARCHAR, grid VARCHAR), How many laps did Giancarlo Fisichella do with a grid larger than 15? |
SELECT SUM(laps) FROM table_name_43 WHERE grid > 2 AND driver = "jos verstappen" | CREATE TABLE table_name_43 (laps INTEGER, grid VARCHAR, driver VARCHAR), How many laps did Jos Verstappen do on Grid 2? |
SELECT grid FROM table_name_37 WHERE driver = "david coulthard" | CREATE TABLE table_name_37 (grid VARCHAR, driver VARCHAR), David Coulthard was the driver in which grid? |
SELECT laps FROM table_name_80 WHERE grid = "21" | CREATE TABLE table_name_80 (laps VARCHAR, grid VARCHAR), How many laps were there in grid 21? |
SELECT away_team AS score FROM table_name_43 WHERE home_team = "essendon" | CREATE TABLE table_name_43 (away_team VARCHAR, home_team VARCHAR), When Essendon was the Home Team, what was the Away Team score? |
SELECT home_team AS score FROM table_name_44 WHERE crowd > 25 OFFSET 000 | CREATE TABLE table_name_44 (home_team VARCHAR, crowd INTEGER), When the Crowd was larger than 25,000. what was the Home Team score? |
SELECT COUNT(bulls) FROM table_name_27 WHERE venue = "old trafford" | CREATE TABLE table_name_27 (bulls VARCHAR, venue VARCHAR), What was the total number for the Bulls when they were at Old Trafford? |
SELECT MAX(rank) FROM table_name_12 WHERE nation = "iceland" AND silver < 19 | CREATE TABLE table_name_12 (rank INTEGER, nation VARCHAR, silver VARCHAR), Where does Iceland rank with under 19 silvers? |
SELECT MAX(bronze) FROM table_name_66 WHERE gold > 22 AND rank < 2 | CREATE TABLE table_name_66 (bronze INTEGER, gold VARCHAR, rank VARCHAR), How many bronzes for nations with over 22 golds and ranked under 2? |
SELECT gold FROM table_name_56 WHERE total = 14 | CREATE TABLE table_name_56 (gold VARCHAR, total VARCHAR), How many golds for the nation with 14 total? |
SELECT AVG(bronze) FROM table_name_53 WHERE silver > 2 AND nation = "iceland" | CREATE TABLE table_name_53 (bronze INTEGER, silver VARCHAR, nation VARCHAR), How many bronzes for Iceland with over 2 silvers? |
SELECT MIN(year) FROM table_name_99 WHERE engine = "toyota v8" AND points < 26 | CREATE TABLE table_name_99 (year INTEGER, engine VARCHAR, points VARCHAR), What is the earliest year that had under 26 points and a toyota v8 engine? |
SELECT MIN(points) FROM table_name_59 WHERE chassis = "m16" AND year > 2006 | CREATE TABLE table_name_59 (points INTEGER, chassis VARCHAR, year VARCHAR), What is the low point total after 2006 with an m16 chassis? |
SELECT COUNT(gold) FROM table_name_40 WHERE silver > 0 AND total > 1 AND bronze > 3 | CREATE TABLE table_name_40 (gold VARCHAR, bronze VARCHAR, silver VARCHAR, total VARCHAR), How many golds for nations with over 0 silvers, over 1 total, and over 3 bronze? |
SELECT MAX(pick__number) FROM table_name_14 WHERE college = "simon fraser" | CREATE TABLE table_name_14 (pick__number INTEGER, college VARCHAR), What was the highest Pick # for the College of Simon Fraser? |
SELECT COUNT(pick__number) FROM table_name_14 WHERE cfl_team = "edmonton eskimos" | CREATE TABLE table_name_14 (pick__number VARCHAR, cfl_team VARCHAR), What is the Pick # for the Edmonton Eskimos? |
SELECT MAX(pick__number) FROM table_name_84 WHERE player = "ryan strong" | CREATE TABLE table_name_84 (pick__number INTEGER, player VARCHAR), What is the Pick # for Ryan Strong? |
SELECT opponent FROM table_name_22 WHERE score = "6–5 (10)" | CREATE TABLE table_name_22 (opponent VARCHAR, score VARCHAR), Who did the Rockies play at the game that had a score of 6–5 (10)? |
SELECT max_power_at_rpm FROM table_name_95 WHERE engine_code_s_ = "2e" | CREATE TABLE table_name_95 (max_power_at_rpm VARCHAR, engine_code_s_ VARCHAR), What is the maximum power of engine code 2e? |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.