answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT result FROM table_14942535_1 WHERE week = 4
What was the team's result in week 4?
CREATE TABLE table_14942535_1 (result VARCHAR, week VARCHAR)
SELECT new_adherents_per_year FROM table_28137918_5 WHERE religion = "Buddhism"
Name the new adherents per year for buddhism
CREATE TABLE table_28137918_5 (new_adherents_per_year VARCHAR, religion VARCHAR)
SELECT COUNT(rank) FROM table_name_98 WHERE time = "1:01.14.62" AND rider = "michael russell"
How many ranks have 1:01.14.62 as the time, with michael russell as the rider?
CREATE TABLE table_name_98 (rank VARCHAR, time VARCHAR, rider VARCHAR)
SELECT AVG(points) FROM table_name_15 WHERE wins > 1
Which Points have Wins larger than 1?
CREATE TABLE table_name_15 (points INTEGER, wins INTEGER)
SELECT harris FROM table_name_84 WHERE marplan = "1.3%"
What is Harris, when Marplan is 1.3%
CREATE TABLE table_name_84 (harris VARCHAR, marplan VARCHAR)
SELECT league FROM table_16636344_1 WHERE regular_season = "2nd, Mid Atlantic"
What is the league name for the regular season status of 2nd, mid atlantic?
CREATE TABLE table_16636344_1 (league VARCHAR, regular_season VARCHAR)
SELECT first_name, department_id FROM employees WHERE last_name = 'McEwen'
Display the first name, and department number for all employees whose last name is "McEwen".
CREATE TABLE employees (first_name VARCHAR, department_id VARCHAR, last_name VARCHAR)
SELECT team FROM table_name_10 WHERE grid = 9
What is the team with grid 9?
CREATE TABLE table_name_10 (team VARCHAR, grid VARCHAR)
SELECT SUM(round) FROM table_name_89 WHERE pick = 55
What is the sum of Round with a Pick that is 55?
CREATE TABLE table_name_89 (round INTEGER, pick VARCHAR)
SELECT thurs_26_aug FROM table_26986076_2 WHERE wed_25_aug = "19' 59.98 113.192mph"
What is thurs 26 aug when wed 25 aug is 19' 59.98 113.192mph?
CREATE TABLE table_26986076_2 (thurs_26_aug VARCHAR, wed_25_aug VARCHAR)
SELECT date FROM table_name_14 WHERE opponent = "panathinaikos"
On what Date was the Opponent Panathinaikos?
CREATE TABLE table_name_14 (date VARCHAR, opponent VARCHAR)
SELECT year FROM table_name_73 WHERE cross_code_debut = "rl test v wales" AND player = "keith smith"
In what Year is Keith Smith's Cross Code Debut RL Test v Wales?
CREATE TABLE table_name_73 (year VARCHAR, cross_code_debut VARCHAR, player VARCHAR)
SELECT operating_profit__s$m_ FROM table_161591_2 WHERE expenditure__s$m_ = "12,127.8"
What was the opearint profit (s$m) associated with an expenditure (s$m) of 12,127.8?
CREATE TABLE table_161591_2 (operating_profit__s$m_ VARCHAR, expenditure__s$m_ VARCHAR)
SELECT free AS polite FROM table_name_70 WHERE genitive_3 = "*ni-da"
Which Free polite has a Genitive 3 of *ni-da?
CREATE TABLE table_name_70 (free VARCHAR, genitive_3 VARCHAR)
SELECT date FROM table_name_40 WHERE game_site = "lincoln financial field"
On what date was the game at Lincoln Financial Field?
CREATE TABLE table_name_40 (date VARCHAR, game_site VARCHAR)
SELECT week_2 FROM table_name_15 WHERE week_4 = "araya robinson"
What kind of Week 2 has a Week 4 of araya robinson?
CREATE TABLE table_name_15 (week_2 VARCHAR, week_4 VARCHAR)
SELECT year_model FROM table_1444201_1 WHERE model = "1.3"
Name the year model for 1.3
CREATE TABLE table_1444201_1 (year_model VARCHAR, model VARCHAR)
SELECT country FROM table_name_59 WHERE year_s__won = "1986"
Which country won in 1986?
CREATE TABLE table_name_59 (country VARCHAR, year_s__won VARCHAR)
SELECT MIN(rank_by_average) FROM table_name_54 WHERE total = 425 AND place > 1
Which Rank by average is the lowest one that has a Total of 425, and a Place larger than 1?
CREATE TABLE table_name_54 (rank_by_average INTEGER, total VARCHAR, place VARCHAR)
SELECT waveform FROM table_1926240_1 WHERE bit_rate_[_mbit_s_] = "6.203"
What was the waveform of the encoding with a bit rate of 6.203?
CREATE TABLE table_1926240_1 (waveform VARCHAR, bit_rate_ VARCHAR, _mbit_s_ VARCHAR)
SELECT second_party FROM table_name_31 WHERE second_member = "charles robert colvile" AND first_party = "conservative" AND first_member = "william mundy"
Which of the second parties has second member Charles Robert Colvile, a conservative first party, and first member William Mundy?
CREATE TABLE table_name_31 (second_party VARCHAR, first_member VARCHAR, second_member VARCHAR, first_party VARCHAR)
SELECT position FROM table_22496344_1 WHERE home_town = "Houston, TX" AND high_school = "Worthing"
Where is the position when houston, tx is the hometown and worthing is the high school?
CREATE TABLE table_22496344_1 (position VARCHAR, home_town VARCHAR, high_school VARCHAR)
SELECT incoming_manager FROM table_26914854_3 WHERE date_of_appointment = "9 March 2011"
Who is the incoming manager when the date of appointment is 9 march 2011?
CREATE TABLE table_26914854_3 (incoming_manager VARCHAR, date_of_appointment VARCHAR)
SELECT 100 AS _yr FROM table_21350772_2 WHERE gas_name = "Carbon dioxide"
What is the 100 year for Carbon Dioxide?
CREATE TABLE table_21350772_2 (gas_name VARCHAR)
SELECT score FROM table_name_44 WHERE tie_no = "1"
When the tie no was 1, what was the score?
CREATE TABLE table_name_44 (score VARCHAR, tie_no VARCHAR)
SELECT date_withdrawn FROM table_11662133_3 WHERE date_entered_service = "21 November 1945"
what are all the date withdrawn for service entered on 21 november 1945
CREATE TABLE table_11662133_3 (date_withdrawn VARCHAR, date_entered_service VARCHAR)
SELECT outgoing_manager FROM table_27057070_3 WHERE team = "Simurq PFC"
Who is the outgoing manager when the team is simurq pfc?
CREATE TABLE table_27057070_3 (outgoing_manager VARCHAR, team VARCHAR)
SELECT yacht AS Type FROM table_1858574_2 WHERE sail_number = "6606"
When 6606 is the sail number what is the type of yacht?
CREATE TABLE table_1858574_2 (yacht VARCHAR, sail_number VARCHAR)
SELECT socket FROM table_11602313_4 WHERE model_number = "Pentium Dual-Core T2410"
What is the socket for the pentium dual-core t2410?
CREATE TABLE table_11602313_4 (socket VARCHAR, model_number VARCHAR)
SELECT champions FROM table_name_85 WHERE coeff = "1.000"
Which Champion has a Coeff of 1.000?
CREATE TABLE table_name_85 (champions VARCHAR, coeff VARCHAR)
SELECT position FROM table_name_23 WHERE goals = 18 AND level = 5
What is the Position of the winner with 18 Goals and Level of 5?
CREATE TABLE table_name_23 (position VARCHAR, goals VARCHAR, level VARCHAR)
SELECT tie_no FROM table_name_59 WHERE away_team = "altrincham"
What is the tie no for the away team altrincham?
CREATE TABLE table_name_59 (tie_no VARCHAR, away_team VARCHAR)
SELECT AVG(to_par) FROM table_name_28 WHERE total = 155
What is the to par for the player with total of 155?
CREATE TABLE table_name_28 (to_par INTEGER, total VARCHAR)
SELECT points_per_game FROM table_2387461_1 WHERE tournament = "2005 EuroBasket"
How many points per game have the tournament 2005 eurobasket?
CREATE TABLE table_2387461_1 (points_per_game VARCHAR, tournament VARCHAR)
SELECT type FROM table_1602620_1 WHERE office = "State Assemblyman"
What type are State Assemblyman
CREATE TABLE table_1602620_1 (type VARCHAR, office VARCHAR)
SELECT status FROM table_name_77 WHERE elected < 2001 AND district = "83rd"
Elected smaller than 2001, and a District of 83rd has what status?
CREATE TABLE table_name_77 (status VARCHAR, elected VARCHAR, district VARCHAR)
SELECT d_43_√ FROM table_name_89 WHERE d_46_√ = "d 26"
Name the D 43 √ when it has D 46 √ of d 26
CREATE TABLE table_name_89 (d_43_√ VARCHAR, d_46_√ VARCHAR)
SELECT airport FROM table_name_76 WHERE iata = "arn"
What airport has an IATA of ARN?
CREATE TABLE table_name_76 (airport VARCHAR, iata VARCHAR)
SELECT score FROM table_name_30 WHERE home_team = "halifax town"
What is the Score of the Halifax Town Home game?
CREATE TABLE table_name_30 (score VARCHAR, home_team VARCHAR)
SELECT SUM(events) FROM table_name_88 WHERE top_25 > 5 AND top_10 < 4 AND wins > 2
What is the sum of Events when the top-25 is more than 5, and the top-10 is less than 4, and wins is more than 2?
CREATE TABLE table_name_88 (events INTEGER, wins VARCHAR, top_25 VARCHAR, top_10 VARCHAR)
SELECT player FROM table_28846752_8 WHERE average = "69.66"
Who is the player when the average is 69.66?
CREATE TABLE table_28846752_8 (player VARCHAR, average VARCHAR)
SELECT score FROM table_name_72 WHERE tie_no = "12"
What was the score when the tie no was 12?
CREATE TABLE table_name_72 (score VARCHAR, tie_no VARCHAR)
SELECT part_number_s_ FROM table_name_71 WHERE l3_cache = "8 mb" AND sspec_number = "sr0pl(e1)"
Which Part number(s) has a L3 cache of 8 mb and a sSpec number of sr0pl(e1)?
CREATE TABLE table_name_71 (part_number_s_ VARCHAR, l3_cache VARCHAR, sspec_number VARCHAR)
SELECT frequency__hz_ FROM table_261642_3 WHERE g__μs_km_ = "53.205"
what is the frequency (hz) when the g (μs/km) is 53.205?
CREATE TABLE table_261642_3 (frequency__hz_ VARCHAR, g__μs_km_ VARCHAR)
SELECT score FROM table_name_43 WHERE opponent_in_the_final = "shiho hisamatsu"
Name the score for when the opponent in the final is shiho hisamatsu
CREATE TABLE table_name_43 (score VARCHAR, opponent_in_the_final VARCHAR)
SELECT equivalence_in_varas FROM table_26538461_2 WHERE english_name = "Geometrical pace"
Name the equivalence for varas for geometrical pace
CREATE TABLE table_26538461_2 (equivalence_in_varas VARCHAR, english_name VARCHAR)
SELECT melamine_content_mg_kg_ FROM table_name_31 WHERE samples_failed > 1 AND product = "英雄牌嬰幼兒配方乳粉"
What's the melamine content of 英雄牌嬰幼兒配方乳粉 having more than 1 samples failed?
CREATE TABLE table_name_31 (melamine_content_mg_kg_ VARCHAR, samples_failed VARCHAR, product VARCHAR)
SELECT name FROM table_name_57 WHERE medal = "silver" AND event = "men's doubles"
Which participants won the silver medal for the Men's Doubles?
CREATE TABLE table_name_57 (name VARCHAR, medal VARCHAR, event VARCHAR)
SELECT AVG(bronze) FROM table_name_64 WHERE gold < 0
What is the average bronze for less than 0 gold?
CREATE TABLE table_name_64 (bronze INTEGER, gold INTEGER)
SELECT COUNT(director) FROM table_12919003_3 WHERE viewers_millions_ = "9.14"
What's the total number of directors whose episodes have been seen by 9.14 million viewers?
CREATE TABLE table_12919003_3 (director VARCHAR, viewers_millions_ VARCHAR)
SELECT circuit FROM table_name_54 WHERE winning_driver = "françois eysermann"
Which circuit did françois eysermann win ?
CREATE TABLE table_name_54 (circuit VARCHAR, winning_driver VARCHAR)
SELECT 1 AS st_leg FROM table_name_10 WHERE team__number2 = "antwerp bc"
Tell me the 1st leg for antwerp bc
CREATE TABLE table_name_10 (team__number2 VARCHAR)
SELECT season FROM table_name_35 WHERE losses = "34"
Which season had 34 losses?
CREATE TABLE table_name_35 (season VARCHAR, losses VARCHAR)
SELECT date FROM table_name_23 WHERE result = "w 41-27"
When has a Result of w 41-27?
CREATE TABLE table_name_23 (date VARCHAR, result VARCHAR)
SELECT province FROM table_name_72 WHERE established = 1870
what province was established in 1870
CREATE TABLE table_name_72 (province VARCHAR, established VARCHAR)
SELECT attendance FROM table_name_47 WHERE home_team = "a.f.c. totton"
How many people attended the game of a.f.c. totton?
CREATE TABLE table_name_47 (attendance VARCHAR, home_team VARCHAR)
SELECT AVG(births__000s_) FROM table_name_14 WHERE total_fertility_rate = "na" AND natural_growth < 2.5
What is the average birth rate that has a total fertility rate of na, and a natural growth smaller than 2.5?
CREATE TABLE table_name_14 (births__000s_ INTEGER, total_fertility_rate VARCHAR, natural_growth VARCHAR)
SELECT time FROM table_name_17 WHERE home_team = "hkssf"
What was the time for the match that had a a home team of HKSSF?
CREATE TABLE table_name_17 (time VARCHAR, home_team VARCHAR)
SELECT dubose_porter FROM table_name_16 WHERE roy_barnes = "54%"
What is the DuBose Porter with Roy Barnes at 54%?
CREATE TABLE table_name_16 (dubose_porter VARCHAR, roy_barnes VARCHAR)
SELECT queens FROM table_1108394_24 WHERE richmond_[staten_is] = "42_percentage"
What is the queens where richmond staten is 42%?
CREATE TABLE table_1108394_24 (queens VARCHAR, richmond_ VARCHAR, staten_is VARCHAR)
SELECT location FROM table_26166836_1 WHERE road_race = "Berlin Marathon"
In which city was the berlin marathon?
CREATE TABLE table_26166836_1 (location VARCHAR, road_race VARCHAR)
SELECT tournament FROM table_name_75 WHERE score = "6–3, 7–6"
Which tournament had a score of 6–3, 7–6?
CREATE TABLE table_name_75 (tournament VARCHAR, score VARCHAR)
SELECT player FROM table_28628309_9 WHERE category = "3-pt field goal percentage"
What is the name of the player when the category is 3-pt field goal percentage?
CREATE TABLE table_28628309_9 (player VARCHAR, category VARCHAR)
SELECT date FROM table_name_62 WHERE opponent_in_the_final = "gwinyai tongoona"
On what date was the opponent in the final Gwinyai Tongoona?
CREATE TABLE table_name_62 (date VARCHAR, opponent_in_the_final VARCHAR)
SELECT horse FROM table_name_18 WHERE result = "65.863"
What horse has a 65.863 result?
CREATE TABLE table_name_18 (horse VARCHAR, result VARCHAR)
SELECT college_junior_club_team__league_ FROM table_name_27 WHERE player = "alexander korobolin"
What school did Alexander Korobolin go to?
CREATE TABLE table_name_27 (college_junior_club_team__league_ VARCHAR, player VARCHAR)
SELECT character FROM table_name_68 WHERE category = "favourite naya sadasya"
Which Character has a Category of favourite naya sadasya?
CREATE TABLE table_name_68 (character VARCHAR, category VARCHAR)
SELECT county AS seat FROM table_name_72 WHERE license_plate_code = "5c"
What is the country seat for the license plate code 5c?
CREATE TABLE table_name_72 (county VARCHAR, license_plate_code VARCHAR)
SELECT principal FROM table_1984697_85 WHERE school = "Northfield Junior-Senior High school"
Name the principal of Northfield Junior-Senior High School.
CREATE TABLE table_1984697_85 (principal VARCHAR, school VARCHAR)
SELECT MIN(points) FROM table_name_85 WHERE engine = "bmw" AND chassis = "march 792" AND year > 1979
Which engine of bmw had the lowest points and chassis of march 792 that is newer than 1979?
CREATE TABLE table_name_85 (points INTEGER, year VARCHAR, engine VARCHAR, chassis VARCHAR)
SELECT COUNT(games) FROM table_2509505_1 WHERE goals_against = 352
Name the total number of games for goals against being 352
CREATE TABLE table_2509505_1 (games VARCHAR, goals_against VARCHAR)
SELECT away_team AS score FROM table_name_6 WHERE away_team = "footscray"
What is the score for Footscray?
CREATE TABLE table_name_6 (away_team VARCHAR)
SELECT location FROM table_name_48 WHERE mascot = "kingsmen"
What location has kingsmen as the mascot?
CREATE TABLE table_name_48 (location VARCHAR, mascot VARCHAR)
SELECT DISTINCT TYPE FROM institution
Show all the distinct institution types.
CREATE TABLE institution (TYPE VARCHAR)
SELECT to_par FROM table_name_51 WHERE score = 68 AND country = "argentina"
What country of argentina has the To par of 68?
CREATE TABLE table_name_51 (to_par VARCHAR, score VARCHAR, country VARCHAR)
SELECT original_air_date FROM table_29920800_1 WHERE written_by = "Liz Feldman"
What is the original air date of the episode written by Liz Feldman?
CREATE TABLE table_29920800_1 (original_air_date VARCHAR, written_by VARCHAR)
SELECT T1.driverid, T1.surname FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid ORDER BY COUNT(*) DESC LIMIT 1
Find the id and surname of the driver who participated the most number of races?
CREATE TABLE drivers (driverid VARCHAR, surname VARCHAR); CREATE TABLE races (raceid VARCHAR); CREATE TABLE results (driverid VARCHAR, raceid VARCHAR)
SELECT MIN(first_elected) FROM table_1341897_42
What is the earliest year that a candidate was first elected?
CREATE TABLE table_1341897_42 (first_elected INTEGER)
SELECT how_ashtagrama_iyers_say_it FROM table_name_6 WHERE pure_tamil = "engal veetil, engal agathil"
Name how ashtagrama lyers say it for engal veetil, engal agathil
CREATE TABLE table_name_6 (how_ashtagrama_iyers_say_it VARCHAR, pure_tamil VARCHAR)
SELECT COUNT(michelob_ultra_mountains_classification_gold_polka_dot_jersey) FROM table_13223187_1 WHERE drury_hotels_most_aggressive_rider_red_jersey = "Darren Lill"
How many michelob ultra mountains classification for darren lill
CREATE TABLE table_13223187_1 (michelob_ultra_mountains_classification_gold_polka_dot_jersey VARCHAR, drury_hotels_most_aggressive_rider_red_jersey VARCHAR)
SELECT away_team FROM table_name_55 WHERE home_team = "fitzroy"
Who is the away team when the home team was Fitzroy?
CREATE TABLE table_name_55 (away_team VARCHAR, home_team VARCHAR)
SELECT package FROM table_name_17 WHERE eeprom < 128
Tell me the package for EEPROM less than 128
CREATE TABLE table_name_17 (package VARCHAR, eeprom INTEGER)
SELECT us_krag_jørgensen_m1892 FROM table_name_87 WHERE norwegian_krag_jørgensen_m1894 = "126.8cm"
What is the US Krag-Jørgensen M1892 when the Norwegian Krag-Jørgensen M1894 is 126.8cm?
CREATE TABLE table_name_87 (us_krag_jørgensen_m1892 VARCHAR, norwegian_krag_jørgensen_m1894 VARCHAR)
SELECT MAX(tries_against) FROM table_name_9 WHERE points_against > 109
Which Tries against have Points against larger than 109?
CREATE TABLE table_name_9 (tries_against INTEGER, points_against INTEGER)
SELECT year FROM table_name_53 WHERE game = "dead space 2"
what is the year for the game dead space 2?
CREATE TABLE table_name_53 (year VARCHAR, game VARCHAR)
SELECT opponent FROM table_name_85 WHERE round = "1"
Which opponent had round 1?
CREATE TABLE table_name_85 (opponent VARCHAR, round VARCHAR)
SELECT MIN(f_laps) FROM table_25375093_1
Name the least f/laps
CREATE TABLE table_25375093_1 (f_laps INTEGER)
SELECT score FROM table_name_65 WHERE dance = "jive" AND result = "safe"
What was the score of the team that danced a jive and was safe?
CREATE TABLE table_name_65 (score VARCHAR, dance VARCHAR, result VARCHAR)
SELECT category FROM table_name_72 WHERE nomination = "danson tang"
What category was danson tang nominated?
CREATE TABLE table_name_72 (category VARCHAR, nomination VARCHAR)
SELECT COUNT(laps) FROM table_name_7 WHERE driver = "eddie irvine"
How many laps in total does the driver named Eddie Irvine have?
CREATE TABLE table_name_7 (laps VARCHAR, driver VARCHAR)
SELECT race_name FROM table_1140116_6 WHERE winning_driver = "Paul Greifzu"
Which races did Paul Greifzu win?
CREATE TABLE table_1140116_6 (race_name VARCHAR, winning_driver VARCHAR)
SELECT championship FROM table_name_10 WHERE total = 2 AND league_cup > 0 AND name = "jem karacan"
What is the championship of Jem Karacan that has a total of 2 and a league cup more than 0?
CREATE TABLE table_name_10 (championship VARCHAR, name VARCHAR, total VARCHAR, league_cup VARCHAR)
SELECT time_retired FROM table_name_2 WHERE laps = 42
What is the Time/Retired for the car going 42 Laps?
CREATE TABLE table_name_2 (time_retired VARCHAR, laps VARCHAR)
SELECT region_2 FROM table_1337525_1 WHERE complete_series = "The Complete Fifth Series"
What is the region 2 for the complete fifth series?
CREATE TABLE table_1337525_1 (region_2 VARCHAR, complete_series VARCHAR)
SELECT height FROM table_24055352_1 WHERE name = "Kammeon Holsey"
What is Kammeon Holsey's height?
CREATE TABLE table_24055352_1 (height VARCHAR, name VARCHAR)
SELECT COUNT(retired) FROM table_13605170_2 WHERE aircraft_type = "Curtiss XBTC"
how many Curtiss XBTC aircraft are retired?
CREATE TABLE table_13605170_2 (retired VARCHAR, aircraft_type VARCHAR)
SELECT email_address FROM Students WHERE first_name = "Emma" AND last_name = "Rohan"
What is the email of the student with first name "Emma" and last name "Rohan"?
CREATE TABLE Students (email_address VARCHAR, first_name VARCHAR, last_name VARCHAR)
SELECT willingshain FROM table_name_27 WHERE reimboldsh = "101"
What Willinghshain has Reimboldsh of 101?
CREATE TABLE table_name_27 (willingshain VARCHAR, reimboldsh VARCHAR)
SELECT event FROM table_name_74 WHERE opponent = "vinny magalhães"
What was the event for vinny magalhães?
CREATE TABLE table_name_74 (event VARCHAR, opponent VARCHAR)
SELECT rider FROM table_name_12 WHERE grid = 7
Which Rider is grid 7?
CREATE TABLE table_name_12 (rider VARCHAR, grid VARCHAR)