question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the date of the game where Geelong was the away team?
CREATE TABLE table_name_43 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_43 WHERE away_team = "geelong"
What was his minimum number wins in a single year?
CREATE TABLE table_25557880_1 (wins INTEGER)
SELECT MIN(wins) FROM table_25557880_1
What is the poor law union for the Barnahely towland?
CREATE TABLE table_30120619_1 (poor_law_union VARCHAR, townland VARCHAR)
SELECT poor_law_union FROM table_30120619_1 WHERE townland = "Barnahely"
What was the average speed where lap four's time was 22.9049?
CREATE TABLE table_23018775_3 (avg_speed VARCHAR, lap_four VARCHAR)
SELECT avg_speed FROM table_23018775_3 WHERE lap_four = "22.9049"
What was the result for Paris(48-byes) for 3 seed?
CREATE TABLE table_20711545_1 (paris__48___byes_ VARCHAR, seed VARCHAR)
SELECT paris__48___byes_ FROM table_20711545_1 WHERE seed = 3
How many trains depart at 17:30?
CREATE TABLE table_27011761_2 (train_no VARCHAR, departure VARCHAR)
SELECT COUNT(train_no) FROM table_27011761_2 WHERE departure = "17:30"
What is the minimum area id the 2011 population is 3067549?
CREATE TABLE table_2168295_1 (area__km²_ INTEGER, population__2011_ VARCHAR)
SELECT MIN(area__km²_) FROM table_2168295_1 WHERE population__2011_ = 3067549
What is the record at the neutral site for when the overall record is ui, 27-16?
CREATE TABLE table_16201038_4 (at_neutral_site VARCHAR, overall_record VARCHAR)
SELECT at_neutral_site FROM table_16201038_4 WHERE overall_record = "UI, 27-16"
What is the high lap total for cards with a grid larger than 21, and a Time/Retired of +2 laps?
CREATE TABLE table_name_91 (laps INTEGER, grid VARCHAR, time_retired VARCHAR)
SELECT MAX(laps) FROM table_name_91 WHERE grid > 21 AND time_retired = "+2 laps"
What was Australia's place?
CREATE TABLE table_name_99 (place VARCHAR, country VARCHAR)
SELECT place FROM table_name_99 WHERE country = "australia"
Name the number of going to for thurlby, braceborough spa at departure being 16.50
CREATE TABLE table_17200372_2 (going_to VARCHAR, calling_at VARCHAR, departure VARCHAR)
SELECT COUNT(going_to) FROM table_17200372_2 WHERE calling_at = "Thurlby, Braceborough Spa" AND departure = "16.50"
The English translation of Sing has what average points?
CREATE TABLE table_name_86 (points INTEGER, english_translation VARCHAR)
SELECT AVG(points) FROM table_name_86 WHERE english_translation = "sing"
What is the rank of Club Valencia with a U-17 Caps of 20?
CREATE TABLE table_name_17 (rank VARCHAR, club_s_ VARCHAR, u_17_caps VARCHAR)
SELECT COUNT(rank) FROM table_name_17 WHERE club_s_ = "valencia" AND u_17_caps = 20
How many schools did Bubba Starling attend?
CREATE TABLE table_11677100_17 (school VARCHAR, player VARCHAR)
SELECT COUNT(school) FROM table_11677100_17 WHERE player = "Bubba Starling"
What's the Bronze that's also got a Godl of Kim Woo-Jin?
CREATE TABLE table_name_75 (bronze VARCHAR, gold VARCHAR)
SELECT bronze FROM table_name_75 WHERE gold = "kim woo-jin"
What are the results of Format single on March 21?
CREATE TABLE table_name_34 (result_s_ VARCHAR, format_s_ VARCHAR, date VARCHAR)
SELECT result_s_ FROM table_name_34 WHERE format_s_ = "single" AND date = "march 21"
How many total families are there in regions with 5.8 percent of the population being made up of deportees?
CREATE TABLE table_16048129_5 (number_of_families VARCHAR, _percentage_of_total_deportees VARCHAR)
SELECT COUNT(number_of_families) FROM table_16048129_5 WHERE _percentage_of_total_deportees = "5.8"
what is the rank (night) when the rating is more than 4.3 and the viewers (millions) is more than 10.72?
CREATE TABLE table_name_29 (rank__night_ INTEGER, rating VARCHAR, viewers__millions_ VARCHAR)
SELECT AVG(rank__night_) FROM table_name_29 WHERE rating > 4.3 AND viewers__millions_ > 10.72
Which To par has a Player of emlyn aubrey?
CREATE TABLE table_name_22 (to_par VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_22 WHERE player = "emlyn aubrey"
What is the height of the person born before 1975?
CREATE TABLE table_name_57 (height VARCHAR, year_born INTEGER)
SELECT height FROM table_name_57 WHERE year_born < 1975
Which position has john keane as the player?
CREATE TABLE table_name_15 (position VARCHAR, player VARCHAR)
SELECT position FROM table_name_15 WHERE player = "john keane"
What was the fewest entrants in an event won by Grant Hinkle?
CREATE TABLE table_name_90 (entrants INTEGER, winner VARCHAR)
SELECT MIN(entrants) FROM table_name_90 WHERE winner = "grant hinkle"
What lowest bronze has a total of 3, a Nation of hungary, and a Gold smaller than 0?
CREATE TABLE table_name_52 (bronze INTEGER, gold VARCHAR, total VARCHAR, nation VARCHAR)
SELECT MIN(bronze) FROM table_name_52 WHERE total = 3 AND nation = "hungary" AND gold < 0
Who did wilson reis fight against that lasted less than 3 rounds with a time of 1:02?
CREATE TABLE table_name_25 (opponent VARCHAR, round VARCHAR, time VARCHAR)
SELECT opponent FROM table_name_25 WHERE round < 3 AND time = "1:02"
what is 2001 when the year is ebitda and 2009 is less than 3,600?
CREATE TABLE table_name_73 (year VARCHAR)
SELECT SUM(2001) FROM table_name_73 WHERE year = "ebitda" AND 2009 < 3 OFFSET 600
What college did Ray Graves attend?
CREATE TABLE table_name_2 (college VARCHAR, name VARCHAR)
SELECT college FROM table_name_2 WHERE name = "ray graves"
What is the lowest disposable USD 2011?
CREATE TABLE table_24486462_1 (disposable_usd_2011 INTEGER)
SELECT MIN(disposable_usd_2011) FROM table_24486462_1
What was the attendance on 31 January 2009 when the opponent was Airdrie United?
CREATE TABLE table_name_33 (attendance INTEGER, opponent VARCHAR, date VARCHAR)
SELECT AVG(attendance) FROM table_name_33 WHERE opponent = "airdrie united" AND date = "31 january 2009"
What country was the player with the score line 69-71-72-69=281 from?
CREATE TABLE table_name_6 (country VARCHAR, score VARCHAR)
SELECT country FROM table_name_6 WHERE score = 69 - 71 - 72 - 69 = 281
What instruments does the the song "Le Pop" use?
CREATE TABLE instruments (songid VARCHAR); CREATE TABLE songs (songid VARCHAR)
SELECT instrument FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Le Pop"
What arena does the team play at that has Michael Wales as the captain?
CREATE TABLE table_2384331_1 (arena VARCHAR, captain VARCHAR)
SELECT arena FROM table_2384331_1 WHERE captain = "Michael Wales"
How many stations are transmitted on frequency 7 uhf?
CREATE TABLE table_1601792_4 (transmitted VARCHAR, frequency VARCHAR)
SELECT COUNT(transmitted) FROM table_1601792_4 WHERE frequency = "7 UHF"
What is the maximum sellouts for the 2008 year, with less than 161,369 total for year?
CREATE TABLE table_name_89 (sellouts INTEGER, year VARCHAR, total_for_year VARCHAR)
SELECT MAX(sellouts) FROM table_name_89 WHERE year = 2008 AND total_for_year < 161 OFFSET 369
August 16 had what record?
CREATE TABLE table_name_72 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_72 WHERE date = "august 16"
How many touchdowns were made by the person with 7 extra points?
CREATE TABLE table_14342210_14 (touchdowns__5_points_ VARCHAR, extra_points_1_point VARCHAR)
SELECT COUNT(touchdowns__5_points_) FROM table_14342210_14 WHERE extra_points_1_point = 7
What is the African Spoonbill when the Ostrich is Brown-hooded Kingfisher?
CREATE TABLE table_20042805_2 (african_spoonbill VARCHAR, ostrich VARCHAR)
SELECT african_spoonbill FROM table_20042805_2 WHERE ostrich = "Brown-hooded Kingfisher"
Who was the away team when Melbourne was the home team?
CREATE TABLE table_name_35 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_35 WHERE home_team = "melbourne"
What is the country that placed 4?
CREATE TABLE table_name_91 (country VARCHAR, place VARCHAR)
SELECT country FROM table_name_91 WHERE place = "4"
How many viewers did the episode written by Warren Lieberstein & Halsted Sullivan have?
CREATE TABLE table_17482534_1 (us_viewers__millions_ VARCHAR, written_by VARCHAR)
SELECT us_viewers__millions_ FROM table_17482534_1 WHERE written_by = "Warren Lieberstein & Halsted Sullivan"
What is the district that has a republican?
CREATE TABLE table_1341930_21 (district VARCHAR, party VARCHAR)
SELECT district FROM table_1341930_21 WHERE party = "Republican"
How many different locations does the school with code BUS has?
CREATE TABLE department (dept_address VARCHAR, school_code VARCHAR)
SELECT COUNT(DISTINCT dept_address) FROM department WHERE school_code = 'BUS'
What is the platform(s) for the year 2006 (10th)?
CREATE TABLE table_name_78 (platform_s_ VARCHAR, year VARCHAR)
SELECT platform_s_ FROM table_name_78 WHERE year = "2006 (10th)"
What is the latest year joined with a Conference championships of 5, and an Institution of university of north carolina?
CREATE TABLE table_name_84 (joined INTEGER, conference_championships VARCHAR, institution VARCHAR)
SELECT MAX(joined) FROM table_name_84 WHERE conference_championships = 5 AND institution = "university of north carolina"
What is the recoupa sudaamericana 1996 result of team flamengo, which did not qualify for the copa conmebol 1996?
CREATE TABLE table_name_10 (recopa_sudamericana_1996 VARCHAR, copa_conmebol_1996 VARCHAR, team VARCHAR)
SELECT recopa_sudamericana_1996 FROM table_name_10 WHERE copa_conmebol_1996 = "did not qualify" AND team = "flamengo"
What is the sum of Points, when Home is "Pittsburgh", when Date is "December 21", and when Attendance is greater than 5,307?
CREATE TABLE table_name_84 (points INTEGER, attendance VARCHAR, home VARCHAR, date VARCHAR)
SELECT SUM(points) FROM table_name_84 WHERE home = "pittsburgh" AND date = "december 21" AND attendance > 5 OFFSET 307
What is the average Gold, when Silver is less than 107, when Bronze is greater than 42, and when Rank is 3?
CREATE TABLE table_name_95 (gold INTEGER, rank VARCHAR, silver VARCHAR, bronze VARCHAR)
SELECT AVG(gold) FROM table_name_95 WHERE silver < 107 AND bronze > 42 AND rank = "3"
What is the record on October 13, when philadelphia was the home team?
CREATE TABLE table_name_47 (record VARCHAR, home VARCHAR, date VARCHAR)
SELECT record FROM table_name_47 WHERE home = "philadelphia" AND date = "october 13"
What is the earliest any of these players were born?
CREATE TABLE table_12962773_10 (year_born INTEGER)
SELECT MIN(year_born) FROM table_12962773_10
What is the source corresponding to a date of May 25–27?
CREATE TABLE table_name_7 (source VARCHAR, date VARCHAR)
SELECT source FROM table_name_7 WHERE date = "may 25–27"
Where the grid is under 19, the time finished was logged as received outside assistance, what's the total number of laps?
CREATE TABLE table_name_15 (laps VARCHAR, time_retired VARCHAR, grid VARCHAR)
SELECT COUNT(laps) FROM table_name_15 WHERE time_retired = "received outside assistance" AND grid < 19
What is Run 1, when Run 4 is 1:56.59?
CREATE TABLE table_name_62 (run_1 VARCHAR, run_4 VARCHAR)
SELECT run_1 FROM table_name_62 WHERE run_4 = "1:56.59"
Tell me the name with sør-trøndelag
CREATE TABLE table_name_64 (name VARCHAR, county VARCHAR)
SELECT name FROM table_name_64 WHERE county = "sør-trøndelag"
What is the home team of the game where the Grizzlies were the visitor team and Rudy Gay (21) was the leading scorer?
CREATE TABLE table_name_83 (home VARCHAR, visitor VARCHAR, leading_scorer VARCHAR)
SELECT home FROM table_name_83 WHERE visitor = "grizzlies" AND leading_scorer = "rudy gay (21)"
What is the location that has the 12th district?
CREATE TABLE table_19283806_4 (location VARCHAR, district VARCHAR)
SELECT location FROM table_19283806_4 WHERE district = "12th"
What is every English title for the result of nominee?
CREATE TABLE table_22128871_1 (english_title VARCHAR, result VARCHAR)
SELECT english_title FROM table_22128871_1 WHERE result = "Nominee"
Which championship had a margin of 10 strokes?
CREATE TABLE table_name_43 (championship VARCHAR, margin VARCHAR)
SELECT championship FROM table_name_43 WHERE margin = "10 strokes"
what is the total number of opponent where date is november 23, 1980
CREATE TABLE table_11406866_2 (opponent VARCHAR, date VARCHAR)
SELECT COUNT(opponent) FROM table_11406866_2 WHERE date = "November 23, 1980"
What is the lowest Points, when Home is "Boston"?
CREATE TABLE table_name_81 (points INTEGER, home VARCHAR)
SELECT MIN(points) FROM table_name_81 WHERE home = "boston"
What is NK Rijeka's away score in Round 2?
CREATE TABLE table_name_97 (away VARCHAR, round VARCHAR, club VARCHAR)
SELECT away FROM table_name_97 WHERE round < 2 AND club = "nk rijeka"
What day in November has a record of 15-6-1?
CREATE TABLE table_name_91 (november INTEGER, record VARCHAR)
SELECT AVG(november) FROM table_name_91 WHERE record = "15-6-1"
What is the greatest CCBs with a Payload to GTO of –, and an Upper stage of sec?
CREATE TABLE table_name_13 (ccbs INTEGER, payload_to_gto VARCHAR, upper_stage VARCHAR)
SELECT MAX(ccbs) FROM table_name_13 WHERE payload_to_gto = "–" AND upper_stage = "sec"
Who is the driver of the car that started in grid 14?
CREATE TABLE table_name_18 (rider VARCHAR, grid VARCHAR)
SELECT rider FROM table_name_18 WHERE grid = "14"
What is the architecture version of Model 1b?
CREATE TABLE table_name_10 (architecture_version VARCHAR, model VARCHAR)
SELECT architecture_version FROM table_name_10 WHERE model = "1b"
How many positions was the United States in?
CREATE TABLE table_18662026_1 (position VARCHAR, country VARCHAR)
SELECT COUNT(position) FROM table_18662026_1 WHERE country = "United States"
Name the most year for points more than 0
CREATE TABLE table_name_96 (year INTEGER, points INTEGER)
SELECT MAX(year) FROM table_name_96 WHERE points > 0
What is the average interview score of a contestant from Louisiana with an evening gown smaller than 8.82?
CREATE TABLE table_name_29 (interview INTEGER, evening_gown VARCHAR, state VARCHAR)
SELECT AVG(interview) FROM table_name_29 WHERE evening_gown < 8.82 AND state = "louisiana"
How many writers were for season #1?
CREATE TABLE table_25800134_3 (writer_s_ VARCHAR, season__number VARCHAR)
SELECT COUNT(writer_s_) FROM table_25800134_3 WHERE season__number = 1
what is the location when the type is embassy and the mission is panama?
CREATE TABLE table_name_42 (location VARCHAR, type VARCHAR, mission VARCHAR)
SELECT location FROM table_name_42 WHERE type = "embassy" AND mission = "panama"
What is the most silver medals a team with 3 total medals and less than 1 bronze has?
CREATE TABLE table_name_13 (silver INTEGER, total VARCHAR, bronze VARCHAR)
SELECT MAX(silver) FROM table_name_13 WHERE total = 3 AND bronze < 1
Who drive the car that retired due to engine failure and a grid of less than 9?
CREATE TABLE table_name_91 (driver VARCHAR, time_retired VARCHAR, grid VARCHAR)
SELECT driver FROM table_name_91 WHERE time_retired = "engine" AND grid < 9
What is the theme of the coin from before 2006?
CREATE TABLE table_name_91 (theme VARCHAR, year INTEGER)
SELECT theme FROM table_name_91 WHERE year < 2006
How may college/junior/club team has a the nhl team listed as Colorado Avalanche?
CREATE TABLE table_2886617_5 (college_junior_club_team VARCHAR, nhl_team VARCHAR)
SELECT COUNT(college_junior_club_team) FROM table_2886617_5 WHERE nhl_team = "Colorado Avalanche"
How many statuses are listed for the parish officially named Gagetown?
CREATE TABLE table_171356_2 (status VARCHAR, official_name VARCHAR)
SELECT COUNT(status) FROM table_171356_2 WHERE official_name = "Gagetown"
Name the land for ada
CREATE TABLE table_18600760_1 (land___sqmi__ VARCHAR, township VARCHAR)
SELECT COUNT(land___sqmi__) FROM table_18600760_1 WHERE township = "Ada"
What is the worst (highest) score?
CREATE TABLE table_1506950_4 (score INTEGER)
SELECT MAX(score) FROM table_1506950_4
What is the ISSN number of a publication range of 1984-?
CREATE TABLE table_name_36 (issn VARCHAR, publication_range VARCHAR)
SELECT issn FROM table_name_36 WHERE publication_range = "1984-"
What is the largest drawn number when 14 is the position, and goals for is more than 66?
CREATE TABLE table_name_17 (drawn INTEGER, position VARCHAR, goals_for VARCHAR)
SELECT MAX(drawn) FROM table_name_17 WHERE position = 14 AND goals_for > 66
Which Attendance is the lowest one that has a Record of 5–5–0?
CREATE TABLE table_name_77 (attendance INTEGER, record VARCHAR)
SELECT MIN(attendance) FROM table_name_77 WHERE record = "5–5–0"
Find the name of the room with the maximum occupancy.
CREATE TABLE Rooms (roomName VARCHAR, maxOccupancy VARCHAR)
SELECT roomName FROM Rooms ORDER BY maxOccupancy DESC LIMIT 1
When was the earliest year that kakha kaladze moved to milan with a rank above 9?
CREATE TABLE table_name_37 (year INTEGER, rank VARCHAR, moving_to VARCHAR, name VARCHAR)
SELECT MIN(year) FROM table_name_37 WHERE moving_to = "milan" AND name = "kakha kaladze" AND rank < 9
What is the party for the incumbent Wyche Fowler?
CREATE TABLE table_1341598_11 (party VARCHAR, incumbent VARCHAR)
SELECT party FROM table_1341598_11 WHERE incumbent = "Wyche Fowler"
Who is the opponent in the final when frankfurt is championship and the year is less than 1993.0?
CREATE TABLE table_22834834_2 (opponent_in_the_final VARCHAR, championship VARCHAR, year VARCHAR)
SELECT opponent_in_the_final FROM table_22834834_2 WHERE championship = "Frankfurt" AND year < 1993.0
What was the theme for week 3?
CREATE TABLE table_name_38 (theme VARCHAR, week VARCHAR)
SELECT theme FROM table_name_38 WHERE week = "week 3"
what is the laps when the driver is tony rolt and the grid is less than 10?
CREATE TABLE table_name_99 (laps INTEGER, driver VARCHAR, grid VARCHAR)
SELECT SUM(laps) FROM table_name_99 WHERE driver = "tony rolt" AND grid < 10
Name the number in series for number 38
CREATE TABLE table_18335117_5 (no_in_series INTEGER, no_overall VARCHAR)
SELECT MIN(no_in_series) FROM table_18335117_5 WHERE no_overall = 38
What was the total tenure time with a rank of 49?
CREATE TABLE table_name_3 (total_tenure_time VARCHAR, total_tenure_rank VARCHAR)
SELECT total_tenure_time FROM table_name_3 WHERE total_tenure_rank = 49
When interplanet janet is the episode title who is the music by?
CREATE TABLE table_191105_3 (music_by VARCHAR, episode_title VARCHAR)
SELECT music_by FROM table_191105_3 WHERE episode_title = "Interplanet Janet"
What is the average number of events having 1 top-10, fewer than 4 cuts made, and 0 wins?
CREATE TABLE table_name_98 (events INTEGER, cuts_made VARCHAR, top_10 VARCHAR, wins VARCHAR)
SELECT AVG(events) FROM table_name_98 WHERE top_10 = 1 AND wins > 0 AND cuts_made < 4
What day was the score for tournament of alcobaça 6–3, 2–6, 7–5?
CREATE TABLE table_name_21 (date VARCHAR, tournament VARCHAR, score VARCHAR)
SELECT date FROM table_name_21 WHERE tournament = "alcobaça" AND score = "6–3, 2–6, 7–5"
Name the total number of points for number 6
CREATE TABLE table_18888159_1 (points VARCHAR, _number VARCHAR)
SELECT COUNT(points) FROM table_18888159_1 WHERE _number = 6
I want the total number of Laps for time/retired for + 4 Laps and grid more than 20
CREATE TABLE table_name_32 (laps VARCHAR, time_retired VARCHAR, grid VARCHAR)
SELECT COUNT(laps) FROM table_name_32 WHERE time_retired = "+ 4 laps" AND grid > 20
What was the size of the crowd at the game where Fitzroy was the home team?
CREATE TABLE table_name_94 (crowd VARCHAR, home_team VARCHAR)
SELECT crowd FROM table_name_94 WHERE home_team = "fitzroy"
How many rebounds did crystal ayers have?
CREATE TABLE table_23346303_4 (rebounds VARCHAR, player VARCHAR)
SELECT COUNT(rebounds) FROM table_23346303_4 WHERE player = "Crystal Ayers"
What is the Time of the Player with a Rank of 1 or 2 and Notes of FA?
CREATE TABLE table_name_75 (time VARCHAR, notes VARCHAR, rank VARCHAR)
SELECT time FROM table_name_75 WHERE notes = "fa" AND rank < 2
Which Avg/G that has a Name of opponents, and an Effic smaller than 129.73?
CREATE TABLE table_name_69 (avg_g INTEGER, name VARCHAR, effic VARCHAR)
SELECT SUM(avg_g) FROM table_name_69 WHERE name = "opponents" AND effic < 129.73
What is the minimum amount of poles?
CREATE TABLE table_24937583_1 (poles INTEGER)
SELECT MIN(poles) FROM table_24937583_1
What episode had a run time of 24:53?
CREATE TABLE table_2102714_1 (episode VARCHAR, run_time VARCHAR)
SELECT episode FROM table_2102714_1 WHERE run_time = "24:53"
Where was something built earlier than 1858?
CREATE TABLE table_name_79 (where_built VARCHAR, year_built INTEGER)
SELECT where_built FROM table_name_79 WHERE year_built < 1858
Which colleges have a pick above 7?
CREATE TABLE table_name_27 (college VARCHAR, pick INTEGER)
SELECT college FROM table_name_27 WHERE pick > 7
What is the total number of goals that the Partizan team from the country of serbia had that was larger than 1?
CREATE TABLE table_name_8 (goals INTEGER, division VARCHAR, team VARCHAR, country VARCHAR)
SELECT SUM(goals) FROM table_name_8 WHERE team = "partizan" AND country = "serbia" AND division > 1