answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 489 |
|---|---|---|
SELECT name FROM table_name_67 WHERE position = "rb" | for the position of rb what is the name? | CREATE TABLE table_name_67 (name VARCHAR, position VARCHAR) |
SELECT MIN(administrative_panel) FROM table_name_52 WHERE nominated_by_the_taoiseach < 0 | Which Administrative Panel has a Nominated by the Taoiseach smaller than 0? | CREATE TABLE table_name_52 (administrative_panel INTEGER, nominated_by_the_taoiseach INTEGER) |
SELECT song FROM table_name_98 WHERE language = "french" | What song was in french? | CREATE TABLE table_name_98 (song VARCHAR, language VARCHAR) |
SELECT MAX(attendance) FROM table_name_89 WHERE time = "2:42" | What was the attendance for the game that went 2:42? | CREATE TABLE table_name_89 (attendance INTEGER, time VARCHAR) |
SELECT state FROM table_25244412_2 WHERE total_electricity__gw·h_ = 38380 | What was the state with the total electricity generated is 38380 gw-h? | CREATE TABLE table_25244412_2 (state VARCHAR, total_electricity__gw·h_ VARCHAR) |
SELECT 2006 FROM table_name_88 WHERE 2010 = "a" AND 2009 = "a" AND tournament = "canada masters" | What is the 2006 result of the Canada Masters tournament that is A in 2009 and A in 2010? | CREATE TABLE table_name_88 (tournament VARCHAR) |
SELECT COUNT(founded) FROM table_255205_1 WHERE nickname = "Beavers" | How many times this institution was founded that was nicknamed Beavers? | CREATE TABLE table_255205_1 (founded VARCHAR, nickname VARCHAR) |
SELECT team_1 FROM table_name_36 WHERE team_2 = "iskra odintsovo" | What is Team 1, when Team 2 is "Iskra Odintsovo"? | CREATE TABLE table_name_36 (team_1 VARCHAR, team_2 VARCHAR) |
SELECT date FROM table_name_23 WHERE competition = "2004 afc asian cup qualifier" | Name the date for 2004 afc asian cup qualifier | CREATE TABLE table_name_23 (date VARCHAR, competition VARCHAR) |
SELECT COUNT(avg_g) FROM table_name_51 WHERE long = 51 AND loss = 333 AND gain > 2013 | How much Avg/G has a Long of 51, and a Loss of 333, and a Gain larger than 2013? | CREATE TABLE table_name_51 (avg_g VARCHAR, gain VARCHAR, long VARCHAR, loss VARCHAR) |
SELECT name_of_horse FROM table_name_77 WHERE year_inducted = 2011 AND broodmare_sire = "cowboy p-12" | What horse was induced in 2011 with a sire of cowboy p-12? | CREATE TABLE table_name_77 (name_of_horse VARCHAR, year_inducted VARCHAR, broodmare_sire VARCHAR) |
SELECT MAX(ties) FROM table_11233358_2 | What is the highest number of ties? | CREATE TABLE table_11233358_2 (ties INTEGER) |
SELECT home FROM table_name_16 WHERE date = "november 7" | Which home has a Date of november 7? | CREATE TABLE table_name_16 (home VARCHAR, date VARCHAR) |
SELECT position FROM table_name_8 WHERE venue = "valencia, spain" | What was the position of the event held in Valencia, Spain? | CREATE TABLE table_name_8 (position VARCHAR, venue VARCHAR) |
SELECT place FROM table_19744915_14 WHERE rank_by_average < 2.0 | What place would you be in if your rank by average is less than 2.0? | CREATE TABLE table_19744915_14 (place VARCHAR, rank_by_average INTEGER) |
SELECT competition FROM table_name_54 WHERE result = "3–1" | Which Competition has a Result of 3–1? | CREATE TABLE table_name_54 (competition VARCHAR, result VARCHAR) |
SELECT years_for_jazz FROM table_name_12 WHERE position = "combo forward" | What are the years on the Jazz for the player who is a combo forward? | CREATE TABLE table_name_12 (years_for_jazz VARCHAR, position VARCHAR) |
SELECT MIN(round) FROM table_name_83 WHERE overall = 91 | What round did the overall pick of 91 occur in the 1982 NFL draft? | CREATE TABLE table_name_83 (round INTEGER, overall VARCHAR) |
SELECT team FROM table_25368177_1 WHERE net_run_rate = "0.134" | What team had a net run rate of 0.134? | CREATE TABLE table_25368177_1 (team VARCHAR, net_run_rate VARCHAR) |
SELECT place_of_birth FROM table_name_51 WHERE elevator = "alexander iii" AND elector = "ruggiero di san severino" | What's the Place of birth listed that has an Elevator of ALexander III, and an Elector of Ruggiero Di San Severino? | CREATE TABLE table_name_51 (place_of_birth VARCHAR, elevator VARCHAR, elector VARCHAR) |
SELECT score FROM table_name_50 WHERE competition = "king's cup 1996" | What was the score for king's cup 1996? | CREATE TABLE table_name_50 (score VARCHAR, competition VARCHAR) |
SELECT Delegate FROM election WHERE District = 1 | Show the delegate from district 1 in election. | CREATE TABLE election (Delegate VARCHAR, District VARCHAR) |
SELECT loss FROM table_name_31 WHERE opponent = "california angels" AND attendance = "57,762" | What's the Loss listed for the Opponent of California Angels and has an Attendance of 57,762? | CREATE TABLE table_name_31 (loss VARCHAR, opponent VARCHAR, attendance VARCHAR) |
SELECT attribute FROM table_name_81 WHERE category = "mutation" AND type = "domcharacterdatamodified" | Name the attribute for mutation and domcharacterdatamodified | CREATE TABLE table_name_81 (attribute VARCHAR, category VARCHAR, type VARCHAR) |
SELECT COUNT(legs_lost) FROM table_name_11 WHERE player = "trina gulliver" AND played > 3 | How many legs were lost for Trina Gulliver with more than 3 played? | CREATE TABLE table_name_11 (legs_lost VARCHAR, player VARCHAR, played VARCHAR) |
SELECT MIN(labour_party) FROM table_name_16 WHERE fianna_fáil > 5 | What is the lowest number in the Labour Party for the Fianna Fail higher than 5? | CREATE TABLE table_name_16 (labour_party INTEGER, fianna_fáil INTEGER) |
SELECT home FROM table_name_47 WHERE date = "november 22" | Who was the home team on November 22? | CREATE TABLE table_name_47 (home VARCHAR, date VARCHAR) |
SELECT MIN(draws) FROM table_name_81 WHERE byes > 2 | What is the lowest number of draws with more than 2 byes? | CREATE TABLE table_name_81 (draws INTEGER, byes INTEGER) |
SELECT siena_2002 FROM table_name_96 WHERE president = "andrew jackson" | what is siena 2002 when the president is andrew jackson? | CREATE TABLE table_name_96 (siena_2002 VARCHAR, president VARCHAR) |
SELECT result FROM table_name_28 WHERE date = "september 13, 1998" | Can you tell me the Result that has the Date of september 13, 1998? | CREATE TABLE table_name_28 (result VARCHAR, date VARCHAR) |
SELECT winning_pct FROM table_14389782_2 WHERE jersey_no = "15" | What is the winning pct for jersey 15? | CREATE TABLE table_14389782_2 (winning_pct VARCHAR, jersey_no VARCHAR) |
SELECT written_by FROM table_26448179_3 WHERE production_code = "202" | Who wrote the episode that is production code 202? | CREATE TABLE table_26448179_3 (written_by VARCHAR, production_code VARCHAR) |
SELECT music FROM table_name_6 WHERE style = "samba" | WHAT IS THE MUSIC WITH SAMBA? | CREATE TABLE table_name_6 (music VARCHAR, style VARCHAR) |
SELECT venue FROM table_name_77 WHERE established > 1948 | What is the venue established after 1948? | CREATE TABLE table_name_77 (venue VARCHAR, established INTEGER) |
SELECT date FROM table_name_8 WHERE opponent = "austria" | What day was the opponent Austria? | CREATE TABLE table_name_8 (date VARCHAR, opponent VARCHAR) |
SELECT result FROM table_name_91 WHERE film_series = "thirst" AND year = 2010 AND group = "green globe film awards" | What was the result for Thirst in 2010 at the Green Globe Film Awards? | CREATE TABLE table_name_91 (result VARCHAR, group VARCHAR, film_series VARCHAR, year VARCHAR) |
SELECT haat FROM table_name_17 WHERE channels_tv___rf = "31 (psip) 44 (uhf)" | Which HAAT has a Channels TV / RF of 31 (psip) 44 (uhf) | CREATE TABLE table_name_17 (haat VARCHAR, channels_tv___rf VARCHAR) |
SELECT AVG(round) FROM table_name_41 WHERE position = "ot" AND college = "tulane" AND overall > 38 | What's the average round for the OT position from tulane college with an overall over 38? | CREATE TABLE table_name_41 (round INTEGER, overall VARCHAR, position VARCHAR, college VARCHAR) |
SELECT pole_position FROM table_25773116_2 WHERE fastest_lap = "Victor Carbone" AND location = "Braselton, Georgia" | Who had pole position for the races in Braselton, Georgia where Victor Carbone had fastest lap? | CREATE TABLE table_25773116_2 (pole_position VARCHAR, fastest_lap VARCHAR, location VARCHAR) |
SELECT title FROM table_10610087_3 WHERE written_by = "Denis Leary, Peter Tolan and Evan Reilly" | What is the title of the episode written by denis leary, peter tolan and evan reilly? | CREATE TABLE table_10610087_3 (title VARCHAR, written_by VARCHAR) |
SELECT crowd FROM table_name_54 WHERE venue = "arden street oval" | What was the attendance when the Arden Street Oval? | CREATE TABLE table_name_54 (crowd VARCHAR, venue VARCHAR) |
SELECT reunion_weight FROM table_28654454_5 WHERE lbs_lost_reunion = 52 | What is the reunion weight of the contestant that lost 52 lbs at the reunion? | CREATE TABLE table_28654454_5 (reunion_weight VARCHAR, lbs_lost_reunion VARCHAR) |
SELECT reporters FROM table_22514845_5 WHERE race_caller = "Dave Johnson" AND s_analyst = "Eddie Arcaro and Howard Cosell" | Name the reporters for dave johnson for eddie arcaro and howard cosell | CREATE TABLE table_22514845_5 (reporters VARCHAR, race_caller VARCHAR, s_analyst VARCHAR) |
SELECT trance__n_himalaya_zone FROM table_10638523_1 WHERE particulars_and_characteristics = "Climatic conditions" | What are the climatic conditions for the trance- n himalaya zone? | CREATE TABLE table_10638523_1 (trance__n_himalaya_zone VARCHAR, particulars_and_characteristics VARCHAR) |
SELECT game FROM table_17355408_12 WHERE date = "May 25" | What game was on May 25? | CREATE TABLE table_17355408_12 (game VARCHAR, date VARCHAR) |
SELECT score FROM table_name_13 WHERE record = "33–25–9" | What was the score of the game with a record of 33–25–9? | CREATE TABLE table_name_13 (score VARCHAR, record VARCHAR) |
SELECT date FROM table_1140067_2 WHERE race = "Monaco Grand Prix" | What was the date for monaco grand prix? | CREATE TABLE table_1140067_2 (date VARCHAR, race VARCHAR) |
SELECT LOCATION FROM shop WHERE Open_Year > 2012 INTERSECT SELECT LOCATION FROM shop WHERE Open_Year < 2008 | Show the locations shared by shops with open year later than 2012 and shops with open year before 2008. | CREATE TABLE shop (LOCATION VARCHAR, Open_Year INTEGER) |
SELECT SUM(events) FROM table_name_47 WHERE tournament = "u.s. open" AND top_25 < 1 | What is the total of events when the tournament was U.S. Open and the Top-25 was less than 1? | CREATE TABLE table_name_47 (events INTEGER, tournament VARCHAR, top_25 VARCHAR) |
SELECT COUNT(pl_g) FROM table_name_74 WHERE cl_g < 7 AND cl_apps < 7 AND fa_yc = 0 AND player = "pennant" | What is the total PL G of player pennant, who has less than 7 CL G, less than 7 CL apps, and a FA YC of 0? | CREATE TABLE table_name_74 (pl_g VARCHAR, player VARCHAR, fa_yc VARCHAR, cl_g VARCHAR, cl_apps VARCHAR) |
SELECT ceased_to_be_queen FROM table_name_3 WHERE birth = "10 may 1788" | Who was born on 10 May 1788 that ceased to be queen? | CREATE TABLE table_name_3 (ceased_to_be_queen VARCHAR, birth VARCHAR) |
SELECT circuit FROM table_name_56 WHERE date = "july 24" | Which Circuit is on July 24? | CREATE TABLE table_name_56 (circuit VARCHAR, date VARCHAR) |
SELECT total FROM table_name_58 WHERE set_2 = "21:12" | What is the Total of Set 2 of 21:12? | CREATE TABLE table_name_58 (total VARCHAR, set_2 VARCHAR) |
SELECT cust_name, acc_type, acc_bal FROM customer ORDER BY credit_score DESC LIMIT 1 | Find the name, account type, and account balance of the customer who has the highest credit score. | CREATE TABLE customer (cust_name VARCHAR, acc_type VARCHAR, acc_bal VARCHAR, credit_score VARCHAR) |
SELECT judges FROM table_13779832_1 WHERE seasons_and_winners = "Season 1, 2013–2014: Upcoming season" | who is the the judges with seasons and winners being season 1, 2013–2014: upcoming season | CREATE TABLE table_13779832_1 (judges VARCHAR, seasons_and_winners VARCHAR) |
SELECT COUNT(division) FROM table_name_36 WHERE tms = 13 AND pos < 8 | What is the division in the season with 13 tms and pos smaller than 8? | CREATE TABLE table_name_36 (division VARCHAR, tms VARCHAR, pos VARCHAR) |
SELECT winner FROM table_20540006_6 WHERE sec_team = "LSU" | Who was the winner when the SEC team LSU played? | CREATE TABLE table_20540006_6 (winner VARCHAR, sec_team VARCHAR) |
SELECT per_capita_income FROM table_1840495_2 WHERE median_house__hold_income = "$57,407" | If the median income is $57,407, what is the per capita income? | CREATE TABLE table_1840495_2 (per_capita_income VARCHAR, median_house__hold_income VARCHAR) |
SELECT COUNT(event_4_carwalk) FROM table_24302700_2 WHERE nationality = "Ukraine" | How many men from the Ukraine? | CREATE TABLE table_24302700_2 (event_4_carwalk VARCHAR, nationality VARCHAR) |
SELECT billing_state, COUNT(*) FROM invoices WHERE billing_country = "USA" GROUP BY billing_state | List the number of invoices from the US, grouped by state. | CREATE TABLE invoices (billing_state VARCHAR, billing_country VARCHAR) |
SELECT lead FROM table_name_94 WHERE skip = "pavol pitonak" | Which Lead has a Skip of pavol pitonak? | CREATE TABLE table_name_94 (lead VARCHAR, skip VARCHAR) |
SELECT COUNT(total) FROM table_name_83 WHERE player = "bernhard langer" | What is the total for Bernhard Langer? | CREATE TABLE table_name_83 (total VARCHAR, player VARCHAR) |
SELECT model FROM table_name_30 WHERE total_production = 1347 | Tell me the model for total production of 1347 | CREATE TABLE table_name_30 (model VARCHAR, total_production VARCHAR) |
SELECT place FROM table_name_3 WHERE country = "england" AND score > 66 | Name the Place of england with a Score larger than 66? | CREATE TABLE table_name_3 (place VARCHAR, country VARCHAR, score VARCHAR) |
SELECT torque FROM table_name_18 WHERE power = "hp (kw)" AND trim = "xr (2009)" | What is the Torque that has a Power of hp (kw), and a Trim of xr (2009)? Question 6 | CREATE TABLE table_name_18 (torque VARCHAR, power VARCHAR, trim VARCHAR) |
SELECT opponent_team FROM table_27877656_7 WHERE edition = "2009 Europe/Africa Group IIIB" AND outcome = "Winner" AND opponent = "Sandra Kristjánsdóttir" | For opponent is sandra kristjánsdóttir, outcome is winner and edition is 2009 europe/africa group iiib mention all the opponent team. | CREATE TABLE table_27877656_7 (opponent_team VARCHAR, opponent VARCHAR, edition VARCHAR, outcome VARCHAR) |
SELECT result FROM table_name_23 WHERE location = "guangzhou" AND score = "1-0" | In guangzhou, who won the game with a score of 1-0? | CREATE TABLE table_name_23 (result VARCHAR, location VARCHAR, score VARCHAR) |
SELECT MIN(points) FROM table_name_74 WHERE goals_for < 13 | What are the fewest points for goals fewer than 13? | CREATE TABLE table_name_74 (points INTEGER, goals_for INTEGER) |
SELECT opponents FROM table_22815265_1 WHERE cowboys_points = 10 | How many opponents are there when cowboy points were 10? | CREATE TABLE table_22815265_1 (opponents VARCHAR, cowboys_points VARCHAR) |
SELECT external_weapon FROM table_name_59 WHERE cart = "ramhead cart" | What is the external weapon with a ramhead cart? | CREATE TABLE table_name_59 (external_weapon VARCHAR, cart VARCHAR) |
SELECT club FROM table_name_90 WHERE established > 2000 AND sport = "soccer" AND venue = "kuntz stadium" | What is the Club that has an Established more than 2000 for soccer plated in kuntz stadium? | CREATE TABLE table_name_90 (club VARCHAR, venue VARCHAR, established VARCHAR, sport VARCHAR) |
SELECT home_ground FROM table_name_96 WHERE location = "canterbury" | What is the home ground for the team located in Canterbury? | CREATE TABLE table_name_96 (home_ground VARCHAR, location VARCHAR) |
SELECT margin FROM table_name_88 WHERE year > 1981 AND runner_s__up = "roberto de vicenzo" | What margin was in after 1981, and was Roberto De Vicenzo runner-up? | CREATE TABLE table_name_88 (margin VARCHAR, year VARCHAR, runner_s__up VARCHAR) |
SELECT class_aAA FROM table_name_58 WHERE class_aAAAA = duncanville AND school_year = "1993-94" | What is the class AAA of the 1993-94 school year with a class AAAAA of Duncanville? | CREATE TABLE table_name_58 (class_aAA VARCHAR, class_aAAAA VARCHAR, duncanville VARCHAR, school_year VARCHAR) |
SELECT MIN(laps) FROM table_name_31 WHERE constructor = "ferrari" AND grid > 2 AND driver = "luigi musso" | What were the lowest laps of Luigi Musso driving a Ferrari with a Grid larger than 2? | CREATE TABLE table_name_31 (laps INTEGER, driver VARCHAR, constructor VARCHAR, grid VARCHAR) |
SELECT opponent FROM table_name_38 WHERE location_attendance = "richmond academy" | What opponent is at Richmond Academy? | CREATE TABLE table_name_38 (opponent VARCHAR, location_attendance VARCHAR) |
SELECT COUNT(*) FROM EVENTS WHERE NOT event_id IN (SELECT event_id FROM Participants_in_Events) | How many events did not have any participants? | CREATE TABLE EVENTS (event_id VARCHAR); CREATE TABLE Participants_in_Events (event_id VARCHAR) |
SELECT record FROM table_name_33 WHERE home = "nuggets" | What is the record when the Nuggets are the home team? | CREATE TABLE table_name_33 (record VARCHAR, home VARCHAR) |
SELECT MAX(losses) FROM table_name_88 WHERE wins > 1 AND last_appearance = "2003" | What is the highest Losses, when Wins is greater than 1, and when Last Appearance is 2003? | CREATE TABLE table_name_88 (losses INTEGER, wins VARCHAR, last_appearance VARCHAR) |
SELECT county FROM table_name_3 WHERE median_family_income = "$79,331" | What County has a Median Family Income of $79,331? | CREATE TABLE table_name_3 (county VARCHAR, median_family_income VARCHAR) |
SELECT name, nationality, id FROM architect WHERE gender = 'male' ORDER BY name | List the name, nationality and id of all male architects ordered by their names lexicographically. | CREATE TABLE architect (name VARCHAR, nationality VARCHAR, id VARCHAR, gender VARCHAR) |
SELECT result FROM table_14984050_1 WHERE game_site = "Milwaukee County Stadium" | Name the result for milwaukee county stadium | CREATE TABLE table_14984050_1 (result VARCHAR, game_site VARCHAR) |
SELECT founder FROM manufacturers WHERE name LIKE 'S%' | Find the founder of the company whose name begins with the letter 'S'. | CREATE TABLE manufacturers (founder VARCHAR, name VARCHAR) |
SELECT to_par FROM table_name_6 WHERE place = "t1" AND player = "joey rassett" | What is To Par, when Place is "T1", and when Player is "Joey Rassett"? | CREATE TABLE table_name_6 (to_par VARCHAR, place VARCHAR, player VARCHAR) |
SELECT location FROM table_name_44 WHERE res = "win" AND opponent = "mike large" | Where was the result a win against Mike Large? | CREATE TABLE table_name_44 (location VARCHAR, res VARCHAR, opponent VARCHAR) |
SELECT opponents_in_the_final FROM table_22597626_17 WHERE score_in_the_final = "6–4, 7–6 2" | Who were the opponents in the final where the score in the final is 6–4, 7–6 2? | CREATE TABLE table_22597626_17 (opponents_in_the_final VARCHAR, score_in_the_final VARCHAR) |
SELECT MAX(fa_cup) FROM table_name_25 WHERE malaysia_cup = 0 AND player = "ahmad fouzee masuri" AND total > 0 | Which FA Cup is the highest one that has a Malaysia Cup of 0, and a Player of ahmad fouzee masuri, and a Total larger than 0? | CREATE TABLE table_name_25 (fa_cup INTEGER, total VARCHAR, malaysia_cup VARCHAR, player VARCHAR) |
SELECT date FROM table_name_77 WHERE mach = 0.662 | What Date has a Mach of 0.662? | CREATE TABLE table_name_77 (date VARCHAR, mach VARCHAR) |
SELECT leading_scorer FROM table_name_30 WHERE date = "february 26" | On February 26, who was the leading scorer? | CREATE TABLE table_name_30 (leading_scorer VARCHAR, date VARCHAR) |
SELECT league_a FROM table_name_47 WHERE fa_cup = "6 (20)" | What shows for the League when the FA Cup is 6 (20)? | CREATE TABLE table_name_47 (league_a VARCHAR, fa_cup VARCHAR) |
SELECT COUNT(2008) FROM table_name_82 WHERE 2006 = 6.9 AND 2007 < 7.1 | How many 2008s have 6.9 as a 2006, with a 2007 less than 7.1? | CREATE TABLE table_name_82 (Id VARCHAR) |
SELECT to_par FROM table_name_76 WHERE runner_s__up = "john senden" | When John Senden was the runner-up, what was the To Par? | CREATE TABLE table_name_76 (to_par VARCHAR, runner_s__up VARCHAR) |
SELECT start_source FROM table_name_47 WHERE started = "2 february" | what is the start source when started on 2 february? | CREATE TABLE table_name_47 (start_source VARCHAR, started VARCHAR) |
SELECT senator FROM table_name_72 WHERE state = "kentucky" | what is the senator in kentucky | CREATE TABLE table_name_72 (senator VARCHAR, state VARCHAR) |
SELECT series FROM table_name_4 WHERE date = "may 16" | Which series was on May 16? | CREATE TABLE table_name_4 (series VARCHAR, date VARCHAR) |
SELECT institution FROM table_name_85 WHERE enrollment < 1 OFFSET 000 | Which college's enrollment is less than 1,000? | CREATE TABLE table_name_85 (institution VARCHAR, enrollment INTEGER) |
SELECT COUNT(*) FROM AIRPORTS | How many airports do we have? | CREATE TABLE AIRPORTS (Id VARCHAR) |
SELECT score FROM table_name_39 WHERE loss = "tapani (0-1)" | what was the score in the loss to tapani (0-1)? | CREATE TABLE table_name_39 (score VARCHAR, loss VARCHAR) |
SELECT title FROM table_name_85 WHERE label = "origianal sound entertainment" | Which title has origianal sound entertainment as its label? | CREATE TABLE table_name_85 (title VARCHAR, label VARCHAR) |
SELECT 2011 FROM table_name_40 WHERE 2008 = "2r" | What is 2011, when 2008 is "2R"? | CREATE TABLE table_name_40 (Id VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.