answer
stringlengths 18
557
| question
stringlengths 12
244
| context
stringlengths 27
489
|
|---|---|---|
SELECT english_title FROM table_name_80 WHERE year < 1999 AND role = "kim da-rim"
|
What is the english title of the film before 1999 with a role of kim da-rim?
|
CREATE TABLE table_name_80 (english_title VARCHAR, year VARCHAR, role VARCHAR)
|
SELECT team FROM table_27698941_8 WHERE date = "January 17"
|
Who were the 76ers opponents on January 17?
|
CREATE TABLE table_27698941_8 (team VARCHAR, date VARCHAR)
|
SELECT MIN(lane) FROM table_name_55 WHERE nationality = "brazil" AND time < 21.15
|
What's Brazil's lane with a time less than 21.15?
|
CREATE TABLE table_name_55 (lane INTEGER, nationality VARCHAR, time VARCHAR)
|
SELECT area__km²_ FROM table_26321719_1 WHERE change___percentage_ = "-3.6"
|
What is every value for area if change% is -3.6?
|
CREATE TABLE table_26321719_1 (area__km²_ VARCHAR, change___percentage_ VARCHAR)
|
SELECT score FROM table_name_88 WHERE player = "bernhard langer"
|
What was the score of Bernhard Langer after 3 rounds?
|
CREATE TABLE table_name_88 (score VARCHAR, player VARCHAR)
|
SELECT score FROM table_name_83 WHERE place = "t6" AND player = "k.j. choi"
|
What is the score with a place of t6 for the player k.j. choi?
|
CREATE TABLE table_name_83 (score VARCHAR, place VARCHAR, player VARCHAR)
|
SELECT away_team FROM table_name_83 WHERE crowd > 25 OFFSET 000
|
Which Venue has a crowd larger than 25,000?
|
CREATE TABLE table_name_83 (away_team VARCHAR, crowd INTEGER)
|
SELECT AVG(year) FROM table_name_53 WHERE performing_arts = "janaprakal chandruang"
|
Name the average year for janaprakal chandruang
|
CREATE TABLE table_name_53 (year INTEGER, performing_arts VARCHAR)
|
SELECT MIN(overs) FROM table_name_50 WHERE team = "royal challengers bangalore"
|
What is the lowest number of Overs for the Royal Challengers Bangalore?
|
CREATE TABLE table_name_50 (overs INTEGER, team VARCHAR)
|
SELECT opponents_in_the_final FROM table_name_15 WHERE tournament = "noida"
|
Who were the opponents in the final at Noida?
|
CREATE TABLE table_name_15 (opponents_in_the_final VARCHAR, tournament VARCHAR)
|
SELECT record FROM table_name_73 WHERE loss = "johnson (5-6)"
|
What is the record for the game that has a loss of Johnson (5-6)?
|
CREATE TABLE table_name_73 (record VARCHAR, loss VARCHAR)
|
SELECT surface FROM table_name_38 WHERE against = "poland"
|
On what surface did Poland play as the against team?
|
CREATE TABLE table_name_38 (surface VARCHAR, against VARCHAR)
|
SELECT MAX(lost) FROM table_name_16 WHERE points < 7
|
What is the highest loss with points less than 7?
|
CREATE TABLE table_name_16 (lost INTEGER, points INTEGER)
|
SELECT score FROM table_name_70 WHERE competition = "uefa euro 2012 qualifying"
|
Which Score has a Competition of uefa euro 2012 qualifying?
|
CREATE TABLE table_name_70 (score VARCHAR, competition VARCHAR)
|
SELECT tyres FROM table_name_89 WHERE laps > 5 AND team = "nissan motorsports international"
|
Which tyres has more than 5 laps with team nissan motorsports international?
|
CREATE TABLE table_name_89 (tyres VARCHAR, laps VARCHAR, team VARCHAR)
|
SELECT district FROM table_1341472_34 WHERE first_elected = 1994
|
Name thedistrict for 1994
|
CREATE TABLE table_1341472_34 (district VARCHAR, first_elected VARCHAR)
|
SELECT date FROM table_name_14 WHERE city = "novi sad"
|
When did the city of Novi Sad participate?
|
CREATE TABLE table_name_14 (date VARCHAR, city VARCHAR)
|
SELECT date FROM table_23211041_7 WHERE location_attendance = "Verizon Center 20,173"
|
If the location attendance is the Verizon Center 20,173, what is the date?
|
CREATE TABLE table_23211041_7 (date VARCHAR, location_attendance VARCHAR)
|
SELECT MAX(founded) FROM table_1974782_1 WHERE location = "Springfield, Massachusetts"
|
When was the school in Springfield, Massachusetts founded?
|
CREATE TABLE table_1974782_1 (founded INTEGER, location VARCHAR)
|
SELECT MIN(top_25) FROM table_name_42 WHERE events > 15
|
What is the low number of top 25s in an event with over 15 appearances?
|
CREATE TABLE table_name_42 (top_25 INTEGER, events INTEGER)
|
SELECT result FROM table_name_93 WHERE date = "13 october 1993"
|
What was the result of the match played on 13 October 1993?
|
CREATE TABLE table_name_93 (result VARCHAR, date VARCHAR)
|
SELECT COUNT(elapsed_time) FROM table_22050544_3 WHERE event = "$16.50 Fixed-Limit Badugi"
|
How many categories for elapsed time exist for the $16.50 fixed-limit badugi game?
|
CREATE TABLE table_22050544_3 (elapsed_time VARCHAR, event VARCHAR)
|
SELECT constructor FROM table_name_53 WHERE driver = "albino buticchi"
|
Who was Albino Buticchi's constructor?
|
CREATE TABLE table_name_53 (constructor VARCHAR, driver VARCHAR)
|
SELECT us_open FROM table_1506950_9 WHERE open_ch = "6th"
|
What was the player's result at the U.S. Open of the player who finished 6th at the Open Ch?
|
CREATE TABLE table_1506950_9 (us_open VARCHAR, open_ch VARCHAR)
|
SELECT nickname FROM table_262481_2 WHERE founded = 1857
|
What is the nickname of the institution that was founded in 1857?
|
CREATE TABLE table_262481_2 (nickname VARCHAR, founded VARCHAR)
|
SELECT AVG(loser_age), AVG(winner_age) FROM matches
|
Find the average age of losers and winners of all matches.
|
CREATE TABLE matches (loser_age INTEGER, winner_age INTEGER)
|
SELECT score FROM table_name_39 WHERE surface = "hardcourt" AND date = "september 30, 1984"
|
Which score has a Surface of hardcourt, and a Date of september 30, 1984?
|
CREATE TABLE table_name_39 (score VARCHAR, surface VARCHAR, date VARCHAR)
|
SELECT AVG(total) FROM table_name_54 WHERE gold = 0 AND bronze = 0 AND silver < 1
|
What is the average total when gold is 0, bronze is 0, and silver is smaller than 1?
|
CREATE TABLE table_name_54 (total INTEGER, silver VARCHAR, gold VARCHAR, bronze VARCHAR)
|
SELECT winning_score FROM table_name_62 WHERE tournament = "german masters"
|
What was Olazabal's winning score in the German Masters?
|
CREATE TABLE table_name_62 (winning_score VARCHAR, tournament VARCHAR)
|
SELECT del_pueblo FROM table_15977768_1 WHERE centennial = "1988"
|
Name the del pueblo for centennial 1988
|
CREATE TABLE table_15977768_1 (del_pueblo VARCHAR, centennial VARCHAR)
|
SELECT crowd FROM table_name_14 WHERE away_team = "carlton"
|
How many spectators were at the away team Carlton?
|
CREATE TABLE table_name_14 (crowd VARCHAR, away_team VARCHAR)
|
SELECT MAX(money___) AS $__ FROM table_name_56 WHERE to_par = "–1" AND score = 73 - 70 - 73 - 71 = 287
|
Which money is the highest one that has a To par of –1, and a Score of 73-70-73-71=287?
|
CREATE TABLE table_name_56 (money___ INTEGER, to_par VARCHAR, score VARCHAR)
|
SELECT COUNT(bronze) FROM table_name_88 WHERE gold > 0 AND total < 1
|
How much Bronze has a Gold larger than 0, and a Total smaller than 1?
|
CREATE TABLE table_name_88 (bronze VARCHAR, gold VARCHAR, total VARCHAR)
|
SELECT spanish_voice_actor FROM table_name_61 WHERE french_voice_actor = "dennis boileau"
|
Which Spanish voice actor does the same character as French voice actor Dennis Boileau?
|
CREATE TABLE table_name_61 (spanish_voice_actor VARCHAR, french_voice_actor VARCHAR)
|
SELECT MIN(no_in_season) FROM table_2226817_9 WHERE no_in_series = 158
|
How many seasons had episode 158?
|
CREATE TABLE table_2226817_9 (no_in_season INTEGER, no_in_series VARCHAR)
|
SELECT SUM(drawn) FROM table_name_42 WHERE played > 14
|
What is the whole of Drawn that has a Played larger than 14?
|
CREATE TABLE table_name_42 (drawn INTEGER, played INTEGER)
|
SELECT AVG(total_cargo__metric_tonnes_) FROM table_name_97 WHERE _percentage_change = "11.8%"
|
What's the average total cargo in metric tonnes that has an 11.8% Change?
|
CREATE TABLE table_name_97 (total_cargo__metric_tonnes_ INTEGER, _percentage_change VARCHAR)
|
SELECT Chief AS judge FROM table_name_37 WHERE judge = "jack edward tanner"
|
Who was Judge Jack Edward Tanner's chief judge?
|
CREATE TABLE table_name_37 (Chief VARCHAR, judge VARCHAR)
|
SELECT MAX(money_list_rank) FROM table_29504351_2 WHERE player = "Doug Barron"
|
What is the money list rank for player Doug Barron?
|
CREATE TABLE table_29504351_2 (money_list_rank INTEGER, player VARCHAR)
|
SELECT cfl_team FROM table_10960039_6 WHERE college = "Northwood"
|
What teams drafted players that played for northwood school?
|
CREATE TABLE table_10960039_6 (cfl_team VARCHAR, college VARCHAR)
|
SELECT COUNT(round) FROM table_name_1 WHERE position = "defensive tackle" AND pick__number < 19
|
In what Round was a Defensive Tackle Pick # less than 19?
|
CREATE TABLE table_name_1 (round VARCHAR, position VARCHAR, pick__number VARCHAR)
|
SELECT visitor FROM table_name_64 WHERE home = "phoenix" AND record = "2–5–0"
|
Who visited phoenix with a Record of 2–5–0?
|
CREATE TABLE table_name_64 (visitor VARCHAR, home VARCHAR, record VARCHAR)
|
SELECT home FROM table_name_79 WHERE season = "1949-50"
|
What was the home for season 1949-50?
|
CREATE TABLE table_name_79 (home VARCHAR, season VARCHAR)
|
SELECT to_par FROM table_name_71 WHERE player = "jack nicklaus"
|
What was the To par of Jack Nicklaus?
|
CREATE TABLE table_name_71 (to_par VARCHAR, player VARCHAR)
|
SELECT SUM(attendance) FROM table_name_25 WHERE date = "may 31"
|
How many people attended the game on May 31?
|
CREATE TABLE table_name_25 (attendance INTEGER, date VARCHAR)
|
SELECT race_name FROM table_1140088_6 WHERE circuit = "Oulton Park"
|
What race was held at Oulton Park?
|
CREATE TABLE table_1140088_6 (race_name VARCHAR, circuit VARCHAR)
|
SELECT loss FROM table_name_58 WHERE opponent = "tigers" AND date = "june 8"
|
On June 8, what's the loss when the Blue Jays played the Tigers?
|
CREATE TABLE table_name_58 (loss VARCHAR, opponent VARCHAR, date VARCHAR)
|
SELECT save FROM table_name_96 WHERE loss = "sanderson (6-5)"
|
What was the Save in the game that has a Loss of sanderson (6-5)?
|
CREATE TABLE table_name_96 (save VARCHAR, loss VARCHAR)
|
SELECT date FROM table_name_69 WHERE score = "6–4, 7–5"
|
On what date was the score 6–4, 7–5?
|
CREATE TABLE table_name_69 (date VARCHAR, score VARCHAR)
|
SELECT frequency FROM table_name_5 WHERE model_number = "c3 1.4a"
|
Which Frequency has a Model Number of c3 1.4a?
|
CREATE TABLE table_name_5 (frequency VARCHAR, model_number VARCHAR)
|
SELECT SUM(erp_w) FROM table_name_30 WHERE call_sign = "k231bg"
|
Call sign of k231bg has what sum of erp w?
|
CREATE TABLE table_name_30 (erp_w INTEGER, call_sign VARCHAR)
|
SELECT round FROM table_name_51 WHERE clubs_involved = 4
|
Which round has 4 clubs involved?
|
CREATE TABLE table_name_51 (round VARCHAR, clubs_involved VARCHAR)
|
SELECT code FROM table_name_34 WHERE currency = "croatian kuna"
|
What code is used to represent the currency of Croatian Kuna?
|
CREATE TABLE table_name_34 (code VARCHAR, currency VARCHAR)
|
SELECT MAX(position) FROM table_name_69 WHERE best_3_year_period = "petrosian"
|
Which Position has a best 3-year period of petrosian?
|
CREATE TABLE table_name_69 (position INTEGER, best_3_year_period VARCHAR)
|
SELECT previous_school FROM table_29050051_3 WHERE height = "ft5in (m)" AND position = "Forward"
|
What was the previous school for the forward with a height of ft5in (m)?
|
CREATE TABLE table_29050051_3 (previous_school VARCHAR, height VARCHAR, position VARCHAR)
|
SELECT single FROM table_name_67 WHERE artist = "queen"
|
what is the single of the queen
|
CREATE TABLE table_name_67 (single VARCHAR, artist VARCHAR)
|
SELECT state FROM table_16268026_3 WHERE interview = "8.313 (8)"
|
What state has an interview of 8.313 (8) ?
|
CREATE TABLE table_16268026_3 (state VARCHAR, interview VARCHAR)
|
SELECT position FROM table_name_38 WHERE round = 4
|
A round of 4 is in what position?
|
CREATE TABLE table_name_38 (position VARCHAR, round VARCHAR)
|
SELECT MIN(number) FROM table_name_10 WHERE date = "january 2, 1936"
|
What's the number of the game played on January 2, 1936?
|
CREATE TABLE table_name_10 (number INTEGER, date VARCHAR)
|
SELECT MIN(silver) FROM table_name_90 WHERE bronze < 20 AND total = 1 AND sport = "water polo" AND gold < 0
|
What is the smallest number of silvers associated with bronzes under 20, totals of 1, golds of 0, and in Water Polo?
|
CREATE TABLE table_name_90 (silver INTEGER, gold VARCHAR, sport VARCHAR, bronze VARCHAR, total VARCHAR)
|
SELECT player FROM table_name_36 WHERE to_par = "+21"
|
What player has +21 as the to par?
|
CREATE TABLE table_name_36 (player VARCHAR, to_par VARCHAR)
|
SELECT mccain__percentage FROM table_15929156_3 WHERE county = "Dukes"
|
Name the mccain % for dukes
|
CREATE TABLE table_15929156_3 (mccain__percentage VARCHAR, county VARCHAR)
|
SELECT stage__winner_ FROM table_name_3 WHERE general_classification = "thor hushovd" AND young_rider_classification = "trent lowe"
|
What stage (winner) has thor hushovd as a general classification, and trent lowe as a rider classification?
|
CREATE TABLE table_name_3 (stage__winner_ VARCHAR, general_classification VARCHAR, young_rider_classification VARCHAR)
|
SELECT away_team AS score FROM table_name_19 WHERE venue = "vfl park"
|
What is the away team score at vfl park?
|
CREATE TABLE table_name_19 (away_team VARCHAR, venue VARCHAR)
|
SELECT album FROM table_name_95 WHERE note = "tape [tape echo]"
|
Which album had the note tape [tape echo]?
|
CREATE TABLE table_name_95 (album VARCHAR, note VARCHAR)
|
SELECT fleet_series__quantity_ FROM table_name_60 WHERE order_year = "2010" AND model = "de40lfr"
|
Which Fleet Series (Quantity) has an Order Year of 2010, and a Model of de40lfr?
|
CREATE TABLE table_name_60 (fleet_series__quantity_ VARCHAR, order_year VARCHAR, model VARCHAR)
|
SELECT the_mole FROM table_13036251_1 WHERE winner = "Frédérique Huydts"
|
what's the mole with winner being frédérique huydts
|
CREATE TABLE table_13036251_1 (the_mole VARCHAR, winner VARCHAR)
|
SELECT date_of_appointment FROM table_name_38 WHERE team = "aek" AND replaced_by = "christos kassianos"
|
What was the date of appointment for Christos Kassianos who belonged to AEK?
|
CREATE TABLE table_name_38 (date_of_appointment VARCHAR, team VARCHAR, replaced_by VARCHAR)
|
SELECT COUNT(try_bonus) FROM table_17675675_2 WHERE points = "51"
|
With the given points of 51, what was the total number of the try bonus?
|
CREATE TABLE table_17675675_2 (try_bonus VARCHAR, points VARCHAR)
|
SELECT MAX(total_votes) FROM table_name_7 WHERE outcome = "elected" AND candidate = "lee teng-hui"
|
How many votes did Lee Teng-Hui receive when he was elected?
|
CREATE TABLE table_name_7 (total_votes INTEGER, outcome VARCHAR, candidate VARCHAR)
|
SELECT DISTINCT T1.Director FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID = T2.Film_ID WHERE T2.Year = 1995
|
Show the distinct director of films with market estimation in the year of 1995.
|
CREATE TABLE film (Director VARCHAR, Film_ID VARCHAR); CREATE TABLE film_market_estimation (Film_ID VARCHAR, Year VARCHAR)
|
SELECT date FROM table_27712180_13 WHERE game = 3
|
What was the date of game #3?
|
CREATE TABLE table_27712180_13 (date VARCHAR, game VARCHAR)
|
SELECT team_2 FROM table_name_60 WHERE team_1 = "valletta"
|
What is the team 2 for team 1 of Valletta?
|
CREATE TABLE table_name_60 (team_2 VARCHAR, team_1 VARCHAR)
|
SELECT title FROM table_25764073_3 WHERE season__number = 35
|
Name the title for season number 35
|
CREATE TABLE table_25764073_3 (title VARCHAR, season__number VARCHAR)
|
SELECT icao FROM table_name_2 WHERE commenced_operations < 1989
|
What is the ICAO with commenced operations before 1989?
|
CREATE TABLE table_name_2 (icao VARCHAR, commenced_operations INTEGER)
|
SELECT Competition_type, Country FROM competition
|
What are the types and countries of competitions?
|
CREATE TABLE competition (Competition_type VARCHAR, Country VARCHAR)
|
SELECT SUM(total) FROM table_name_71 WHERE years = "2000–2012" AND silver > 2 AND bronze = 0 AND rank < 70
|
What is the total in 2000–2012, with more than 2 silver, 0 Bronze, and a Rank smaller than 70?
|
CREATE TABLE table_name_71 (total INTEGER, rank VARCHAR, bronze VARCHAR, years VARCHAR, silver VARCHAR)
|
SELECT meg_whitman__r_ FROM table_name_35 WHERE margin_of_error = "± 3.3%"
|
What percentage of the vote with a margin of error of ± 3.3% did Meg Whitman (R) get?
|
CREATE TABLE table_name_35 (meg_whitman__r_ VARCHAR, margin_of_error VARCHAR)
|
SELECT mon_23_aug FROM table_26986076_2 WHERE fri_27_aug = "18' 59.25 119.226mph"
|
what is mon 23 aug when fri 27 aug is 18' 59.25 119.226mph?
|
CREATE TABLE table_26986076_2 (mon_23_aug VARCHAR, fri_27_aug VARCHAR)
|
SELECT COUNT(date_of_commissioning) FROM table_28672269_1 WHERE unit_number = 2
|
What are Unit 2's dates of commissioning?
|
CREATE TABLE table_28672269_1 (date_of_commissioning VARCHAR, unit_number VARCHAR)
|
SELECT play_by_play FROM table_name_61 WHERE network = "abc" AND year > 1998
|
Who was the play by play commentator for ABC after 1998?
|
CREATE TABLE table_name_61 (play_by_play VARCHAR, network VARCHAR, year VARCHAR)
|
SELECT date FROM table_name_15 WHERE result = "won 4-2"
|
What was the date of the game with a result of won 4-2?
|
CREATE TABLE table_name_15 (date VARCHAR, result VARCHAR)
|
SELECT date FROM table_name_40 WHERE player = "af giles"
|
What date did af giles play?
|
CREATE TABLE table_name_40 (date VARCHAR, player VARCHAR)
|
SELECT opponent FROM table_name_79 WHERE record = "39-19"
|
What is the name of the Opponent when there is a Record of 39-19?
|
CREATE TABLE table_name_79 (opponent VARCHAR, record VARCHAR)
|
SELECT MAX(bronze) FROM table_name_66 WHERE gold > 1
|
What largest bronze number has a gold number that is bigger than 1?
|
CREATE TABLE table_name_66 (bronze INTEGER, gold INTEGER)
|
SELECT studio FROM table_27303975_2 WHERE catalog_number = "81063"
|
Name the studio for catalog number 81063
|
CREATE TABLE table_27303975_2 (studio VARCHAR, catalog_number VARCHAR)
|
SELECT COUNT(f_laps) FROM table_25318033_1 WHERE position = "10th" AND races < 9.0
|
How many laps where the position is 10th and the races is smaller than 9.0?
|
CREATE TABLE table_25318033_1 (f_laps VARCHAR, position VARCHAR, races VARCHAR)
|
SELECT transfer_fee FROM table_name_82 WHERE name = "odjidja-ofoe"
|
What is Odjidja-Ofoe's transfer fee?
|
CREATE TABLE table_name_82 (transfer_fee VARCHAR, name VARCHAR)
|
SELECT ihsaa_football_class FROM table_name_71 WHERE school = "wood memorial"
|
Which IHSAA Football Class has a School of wood memorial?
|
CREATE TABLE table_name_71 (ihsaa_football_class VARCHAR, school VARCHAR)
|
SELECT COUNT(city___municipality) FROM table_2562572_2 WHERE urban_settlement = "Srbobran"
|
What is the number of cities/municipalities having an urban settlement of Srbobran?
|
CREATE TABLE table_2562572_2 (city___municipality VARCHAR, urban_settlement VARCHAR)
|
SELECT AVG(crowd) FROM table_name_41 WHERE venue = "moorabbin oval"
|
What was the attendance at Moorabbin Oval?
|
CREATE TABLE table_name_41 (crowd INTEGER, venue VARCHAR)
|
SELECT time_retired FROM table_name_21 WHERE grid = 2
|
Which Time/Retired has a Grid of 2?
|
CREATE TABLE table_name_21 (time_retired VARCHAR, grid VARCHAR)
|
SELECT SUM(played) FROM table_name_68 WHERE lost = 3 AND drawn > 1 AND points < 10
|
What is the total number of games played with 3 losses, 1 or more drawns and 10 or fewer points?
|
CREATE TABLE table_name_68 (played INTEGER, points VARCHAR, lost VARCHAR, drawn VARCHAR)
|
SELECT time FROM table_name_83 WHERE opponent = "jaime fletcher"
|
How long was the match with Jaime Fletcher?
|
CREATE TABLE table_name_83 (time VARCHAR, opponent VARCHAR)
|
SELECT engine_company FROM table_name_35 WHERE address = "89 rope ferry road"
|
What is the name of the engine company that is located at 89 Rope Ferry Road?
|
CREATE TABLE table_name_35 (engine_company VARCHAR, address VARCHAR)
|
SELECT home_team AS score FROM table_name_71 WHERE venue = "junction oval"
|
What was the home teams score at Junction Oval?
|
CREATE TABLE table_name_71 (home_team VARCHAR, venue VARCHAR)
|
SELECT nationality FROM table_name_39 WHERE date = "8 may 1942"
|
Which Nationality has a Date of 8 may 1942?
|
CREATE TABLE table_name_39 (nationality VARCHAR, date VARCHAR)
|
SELECT started FROM table_12608427_8 WHERE name = "de Vries"
|
What date did De Vries start?
|
CREATE TABLE table_12608427_8 (started VARCHAR, name VARCHAR)
|
SELECT athlete FROM table_name_67 WHERE run_2 = 50.67
|
Who had a run 2 of 50.67?
|
CREATE TABLE table_name_67 (athlete VARCHAR, run_2 VARCHAR)
|
SELECT percentage FROM table_name_15 WHERE seats = 80
|
What is the percentage of votes for the party that has Seats of 80?
|
CREATE TABLE table_name_15 (percentage VARCHAR, seats VARCHAR)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.