question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What two teams were competing in the match with 103,158 in attendance?
CREATE TABLE table_name_50 (opponent VARCHAR, attendance VARCHAR)
SELECT opponent FROM table_name_50 WHERE attendance = "103,158"
What is the average Area (km²) that shows Excised from shire of cook and a Population smaller than 463 for the community of wujal wujal (bloomfield river)?
CREATE TABLE table_name_30 (area__km²_ INTEGER, name_of_community VARCHAR, excised_from VARCHAR, population VARCHAR)
SELECT AVG(area__km²_) FROM table_name_30 WHERE excised_from = "shire of cook" AND population < 463 AND name_of_community = "wujal wujal (bloomfield river)"
When is the birth date of player with right arm fast style?
CREATE TABLE table_name_74 (date_of_birth VARCHAR, bowling_style VARCHAR)
SELECT date_of_birth FROM table_name_74 WHERE bowling_style = "right arm fast"
Which TV station had a Romaji Title Maou?
CREATE TABLE table_name_64 (tv_station VARCHAR, romaji_title VARCHAR)
SELECT tv_station FROM table_name_64 WHERE romaji_title = "maou"
What team has a title of calder?
CREATE TABLE table_name_5 (team VARCHAR, race_title VARCHAR)
SELECT team FROM table_name_5 WHERE race_title = "calder"
Bronze smaller than 3, and a Total smaller than 2, and a Gold larger than 1 has how many average silvers?
CREATE TABLE table_name_83 (silver INTEGER, gold VARCHAR, bronze VARCHAR, total VARCHAR)
SELECT AVG(silver) FROM table_name_83 WHERE bronze < 3 AND total < 2 AND gold > 1
What type of race took place on the course Orta San Giulio to Milan?
CREATE TABLE table_name_14 (type VARCHAR, course VARCHAR)
SELECT type FROM table_name_14 WHERE course = "orta san giulio to milan"
Which Gender has a Residence of Haliburton?
CREATE TABLE table_name_28 (gender VARCHAR, residence VARCHAR)
SELECT gender FROM table_name_28 WHERE residence = "haliburton"
Name the maximum year built for holmedal kyrkje
CREATE TABLE table_178399_1 (year_built INTEGER, church_name VARCHAR)
SELECT MAX(year_built) FROM table_178399_1 WHERE church_name = "Holmedal kyrkje"
What is the most losses for teams with under 2 wins, more than 6 points, and a position under 11?
CREATE TABLE table_name_19 (losses INTEGER, points VARCHAR, wins VARCHAR, position VARCHAR)
SELECT MAX(losses) FROM table_name_19 WHERE wins < 2 AND position < 11 AND points > 6
What network has lap-by-laps by Bill Flemming, and Pit reporter Chris Economaki?
CREATE TABLE table_name_47 (network VARCHAR, lap_by_lap VARCHAR, pit_reporters VARCHAR)
SELECT network FROM table_name_47 WHERE lap_by_lap = "bill flemming" AND pit_reporters = "chris economaki"
What is Charleston, SC ERP W?
CREATE TABLE table_name_2 (erp_w VARCHAR, city_of_license VARCHAR)
SELECT erp_w FROM table_name_2 WHERE city_of_license = "charleston, sc"
Name the date for grass surface for quarterfinal at the nsw building society open tournament
CREATE TABLE table_name_36 (date VARCHAR, tournament VARCHAR, surface VARCHAR, round VARCHAR)
SELECT date FROM table_name_36 WHERE surface = "grass" AND round = "quarterfinal" AND tournament = "nsw building society open"
What is the date of the post-week 2 game with a result of l 16–10?
CREATE TABLE table_name_58 (date VARCHAR, week VARCHAR, result VARCHAR)
SELECT date FROM table_name_58 WHERE week > 2 AND result = "l 16–10"
What date was the game played with the Cavaliers at home and the Warriors visiting?
CREATE TABLE table_name_39 (date VARCHAR, home VARCHAR, visitor VARCHAR)
SELECT date FROM table_name_39 WHERE home = "cavaliers" AND visitor = "warriors"
What is the platform for the latest release 5.0.3?
CREATE TABLE table_name_53 (platform VARCHAR, latest_stable_release VARCHAR)
SELECT platform FROM table_name_53 WHERE latest_stable_release = "5.0.3"
In episode 115 what is seen being made before British police helmets?
CREATE TABLE table_15187735_9 (segment_b VARCHAR, segment_c VARCHAR)
SELECT segment_b FROM table_15187735_9 WHERE segment_c = "British Police Helmets"
What are the ratings/share ratio when viewers are 5.50 Million?
CREATE TABLE table_20522228_2 (rating VARCHAR, viewers__millions_ VARCHAR)
SELECT rating / SHARE(18 - 49) FROM table_20522228_2 WHERE viewers__millions_ = "5.50"
Name the Winning constructor on 31 may and a Circuit of madonie?
CREATE TABLE table_name_96 (winning_constructor VARCHAR, date VARCHAR, circuit VARCHAR)
SELECT winning_constructor FROM table_name_96 WHERE date = "31 may" AND circuit = "madonie"
What year had a score of 4–6, 7–6, 7–5?
CREATE TABLE table_name_90 (year VARCHAR, score VARCHAR)
SELECT year FROM table_name_90 WHERE score = "4–6, 7–6, 7–5"
What is the name of the coaster that opened in 2011 and is a euro-fighter model?
CREATE TABLE table_name_80 (name VARCHAR, model VARCHAR, opened VARCHAR)
SELECT name FROM table_name_80 WHERE model = "euro-fighter" AND opened = "2011"
What was the Snatch weight for the year that had a total of 409kg?
CREATE TABLE table_name_92 (snatch VARCHAR, total VARCHAR)
SELECT snatch FROM table_name_92 WHERE total = "409kg"
Overall of 62 is what average round?
CREATE TABLE table_name_42 (round INTEGER, overall VARCHAR)
SELECT AVG(round) FROM table_name_42 WHERE overall = 62
What is average life expectancy in the countries where English is not the official language?
CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR); CREATE TABLE country (LifeExpectancy INTEGER, Name VARCHAR); CREATE TABLE country (Name VARCHAR, Code VARCHAR)
SELECT AVG(LifeExpectancy) FROM country WHERE NOT Name IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = "English" AND T2.IsOfficial = "T")
What is Round, when Event is RITC 89 - Triple Main Event 89?
CREATE TABLE table_name_59 (round VARCHAR, event VARCHAR)
SELECT round FROM table_name_59 WHERE event = "ritc 89 - triple main event 89"
Show the transaction type code that occurs the fewest times.
CREATE TABLE TRANSACTIONS (transaction_type_code VARCHAR)
SELECT transaction_type_code FROM TRANSACTIONS GROUP BY transaction_type_code ORDER BY COUNT(*) LIMIT 1
Name the Grand Prix for pole position of kimi räikkönen
CREATE TABLE table_name_23 (grand_prix VARCHAR, pole_position VARCHAR)
SELECT grand_prix FROM table_name_23 WHERE pole_position = "kimi räikkönen"
what is the competition when the score is 2-1?
CREATE TABLE table_name_28 (competition VARCHAR, score VARCHAR)
SELECT competition FROM table_name_28 WHERE score = "2-1"
what is the average score for søren kjeldsen?
CREATE TABLE table_name_71 (score INTEGER, player VARCHAR)
SELECT AVG(score) FROM table_name_71 WHERE player = "søren kjeldsen"
What is the sum of wins and the sum of losses less than 4 for teams larger than 20?
CREATE TABLE table_name_55 (wins INTEGER, losses VARCHAR, goals_against VARCHAR)
SELECT SUM(wins) FROM table_name_55 WHERE losses < 4 AND goals_against > 20
Tell me the total number of Grid for Rubens Barrichello
CREATE TABLE table_name_4 (grid VARCHAR, driver VARCHAR)
SELECT COUNT(grid) FROM table_name_4 WHERE driver = "rubens barrichello"
What are the commissioned for scotts, greenock and chieftain?
CREATE TABLE table_1206583_2 (commissioned VARCHAR, builder VARCHAR, name VARCHAR)
SELECT commissioned FROM table_1206583_2 WHERE builder = "Scotts, Greenock" AND name = "Chieftain"
Name the play for 1976
CREATE TABLE table_name_20 (play VARCHAR, year VARCHAR)
SELECT play FROM table_name_20 WHERE year = 1976
What was the home team when the game was at Windy Hill?
CREATE TABLE table_name_36 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_36 WHERE venue = "windy hill"
What did the Melbourne team score in their away game?
CREATE TABLE table_name_3 (away_team VARCHAR)
SELECT away_team AS score FROM table_name_3 WHERE away_team = "melbourne"
Who was the home team when Hawthorn was the away team?
CREATE TABLE table_name_61 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_61 WHERE away_team = "hawthorn"
Who was the Man of the Match when they played the Romford Raiders at home?
CREATE TABLE table_name_28 (man_of_the_match VARCHAR, venue VARCHAR, opponent VARCHAR)
SELECT man_of_the_match FROM table_name_28 WHERE venue = "home" AND opponent = "romford raiders"
How many schools are located in South Brisbane?
CREATE TABLE table_11318462_29 (school VARCHAR, location VARCHAR)
SELECT COUNT(school) FROM table_11318462_29 WHERE location = "South Brisbane"
What is the magnitude with epicenter at Vrancea County, unknown intensity and which happened at 06:36?
CREATE TABLE table_name_67 (magnitude VARCHAR, time__utc_ VARCHAR, epicenter VARCHAR, intensity VARCHAR)
SELECT magnitude FROM table_name_67 WHERE epicenter = "vrancea county" AND intensity = "unknown" AND time__utc_ = "06:36"
Which country has more than 5% change in a year with a rank of 10?
CREATE TABLE table_name_23 (country VARCHAR, _percentage_change_on_year VARCHAR, rank VARCHAR)
SELECT country FROM table_name_23 WHERE _percentage_change_on_year > 5 AND rank = 10
How many issues end on jan–72?
CREATE TABLE table_name_82 (number_of_issues INTEGER, end_month VARCHAR)
SELECT SUM(number_of_issues) FROM table_name_82 WHERE end_month = "jan–72"
Where was mlb draft for the player who's school was Carl Albert High School?
CREATE TABLE table_11677100_18 (mlb_draft VARCHAR, school VARCHAR)
SELECT mlb_draft FROM table_11677100_18 WHERE school = "Carl Albert High school"
List the 1st air date for season 12.
CREATE TABLE table_27437601_2 (original_air_date VARCHAR, no_in_season VARCHAR)
SELECT original_air_date FROM table_27437601_2 WHERE no_in_season = 12
What was the Attendance on Week 9?
CREATE TABLE table_name_25 (attendance INTEGER, week VARCHAR)
SELECT MAX(attendance) FROM table_name_25 WHERE week = 9
What rank is aliyya qadi with less than 1421 votes?
CREATE TABLE table_name_73 (rank INTEGER, candidate_name VARCHAR, votes VARCHAR)
SELECT MIN(rank) FROM table_name_73 WHERE candidate_name = "aliyya qadi" AND votes < 1421
Name the real life years of operation for amtrak
CREATE TABLE table_243664_1 (real_life_years_of_operation VARCHAR, currently¹_part_of VARCHAR)
SELECT real_life_years_of_operation FROM table_243664_1 WHERE currently¹_part_of = "Amtrak"
Which method was used in the welterweight class with a preliminary card?
CREATE TABLE table_name_58 (method VARCHAR, weight_class VARCHAR, card VARCHAR)
SELECT method FROM table_name_58 WHERE weight_class = "welterweight" AND card = "preliminary"
Who is the player on round 7 with an overall ranking of #195?
CREATE TABLE table_name_86 (player VARCHAR, round VARCHAR, overall VARCHAR)
SELECT player FROM table_name_86 WHERE round = "7" AND overall = "#195"
What is the task number on January 22, 2010 (day 111)?
CREATE TABLE table_name_94 (task_no INTEGER, date_given VARCHAR)
SELECT MAX(task_no) FROM table_name_94 WHERE date_given = "january 22, 2010 (day 111)"
Name the NP/NNP for ACDP of 1 and others of 1 and DP/DA of 5
CREATE TABLE table_name_73 (np___nnp VARCHAR, dp___da VARCHAR, acdp VARCHAR, others VARCHAR)
SELECT np___nnp FROM table_name_73 WHERE acdp = 1 AND others = 1 AND dp___da = 5
How many caps have a Date of Birth (Age) of 15 july 1981?
CREATE TABLE table_name_49 (caps VARCHAR, date_of_birth__age_ VARCHAR)
SELECT COUNT(caps) FROM table_name_49 WHERE date_of_birth__age_ = "15 july 1981"
Which Home team score had a Home team of Fitzroy?
CREATE TABLE table_name_13 (home_team VARCHAR)
SELECT home_team AS score FROM table_name_13 WHERE home_team = "fitzroy"
Find the first and last name of students whose age is younger than the average age.
CREATE TABLE student (fname VARCHAR, lname VARCHAR, age INTEGER)
SELECT fname, lname FROM student WHERE age < (SELECT AVG(age) FROM student)
What is the analogue terrestrial channel when the internet shows channel4.com?
CREATE TABLE table_name_95 (analogue_terrestrial_channel VARCHAR, internet VARCHAR)
SELECT analogue_terrestrial_channel FROM table_name_95 WHERE internet = "channel4.com"
How many people were in the crowd when North Melbourne was the home team?
CREATE TABLE table_name_3 (crowd VARCHAR, home_team VARCHAR)
SELECT crowd FROM table_name_3 WHERE home_team = "north melbourne"
Which opponent has a time of 1:50?
CREATE TABLE table_name_79 (opponent VARCHAR, time VARCHAR)
SELECT opponent FROM table_name_79 WHERE time = "1:50"
Which Games lost has Points against of 61, and Points difference smaller than 42?
CREATE TABLE table_name_74 (games_lost INTEGER, points_against VARCHAR, points_difference VARCHAR)
SELECT SUM(games_lost) FROM table_name_74 WHERE points_against = 61 AND points_difference < 42
How many Goals have Years at club of 1961–1966, and a Debut year larger than 1961?
CREATE TABLE table_name_9 (goals VARCHAR, years_at_club VARCHAR, debut_year VARCHAR)
SELECT COUNT(goals) FROM table_name_9 WHERE years_at_club = "1961–1966" AND debut_year > 1961
What is the lowest attendance on September 3, 1972?
CREATE TABLE table_name_52 (attendance INTEGER, date VARCHAR)
SELECT MIN(attendance) FROM table_name_52 WHERE date = "september 3, 1972"
What is the Sign-in/Bicker at wash50 on washington rd?
CREATE TABLE table_name_27 (sign_in_bicker VARCHAR, location VARCHAR)
SELECT sign_in_bicker FROM table_name_27 WHERE location = "wash50 on washington rd"
Who drive 74 laps in a grid larger than 9?
CREATE TABLE table_name_25 (driver VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT driver FROM table_name_25 WHERE laps = 74 AND grid > 9
Phil Mickelson has what To par?
CREATE TABLE table_name_47 (to_par VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_47 WHERE player = "phil mickelson"
Which College/Junior/Club Team (League) has a Position of right wing, and a Round smaller than 3?
CREATE TABLE table_name_48 (college_junior_club_team__league_ VARCHAR, position VARCHAR, round VARCHAR)
SELECT college_junior_club_team__league_ FROM table_name_48 WHERE position = "right wing" AND round < 3
In what district was the representative first elected in 1916?
CREATE TABLE table_1342370_10 (district VARCHAR, first_elected VARCHAR)
SELECT district FROM table_1342370_10 WHERE first_elected = 1916
Which film title used in nomination has vinterkyss as the original title?
CREATE TABLE table_21655290_1 (film_title_used_in_nomination VARCHAR, original_title VARCHAR)
SELECT film_title_used_in_nomination FROM table_21655290_1 WHERE original_title = "Vinterkyss"
What is the home team score at windy hill?
CREATE TABLE table_name_40 (home_team VARCHAR, venue VARCHAR)
SELECT home_team AS score FROM table_name_40 WHERE venue = "windy hill"
What was the result for the contestant who was a small business owner?
CREATE TABLE table_19810459_1 (result VARCHAR, background VARCHAR)
SELECT result FROM table_19810459_1 WHERE background = "Small business owner"
When 48-30 is the record who has the highest amount of points?
CREATE TABLE table_23286158_10 (high_points VARCHAR, record VARCHAR)
SELECT high_points FROM table_23286158_10 WHERE record = "48-30"
List all rebounds equal to 10 for Dennis Rodman 's 1991–92 season
CREATE TABLE table_25696729_8 (season VARCHAR)
SELECT 10 AS _rebounds FROM table_25696729_8 WHERE season = "1991–92"
Who were the partners in games where the score was 1-6, 2-6?
CREATE TABLE table_2259502_2 (partner VARCHAR, score VARCHAR)
SELECT partner FROM table_2259502_2 WHERE score = "1-6, 2-6"
How many events did not have any participants?
CREATE TABLE EVENTS (event_id VARCHAR); CREATE TABLE Participants_in_Events (event_id VARCHAR)
SELECT COUNT(*) FROM EVENTS WHERE NOT event_id IN (SELECT event_id FROM Participants_in_Events)
What is Years, when Nationality is United States, and when Position is PG / SG?
CREATE TABLE table_name_83 (years VARCHAR, nationality VARCHAR, position VARCHAR)
SELECT years FROM table_name_83 WHERE nationality = "united states" AND position = "pg / sg"
What is the average rating of songs for each language?
CREATE TABLE song (languages VARCHAR, rating INTEGER)
SELECT AVG(rating), languages FROM song GROUP BY languages
Which player's pick is 160?
CREATE TABLE table_name_48 (player VARCHAR, pick VARCHAR)
SELECT player FROM table_name_48 WHERE pick = 160
Which To par has a Winning score of 64-68-66-63=261?
CREATE TABLE table_name_22 (to_par VARCHAR, winning_score VARCHAR)
SELECT to_par FROM table_name_22 WHERE winning_score = 64 - 68 - 66 - 63 = 261
How many Extra points have Touchdowns larger than 2, and Field goals larger than 0?
CREATE TABLE table_name_4 (extra_points VARCHAR, touchdowns VARCHAR, field_goals VARCHAR)
SELECT COUNT(extra_points) FROM table_name_4 WHERE touchdowns > 2 AND field_goals > 0
What is the average lap total for grids under 19 and a Time/Retired of +4 laps?
CREATE TABLE table_name_63 (laps INTEGER, time_retired VARCHAR, grid VARCHAR)
SELECT AVG(laps) FROM table_name_63 WHERE time_retired = "+4 laps" AND grid < 19
Which Score has Opponent of mariners and a Record of 24–25?
CREATE TABLE table_name_91 (score VARCHAR, opponent VARCHAR, record VARCHAR)
SELECT score FROM table_name_91 WHERE opponent = "mariners" AND record = "24–25"
Tell me the runs for econ of 3.63
CREATE TABLE table_name_80 (runs VARCHAR, econ VARCHAR)
SELECT runs FROM table_name_80 WHERE econ = "3.63"
What couple had vote percentage of 21.843%?
CREATE TABLE table_19744915_22 (couple VARCHAR, vote_percentage VARCHAR)
SELECT couple FROM table_19744915_22 WHERE vote_percentage = "21.843%"
What is the draw with less than 107 points by the artist Jan Johansen?
CREATE TABLE table_name_9 (draw VARCHAR, artist VARCHAR, points VARCHAR)
SELECT COUNT(draw) FROM table_name_9 WHERE artist = "jan johansen" AND points < 107
How many episodes were released in the season 1 DVD?
CREATE TABLE table_14855908_3 (episodes INTEGER, dvd_name VARCHAR)
SELECT MIN(episodes) FROM table_14855908_3 WHERE dvd_name = "Season 1"
Who is the Director that has a Film title of nick carter in prague?
CREATE TABLE table_name_66 (director VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT director FROM table_name_66 WHERE film_title_used_in_nomination = "nick carter in prague"
What is the group a winner for vis pesaro?
CREATE TABLE table_1137142_1 (group_a_winner VARCHAR, group_c_winner VARCHAR)
SELECT group_a_winner FROM table_1137142_1 WHERE group_c_winner = "Vis Pesaro"
What is the result of a round greater than 3?
CREATE TABLE table_name_55 (result VARCHAR, round INTEGER)
SELECT result FROM table_name_55 WHERE round > 3
Which tournament was Tim Henman the runner-up in?
CREATE TABLE table_name_59 (tournament VARCHAR, runner_up VARCHAR)
SELECT tournament FROM table_name_59 WHERE runner_up = "tim henman"
What is the location with the most cinemas opened in year 2010 or later?
CREATE TABLE cinema (LOCATION VARCHAR, openning_year VARCHAR)
SELECT LOCATION FROM cinema WHERE openning_year >= 2010 GROUP BY LOCATION ORDER BY COUNT(*) DESC LIMIT 1
What's the Nickname listed for the Name of University Cricket Club?
CREATE TABLE table_name_40 (nickname VARCHAR, name VARCHAR)
SELECT nickname FROM table_name_40 WHERE name = "university cricket club"
Which Venue has Against of 25?
CREATE TABLE table_name_89 (venue VARCHAR, against VARCHAR)
SELECT venue FROM table_name_89 WHERE against = 25
Played on Clay Surface, what was the Score of the Dortmund Tournament?
CREATE TABLE table_name_70 (score_in_the_final VARCHAR, surface VARCHAR, tournament VARCHAR)
SELECT score_in_the_final FROM table_name_70 WHERE surface = "clay" AND tournament = "dortmund"
What is the Place of the Player with a To par of +3 and Score of 73-70-73=216?
CREATE TABLE table_name_45 (place VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT place FROM table_name_45 WHERE to_par = "+3" AND score = 73 - 70 - 73 = 216
Show the name of colleges that have at least two players.
CREATE TABLE match_season (College VARCHAR)
SELECT College FROM match_season GROUP BY College HAVING COUNT(*) >= 2
What was the result for the team with 3 draws?
CREATE TABLE table_name_42 (result VARCHAR, draws VARCHAR)
SELECT result FROM table_name_42 WHERE draws = "3"
On what Surface was the game with Partner David Martin played Scoring 4–6, 6–7 (4-7)?
CREATE TABLE table_name_24 (surface VARCHAR, partner VARCHAR, score VARCHAR)
SELECT surface FROM table_name_24 WHERE partner = "david martin" AND score = "4–6, 6–7 (4-7)"
In what Week has a Result of l 24–20, and a Opponent of at new england patriots?
CREATE TABLE table_name_32 (week INTEGER, result VARCHAR, opponent VARCHAR)
SELECT MAX(week) FROM table_name_32 WHERE result = "l 24–20" AND opponent = "at new england patriots"
What is Place, when Player is "Arnold Palmer"?
CREATE TABLE table_name_23 (place VARCHAR, player VARCHAR)
SELECT place FROM table_name_23 WHERE player = "arnold palmer"
What is the Republican seat plurality of North Carolina?
CREATE TABLE table_name_18 (republican_seat_plurality VARCHAR, state_ranked_in_partisan_order VARCHAR)
SELECT republican_seat_plurality FROM table_name_18 WHERE state_ranked_in_partisan_order = "north carolina"
What Award has a date of 2002?
CREATE TABLE table_name_5 (award VARCHAR, year VARCHAR)
SELECT award FROM table_name_5 WHERE year = 2002
If the Rank is 10, what was the time on Sat aug 28?
CREATE TABLE table_26986076_1 (sat_28_aug VARCHAR, rank VARCHAR)
SELECT sat_28_aug FROM table_26986076_1 WHERE rank = 10
How many documents are with document type code BK for each product id?
CREATE TABLE Documents (project_id VARCHAR, document_type_code VARCHAR)
SELECT COUNT(*), project_id FROM Documents WHERE document_type_code = "BK" GROUP BY project_id