schema stringlengths 32 158 | question stringlengths 27 164 | answer stringlengths 27 207 |
|---|---|---|
CREATE TABLE table_name_75 (year VARCHAR, rank VARCHAR) | What year did the rank of 31 happen in? | SELECT year FROM table_name_75 WHERE rank = "31" |
CREATE TABLE table_name_54 (tonnage VARCHAR, u_boats_destroyed__kuk_ VARCHAR, ships_sunk__pola_ VARCHAR) | What is the listed Tonnage that has U-boats destroyed (KuK) of 2 and Ships sunk (Pola) of (not recorded)? | SELECT tonnage FROM table_name_54 WHERE u_boats_destroyed__kuk_ = "2" AND ships_sunk__pola_ = "(not recorded)" |
CREATE TABLE table_15740666_6 (current_streak VARCHAR, last_meeting VARCHAR) | if they played last on 12/5/1987 what is their record | SELECT current_streak FROM table_15740666_6 WHERE last_meeting = "12/5/1987" |
CREATE TABLE table_1670921_1 (venue VARCHAR, batting_partners VARCHAR) | What is the venue for batting partners Mahela Jayawardene and Prasanna Jayawardene | SELECT venue FROM table_1670921_1 WHERE batting_partners = "Mahela Jayawardene and Prasanna Jayawardene" |
CREATE TABLE table_name_52 (flag VARCHAR, name VARCHAR) | What is the flag for Terkoeli? | SELECT flag FROM table_name_52 WHERE name = "terkoeli" |
CREATE TABLE table_24195232_1 (location VARCHAR, founded VARCHAR) | What is the location when founded was 1957? | SELECT location FROM table_24195232_1 WHERE founded = 1957 |
CREATE TABLE table_name_77 (date_founded VARCHAR, park_name VARCHAR) | how many parks are name beltzville state park? | SELECT COUNT(date_founded) FROM table_name_77 WHERE park_name = "beltzville state park" |
CREATE TABLE table_name_40 (earnings___$__ VARCHAR, player VARCHAR) | What amount of earnings does Tiger Woods have? | SELECT earnings___$__ FROM table_name_40 WHERE player = "tiger woods" |
CREATE TABLE table_name_56 (to_par VARCHAR, score VARCHAR) | What is the to par for the 69-70-72=211 score? | SELECT to_par FROM table_name_56 WHERE score = 69 - 70 - 72 = 211 |
CREATE TABLE table_name_99 (goals_for INTEGER, draws VARCHAR, points VARCHAR, losses VARCHAR, wins VARCHAR) | What is the average number of goals for entries with more than 12 losses, more than 10 wins, more than 3 draws, and fewer than 29 points? | SELECT AVG(goals_for) FROM table_name_99 WHERE losses > 12 AND wins > 10 AND points < 29 AND draws > 3 |
CREATE TABLE table_11207040_6 (date_of_appointment VARCHAR, outgoing_manager VARCHAR) | What are the dates of the outgoing manager colin hendry does appointments? | SELECT date_of_appointment FROM table_11207040_6 WHERE outgoing_manager = "Colin Hendry" |
CREATE TABLE table_1342249_5 (first_elected INTEGER) | What is the earliest years any of the incumbents were first elected? | SELECT MIN(first_elected) FROM table_1342249_5 |
CREATE TABLE table_name_82 (year INTEGER, best_finish VARCHAR) | what is the earliest year with the best finish t-65? | SELECT MIN(year) FROM table_name_82 WHERE best_finish = "t-65" |
CREATE TABLE table_name_88 (game_site VARCHAR, result VARCHAR) | Name the game site with result of w 20-14 | SELECT game_site FROM table_name_88 WHERE result = "w 20-14" |
CREATE TABLE table_name_88 (crowd VARCHAR, venue VARCHAR) | What is the Crowd for the Venue of Princes Park? | SELECT crowd FROM table_name_88 WHERE venue = "princes park" |
CREATE TABLE table_name_58 (games_played VARCHAR, wins VARCHAR, goals_conceded VARCHAR) | How many games have been played when there are 13 wins and 45 goals were conceded? | SELECT games_played FROM table_name_58 WHERE wins = 13 AND goals_conceded = 45 |
CREATE TABLE Claims (Date_Claim_Made VARCHAR, Date_Claim_Settled VARCHAR, Amount_Claimed INTEGER) | Among all the claims, which claims have a claimed amount larger than the average? List the date the claim was made and the date it was settled. | SELECT Date_Claim_Made, Date_Claim_Settled FROM Claims WHERE Amount_Claimed > (SELECT AVG(Amount_Claimed) FROM Claims) |
CREATE TABLE table_14154271_2 (rnd VARCHAR, lmp2_winning_team VARCHAR) | Jos verstappen jeroen bleekemolen is on Imp2 winning team where all are rnd. | SELECT rnd FROM table_14154271_2 WHERE lmp2_winning_team = "Jos Verstappen Jeroen Bleekemolen" |
CREATE TABLE table_name_87 (home_team VARCHAR, away_team VARCHAR) | What is the Home team with an Away team that is oxford united? | SELECT home_team FROM table_name_87 WHERE away_team = "oxford united" |
CREATE TABLE table_name_74 (death VARCHAR, birth VARCHAR, rank VARCHAR) | What year is the death for a birth of 1873 and higher than rank 28? | SELECT death FROM table_name_74 WHERE birth = 1873 AND rank > 28 |
CREATE TABLE table_16729457_17 (driver___passenger VARCHAR, position VARCHAR) | Name the driver passenger for position 4 | SELECT driver___passenger FROM table_16729457_17 WHERE position = 4 |
CREATE TABLE table_name_1 (year VARCHAR, director VARCHAR) | What is the year of the TV series directed by Soroush Sehat? | SELECT year FROM table_name_1 WHERE director = "soroush sehat" |
CREATE TABLE table_29778616_1 (price__usd_ INTEGER, model VARCHAR) | What is the price (usd) for the model pq32mu? | SELECT MIN(price__usd_) FROM table_29778616_1 WHERE model = "PQ32MU" |
CREATE TABLE table_name_18 (attendance INTEGER, date VARCHAR) | What was the attendance during the november 16, 1975 game? | SELECT MAX(attendance) FROM table_name_18 WHERE date = "november 16, 1975" |
CREATE TABLE table_name_68 (english_title VARCHAR, year VARCHAR, country VARCHAR) | What is the English title for 1984 from Sweden? | SELECT english_title FROM table_name_68 WHERE year = 1984 AND country = "sweden" |
CREATE TABLE table_name_27 (state VARCHAR, host VARCHAR) | Which state is University of Tennessee based in? | SELECT state FROM table_name_27 WHERE host = "university of tennessee" |
CREATE TABLE STUDENT (LName VARCHAR, Sex VARCHAR, Age VARCHAR) | Find the last name of female (sex is F) students in the descending order of age. | SELECT LName FROM STUDENT WHERE Sex = "F" ORDER BY Age DESC |
CREATE TABLE table_name_46 (date VARCHAR, tournament VARCHAR) | On what date was the Transitions Championship? | SELECT date FROM table_name_46 WHERE tournament = "transitions championship" |
CREATE TABLE table_2622469_1 (starts VARCHAR, avg_finish VARCHAR) | How many different starts had an average finish of 17.9? | SELECT COUNT(starts) FROM table_2622469_1 WHERE avg_finish = "17.9" |
CREATE TABLE table_21676617_1 (winning_time__km_rate_ VARCHAR, odds_of_winner VARCHAR) | What was the winning time in the year when the odds of the winner were 2.94? | SELECT winning_time__km_rate_ FROM table_21676617_1 WHERE odds_of_winner = "2.94" |
CREATE TABLE table_name_94 (competition VARCHAR, venue VARCHAR) | Which competition took place in Bangkok? | SELECT competition FROM table_name_94 WHERE venue = "bangkok" |
CREATE TABLE table_name_40 (venue VARCHAR, home_team VARCHAR) | What is the stadium of melbourne? | SELECT venue FROM table_name_40 WHERE home_team = "melbourne" |
CREATE TABLE table_name_86 (attendance VARCHAR, date VARCHAR) | What was the attendance on May 26? | SELECT attendance FROM table_name_86 WHERE date = "may 26" |
CREATE TABLE table_name_1 (terminus VARCHAR, line VARCHAR) | Which Terminus is on line 10? | SELECT terminus FROM table_name_1 WHERE line = "line 10" |
CREATE TABLE table_name_57 (home_team VARCHAR, venue VARCHAR) | What is the score for the home team for the venue glenferrie oval? | SELECT home_team AS score FROM table_name_57 WHERE venue = "glenferrie oval" |
CREATE TABLE table_22167196_1 (dfb_pokal VARCHAR, player VARCHAR) | How many dfb-pokal did kevin-prince boateng have? | SELECT COUNT(dfb_pokal) FROM table_22167196_1 WHERE player = "Kevin-Prince Boateng" |
CREATE TABLE table_name_5 (tournament VARCHAR, location VARCHAR) | What tournament was located in Colorado? | SELECT tournament FROM table_name_5 WHERE location = "colorado" |
CREATE TABLE table_name_42 (losses VARCHAR, against VARCHAR, wins VARCHAR) | What's the total losses that has more than 12 wins and 1017 against? | SELECT COUNT(losses) FROM table_name_42 WHERE against = 1017 AND wins > 12 |
CREATE TABLE table_name_71 (stage VARCHAR, mountains_classification VARCHAR, winner VARCHAR) | What was the Stage when Pascal Richard had the Mountains classification and Vladimir Poulnikov won? | SELECT stage FROM table_name_71 WHERE mountains_classification = "pascal richard" AND winner = "vladimir poulnikov" |
CREATE TABLE table_name_37 (round INTEGER, winner VARCHAR) | What is the average number of rounds for winner Rafael Cavalcante? | SELECT AVG(round) FROM table_name_37 WHERE winner = "rafael cavalcante" |
CREATE TABLE table_name_95 (surface VARCHAR, week VARCHAR) | Which Surface has a Week of march 1? | SELECT surface FROM table_name_95 WHERE week = "march 1" |
CREATE TABLE table_name_32 (date VARCHAR, result VARCHAR) | When was there a bye result? | SELECT date FROM table_name_32 WHERE result = "bye" |
CREATE TABLE table_1557974_1 (birthplace VARCHAR, debut VARCHAR) | Where were the wrestlers born who debuted in 2002-7? | SELECT birthplace FROM table_1557974_1 WHERE debut = "2002-7" |
CREATE TABLE table_name_23 (conference_titles VARCHAR, win__percentage VARCHAR) | What is Conference Titles, when Win % is .667? | SELECT conference_titles FROM table_name_23 WHERE win__percentage = ".667" |
CREATE TABLE table_name_95 (lost INTEGER, percentage VARCHAR, played VARCHAR) | what is the most lost games when the percentage is 50.00% and games played is less than 2? | SELECT MAX(lost) FROM table_name_95 WHERE percentage = "50.00%" AND played < 2 |
CREATE TABLE table_name_85 (city VARCHAR, score VARCHAR, venue VARCHAR) | Which City has a Score smaller than 30, and a Venue of aigburth? | SELECT city FROM table_name_85 WHERE score < 30 AND venue = "aigburth" |
CREATE TABLE table_name_41 (winner_or_2nd VARCHAR, weight VARCHAR, result VARCHAR) | What is the the name of the winner or 2nd with a weight more than 7.3, and the result was –? | SELECT winner_or_2nd FROM table_name_41 WHERE weight > 7.3 AND result = "–" |
CREATE TABLE table_name_55 (high_rebounds VARCHAR, score VARCHAR) | Who had the high rebounds when the score was l 85–102 (ot)? | SELECT high_rebounds FROM table_name_55 WHERE score = "l 85–102 (ot)" |
CREATE TABLE table_name_12 (issue INTEGER, writer VARCHAR, date VARCHAR) | What is the earliest issue Arnie Kogen wrote for in December 1964? | SELECT MIN(issue) FROM table_name_12 WHERE writer = "arnie kogen" AND date = "december 1964" |
CREATE TABLE table_name_24 (points_for VARCHAR, points VARCHAR, club VARCHAR) | What is Points, when Points is 60, and when Club is Bedwas RFC? | SELECT points_for FROM table_name_24 WHERE points = "60" AND club = "bedwas rfc" |
CREATE TABLE table_name_65 (to_par VARCHAR, country VARCHAR) | What is the to par of canada? | SELECT to_par FROM table_name_65 WHERE country = "canada" |
CREATE TABLE customers (payment_method VARCHAR) | How many different payment methods are there? | SELECT COUNT(DISTINCT payment_method) FROM customers |
CREATE TABLE table_10718631_2 (original_air_date VARCHAR, no_in_series VARCHAR) | When did the 113 episode air? | SELECT original_air_date FROM table_10718631_2 WHERE no_in_series = 113 |
CREATE TABLE table_name_65 (owner VARCHAR, frequency VARCHAR) | Who owns the station with the frequency FM 92.1? | SELECT owner FROM table_name_65 WHERE frequency = "fm 92.1" |
CREATE TABLE film (title VARCHAR, film_id VARCHAR); CREATE TABLE inventory (inventory_id VARCHAR, film_id VARCHAR); CREATE TABLE rental (inventory_id VARCHAR) | What is the film title and inventory id of the item in the inventory which was rented most frequently? | SELECT T1.title, T2.inventory_id FROM film AS T1 JOIN inventory AS T2 ON T1.film_id = T2.film_id JOIN rental AS T3 ON T2.inventory_id = T3.inventory_id GROUP BY T2.inventory_id ORDER BY COUNT(*) DESC LIMIT 1 |
CREATE TABLE table_name_44 (crowd VARCHAR, venue VARCHAR) | What was the attendance when the VFL played Lake Oval? | SELECT COUNT(crowd) FROM table_name_44 WHERE venue = "lake oval" |
CREATE TABLE submission (Author VARCHAR, Submission_ID VARCHAR); CREATE TABLE acceptance (Submission_ID VARCHAR, workshop_id VARCHAR) | Show the authors who have submissions to more than one workshop. | SELECT T2.Author FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID GROUP BY T2.Author HAVING COUNT(DISTINCT T1.workshop_id) > 1 |
CREATE TABLE table_name_63 (agg VARCHAR, team_1 VARCHAR) | What is Agg., when Team 1 is CD Elá Nguema? | SELECT agg FROM table_name_63 WHERE team_1 = "cd elá nguema" |
CREATE TABLE table_name_72 (score VARCHAR, money___$__ VARCHAR, player VARCHAR) | What is the score of player darren clarke, who has $112,500? | SELECT score FROM table_name_72 WHERE money___$__ = "112,500" AND player = "darren clarke" |
CREATE TABLE table_name_18 (games VARCHAR, event VARCHAR) | Tell me the games for men's 5000 metres | SELECT games FROM table_name_18 WHERE event = "men's 5000 metres" |
CREATE TABLE table_name_17 (laid_down VARCHAR, name VARCHAR) | What year was the USS Cambridge laid down? | SELECT laid_down FROM table_name_17 WHERE name = "uss cambridge" |
CREATE TABLE table_name_66 (album_number VARCHAR, chinese__simplified_ VARCHAR) | What is the album number for the record 情歌没有告诉你, simplified from the traditional Chinese name? | SELECT album_number FROM table_name_66 WHERE chinese__simplified_ = "情歌没有告诉你" |
CREATE TABLE table_name_99 (leading_scorer VARCHAR, date VARCHAR) | Who was the leading scorer on 9 January 2008? | SELECT leading_scorer FROM table_name_99 WHERE date = "9 january 2008" |
CREATE TABLE table_name_69 (club VARCHAR, lead VARCHAR) | Which club has Jamie Korab as Lead? | SELECT club FROM table_name_69 WHERE lead = "jamie korab" |
CREATE TABLE table_24426072_1 (team__number2 VARCHAR) | What was team number 2's Fluminense's 2nd leg? | SELECT 2 AS nd_leg FROM table_24426072_1 WHERE team__number2 = "Fluminense" |
CREATE TABLE table_name_6 (surface VARCHAR, tournament VARCHAR, date VARCHAR) | Tell me the surface for eastbourne 14 june 1999 | SELECT surface FROM table_name_6 WHERE tournament = "eastbourne" AND date = "14 june 1999" |
CREATE TABLE table_name_17 (competition VARCHAR, year VARCHAR) | What was the competition held in 2003? | SELECT competition FROM table_name_17 WHERE year = 2003 |
CREATE TABLE table_name_62 (country VARCHAR, score VARCHAR) | What country has a 70-73-70=213 score? | SELECT country FROM table_name_62 WHERE score = 70 - 73 - 70 = 213 |
CREATE TABLE table_17288845_7 (game INTEGER, date VARCHAR) | What is the number of the game that was played on January 19? | SELECT MAX(game) FROM table_17288845_7 WHERE date = "January 19" |
CREATE TABLE table_name_4 (pinnacle_height_planned VARCHAR, country VARCHAR, name VARCHAR) | How high is the Goldin Finance 117 building currently being build in China? | SELECT pinnacle_height_planned FROM table_name_4 WHERE country = "china" AND name = "goldin finance 117" |
CREATE TABLE table_name_47 (cuts_made VARCHAR, events INTEGER) | What is the total number of cuts made when the events are more than 3? | SELECT COUNT(cuts_made) FROM table_name_47 WHERE events > 3 |
CREATE TABLE table_12164707_1 (mens_doubles VARCHAR, womens_singles VARCHAR) | Who won the Men's Doubles when Guo Xin won the Women's Singles? | SELECT mens_doubles FROM table_12164707_1 WHERE womens_singles = "Guo Xin" |
CREATE TABLE table_name_12 (week VARCHAR, opponent VARCHAR, attendance VARCHAR) | How many weeks have an Opponent of at san francisco 49ers, and an Attendance smaller than 34,354? | SELECT COUNT(week) FROM table_name_12 WHERE opponent = "at san francisco 49ers" AND attendance < 34 OFFSET 354 |
CREATE TABLE table_11303072_9 (nationality VARCHAR, player VARCHAR) | Where is Adam Gilchrist from? | SELECT nationality FROM table_11303072_9 WHERE player = "Adam Gilchrist" |
CREATE TABLE table_1337525_1 (region_1 VARCHAR, region_4 VARCHAR, complete_series VARCHAR) | What is the region 1 where region 4 is tba is the complete eighth series? | SELECT region_1 FROM table_1337525_1 WHERE region_4 = "TBA" AND complete_series = "The Complete Eighth Series" |
CREATE TABLE table_name_33 (name VARCHAR, round VARCHAR) | Tell me the name for round of 1 | SELECT name FROM table_name_33 WHERE round = 1 |
CREATE TABLE table_name_98 (rank VARCHAR, attendance VARCHAR) | What is the Rank of the game with an Attendance of 93,039? | SELECT COUNT(rank) FROM table_name_98 WHERE attendance = 93 OFFSET 039 |
CREATE TABLE table_name_27 (written_by VARCHAR, season_no VARCHAR, series_no VARCHAR) | Who wrote the series number 49 with a season larger than 4? | SELECT written_by FROM table_name_27 WHERE season_no > 4 AND series_no = 49 |
CREATE TABLE table_1909647_2 (starts INTEGER, avg_finish VARCHAR) | What's the number of starts in the year with 19.3 average finish? | SELECT MIN(starts) FROM table_1909647_2 WHERE avg_finish = "19.3" |
CREATE TABLE table_24126518_2 (attendance INTEGER, final_score VARCHAR) | Name the least attendance for l 36–1 | SELECT MIN(attendance) FROM table_24126518_2 WHERE final_score = "L 36–1" |
CREATE TABLE table_name_34 (result VARCHAR, opponent VARCHAR) | What's the result of the game against Bye? | SELECT result FROM table_name_34 WHERE opponent = "bye" |
CREATE TABLE table_name_18 (leading_scorer VARCHAR, record VARCHAR) | What is the name of the leading scorer when the record was 9–6? | SELECT leading_scorer FROM table_name_18 WHERE record = "9–6" |
CREATE TABLE table_name_18 (player VARCHAR, position VARCHAR) | Which Player has a Position of forward? | SELECT player FROM table_name_18 WHERE position = "forward" |
CREATE TABLE table_name_33 (state VARCHAR, peak_population__year_ VARCHAR) | what is the state when the peak population (year) is 134995 (1950)? | SELECT state FROM table_name_33 WHERE peak_population__year_ = "134995 (1950)" |
CREATE TABLE table_26847237_3 (opposition VARCHAR, score VARCHAR) | Who is the opposition when the score is 37 - 28? | SELECT opposition FROM table_26847237_3 WHERE score = "37 - 28" |
CREATE TABLE table_name_59 (MIN VARCHAR, year VARCHAR, $25___1_4_oz VARCHAR) | WHAT IS THE LOWEST $50-1/2 OZ COIN WITH A 1997 YEAR AND $25-1/4 OZ LARGER THAN $27,100? | SELECT MIN AS $50___1_2_oz FROM table_name_59 WHERE year = 1997 AND $25___1_4_oz > 27 OFFSET 100 |
CREATE TABLE table_name_30 (player VARCHAR) | What is the 2007 Team with player Deshaun Foster? | SELECT 2007 AS _team FROM table_name_30 WHERE player = "deshaun foster" |
CREATE TABLE table_name_3 (penanced VARCHAR, number_of_autos_da_fé_with_known_sentences VARCHAR) | How many were penanced when the number with known sentences was 71 (1600–1773)? | SELECT penanced FROM table_name_3 WHERE number_of_autos_da_fé_with_known_sentences = "71 (1600–1773)" |
CREATE TABLE table_name_80 (copa_sudamericana INTEGER, others INTEGER) | What is the largest copa sudamericana number when the others number is less than 0? | SELECT MAX(copa_sudamericana) FROM table_name_80 WHERE others < 0 |
CREATE TABLE table_name_96 (viewers__m_ VARCHAR, share VARCHAR) | What is the average rating of viewers 18 to 49 where the total viewer count is 3.93 million and share less than 4? | SELECT AVG(18 AS _49) FROM table_name_96 WHERE viewers__m_ = 3.93 AND share < 4 |
CREATE TABLE table_name_9 (event VARCHAR, opponent VARCHAR) | what is the event when the opponent is yuji hisamatsu? | SELECT event FROM table_name_9 WHERE opponent = "yuji hisamatsu" |
CREATE TABLE Student (major VARCHAR) | Show all majors and corresponding number of students. | SELECT major, COUNT(*) FROM Student GROUP BY major |
CREATE TABLE technician (Starting_Year VARCHAR, Team VARCHAR) | Show the starting years shared by technicians from team "CLE" and "CWS". | SELECT Starting_Year FROM technician WHERE Team = "CLE" INTERSECT SELECT Starting_Year FROM technician WHERE Team = "CWS" |
CREATE TABLE table_name_79 (latitude VARCHAR, year_named VARCHAR, name VARCHAR) | Which Latitude has a Year named smaller than 1997, and a Name of aino planitia? | SELECT latitude FROM table_name_79 WHERE year_named < 1997 AND name = "aino planitia" |
CREATE TABLE table_name_86 (crowd VARCHAR, venue VARCHAR) | What was the crowd size at the moorabbin oval venue? | SELECT COUNT(crowd) FROM table_name_86 WHERE venue = "moorabbin oval" |
CREATE TABLE table_name_49 (tries INTEGER, player VARCHAR, points VARCHAR) | How many tries did the player Paul Sykes take when he earned 0 points? | SELECT MAX(tries) FROM table_name_49 WHERE player = "paul sykes" AND points > 0 |
CREATE TABLE table_name_28 (attendance VARCHAR, result VARCHAR) | How many were in attendance of the game with l 26-21 result? | SELECT attendance FROM table_name_28 WHERE result = "l 26-21" |
CREATE TABLE table_name_97 (chart_no INTEGER, date VARCHAR) | What is the average chart number for 11/1965? | SELECT AVG(chart_no) FROM table_name_97 WHERE date = "11/1965" |
CREATE TABLE table_name_8 (height_of_bridge_structure VARCHAR, opened VARCHAR, name VARCHAR) | How tall is the Anqing Bridge which opened prior to 2011? | SELECT height_of_bridge_structure FROM table_name_8 WHERE opened < 2011 AND name = "anqing bridge" |
CREATE TABLE table_16684420_2 (stolen_ends_against INTEGER, country VARCHAR, Japan VARCHAR) | What is the maximum number of stolen ends against for Japan? | SELECT MAX(stolen_ends_against) FROM table_16684420_2 WHERE country = Japan |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.