question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the name of the train numbered less than 6 before 1993?
CREATE TABLE table_name_41 (name VARCHAR, number VARCHAR, date VARCHAR)
SELECT name FROM table_name_41 WHERE number < 6 AND date < 1993
Name the number of date for w 107–97 (ot)
CREATE TABLE table_23274514_7 (date VARCHAR, score VARCHAR)
SELECT COUNT(date) FROM table_23274514_7 WHERE score = "W 107–97 (OT)"
How many wins were there in the 2000 season in the central division with less than 81 losses?
CREATE TABLE table_name_85 (wins INTEGER, losses VARCHAR, division VARCHAR, reds_season VARCHAR)
SELECT AVG(wins) FROM table_name_85 WHERE division = "central" AND reds_season < 2000 AND losses < 81
How many games have a Record of 7–6–3, and Points smaller than 17?
CREATE TABLE table_name_74 (game VARCHAR, record VARCHAR, points VARCHAR)
SELECT COUNT(game) FROM table_name_74 WHERE record = "7–6–3" AND points < 17
In 1950 what is the average rank?
CREATE TABLE table_name_40 (rank INTEGER, year VARCHAR)
SELECT AVG(rank) FROM table_name_40 WHERE year = 1950
What is the highest game that has July 31 as the date?
CREATE TABLE table_name_6 (game INTEGER, date VARCHAR)
SELECT MAX(game) FROM table_name_6 WHERE date = "july 31"
What is the percentage of votes received by the party of family rights?
CREATE TABLE table_name_88 (_percentage_of_votes VARCHAR, party VARCHAR)
SELECT _percentage_of_votes FROM table_name_88 WHERE party = "family rights"
Which Crew has Comments of daggerboards. design: roy seaman?
CREATE TABLE table_name_49 (crew VARCHAR, comments VARCHAR)
SELECT crew FROM table_name_49 WHERE comments = "daggerboards. design: roy seaman"
What is the time in a heat smaller than 5, in Lane 5, for Vietnam?
CREATE TABLE table_name_88 (time VARCHAR, nationality VARCHAR, heat VARCHAR, lane VARCHAR)
SELECT time FROM table_name_88 WHERE heat < 5 AND lane = 5 AND nationality = "vietnam"
What is Sandy Lyle's To Par?
CREATE TABLE table_name_76 (to_par VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_76 WHERE player = "sandy lyle"
What is Frequency, when Part Number(s) is au80610006240aa?
CREATE TABLE table_name_11 (frequency VARCHAR, part_number_s_ VARCHAR)
SELECT frequency FROM table_name_11 WHERE part_number_s_ = "au80610006240aa"
Find the name and budget of departments whose budgets are more than the average budget.
CREATE TABLE department (dept_name VARCHAR, budget INTEGER)
SELECT dept_name, budget FROM department WHERE budget > (SELECT AVG(budget) FROM department)
How many Laps have Grid larger than 14, and a Rider of sylvain guintoli?
CREATE TABLE table_name_51 (laps VARCHAR, grid VARCHAR, rider VARCHAR)
SELECT COUNT(laps) FROM table_name_51 WHERE grid > 14 AND rider = "sylvain guintoli"
What is the position for round 5 from alabama state?
CREATE TABLE table_name_39 (position VARCHAR, round VARCHAR, college VARCHAR)
SELECT position FROM table_name_39 WHERE round = 5 AND college = "alabama state"
What is the Intergiro classification of Nicolaj bo Larsen, who has a Fabrizio guidi point classification?
CREATE TABLE table_name_34 (intergiro_classification VARCHAR, points_classification VARCHAR, winner VARCHAR)
SELECT intergiro_classification FROM table_name_34 WHERE points_classification = "fabrizio guidi" AND winner = "nicolaj bo larsen"
For mid-hill zone what is the altitude?
CREATE TABLE table_10638523_1 (mid_hill_zone VARCHAR, particulars_and_characteristics VARCHAR)
SELECT mid_hill_zone FROM table_10638523_1 WHERE particulars_and_characteristics = "Altitude"
What is the winning coach total number if the top team in regular season (points) is the Kansas City Spurs (110 points)?
CREATE TABLE table_237757_3 (winning_coach VARCHAR, top_team_in_regular_season__points_ VARCHAR)
SELECT COUNT(winning_coach) FROM table_237757_3 WHERE top_team_in_regular_season__points_ = "Kansas City Spurs (110 points)"
Did the Bulls win or lose at Valley Parade?
CREATE TABLE table_name_84 (result VARCHAR, venue VARCHAR)
SELECT result FROM table_name_84 WHERE venue = "valley parade"
Which Genre has an English title (Chinese title) of the romance of the white hair maiden 白髮魔女傳?
CREATE TABLE table_name_92 (genre VARCHAR, english_title__chinese_title_ VARCHAR)
SELECT genre FROM table_name_92 WHERE english_title__chinese_title_ = "the romance of the white hair maiden 白髮魔女傳"
Which title was developed by Battlecry Studios?
CREATE TABLE table_name_96 (title VARCHAR, developer VARCHAR)
SELECT title FROM table_name_96 WHERE developer = "battlecry studios"
Name the gold coast which has an auckland of no and melbourne of yes
CREATE TABLE table_name_88 (gold_coast VARCHAR, auckland VARCHAR, melbourne VARCHAR)
SELECT gold_coast FROM table_name_88 WHERE auckland = "no" AND melbourne = "yes"
What was the largest crowd that was in attendance for fitzroy?
CREATE TABLE table_name_58 (crowd INTEGER, home_team VARCHAR)
SELECT MAX(crowd) FROM table_name_58 WHERE home_team = "fitzroy"
What's Yotam Halperin's position?
CREATE TABLE table_12962773_2 (position VARCHAR, player VARCHAR)
SELECT position FROM table_12962773_2 WHERE player = "Yotam Halperin"
What is the highest played when there was less than 74 goals against and points 1 of 36 2?
CREATE TABLE table_name_30 (played INTEGER, points_1 VARCHAR, goals_against VARCHAR)
SELECT MAX(played) FROM table_name_30 WHERE points_1 = "36 2" AND goals_against < 74
What is the organized date of the stake with an occupation of senior buyer for Wal-mart?
CREATE TABLE table_name_67 (organized VARCHAR, occupation VARCHAR)
SELECT organized FROM table_name_67 WHERE occupation = "senior buyer for wal-mart"
Who was the leading scorer on April 9, 2008?
CREATE TABLE table_name_34 (leading_scorer VARCHAR, date VARCHAR)
SELECT leading_scorer FROM table_name_34 WHERE date = "april 9, 2008"
What was the first year he placed 12th
CREATE TABLE table_name_9 (year INTEGER, result VARCHAR)
SELECT MIN(year) FROM table_name_9 WHERE result = "12th"
What is City, when ASTC Member is No, when State is California, and when AAM Member is Yes?
CREATE TABLE table_name_62 (city VARCHAR, aam_member VARCHAR, astc_member VARCHAR, state VARCHAR)
SELECT city FROM table_name_62 WHERE astc_member = "no" AND state = "california" AND aam_member = "yes"
What is the debut year for the player with fewer than 54 games, fewer than 8 goals and 1989 at club?
CREATE TABLE table_name_6 (debut_year INTEGER, goals VARCHAR, games VARCHAR, years_at_club VARCHAR)
SELECT AVG(debut_year) FROM table_name_6 WHERE games < 54 AND years_at_club = "1989" AND goals < 8
Tell me the opponent for attendance of 55,527
CREATE TABLE table_name_24 (opponent VARCHAR, attendance VARCHAR)
SELECT opponent FROM table_name_24 WHERE attendance = "55,527"
How many yards per attempt have net yards greater than 631?
CREATE TABLE table_name_17 (yards_per_attempt INTEGER, net_yards INTEGER)
SELECT SUM(yards_per_attempt) FROM table_name_17 WHERE net_yards > 631
Which players were born in 1983 and play as forward position?
CREATE TABLE table_23670057_5 (player VARCHAR, year_born VARCHAR, position VARCHAR)
SELECT player FROM table_23670057_5 WHERE year_born = 1983 AND position = "Forward"
The graduate assistant who was in the 1st year at CU has what experience?
CREATE TABLE table_name_29 (experience VARCHAR, year_at_cu VARCHAR, position VARCHAR)
SELECT experience FROM table_name_29 WHERE year_at_cu = "1st" AND position = "graduate assistant"
Name the language that has number of 14
CREATE TABLE table_name_69 (language VARCHAR, number VARCHAR)
SELECT language FROM table_name_69 WHERE number = "14"
What was the 200-metre time for the swimmer from Slovenia in lane 9?
CREATE TABLE table_name_15 (time VARCHAR, nationality VARCHAR, lane VARCHAR)
SELECT COUNT(time) FROM table_name_15 WHERE nationality = "slovenia" AND lane < 9
Name the D 41 √ for having D 43 of r 13
CREATE TABLE table_name_20 (d_41_√ VARCHAR, d_43_o VARCHAR)
SELECT d_41_√ FROM table_name_20 WHERE d_43_o = "r 13"
If the try bonus was 5 what was the try against score?
CREATE TABLE table_name_99 (tries_against VARCHAR, try_bonus VARCHAR)
SELECT tries_against FROM table_name_99 WHERE try_bonus = "5"
What did Taiwan score?
CREATE TABLE table_name_1 (score VARCHAR, country VARCHAR)
SELECT score FROM table_name_1 WHERE country = "taiwan"
Which storm has a clash of 3 and a dance of 4?
CREATE TABLE table_name_58 (storm VARCHAR, dance VARCHAR, clash VARCHAR)
SELECT storm FROM table_name_58 WHERE dance = "4" AND clash = "3"
name the team for 36-29 record
CREATE TABLE table_27902171_8 (team VARCHAR, record VARCHAR)
SELECT team FROM table_27902171_8 WHERE record = "36-29"
Which 1995's tournament was the French Open?
CREATE TABLE table_name_61 (tournament VARCHAR)
SELECT 1995 FROM table_name_61 WHERE tournament = "french open"
What is the Scoring rank when there are less than 21 events played with a rank of n/a in years less than 2011?
CREATE TABLE table_name_19 (scoring_rank VARCHAR, year VARCHAR, events_played VARCHAR, rank VARCHAR)
SELECT scoring_rank FROM table_name_19 WHERE events_played < 21 AND rank = "n/a" AND year < 2011
What is the number of races having top 5s over 2 and average starts of 6.5?
CREATE TABLE table_name_51 (races VARCHAR, top_5 VARCHAR, avg_start VARCHAR)
SELECT races FROM table_name_51 WHERE top_5 > 2 AND avg_start = 6.5
Which Rank has a Total larger than 30, and a Bronze of 14?
CREATE TABLE table_name_61 (rank INTEGER, total VARCHAR, bronze VARCHAR)
SELECT AVG(rank) FROM table_name_61 WHERE total > 30 AND bronze = 14
Which Location has a Club of delfines ucv?
CREATE TABLE table_name_96 (location VARCHAR, club VARCHAR)
SELECT location FROM table_name_96 WHERE club = "delfines ucv"
Tell me the home team for venue of mcg
CREATE TABLE table_name_70 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_70 WHERE venue = "mcg"
What's the record for a game past 44 against the Dallas Stars with more than 54 points?
CREATE TABLE table_name_25 (record VARCHAR, opponent VARCHAR, points VARCHAR, game VARCHAR)
SELECT record FROM table_name_25 WHERE points > 54 AND game > 44 AND opponent = "dallas stars"
What date has 79-48 as the record?
CREATE TABLE table_name_47 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_47 WHERE record = "79-48"
Which opponent has a week smaller than 15, and a Result of l 23-17?
CREATE TABLE table_name_48 (opponent VARCHAR, week VARCHAR, result VARCHAR)
SELECT opponent FROM table_name_48 WHERE week < 15 AND result = "l 23-17"
What is the score of the game on February 26 with the Chicago black hawks as the home team and the New York Rangers as the visitor team?
CREATE TABLE table_name_59 (score VARCHAR, date VARCHAR, home VARCHAR, visitor VARCHAR)
SELECT score FROM table_name_59 WHERE home = "chicago black hawks" AND visitor = "new york rangers" AND date = "february 26"
What was Fitzroy score at their home stadium?
CREATE TABLE table_name_25 (home_team VARCHAR)
SELECT home_team AS score FROM table_name_25 WHERE home_team = "fitzroy"
Which 2010 stat featured the tournament of the Olympic Games?
CREATE TABLE table_name_2 (tournament VARCHAR)
SELECT 2010 FROM table_name_2 WHERE tournament = "olympic games"
What is the highest total medals of russia, which has more than 1 silver and more than 6 bronze medals?
CREATE TABLE table_name_83 (total INTEGER, bronze VARCHAR, silver VARCHAR, nation VARCHAR)
SELECT MAX(total) FROM table_name_83 WHERE silver > 1 AND nation = "russia" AND bronze > 6
What TV season was the 1st season?
CREATE TABLE table_299121_2 (tv_season VARCHAR, season VARCHAR)
SELECT tv_season FROM table_299121_2 WHERE season = "1st"
What are all the operating systems for sbagen?
CREATE TABLE table_15038373_1 (operating_systems VARCHAR, software VARCHAR)
SELECT operating_systems FROM table_15038373_1 WHERE software = "SBaGen"
Which UEFA confederation member had a rank more than 17 and caps of 114?
CREATE TABLE table_name_32 (name VARCHAR, caps VARCHAR, rank VARCHAR, confederation VARCHAR)
SELECT name FROM table_name_32 WHERE rank > 17 AND confederation = "uefa" AND caps = 114
What was the home team score at Richmond's away game against Footscray?
CREATE TABLE table_name_17 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_17 WHERE away_team = "richmond"
What is the Flattening ratio associated with the Equatorial diameter of 49,528km?
CREATE TABLE table_name_79 (flattening_ratio VARCHAR, equatorial_diameter VARCHAR)
SELECT flattening_ratio FROM table_name_79 WHERE equatorial_diameter = "49,528km"
What was the decision of the game when the Lightning had a record of 6–8–1?
CREATE TABLE table_name_84 (decision VARCHAR, record VARCHAR)
SELECT decision FROM table_name_84 WHERE record = "6–8–1"
What is the visiting team of Melbourne's score?
CREATE TABLE table_name_39 (away_team VARCHAR)
SELECT away_team AS score FROM table_name_39 WHERE away_team = "melbourne"
How many pac-12 sports are shown for california polytechnic state university?
CREATE TABLE table_27816698_2 (pac_12_sports VARCHAR, institution VARCHAR)
SELECT COUNT(pac_12_sports) FROM table_27816698_2 WHERE institution = "California Polytechnic State University"
How many deciles have Years of 9–13?
CREATE TABLE table_name_68 (decile VARCHAR, years VARCHAR)
SELECT COUNT(decile) FROM table_name_68 WHERE years = "9–13"
What was the latest year with a position of 1st at Maputo, Mozambique?
CREATE TABLE table_name_60 (year INTEGER, position VARCHAR, venue VARCHAR)
SELECT MAX(year) FROM table_name_60 WHERE position = "1st" AND venue = "maputo, mozambique"
What is the number of bonus points when there are 2 drawn and the points against is 599?
CREATE TABLE table_name_83 (bonus_points VARCHAR, drawn VARCHAR, points_against VARCHAR)
SELECT bonus_points FROM table_name_83 WHERE drawn = "2" AND points_against = "599"
Name the south american rank for venezuela
CREATE TABLE table_2249087_1 (south_american_rank INTEGER, nation VARCHAR)
SELECT MIN(south_american_rank) FROM table_2249087_1 WHERE nation = "Venezuela"
Which disbanded is in the ahl league?
CREATE TABLE table_name_73 (disbanded VARCHAR, league VARCHAR)
SELECT disbanded FROM table_name_73 WHERE league = "ahl"
What is the cost per capita in the Courtenay municipality?
CREATE TABLE table_12340907_1 (cost_per_capita VARCHAR, municipality VARCHAR)
SELECT cost_per_capita FROM table_12340907_1 WHERE municipality = "Courtenay"
Which name has a Kanji of 朧?
CREATE TABLE table_name_77 (name VARCHAR, kanji VARCHAR)
SELECT name FROM table_name_77 WHERE kanji = "朧"
Name the minimum number disc for number in series for 14
CREATE TABLE table_15430606_1 (no_disc INTEGER, no_in_series VARCHAR)
SELECT MIN(no_disc) FROM table_15430606_1 WHERE no_in_series = "14"
what is the average total when silver is more than 2, bronze is 12 and gold is less than 12?
CREATE TABLE table_name_64 (total INTEGER, gold VARCHAR, silver VARCHAR, bronze VARCHAR)
SELECT AVG(total) FROM table_name_64 WHERE silver > 2 AND bronze = 12 AND gold < 12
What is the French word where the German word is filtern?
CREATE TABLE table_15040_8 (french VARCHAR, german VARCHAR)
SELECT french FROM table_15040_8 WHERE german = "filtern"
What is the score in the final with a hard surface and is against Hiromi Nagano?
CREATE TABLE table_name_60 (score_in_the_final VARCHAR, surface VARCHAR, opponent_in_the_final VARCHAR)
SELECT score_in_the_final FROM table_name_60 WHERE surface = "hard" AND opponent_in_the_final = "hiromi nagano"
Can you tell me the highest DCSF number that has the Name of field, and the Ofsted number larger than 117160?
CREATE TABLE table_name_52 (dcsf_number INTEGER, name VARCHAR, ofsted_number VARCHAR)
SELECT MAX(dcsf_number) FROM table_name_52 WHERE name = "field" AND ofsted_number > 117160
What was the location and attendance when lebron james (10) had the high assists?
CREATE TABLE table_27713030_16 (location_attendance VARCHAR, high_assists VARCHAR)
SELECT location_attendance FROM table_27713030_16 WHERE high_assists = "LeBron James (10)"
How many distinct parties are there for representatives?
CREATE TABLE representative (Party VARCHAR)
SELECT COUNT(DISTINCT Party) FROM representative
Which class to 1928 value had years of manufacture of 1921/23 and class from 1928 of BCi-21?
CREATE TABLE table_name_21 (class_to_1928 VARCHAR, year_s__of_manufacture VARCHAR, class_from_1928 VARCHAR)
SELECT class_to_1928 FROM table_name_21 WHERE year_s__of_manufacture = "1921/23" AND class_from_1928 = "bci-21"
What is the score of the player from fiji?
CREATE TABLE table_name_6 (score VARCHAR, country VARCHAR)
SELECT score FROM table_name_6 WHERE country = "fiji"
What was the away team when the game was at corio oval?
CREATE TABLE table_name_53 (away_team VARCHAR, venue VARCHAR)
SELECT away_team FROM table_name_53 WHERE venue = "corio oval"
which section did seymour halpern run in
CREATE TABLE table_1341865_34 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_1341865_34 WHERE incumbent = "Seymour Halpern"
What is Finish, when Year(s) Won is "1962 , 1967"?
CREATE TABLE table_name_58 (finish VARCHAR, year_s__won VARCHAR)
SELECT finish FROM table_name_58 WHERE year_s__won = "1962 , 1967"
What is the School of Sussex Tech's Team?
CREATE TABLE table_name_31 (team VARCHAR, school VARCHAR)
SELECT team FROM table_name_31 WHERE school = "sussex tech"
what year did north carolina institution join the acc?
CREATE TABLE table_28744929_1 (joined_acc INTEGER, institution VARCHAR)
SELECT MAX(joined_acc) FROM table_28744929_1 WHERE institution = "North Carolina"
What is the highest overall for a round larger than 8 for pavol demitra?
CREATE TABLE table_name_40 (overall INTEGER, round VARCHAR, player VARCHAR)
SELECT MAX(overall) FROM table_name_40 WHERE round > 8 AND player = "pavol demitra"
Name the note for catalog of 32xa-106
CREATE TABLE table_name_73 (note VARCHAR, catalog VARCHAR)
SELECT note FROM table_name_73 WHERE catalog = "32xa-106"
What was the 1st leg for Team 2, Slovan Liberec?
CREATE TABLE table_name_79 (team_2 VARCHAR)
SELECT 1 AS st_leg FROM table_name_79 WHERE team_2 = "slovan liberec"
Which to par has a total less than 296?
CREATE TABLE table_name_5 (to_par VARCHAR, total INTEGER)
SELECT to_par FROM table_name_5 WHERE total < 296
What's the name of the award that Edward Jeffreys was the writer?
CREATE TABLE table_name_64 (award VARCHAR, writer_s_ VARCHAR)
SELECT award FROM table_name_64 WHERE writer_s_ = "edward jeffreys"
The minimum average number of dancers is 34.1 how many times
CREATE TABLE table_1354805_3 (number_of_dances INTEGER, average VARCHAR)
SELECT MIN(number_of_dances) FROM table_1354805_3 WHERE average = "34.1"
What's the built date when the CR number is more than 940 and the LMS number is 14760?
CREATE TABLE table_name_57 (built VARCHAR, cr_no VARCHAR, lms_no VARCHAR)
SELECT built FROM table_name_57 WHERE cr_no > 940 AND lms_no = 14760
What was the lowest placement with a final of 23.92?
CREATE TABLE table_name_38 (placement INTEGER, final VARCHAR)
SELECT MIN(placement) FROM table_name_38 WHERE final = "23.92"
What location had a year of 1971 and a city of Tokyo?
CREATE TABLE table_name_88 (location VARCHAR, year VARCHAR, city VARCHAR)
SELECT location FROM table_name_88 WHERE year = 1971 AND city = "tokyo"
Rank larger than 8, and a Rider of chris barrett is what team?
CREATE TABLE table_name_87 (team VARCHAR, rank VARCHAR, rider VARCHAR)
SELECT team FROM table_name_87 WHERE rank > 8 AND rider = "chris barrett"
what is the tournament when the winning score is –9 (69-69-70-71=279)?
CREATE TABLE table_name_84 (tournament VARCHAR, winning_score VARCHAR)
SELECT tournament FROM table_name_84 WHERE winning_score = –9(69 - 69 - 70 - 71 = 279)
Who was the champion in the match where C.A. Palmer was the runner-up?
CREATE TABLE table_name_80 (champion VARCHAR, runner_up VARCHAR)
SELECT champion FROM table_name_80 WHERE runner_up = "c.a. palmer"
What is the high lap total for pedro diniz?
CREATE TABLE table_name_24 (laps INTEGER, driver VARCHAR)
SELECT MAX(laps) FROM table_name_24 WHERE driver = "pedro diniz"
Name the number of regular judge when host is bernie chan
CREATE TABLE table_1597866_3 (regular_judge VARCHAR, host VARCHAR)
SELECT COUNT(regular_judge) FROM table_1597866_3 WHERE host = "Bernie Chan"
In the US Open championship and the outcome is runner-up, what is the minimum year?
CREATE TABLE table_22597626_2 (year INTEGER, outcome VARCHAR, championship VARCHAR)
SELECT MIN(year) FROM table_22597626_2 WHERE outcome = "Runner-up" AND championship = "US Open"
What is the total average with 54 total points and a rank less than 10?
CREATE TABLE table_name_34 (average VARCHAR, total_points VARCHAR, rank_by_average VARCHAR)
SELECT COUNT(average) FROM table_name_34 WHERE total_points = 54 AND rank_by_average < 10
What is the venue of the match with a w result on 3 March 2010?
CREATE TABLE table_name_61 (venue VARCHAR, result VARCHAR, date VARCHAR)
SELECT venue FROM table_name_61 WHERE result = "w" AND date = "3 march 2010"
What is the Location with a county of 30 Hancock?
CREATE TABLE table_name_28 (location VARCHAR, county VARCHAR)
SELECT location FROM table_name_28 WHERE county = "30 hancock"