answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT SUM(laps) FROM table_name_72 WHERE name = "sébastien bourdais" AND grid < 1
How many laps for sébastien bourdais, and a Grid smaller than 1?
CREATE TABLE table_name_72 (laps INTEGER, name VARCHAR, grid VARCHAR)
SELECT parent_magazine FROM table_name_78 WHERE title = "dengeki g's festival! deluxe"
What is the parent magazine of Dengeki g's festival! deluxe?
CREATE TABLE table_name_78 (parent_magazine VARCHAR, title VARCHAR)
SELECT bleeding_time FROM table_name_31 WHERE condition = "factor x deficiency as seen in amyloid purpura"
Which Bleeding time has a Condition of factor x deficiency as seen in amyloid purpura?
CREATE TABLE table_name_31 (bleeding_time VARCHAR, condition VARCHAR)
SELECT course FROM table_name_58 WHERE type = "team time trial"
Name the course for team time trial
CREATE TABLE table_name_58 (course VARCHAR, type VARCHAR)
SELECT visiting_team FROM table_name_82 WHERE stadium = "servus centre"
Which Visiting Team has a Stadium of servus centre?
CREATE TABLE table_name_82 (visiting_team VARCHAR, stadium VARCHAR)
SELECT median_household_income FROM table_name_56 WHERE per_capita_income = "$21,585"
What is the median household income when the per capita is $21,585?
CREATE TABLE table_name_56 (median_household_income VARCHAR, per_capita_income VARCHAR)
SELECT 2 AS nd_leg FROM table_name_96 WHERE team_2 = "al-faisaly"
For a team 2 of Al-Faisaly, what was the 2nd leg?
CREATE TABLE table_name_96 (team_2 VARCHAR)
SELECT host_country___countries FROM table_name_42 WHERE silver = "[[|]] (2)" AND bronze = "czechoslovakia (3)"
What was the host country when the silver was [[|]] (2) and bronze is czechoslovakia (3)?
CREATE TABLE table_name_42 (host_country___countries VARCHAR, silver VARCHAR, bronze VARCHAR)
SELECT competition FROM table_name_71 WHERE result = "17-1"
What competition has 17-1 as the result?
CREATE TABLE table_name_71 (competition VARCHAR, result VARCHAR)
SELECT COUNT(record) FROM table_11960407_4 WHERE game = 39
How many times was the game 39?
CREATE TABLE table_11960407_4 (record VARCHAR, game VARCHAR)
SELECT nickname FROM table_name_26 WHERE no_of_premierships = 0 AND years_in_competition = "1982-2003"
What was the Nickname that had a No. 0, and Years in Competition of 1982-2003?
CREATE TABLE table_name_26 (nickname VARCHAR, no_of_premierships VARCHAR, years_in_competition VARCHAR)
SELECT high_rebounds FROM table_27700375_11 WHERE location_attendance = "Wells Fargo Center 16,695"
Name the high rebounds for wells fargo center 16,695
CREATE TABLE table_27700375_11 (high_rebounds VARCHAR, location_attendance VARCHAR)
SELECT AVG(round) FROM table_name_1 WHERE overall > 310 AND name = "billy hicks"
What is the average number of rounds for billy hicks who had an overall pick number bigger than 310?
CREATE TABLE table_name_1 (round INTEGER, overall VARCHAR, name VARCHAR)
SELECT episode_title FROM table_191105_2 WHERE subject = "pronoun"
When pronoun is the subject what is the episode title?
CREATE TABLE table_191105_2 (episode_title VARCHAR, subject VARCHAR)
SELECT crowd FROM table_name_25 WHERE venue = "kardinia park"
What was the attendance at the Kardinia Park game?
CREATE TABLE table_name_25 (crowd VARCHAR, venue VARCHAR)
SELECT attendance FROM table_name_61 WHERE competition = "league" AND venue = "away" AND date = 22
How many people attended the away league competition with a date of 22?
CREATE TABLE table_name_61 (attendance VARCHAR, date VARCHAR, competition VARCHAR, venue VARCHAR)
SELECT rank FROM table_name_29 WHERE finish = "12" AND year = "1963"
Name the rank with finish of 12 and year of 1963
CREATE TABLE table_name_29 (rank VARCHAR, finish VARCHAR, year VARCHAR)
SELECT original_air_date FROM table_2182654_6 WHERE no_in_season = 10
What date was episode 10 in the season originally aired?
CREATE TABLE table_2182654_6 (original_air_date VARCHAR, no_in_season VARCHAR)
SELECT MIN(subject) FROM table_name_58 WHERE plural = "tãder (their)"
What is the lowest Subject, when Plural is tãder (their)?
CREATE TABLE table_name_58 (subject INTEGER, plural VARCHAR)
SELECT venue FROM table_name_21 WHERE home_team = "fitzroy"
Where did fitzroy play as the home team?
CREATE TABLE table_name_21 (venue VARCHAR, home_team VARCHAR)
SELECT MIN(touchdowns) FROM table_25711913_2 WHERE position = "Fullback"
What was the minimum touchdowns of the Fullback player?
CREATE TABLE table_25711913_2 (touchdowns INTEGER, position VARCHAR)
SELECT tries_against FROM table_17941032_3 WHERE tries_for = "30"
Name the tries against when tries for is 30
CREATE TABLE table_17941032_3 (tries_against VARCHAR, tries_for VARCHAR)
SELECT region FROM table_name_74 WHERE catalog = "885 973-4"
What is the Region of Catalog 885 973-4?
CREATE TABLE table_name_74 (region VARCHAR, catalog VARCHAR)
SELECT moving_from FROM table_22810095_8 WHERE name = "Kisnorbo"
Where did Kisnorbo move from?
CREATE TABLE table_22810095_8 (moving_from VARCHAR, name VARCHAR)
SELECT MAX(round) FROM table_name_22 WHERE player = "paul mcdonald" AND overall > 109
In which round did Paul McDonald have an overall greater than 109?
CREATE TABLE table_name_22 (round INTEGER, player VARCHAR, overall VARCHAR)
SELECT type FROM table_name_56 WHERE group = "animated"
Which type is filed under the Group Animated?
CREATE TABLE table_name_56 (type VARCHAR, group VARCHAR)
SELECT COUNT(height) FROM table_12962773_16 WHERE no = 8
How many players wore number 8?
CREATE TABLE table_12962773_16 (height VARCHAR, no VARCHAR)
SELECT municipality FROM table_255829_1 WHERE pop_density__per_km_2__ = "130.6"
What municipality has a 130.6 pupulation density?
CREATE TABLE table_255829_1 (municipality VARCHAR, pop_density__per_km_2__ VARCHAR)
SELECT AVG(overall) FROM table_name_47 WHERE position = "defensive tackle" AND round = 4 AND pick__number < 36
Position of defensive tackle, and a Round of 4, and a Pick # smaller than 36 has what overall average?
CREATE TABLE table_name_47 (overall INTEGER, pick__number VARCHAR, position VARCHAR, round VARCHAR)
SELECT municipality FROM table_name_42 WHERE barangay = "poblacion"
In which municipality is Barangay Poblacion?
CREATE TABLE table_name_42 (municipality VARCHAR, barangay VARCHAR)
SELECT parameter FROM table_name_94 WHERE best_fit__wmap_only_ = ".9 ± .1" AND symbol = "a"
What is the parameter when the best fit (WMAP only) is .9 ± .1, and symbol is a?
CREATE TABLE table_name_94 (parameter VARCHAR, best_fit__wmap_only_ VARCHAR, symbol VARCHAR)
SELECT head_of_household FROM table_name_39 WHERE task_no = 7
Who is the head of household for task number 7?
CREATE TABLE table_name_39 (head_of_household VARCHAR, task_no VARCHAR)
SELECT discovery FROM table_name_4 WHERE operator_s_ = "lundin"
Which Discoveryhas an Operator(s) of lundin?
CREATE TABLE table_name_4 (discovery VARCHAR, operator_s_ VARCHAR)
SELECT t2.product_details FROM order_items AS t1 JOIN products AS t2 ON t1.product_id = t2.product_id GROUP BY t1.product_id ORDER BY COUNT(*) DESC LIMIT 1
Which product has been ordered most number of times?
CREATE TABLE products (product_details VARCHAR, product_id VARCHAR); CREATE TABLE order_items (product_id VARCHAR)
SELECT national_final_main_host FROM table_name_75 WHERE venue = "bbc television centre" AND selection_show = "eurovision: your country needs you"
What is the name of the national final main host at BBC Television Centre, and the selection show was Eurovision: Your Country Needs You?
CREATE TABLE table_name_75 (national_final_main_host VARCHAR, venue VARCHAR, selection_show VARCHAR)
SELECT COUNT(high_points) FROM table_13762472_3 WHERE game = 4
How many players scored the most points on game 4?
CREATE TABLE table_13762472_3 (high_points VARCHAR, game VARCHAR)
SELECT COUNT(played) FROM table_name_57 WHERE against > 11 AND team = "botafogo" AND position < 2
How much Played has an Against larger than 11, and a Team of botafogo, and a Position smaller than 2?
CREATE TABLE table_name_57 (played VARCHAR, position VARCHAR, against VARCHAR, team VARCHAR)
SELECT MIN(won) FROM table_17358515_1 WHERE goals_for = 60
How many games did the team who scored 60 goals win?
CREATE TABLE table_17358515_1 (won INTEGER, goals_for VARCHAR)
SELECT year FROM table_17302440_1 WHERE west_manila = "6.5"
What was the year when West Manila has a tariff increase of 6.5?
CREATE TABLE table_17302440_1 (year VARCHAR, west_manila VARCHAR)
SELECT theme_song_s_ FROM table_name_23 WHERE romaji_title = "iryu -team medical dragon-2"
What is the Theme Song of Iryu -Team Medical Dragon-2?
CREATE TABLE table_name_23 (theme_song_s_ VARCHAR, romaji_title VARCHAR)
SELECT best_score FROM table_name_19 WHERE worst_dancer_s_ = "gethin jones/kenny logan"
What's the best score, with the worst dancer(s) gethin jones/kenny logan?
CREATE TABLE table_name_19 (best_score VARCHAR, worst_dancer_s_ VARCHAR)
SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = "CVO" EXCEPT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = "APG"
Find all airlines that have flights from airport 'CVO' but not from 'APG'.
CREATE TABLE AIRLINES (Airline VARCHAR, uid VARCHAR); CREATE TABLE FLIGHTS (Airline VARCHAR, SourceAirport VARCHAR)
SELECT winner FROM table_name_44 WHERE race_title = "lakeside"
What was the name of the driver that won the Lakeside race?
CREATE TABLE table_name_44 (winner VARCHAR, race_title VARCHAR)
SELECT SUM(long) FROM table_name_19 WHERE loss > 24 AND gain > 273 AND avg_g = 207.8
What's the total long for more than 24 loss, a gain over 273, and an avg/g of 207.8?
CREATE TABLE table_name_19 (long INTEGER, avg_g VARCHAR, loss VARCHAR, gain VARCHAR)
SELECT location FROM table_name_63 WHERE rank_final = "10"
What is the Location of the Competition with a Rank-Final of 10?
CREATE TABLE table_name_63 (location VARCHAR, rank_final VARCHAR)
SELECT constructor FROM table_name_31 WHERE laps = 25
Which constructor was there for the race with 25 laps?
CREATE TABLE table_name_31 (constructor VARCHAR, laps VARCHAR)
SELECT league FROM table_1046454_1 WHERE regular_season = "2nd, Northwest"
what's the league where regular season is 2nd, northwest
CREATE TABLE table_1046454_1 (league VARCHAR, regular_season VARCHAR)
SELECT latitude FROM table_18600760_8 WHERE geo_id = 3809935740
Name the latitude for 3809935740
CREATE TABLE table_18600760_8 (latitude VARCHAR, geo_id VARCHAR)
SELECT MAX(pick__number) FROM table_name_14 WHERE college = "simon fraser"
What was the highest Pick # for the College of Simon Fraser?
CREATE TABLE table_name_14 (pick__number INTEGER, college VARCHAR)
SELECT opponent FROM table_26360571_2 WHERE date = "February 22, 1983"
List the opposing team from february 22, 1983.
CREATE TABLE table_26360571_2 (opponent VARCHAR, date VARCHAR)
SELECT year FROM table_name_59 WHERE wins = "2"
What year has 2 wins?
CREATE TABLE table_name_59 (year VARCHAR, wins VARCHAR)
SELECT COUNT(*) FROM country
How many countries are there in total?
CREATE TABLE country (Id VARCHAR)
SELECT draws FROM table_name_61 WHERE losses > 8 AND points = 13
What is the number of draws for the team with more than 8 losses and 13 points?
CREATE TABLE table_name_61 (draws VARCHAR, losses VARCHAR, points VARCHAR)
SELECT away_team FROM table_name_77 WHERE date = "4 june 1927" AND venue = "corio oval"
Which team was at Corio Oval on 4 June 1927?
CREATE TABLE table_name_77 (away_team VARCHAR, date VARCHAR, venue VARCHAR)
SELECT MAX(released) FROM table_24600706_1 WHERE song = "The In Crowd"
Name the most released for the in crowd
CREATE TABLE table_24600706_1 (released INTEGER, song VARCHAR)
SELECT mascot FROM school WHERE enrollment > (SELECT AVG(enrollment) FROM school)
What are the mascots for schools with enrollments above the average?
CREATE TABLE school (mascot VARCHAR, enrollment INTEGER)
SELECT tennis FROM table_name_52 WHERE school = "youngstown state"
What is the tennis status for youngstown state?
CREATE TABLE table_name_52 (tennis VARCHAR, school VARCHAR)
SELECT MAX(games) FROM table_name_26 WHERE drawn < 0
Which Games is the highest one that has a Drawn smaller than 0?
CREATE TABLE table_name_26 (games INTEGER, drawn INTEGER)
SELECT main_developer FROM table_12887260_1 WHERE first_release = 1991 AND console = "Mega Drive/Genesis"
Which main developer made their first release in 1991 and created the Mega Drive/Genesis console?
CREATE TABLE table_12887260_1 (main_developer VARCHAR, first_release VARCHAR, console VARCHAR)
SELECT tries_against FROM table_name_70 WHERE points_for = "475"
What is the tries against when the points are 475?
CREATE TABLE table_name_70 (tries_against VARCHAR, points_for VARCHAR)
SELECT SUM(attendance) FROM table_name_75 WHERE date = "april 7"
What was the attendance on April 7?
CREATE TABLE table_name_75 (attendance INTEGER, date VARCHAR)
SELECT AVG(points) FROM table_name_32 WHERE year < 1955 AND chassis = "connaught type a"
How many points did Connaught Type A chassis earn on average before 1955?
CREATE TABLE table_name_32 (points INTEGER, year VARCHAR, chassis VARCHAR)
SELECT date FROM table_name_81 WHERE fastest_lap = "james winslow" AND race = 1 AND winning_driver = "leanne tander"
What is Date, when Fastest Lap is James Winslow, when Race is 1, and when Winning Driver is Leanne Tander?
CREATE TABLE table_name_81 (date VARCHAR, winning_driver VARCHAR, fastest_lap VARCHAR, race VARCHAR)
SELECT res FROM table_name_60 WHERE event = "m-1 selection europe"
What was the result for the M-1 Selection Europe event?
CREATE TABLE table_name_60 (res VARCHAR, event VARCHAR)
SELECT wins FROM table_name_41 WHERE series = "gp2 series" AND season < 2009
What is the value for Wins, when the Series is GP2 Series, and when the Season is before 2009?
CREATE TABLE table_name_41 (wins VARCHAR, series VARCHAR, season VARCHAR)
SELECT MAX(rank) FROM table_26454128_9 WHERE distance__metres_ = "52.73"
What is the highest rank where the distance is 52.73?
CREATE TABLE table_26454128_9 (rank INTEGER, distance__metres_ VARCHAR)
SELECT against FROM table_name_21 WHERE drawn = 5
What is the Against when the drawn is 5?
CREATE TABLE table_name_21 (against VARCHAR, drawn VARCHAR)
SELECT name, openning_year, capacity FROM cinema
Show name, opening year, and capacity for each cinema.
CREATE TABLE cinema (name VARCHAR, openning_year VARCHAR, capacity VARCHAR)
SELECT nationality FROM table_name_72 WHERE school_country = "temple"
Which nationality is associated with Temple?
CREATE TABLE table_name_72 (nationality VARCHAR, school_country VARCHAR)
SELECT rank FROM table_name_13 WHERE silver = 3
What is the rank for the 3 silver medals?
CREATE TABLE table_name_13 (rank VARCHAR, silver VARCHAR)
SELECT singles_w_l FROM table_10295819_1 WHERE player = "Laurynas Grigelis"
What is the Singles W-L for the players named Laurynas Grigelis?
CREATE TABLE table_10295819_1 (singles_w_l VARCHAR, player VARCHAR)
SELECT opponent FROM table_name_35 WHERE loss = "leal (1–4)"
Who was the opponent with a Loss of Leal (1–4)?
CREATE TABLE table_name_35 (opponent VARCHAR, loss VARCHAR)
SELECT COUNT(status) FROM table_2933761_1 WHERE played_by = "Maurice Dean Wint"
How many characters does Maurice Dean Wint play in the movie Cube?
CREATE TABLE table_2933761_1 (status VARCHAR, played_by VARCHAR)
SELECT introduction FROM table_1682865_1 WHERE numeral = "6d"
What date was the 6d introduced?
CREATE TABLE table_1682865_1 (introduction VARCHAR, numeral VARCHAR)
SELECT status FROM table_name_28 WHERE country = "eng" AND name = "maynard"
What is the status of the Eng Country from the Maynard name?
CREATE TABLE table_name_28 (status VARCHAR, country VARCHAR, name VARCHAR)
SELECT written_by FROM table_23235679_1 WHERE production_code = "5AJN11"
Name who wrote 5ajn11
CREATE TABLE table_23235679_1 (written_by VARCHAR, production_code VARCHAR)
SELECT COUNT(name_of_team_song) FROM table_28243323_1 WHERE writer_composer = "Harry Angus"
How man teams have a writer named harry angus?
CREATE TABLE table_28243323_1 (name_of_team_song VARCHAR, writer_composer VARCHAR)
SELECT manner_of_departure FROM table_27374004_3 WHERE team = "Cercle Brugge"
What was the manner of departure for the manager of Cercle Brugge?
CREATE TABLE table_27374004_3 (manner_of_departure VARCHAR, team VARCHAR)
SELECT name, headquarter, revenue FROM manufacturers ORDER BY revenue DESC
Find the name, headquarter and revenue of all manufacturers sorted by their revenue in the descending order.
CREATE TABLE manufacturers (name VARCHAR, headquarter VARCHAR, revenue VARCHAR)
SELECT AVG(game) FROM table_name_30 WHERE december > 21 AND opponent = "pittsburgh penguins"
December larger than 21, and a Opponent of Pittsburgh penguins had what average game?
CREATE TABLE table_name_30 (game INTEGER, december VARCHAR, opponent VARCHAR)
SELECT SUM(track) FROM table_name_99 WHERE song_title = "raised on rock"
I want the sum of tracks for raised on rock
CREATE TABLE table_name_99 (track INTEGER, song_title VARCHAR)
SELECT format FROM table_name_12 WHERE label = "bronze" AND date = "1982" AND catalogue = "204 636"
What is Format, when Label is Bronze, when Date is 1982, and when Catalogue is 204 636?
CREATE TABLE table_name_12 (format VARCHAR, catalogue VARCHAR, label VARCHAR, date VARCHAR)
SELECT COUNT(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id JOIN ref_colors AS t4 ON t1.color_code = t4.color_code WHERE t4.color_description = "red" AND t3.characteristic_name = "slow"
Find the number of the products that have their color described as "red" and have a characteristic named "slow".
CREATE TABLE CHARACTERISTICS (characteristic_id VARCHAR, characteristic_name VARCHAR); CREATE TABLE ref_colors (color_code VARCHAR, color_description VARCHAR); CREATE TABLE products (product_id VARCHAR, color_code VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR)
SELECT MAX(laps) FROM table_name_31 WHERE time_retired = "tyre"
What is the top lap that had a tyre time?
CREATE TABLE table_name_31 (laps INTEGER, time_retired VARCHAR)
SELECT MIN(rank) FROM table_name_82 WHERE peak_position = "2" AND certification = "platinum" AND album = "my december"
what is the lowest rank when the peak position is 2, certification is platinum and the album is my december?
CREATE TABLE table_name_82 (rank INTEGER, album VARCHAR, peak_position VARCHAR, certification VARCHAR)
SELECT manner_of_departure FROM table_27495117_3 WHERE date_of_appointment = "21 September 2010"
What was the manner of departure for the appointment date of 21 september 2010
CREATE TABLE table_27495117_3 (manner_of_departure VARCHAR, date_of_appointment VARCHAR)
SELECT no_in_season FROM table_2182654_3 WHERE no_in_series = 24
What episode number in the season is episode 24 in the series?
CREATE TABLE table_2182654_3 (no_in_season VARCHAR, no_in_series VARCHAR)
SELECT MIN(wickets) FROM table_15700367_6 WHERE name = "Farveez Maharoof"
What is the lowest number of wickets for farveez maharoof?
CREATE TABLE table_15700367_6 (wickets INTEGER, name VARCHAR)
SELECT ihsaa_class FROM table_name_49 WHERE location = "columbia city"
Which IHSAA Class has a Location of columbia city?
CREATE TABLE table_name_49 (ihsaa_class VARCHAR, location VARCHAR)
SELECT SUM(enrollment) FROM table_name_85 WHERE ihsaa_football_class = "aaaa"
What is the enrollment for the AAAA class in IHSAA?
CREATE TABLE table_name_85 (enrollment INTEGER, ihsaa_football_class VARCHAR)
SELECT obama__percentage FROM table_20278716_2 WHERE county = "Burlington"
What percentage of people voted for Obama in Burlington?
CREATE TABLE table_20278716_2 (obama__percentage VARCHAR, county VARCHAR)
SELECT team FROM table_27712702_11 WHERE date = "March 27"
Who was the other team on march 27?
CREATE TABLE table_27712702_11 (team VARCHAR, date VARCHAR)
SELECT agg FROM table_name_48 WHERE team_1 = "karaorman"
When Karaorman is Team 1, what is the Agg.?
CREATE TABLE table_name_48 (agg VARCHAR, team_1 VARCHAR)
SELECT written_by FROM table_29747178_2 WHERE directed_by = "Bob Berlinger"
Who is the writer when the director is bob berlinger?
CREATE TABLE table_29747178_2 (written_by VARCHAR, directed_by VARCHAR)
SELECT winning_team FROM table_name_11 WHERE date = "july 13"
Who was the winning team on July 13?
CREATE TABLE table_name_11 (winning_team VARCHAR, date VARCHAR)
SELECT AVG(silver) FROM table_name_54 WHERE gold > 4 AND total < 24
What is the silver number when gold is more than 4, and the total is less than 24?
CREATE TABLE table_name_54 (silver INTEGER, gold VARCHAR, total VARCHAR)
SELECT school_club_team FROM table_name_57 WHERE player = "jim goodman"
what is the school that hosts jim goodman
CREATE TABLE table_name_57 (school_club_team VARCHAR, player VARCHAR)
SELECT staten_island FROM table_1108394_6 WHERE brooklyn = "940"
What was Staten Island when Brooklyn was 940?
CREATE TABLE table_1108394_6 (staten_island VARCHAR, brooklyn VARCHAR)
SELECT democrat AS :_john_kerry FROM table_16751596_5 WHERE dates_administered = "April 22, 2008"
what is the percentage for john kerry and dates administered is april 22, 2008?
CREATE TABLE table_16751596_5 (democrat VARCHAR, dates_administered VARCHAR)
SELECT us_air_date FROM table_2866503_1 WHERE us_viewers__million_ = "7.5"
What is the U.S. air date when the U.S. viewers are 7.5 million?
CREATE TABLE table_2866503_1 (us_air_date VARCHAR, us_viewers__million_ VARCHAR)