answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT ioc_code FROM table_2879165_1 WHERE country = "Singapore"
What is the ioc code when the country is listed as Singapore?
CREATE TABLE table_2879165_1 (ioc_code VARCHAR, country VARCHAR)
SELECT new_entries_this_round FROM table_18328569_1 WHERE round = "Quarter finals"
How many new entries started in the quarter finals?
CREATE TABLE table_18328569_1 (new_entries_this_round VARCHAR, round VARCHAR)
SELECT COUNT(total) FROM table_name_62 WHERE silver = "1" AND bronze = "1" AND nation = "spain"
How many medals for spain that has 1 silver and 1 bronze?
CREATE TABLE table_name_62 (total VARCHAR, nation VARCHAR, silver VARCHAR, bronze VARCHAR)
SELECT COUNT(tree_species) FROM table_16577990_1 WHERE total_plant_species = 113
How many tree species are there when the total plant species is 113?
CREATE TABLE table_16577990_1 (tree_species VARCHAR, total_plant_species VARCHAR)
SELECT score FROM table_name_79 WHERE opponent = "ann grossman"
what is the score when the opponent is ann grossman?
CREATE TABLE table_name_79 (score VARCHAR, opponent VARCHAR)
SELECT COUNT(*) FROM medicine WHERE FDA_approved = 'No'
How many medicines have the FDA approval status 'No' ?
CREATE TABLE medicine (FDA_approved VARCHAR)
SELECT network FROM table_28190363_1 WHERE judges = "Batuhan Zeynioğlu Piatti Murat Bozok Erol Kaynar"
What are the networks whose version of the show includes the judges batuhan zeynioğlu piatti murat bozok erol kaynar?
CREATE TABLE table_28190363_1 (network VARCHAR, judges VARCHAR)
SELECT opponent_in_the_final FROM table_name_65 WHERE outcome = "winner" AND date > 1992 AND surface = "clay" AND score_in_the_final = "3–6, 6–2, 6–1"
Which Opponent in the final has an Outcome of winner, and a Date larger than 1992, and a Surface of clay, and a Score in the final of 3–6, 6–2, 6–1?
CREATE TABLE table_name_65 (opponent_in_the_final VARCHAR, score_in_the_final VARCHAR, surface VARCHAR, outcome VARCHAR, date VARCHAR)
SELECT AVG(year) FROM table_name_57 WHERE accolade = "100 greatest singles of all time"
What's the average year for the accolade 100 greatest singles of all time?
CREATE TABLE table_name_57 (year INTEGER, accolade VARCHAR)
SELECT AVG(decile) FROM table_name_6 WHERE roll < 20
How many decile has a roll less than 20?
CREATE TABLE table_name_6 (decile INTEGER, roll INTEGER)
SELECT MIN(top_25) FROM table_name_17 WHERE wins > 0
What is the fewest number of top-25s for events with more than 0 wins?
CREATE TABLE table_name_17 (top_25 INTEGER, wins INTEGER)
SELECT ceremony FROM table_name_45 WHERE outcome = "nominated" AND nominee = "leela chitnis"
What ceremony was leela chitnis nominated at?
CREATE TABLE table_name_45 (ceremony VARCHAR, outcome VARCHAR, nominee VARCHAR)
SELECT position FROM table_name_18 WHERE round = 3
What position did the player who was picked in round 3 play?
CREATE TABLE table_name_18 (position VARCHAR, round VARCHAR)
SELECT semi_finalist__number2 FROM table_11214772_2 WHERE year = 2007
Which team was the second semi finalist in 2007?
CREATE TABLE table_11214772_2 (semi_finalist__number2 VARCHAR, year VARCHAR)
SELECT name FROM table_name_15 WHERE type = "hydro" AND capacity___mw__ < 478 AND rank > 85 AND province = "quebec"
what is the name when the type is hydro, the capacity (mw) is less than 478, the rank is more than 85 and the province is quebec?
CREATE TABLE table_name_15 (name VARCHAR, province VARCHAR, rank VARCHAR, type VARCHAR, capacity___mw__ VARCHAR)
SELECT date FROM table_name_50 WHERE away_team = "carlisle united"
What was the date when the away team was carlisle united?
CREATE TABLE table_name_50 (date VARCHAR, away_team VARCHAR)
SELECT matches FROM table_name_7 WHERE tally = "1-38"
Which Matches have a Tally of 1-38?
CREATE TABLE table_name_7 (matches VARCHAR, tally VARCHAR)
SELECT conference_joined FROM table_name_88 WHERE mascot = "little sycamores"
Can you tell me the Conference Joined that has the Mascot of little sycamores?
CREATE TABLE table_name_88 (conference_joined VARCHAR, mascot VARCHAR)
SELECT position FROM table_name_88 WHERE pick < 5 AND college = "notre dame" AND round = 7
Which Notre Dame position has a pick lower than 5 and round 7?
CREATE TABLE table_name_88 (position VARCHAR, round VARCHAR, pick VARCHAR, college VARCHAR)
SELECT against FROM table_name_19 WHERE round = "2r" AND surface = "clay"
Who was the match against when on a clay surface during round 2r?
CREATE TABLE table_name_19 (against VARCHAR, round VARCHAR, surface VARCHAR)
SELECT date FROM table_name_28 WHERE event = "metallica: escape from the studio"
When was the Metallica: Escape from the Studio show?
CREATE TABLE table_name_28 (date VARCHAR, event VARCHAR)
SELECT date FROM table_name_31 WHERE format_s_ = "album"
Which date has a format's album?
CREATE TABLE table_name_31 (date VARCHAR, format_s_ VARCHAR)
SELECT l2_cache FROM table_name_60 WHERE model_number = "atom z625"
What is L2 Cache, when Model Number is Atom Z625?
CREATE TABLE table_name_60 (l2_cache VARCHAR, model_number VARCHAR)
SELECT runner_s__up FROM table_1602858_1 WHERE tournament = "Memorial tournament"
Who was the runner-up in the Memorial Tournament?
CREATE TABLE table_1602858_1 (runner_s__up VARCHAR, tournament VARCHAR)
SELECT location FROM table_1971074_1 WHERE nickname = "Panthers"
Where is the school whose students are nicknamed Panthers located?
CREATE TABLE table_1971074_1 (location VARCHAR, nickname VARCHAR)
SELECT 1 AS st_leg FROM table_name_50 WHERE team_1 = "alajuelense"
What's the 1st leg of team 1 alajuelense?
CREATE TABLE table_name_50 (team_1 VARCHAR)
SELECT COUNT(points) FROM table_name_76 WHERE goal_difference > 17 AND played > 34
What is the total number of points of the club with a goal difference greater than 17 and more than 34 played?
CREATE TABLE table_name_76 (points VARCHAR, goal_difference VARCHAR, played VARCHAR)
SELECT MAX(wins) FROM table_name_43 WHERE benalla_dfl = "tatong"
What's the most wins of Tatong?
CREATE TABLE table_name_43 (wins INTEGER, benalla_dfl VARCHAR)
SELECT swimsuit FROM table_16268026_3 WHERE evening_gown = "8.774 (6)"
What is the swimsuit when evening gown is 8.774 (6) ?
CREATE TABLE table_16268026_3 (swimsuit VARCHAR, evening_gown VARCHAR)
SELECT MAX(season) FROM table_25214321_1 WHERE winner = "Dado Dolabella"
In what season was the winner Dado Dolabella?
CREATE TABLE table_25214321_1 (season INTEGER, winner VARCHAR)
SELECT date FROM table_name_6 WHERE event = "3000 m"
Whcih Date has an Event of 3000 m?
CREATE TABLE table_name_6 (date VARCHAR, event VARCHAR)
SELECT manufacturer FROM table_name_47 WHERE class = "b-2"
What manufacturer made class b-2?
CREATE TABLE table_name_47 (manufacturer VARCHAR, class VARCHAR)
SELECT scorers FROM table_name_4 WHERE score = "9-2"
Who are the scorers when the score is 9-2?
CREATE TABLE table_name_4 (scorers VARCHAR, score VARCHAR)
SELECT MAX(year_named) FROM table_name_78 WHERE latitude = "76.0n" AND diameter__km_ > 548
What year was the geological feature with a latitude of 76.0n and a diameter larger than 548 km was named?
CREATE TABLE table_name_78 (year_named INTEGER, latitude VARCHAR, diameter__km_ VARCHAR)
SELECT AVG(administrative_panel) FROM table_name_77 WHERE cultural_and_educational_panel > 1 AND industrial_and_commercial_panel < 4
What is the administrative panel average when the cultural and educational panel is greater than 1 and the industrial and commercial panel less than 4?
CREATE TABLE table_name_77 (administrative_panel INTEGER, cultural_and_educational_panel VARCHAR, industrial_and_commercial_panel VARCHAR)
SELECT singles_w_l FROM table_name_7 WHERE years_played > 1 AND highest_singles_ranking = "1346"
Tell me singles W-L that has years larger than 1 and highest singles ranking of 1346
CREATE TABLE table_name_7 (singles_w_l VARCHAR, years_played VARCHAR, highest_singles_ranking VARCHAR)
SELECT scorers FROM table_name_64 WHERE opponent = "neuchâtel xamax" AND date = "10 december 1985"
Who were the scorers in the game against neuchâtel xamax played on 10 December 1985?
CREATE TABLE table_name_64 (scorers VARCHAR, opponent VARCHAR, date VARCHAR)
SELECT AVG(money___) AS $__ FROM table_name_85 WHERE to_par = "+2" AND player = "toney penna"
What's the average payout of toney penna with a +2 par?
CREATE TABLE table_name_85 (money___ INTEGER, to_par VARCHAR, player VARCHAR)
SELECT authority FROM table_name_50 WHERE scientic_name = "o. tricuspis"
What is the authority of the scientific name of O. Tricuspis?
CREATE TABLE table_name_50 (authority VARCHAR, scientic_name VARCHAR)
SELECT MIN(2011) FROM table_name_81 WHERE 1948 < 15872624 AND 1966 = 263103 AND 1992 > 266308
Which 2011 is the lowest one that has a 1948 smaller than 15872624, and a 1966 of 263103, and a 1992 larger than 266308?
CREATE TABLE table_name_81 (Id VARCHAR)
SELECT event FROM table_name_88 WHERE distance = "ft10in (m)"
Which event has a distance of ft10in (m)?
CREATE TABLE table_name_88 (event VARCHAR, distance VARCHAR)
SELECT saturday_shani__saturn_ FROM table_name_41 WHERE sunday_surya__the_sun_ = "रविवार ravivār" AND tuesday_mangala__mars_ = "मंगळवार mangaḷavār"
What is the result on Saturday when it's रविवार ravivār on Sunday and मंगळवार mangaḷavār on Tuesday?
CREATE TABLE table_name_41 (saturday_shani__saturn_ VARCHAR, sunday_surya__the_sun_ VARCHAR, tuesday_mangala__mars_ VARCHAR)
SELECT hometown FROM table_11677100_11 WHERE position = "Catcher"
WHAT HOMETOWN DOES HE PLAY AS THE CATCHER FOR?
CREATE TABLE table_11677100_11 (hometown VARCHAR, position VARCHAR)
SELECT name FROM table_name_12 WHERE result = 54.67
Who has a Result of 54.67?
CREATE TABLE table_name_12 (name VARCHAR, result VARCHAR)
SELECT COUNT(time) FROM table_name_34 WHERE lane = 4
What is the Time of the Athlete in Lane 4?
CREATE TABLE table_name_34 (time VARCHAR, lane VARCHAR)
SELECT network FROM table_name_4 WHERE games = "unknown" AND title = "hvem kan slå ylvis hvem kan slå aamodt & kjus"
Which network had unknown games and a title of hvem kan slå ylvis hvem kan slå aamodt & kjus?
CREATE TABLE table_name_4 (network VARCHAR, games VARCHAR, title VARCHAR)
SELECT place FROM table_name_2 WHERE event = "4000 m individual pursuit"
what is the place when the event is 4000 m individual pursuit?
CREATE TABLE table_name_2 (place VARCHAR, event VARCHAR)
SELECT COUNT(victor) FROM table_24706337_1 WHERE name_of_the_war = "War of 1730–1736 , first stage"
How many victors where there in the War of 1730–1736 , first stage?
CREATE TABLE table_24706337_1 (victor VARCHAR, name_of_the_war VARCHAR)
SELECT japanese_orthography FROM table_11390711_4 WHERE english_name = "National Fisheries University"
What is the Japanese orthography for National Fisheries University?
CREATE TABLE table_11390711_4 (japanese_orthography VARCHAR, english_name VARCHAR)
SELECT AVG(bronze) FROM table_name_69 WHERE total = 15 AND gold < 2
What is the average bronze with a total of 15 and less than 2 gold?
CREATE TABLE table_name_69 (bronze INTEGER, total VARCHAR, gold VARCHAR)
SELECT winning_score FROM table_name_42 WHERE date = "aug 26, 1973"
Which Winning score has a Date of aug 26, 1973?
CREATE TABLE table_name_42 (winning_score VARCHAR, date VARCHAR)
SELECT MAX(losses) FROM table_name_28 WHERE draws > 0
Which Losses have Draws larger than 0?
CREATE TABLE table_name_28 (losses INTEGER, draws INTEGER)
SELECT COUNT(to_par) FROM table_name_9 WHERE player = "john mahaffey" AND total < 298
What is total number of the to par of player john mahaffey, who has a total less than 298?
CREATE TABLE table_name_9 (to_par VARCHAR, player VARCHAR, total VARCHAR)
SELECT to_par FROM table_name_53 WHERE year_s__won > 1999
What is the to par when the year(s) won is larger than 1999?
CREATE TABLE table_name_53 (to_par VARCHAR, year_s__won INTEGER)
SELECT tyre FROM table_name_5 WHERE race = "united states grand prix"
What is the Tyre for the united states grand prix?
CREATE TABLE table_name_5 (tyre VARCHAR, race VARCHAR)
SELECT profession FROM table_name_87 WHERE city = "leskovac"
What is the profession of the housemate from Leskovac city?
CREATE TABLE table_name_87 (profession VARCHAR, city VARCHAR)
SELECT opponent FROM table_name_23 WHERE date = "september 30, 1990"
Who was the opponent team on September 30, 1990?
CREATE TABLE table_name_23 (opponent VARCHAR, date VARCHAR)
SELECT song_title FROM table_21500850_1 WHERE year = 2007
What is every song title for 2007?
CREATE TABLE table_21500850_1 (song_title VARCHAR, year VARCHAR)
SELECT MIN(played) FROM table_15405904_1
How many games are played?
CREATE TABLE table_15405904_1 (played INTEGER)
SELECT democrat AS :_tom_harkin FROM table_name_77 WHERE poll_source = "rasmussen reports" AND lead_margin = 14
What was Democrat: Tom Harkin's percentage when the poll source was Rasmussen Reports and the lead margin was 14?
CREATE TABLE table_name_77 (democrat VARCHAR, poll_source VARCHAR, lead_margin VARCHAR)
SELECT 1953 FROM table_name_48 WHERE 1949 = "2" AND 1952 = "3"
What 1953 has 2 as a 1949, and 3 as 1952?
CREATE TABLE table_name_48 (Id VARCHAR)
SELECT AVG(wins) FROM table_name_15 WHERE tournament = "the open championship" AND cuts_made > 3
In the Open Championship with more than 3 cuts made, what is the average wins?
CREATE TABLE table_name_15 (wins INTEGER, tournament VARCHAR, cuts_made VARCHAR)
SELECT time FROM table_name_73 WHERE lane < 2 AND nationality = "spain"
Which Time has a Lane smaller than 2, and a Nationality of spain?
CREATE TABLE table_name_73 (time VARCHAR, lane VARCHAR, nationality VARCHAR)
SELECT MIN(goals_for) FROM table_name_95 WHERE played < 34
Which lowest goals for number had a played number of less than 34?
CREATE TABLE table_name_95 (goals_for INTEGER, played INTEGER)
SELECT date FROM table_name_17 WHERE visitor = "calgary flames" AND record = "1–2–0"
What was the date of the game when the Calgary Flames were the visiting team and there was a record of 1–2–0?
CREATE TABLE table_name_17 (date VARCHAR, visitor VARCHAR, record VARCHAR)
SELECT tyre FROM table_name_35 WHERE driver = "pedro de la rosa"
Which tyre is on the car driven by Pedro de la Rosa?
CREATE TABLE table_name_35 (tyre VARCHAR, driver VARCHAR)
SELECT round FROM table_name_61 WHERE record = "5-4"
What is the Round of the event with a Record of 5-4?
CREATE TABLE table_name_61 (round VARCHAR, record VARCHAR)
SELECT high_points FROM table_15780049_8 WHERE date = "March 7"
Name the high points for march 7
CREATE TABLE table_15780049_8 (high_points VARCHAR, date VARCHAR)
SELECT venue FROM table_name_78 WHERE result = "won" AND competition = "friendly" AND date = "28 may 2012"
Where was the friendly competition that Andriy Yarmolenko won on 28 may 2012?
CREATE TABLE table_name_78 (venue VARCHAR, date VARCHAR, result VARCHAR, competition VARCHAR)
SELECT directed_by FROM table_name_21 WHERE episode__number = "92 (4)"
Who directed episode # 92 (4)?
CREATE TABLE table_name_21 (directed_by VARCHAR, episode__number VARCHAR)
SELECT series FROM table_name_1 WHERE release_date = "1946-01-05"
What is the Series of the Filmography with Release date of 1946-01-05?
CREATE TABLE table_name_1 (series VARCHAR, release_date VARCHAR)
SELECT first_elected FROM table_1342256_40 WHERE district = "South Carolina 4"
What is the first elected for south carolina 4?
CREATE TABLE table_1342256_40 (first_elected VARCHAR, district VARCHAR)
SELECT decade FROM table_name_92 WHERE artist = "the replacements"
What decade is the artist the replacements?
CREATE TABLE table_name_92 (decade VARCHAR, artist VARCHAR)
SELECT album FROM table_name_27 WHERE year = 1990
What is the 1990 Album?
CREATE TABLE table_name_27 (album VARCHAR, year VARCHAR)
SELECT opponent FROM table_name_29 WHERE week < 12 AND date = "november 25, 1965"
What opponent has a week less than 12, with November 25, 1965 as the date?
CREATE TABLE table_name_29 (opponent VARCHAR, week VARCHAR, date VARCHAR)
SELECT player FROM table_name_18 WHERE opposition = "limerick" AND last_game = "munster semi-final" AND début = 1973
Which player debuted in 1973 against Limerick and played his last game at the Munster semi-final?
CREATE TABLE table_name_18 (player VARCHAR, début VARCHAR, opposition VARCHAR, last_game VARCHAR)
SELECT LName FROM STUDENT WHERE Sex = "F" ORDER BY Age DESC
Find the last name of female (sex is F) students in the descending order of age.
CREATE TABLE STUDENT (LName VARCHAR, Sex VARCHAR, Age VARCHAR)
SELECT height_ft___m FROM table_name_80 WHERE floors = 9
Name the height with 9 floors
CREATE TABLE table_name_80 (height_ft___m VARCHAR, floors VARCHAR)
SELECT driver FROM table_name_12 WHERE constructor = "brm" AND laps > 30
What driver has BRM as a constructor and had more than 30 laps?
CREATE TABLE table_name_12 (driver VARCHAR, constructor VARCHAR, laps VARCHAR)
SELECT date FROM table_name_98 WHERE away_team = "newport county"
what is the date when the away team is newport county?
CREATE TABLE table_name_98 (date VARCHAR, away_team VARCHAR)
SELECT int_percentage FROM table_name_80 WHERE rlng = "4"
What % has 4 RLng?
CREATE TABLE table_name_80 (int_percentage VARCHAR, rlng VARCHAR)
SELECT type_of_aircraft FROM table_23508196_5 WHERE number_of_crews = "21"
What is the aircraft for 21 crews?
CREATE TABLE table_23508196_5 (type_of_aircraft VARCHAR, number_of_crews VARCHAR)
SELECT score FROM table_name_57 WHERE opponents_in_the_final = "nathan healey igor kunitsyn"
Name the score for opponents of nathan healey igor kunitsyn
CREATE TABLE table_name_57 (score VARCHAR, opponents_in_the_final VARCHAR)
SELECT MAX(saffir_simpson_category) FROM table_name_8 WHERE nhc_advisory_number = "18"
What was the highest SaffirSimpson with an NHC advisory of 18?
CREATE TABLE table_name_8 (saffir_simpson_category INTEGER, nhc_advisory_number VARCHAR)
SELECT gender FROM staff GROUP BY gender ORDER BY COUNT(*) DESC LIMIT 1
Which gender makes up the majority of the staff?
CREATE TABLE staff (gender VARCHAR)
SELECT date FROM table_name_21 WHERE margin_of_victory = "1 stroke" AND runner_s__up = "greg kraft"
What date has a margin of victory of 1 stroke over Greg Kraft?
CREATE TABLE table_name_21 (date VARCHAR, margin_of_victory VARCHAR, runner_s__up VARCHAR)
SELECT player FROM table_11303072_9 WHERE rank = 2
What are the players whose rank is 2?
CREATE TABLE table_11303072_9 (player VARCHAR, rank VARCHAR)
SELECT intergiro_classification FROM table_name_34 WHERE points_classification = "fabrizio guidi" AND winner = "nicolaj bo larsen"
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 MAX(pick) FROM table_name_11 WHERE position = "te" AND round < 2
WHAT IS THE HIGHEST PICK WITH A TE POSITION, AND ROUND SMALLER THAN 2?
CREATE TABLE table_name_11 (pick INTEGER, position VARCHAR, round VARCHAR)
SELECT MIN(goals) FROM table_name_53 WHERE debut_in_europe < 1961
What were the lowest goals with a debut before 1961 in Europe?
CREATE TABLE table_name_53 (goals INTEGER, debut_in_europe INTEGER)
SELECT MIN(production_code) FROM table_2818164_2 WHERE original_air_date = "February 21, 1985"
What's the production code of the episode originally aired on February 21, 1985?
CREATE TABLE table_2818164_2 (production_code INTEGER, original_air_date VARCHAR)
SELECT nickname FROM table_name_71 WHERE established = 1958
What was the nick name for the school established in 1958?
CREATE TABLE table_name_71 (nickname VARCHAR, established VARCHAR)
SELECT COUNT(tasmania) FROM table_1057262_2 WHERE new_south_wales = 190
what's the total number of tasmania with new south wales crop of 190 kilotonnes
CREATE TABLE table_1057262_2 (tasmania VARCHAR, new_south_wales VARCHAR)
SELECT entrant FROM table_name_3 WHERE points = 0 AND year = 1974
Who has 0 points in 1974?
CREATE TABLE table_name_3 (entrant VARCHAR, points VARCHAR, year VARCHAR)
SELECT representative FROM table_26131768_4 WHERE residence = "Chagrin Falls"
If the residence is Chagrin falls, who is the representative?
CREATE TABLE table_26131768_4 (representative VARCHAR, residence VARCHAR)
SELECT attendance FROM table_name_31 WHERE result = "l 17–20"
Result of l 17–20 had what attendance?
CREATE TABLE table_name_31 (attendance VARCHAR, result VARCHAR)
SELECT spanish_title FROM table_20404716_1 WHERE film_title_used_in_nomination = "Ogu and Mampato in Rapa Nui"
What is the Spanish title of the film whose title used in nomination was Ogu and Mampato in Rapa Nui?
CREATE TABLE table_20404716_1 (spanish_title VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT res FROM table_name_72 WHERE method = "submission (kimura)"
What was the result when the method was submission (kimura)?
CREATE TABLE table_name_72 (res VARCHAR, method VARCHAR)
SELECT transfer_fee FROM table_name_83 WHERE transfer_window = "summer" AND country = "sco" AND name = "crainey"
What was the transfer fee for the summer transfer involving the SCO named Crainey?
CREATE TABLE table_name_83 (transfer_fee VARCHAR, name VARCHAR, transfer_window VARCHAR, country VARCHAR)
SELECT school_club_team FROM table_name_53 WHERE position = "dl"
What was the school for the player who was a DL?
CREATE TABLE table_name_53 (school_club_team VARCHAR, position VARCHAR)