answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT position FROM table_name_54 WHERE pick__number = 45
Which position has 45 picks?
CREATE TABLE table_name_54 (position VARCHAR, pick__number VARCHAR)
SELECT play FROM table_name_11 WHERE company = "national theatre of greece"
what is the play when the company is national theatre of greece?
CREATE TABLE table_name_11 (play VARCHAR, company VARCHAR)
SELECT COUNT(points) FROM table_25352324_5 WHERE player = "Sophia Witherspoon"
How many values for points have Sophia Witherspoon as the player?
CREATE TABLE table_25352324_5 (points VARCHAR, player VARCHAR)
SELECT opponent FROM table_name_44 WHERE week = "9"
who was the opponent when the week was 9?
CREATE TABLE table_name_44 (opponent VARCHAR, week VARCHAR)
SELECT Participant_ID, Participant_Type_Code, Participant_Details FROM Participants
What are all the the participant ids, type code and details?
CREATE TABLE Participants (Participant_ID VARCHAR, Participant_Type_Code VARCHAR, Participant_Details VARCHAR)
SELECT nfl_team FROM table_name_30 WHERE player = "patrick collins"
Which NFL team picked Patrick Collins?
CREATE TABLE table_name_30 (nfl_team VARCHAR, player VARCHAR)
SELECT COUNT(losses) FROM table_name_8 WHERE team_name = "vancouver burrards" AND season = "1947" AND games < 24
What's the total losses for the vancouver burrards in the 1947 season with fewer than 24 games?
CREATE TABLE table_name_8 (losses VARCHAR, games VARCHAR, team_name VARCHAR, season VARCHAR)
SELECT rookie FROM table_23265433_2 WHERE offensive = "Ryan Powell"
Name the rookie for ryan powell
CREATE TABLE table_23265433_2 (rookie VARCHAR, offensive VARCHAR)
SELECT AVG(pick) FROM table_name_29 WHERE round > 3 AND college = "princeton"
What is the average pick for Princeton after round 3?
CREATE TABLE table_name_29 (pick INTEGER, round VARCHAR, college VARCHAR)
SELECT transit_passengers FROM table_13836704_6 WHERE airport = "London Gatwick"
How many transit passengers at london gatwick?
CREATE TABLE table_13836704_6 (transit_passengers VARCHAR, airport VARCHAR)
SELECT radon FROM table_name_65 WHERE atomic_property = "outer shell electron configuration"
Which Radon has Atomic property of outer shell electron configuration?
CREATE TABLE table_name_65 (radon VARCHAR, atomic_property VARCHAR)
SELECT high_assists FROM table_name_96 WHERE record = "4-2"
Which High assists have a Record of 4-2?
CREATE TABLE table_name_96 (high_assists VARCHAR, record VARCHAR)
SELECT "pick_the_winners" AS _score FROM table_name_70 WHERE match_score = "illawarra 19 souths 0"
What is the "Pick The Winners" score when the Match score was illawarra 19 souths 0?
CREATE TABLE table_name_70 (match_score VARCHAR)
SELECT week FROM table_name_94 WHERE game_site = "rich stadium"
What week was the game played at Rich Stadium?
CREATE TABLE table_name_94 (week VARCHAR, game_site VARCHAR)
SELECT symbol FROM table_name_25 WHERE empirical_† = "190" AND calculated = "135"
What is the symbol of the element with an empirical t of 190 and a calculated value of 135?
CREATE TABLE table_name_25 (symbol VARCHAR, empirical_† VARCHAR, calculated VARCHAR)
SELECT song FROM table_name_41 WHERE place > 4
What song placed higher than#4?
CREATE TABLE table_name_41 (song VARCHAR, place INTEGER)
SELECT MAX(week) FROM table_name_66 WHERE date = "october 21, 1956"
What's the highest week for the day of October 21, 1956?
CREATE TABLE table_name_66 (week INTEGER, date VARCHAR)
SELECT SUM(against) FROM table_name_31 WHERE club = "south warrnambool" AND draws < 0
What's the against of South Warrnambool when the draw is less than 0?
CREATE TABLE table_name_31 (against INTEGER, club VARCHAR, draws VARCHAR)
SELECT MIN(one_year) FROM table_174266_6 WHERE two_years = 159
If two years is 159, what is the amount for one year?
CREATE TABLE table_174266_6 (one_year INTEGER, two_years VARCHAR)
SELECT score FROM table_name_35 WHERE team = "@ houston"
What is the Score with a Team with @ houston?
CREATE TABLE table_name_35 (score VARCHAR, team VARCHAR)
SELECT set_2 FROM table_name_61 WHERE set_3 = "15–6"
What is the score for set 2 when set 3 was 15–6?
CREATE TABLE table_name_61 (set_2 VARCHAR, set_3 VARCHAR)
SELECT wed_28_may FROM table_14209455_1 WHERE mon_26_may = "17' 58.34 125.960mph"
what tims is wed may 28 and mon may 26 is 17' 58.34 125.960mph?
CREATE TABLE table_14209455_1 (wed_28_may VARCHAR, mon_26_may VARCHAR)
SELECT MIN(total) FROM table_name_47 WHERE rank < 1
Which Total is the lowest one that has a Rank smaller than 1?
CREATE TABLE table_name_47 (total INTEGER, rank INTEGER)
SELECT MIN(rank) FROM table_name_75 WHERE gold < 1 AND silver = 0 AND bronze = 1 AND total < 1
What is the lowest rank with less than 1 gold, 0 silver, 1 bronze, and a total less than 1?
CREATE TABLE table_name_75 (rank INTEGER, total VARCHAR, bronze VARCHAR, gold VARCHAR, silver VARCHAR)
SELECT mens_singles FROM table_28138035_4 WHERE womens_doubles = "Lee Eun-Sil Moon Hyun-Jung"
Name the mens singles for lee eun-sil moon hyun-jung
CREATE TABLE table_28138035_4 (mens_singles VARCHAR, womens_doubles VARCHAR)
SELECT series_ep FROM table_name_98 WHERE segment_b = "deli meats"
What series episode has deli meats under segment B?
CREATE TABLE table_name_98 (series_ep VARCHAR, segment_b VARCHAR)
SELECT AVG(total) FROM table_name_9 WHERE gold > 0 AND silver > 0 AND bronze > 2
What average total has a gold greater than 0, and a silver greater than 0, with a bronze greater than 2?
CREATE TABLE table_name_9 (total INTEGER, bronze VARCHAR, gold VARCHAR, silver VARCHAR)
SELECT location_attendance FROM table_name_56 WHERE date = "december 3"
On December 3, where was the game held and how many were in attendance?
CREATE TABLE table_name_56 (location_attendance VARCHAR, date VARCHAR)
SELECT successor FROM table_2417340_4 WHERE vacator = "Vacant" AND district = "Louisiana 5th"
Who was the successor for vacant louisiana 5th
CREATE TABLE table_2417340_4 (successor VARCHAR, vacator VARCHAR, district VARCHAR)
SELECT MIN(pick) FROM table_name_11 WHERE player = "terry jones"
What's terry jones' lowest pick?
CREATE TABLE table_name_11 (pick INTEGER, player VARCHAR)
SELECT surface FROM table_name_24 WHERE tournament = "vaihingen"
What is the surface at the tournament of Vaihingen?
CREATE TABLE table_name_24 (surface VARCHAR, tournament VARCHAR)
SELECT title FROM table_name_72 WHERE songwriter_s_ = "hadise açıkgöz, stefaan fernande, elio deepcore"
Which Title has a Songwriter(s) of hadise açıkgöz, stefaan fernande, elio deepcore?
CREATE TABLE table_name_72 (title VARCHAR, songwriter_s_ VARCHAR)
SELECT buena_vista_edition FROM table_25173505_13 WHERE special_edition = "Koichi Sakaguchi"
who is the buena vista edidtion where special edition is koichi sakaguchi?
CREATE TABLE table_25173505_13 (buena_vista_edition VARCHAR, special_edition VARCHAR)
SELECT role FROM table_name_41 WHERE title = "olvidarte jamas"
What is the name of the role that has a Title of Olvidarte Jamas?
CREATE TABLE table_name_41 (role VARCHAR, title VARCHAR)
SELECT MAX(points) FROM table_name_20 WHERE date = "october 12" AND attendance > 10 OFFSET 701
What was the highest points on October 12, when the attendance where is over 10,701?
CREATE TABLE table_name_20 (points INTEGER, date VARCHAR, attendance VARCHAR)
SELECT position FROM table_name_60 WHERE players = "jake johnson"
What is Jake Johnson's position?
CREATE TABLE table_name_60 (position VARCHAR, players VARCHAR)
SELECT league FROM table_name_53 WHERE goals = "10"
What is the league listed that has goals of 10?
CREATE TABLE table_name_53 (league VARCHAR, goals VARCHAR)
SELECT SUM(top_10) FROM table_name_83 WHERE tournament = "u.s. open" AND top_25 > 0
What was the sum for a top-10 U.S. open that had a top-25 bigger than 0?
CREATE TABLE table_name_83 (top_10 INTEGER, tournament VARCHAR, top_25 VARCHAR)
SELECT class FROM table_name_67 WHERE pos = "4th" AND year < 2006
Name the class for 4th position with year before 2006
CREATE TABLE table_name_67 (class VARCHAR, pos VARCHAR, year VARCHAR)
SELECT COUNT(position) FROM table_2897457_4 WHERE nhl_team = "Minnesota North Stars"
How many positions drafted for the Minnesota North Stars?
CREATE TABLE table_2897457_4 (position VARCHAR, nhl_team VARCHAR)
SELECT week__number FROM table_15796054_3 WHERE theme = "Andrew Lloyd Webber"
Name the week number for andrew lloyd webber
CREATE TABLE table_15796054_3 (week__number VARCHAR, theme VARCHAR)
SELECT label FROM table_name_2 WHERE region = "germany" AND date = "april 24, 2009"
What is the Label of the release on April 24, 2009 in Germany?
CREATE TABLE table_name_2 (label VARCHAR, region VARCHAR, date VARCHAR)
SELECT written_by FROM table_23235679_1 WHERE no_in_series = 88
Name who wrote number 88
CREATE TABLE table_23235679_1 (written_by VARCHAR, no_in_series VARCHAR)
SELECT dob FROM table_name_22 WHERE surname = "collins"
When is Collins' DOB?
CREATE TABLE table_name_22 (dob VARCHAR, surname VARCHAR)
SELECT date FROM table_name_98 WHERE position = "back" AND year > 1964 AND test_debut = "1st rl test v new zealand"
What date has a Position of back, later than 1964, and a Test debut of 1st rl test v new zealand?
CREATE TABLE table_name_98 (date VARCHAR, test_debut VARCHAR, position VARCHAR, year VARCHAR)
SELECT march_27_29 FROM table_25355501_2 WHERE june_10_11 = "127"
march 27-29 where june 10-11 is 127?
CREATE TABLE table_25355501_2 (march_27_29 VARCHAR, june_10_11 VARCHAR)
SELECT COUNT(lost) FROM table_name_92 WHERE team = "flamengo" AND against < 5
How many Lost have a Team of flamengo, and an Against smaller than 5?
CREATE TABLE table_name_92 (lost VARCHAR, team VARCHAR, against VARCHAR)
SELECT binibining_pilipinas_international FROM table_name_7 WHERE year > 1990 AND binibining_pilipinas_universe = "maria lourdes gonzalez"
What Binibining Pilipinas-International has a Year larger than 1990, and a Binibining Pilipinas-Universe of maria lourdes gonzalez?
CREATE TABLE table_name_7 (binibining_pilipinas_international VARCHAR, year VARCHAR, binibining_pilipinas_universe VARCHAR)
SELECT SUM(partial_failures) FROM table_name_35 WHERE successes < 6 AND launches > 1 AND failures = 2
Successes smaller than 6, and Launches larger than 1, and a Failures of 2 is what sum of the partial failures?
CREATE TABLE table_name_35 (partial_failures INTEGER, failures VARCHAR, successes VARCHAR, launches VARCHAR)
SELECT venue FROM table_name_6 WHERE away_team = "richmond"
Name the venue when the away team was richmond
CREATE TABLE table_name_6 (venue VARCHAR, away_team VARCHAR)
SELECT country FROM table_1081235_1 WHERE last_eruption_or_growth_episode = "1986"
What countries have had eruptions of growth episodes in 1986?
CREATE TABLE table_1081235_1 (country VARCHAR, last_eruption_or_growth_episode VARCHAR)
SELECT locale FROM table_1505809_2 WHERE l = 2
Where is the Locale when L is 2.
CREATE TABLE table_1505809_2 (locale VARCHAR, l VARCHAR)
SELECT score FROM table_name_74 WHERE home = "montreal canadiens" AND date = "april 22"
What Score has a Home of Montreal Canadiens and a Date of April 22?
CREATE TABLE table_name_74 (score VARCHAR, home VARCHAR, date VARCHAR)
SELECT MIN(goals_for) FROM table_name_98 WHERE ties > 0
What is the score of Goal For which has a Ties larger 0?
CREATE TABLE table_name_98 (goals_for INTEGER, ties INTEGER)
SELECT away_team FROM table_24887326_8 WHERE home_team = "Coventry City"
Who played as the away team when coventry city was the home team?
CREATE TABLE table_24887326_8 (away_team VARCHAR, home_team VARCHAR)
SELECT method FROM table_name_75 WHERE opponent = "tyson griffin"
What was the method used when the opponent was Tyson Griffin?
CREATE TABLE table_name_75 (method VARCHAR, opponent VARCHAR)
SELECT wireless_network FROM table_name_6 WHERE screen_type = "lcd" AND internal_storage = "4 gb"
Which wireless network did LCD displays with 4 GB of internal storage use?
CREATE TABLE table_name_6 (wireless_network VARCHAR, screen_type VARCHAR, internal_storage VARCHAR)
SELECT MAX(decile) FROM table_name_47 WHERE roll > 34 AND gender = "coed" AND authority = "state integrated" AND area = "georgetown"
What is the largest decile with a Roll larger than 34, a Gender of coed, and an Authority of state integrated, and an Area of georgetown?
CREATE TABLE table_name_47 (decile INTEGER, area VARCHAR, authority VARCHAR, roll VARCHAR, gender VARCHAR)
SELECT poles FROM table_name_57 WHERE season = "2006" AND wins < 2
How many poles did he have in 2006 with under 2 wins?
CREATE TABLE table_name_57 (poles VARCHAR, season VARCHAR, wins VARCHAR)
SELECT date_of_birth FROM table_name_50 WHERE club = "csk vmf moscow"
What is the Date of Birth of the Player from the CSK VMF Moscow Club?
CREATE TABLE table_name_50 (date_of_birth VARCHAR, club VARCHAR)
SELECT COUNT(episode_no) FROM table_name_53 WHERE original_airdate = "january 26, 2009" AND production_no < 38
What is the episode number of the episode that originally aired on January 26, 2009 and had a production number smaller than 38?
CREATE TABLE table_name_53 (episode_no VARCHAR, original_airdate VARCHAR, production_no VARCHAR)
SELECT bb_pop FROM table_name_93 WHERE cb_cw = "1" AND year > 1976 AND riaa = "p"
What is the BB pop of the song with a CB CW of 1, RIAA of P and was released more recently than 1976?
CREATE TABLE table_name_93 (bb_pop VARCHAR, riaa VARCHAR, cb_cw VARCHAR, year VARCHAR)
SELECT AVG(money___) AS $__ FROM table_name_74 WHERE score = 69 - 69 - 76 - 69 = 283
What is the average Money ( $ ), when Score is "69-69-76-69=283"?
CREATE TABLE table_name_74 (money___ INTEGER, score VARCHAR)
SELECT 1 AS st_leg FROM table_name_58 WHERE agg = "alense vivaldi (trentino)"
What 1st leg has Alense Vivaldi (Trentino) as Agg.?
CREATE TABLE table_name_58 (agg VARCHAR)
SELECT wed_25_aug FROM table_26986076_2 WHERE mon_23_aug = "26' 57.82 89.957mph"
what is wed 25 aug when mon 23 aug is 26' 57.82 89.957mph?
CREATE TABLE table_26986076_2 (wed_25_aug VARCHAR, mon_23_aug VARCHAR)
SELECT type FROM table_name_29 WHERE value = "0.0"
What's the type of 0.0 value?
CREATE TABLE table_name_29 (type VARCHAR, value VARCHAR)
SELECT home_venue FROM table_name_95 WHERE team = "bengaluru fc"
Where is the home venue of Bengaluru FC?
CREATE TABLE table_name_95 (home_venue VARCHAR, team VARCHAR)
SELECT venue FROM table_name_24 WHERE opponent = "kilmarnock" AND result = "1–1"
Opponent of kilmarnock, and a Result of 1–1 happened in what venue?
CREATE TABLE table_name_24 (venue VARCHAR, opponent VARCHAR, result VARCHAR)
SELECT week_1 FROM table_name_3 WHERE week_3 = "natasha budhi"
Who is week 1 if week 3 is Natasha Budhi?
CREATE TABLE table_name_3 (week_1 VARCHAR, week_3 VARCHAR)
SELECT pole_position FROM table_27913160_3 WHERE race = "Detroit"
Who had the pole position in Detroit?
CREATE TABLE table_27913160_3 (pole_position VARCHAR, race VARCHAR)
SELECT MAX(production_code) FROM table_name_6 WHERE written_by = "brian egeston" AND season__number > 5
What is the highest production code when the writer was brian egeston after season 5?
CREATE TABLE table_name_6 (production_code INTEGER, written_by VARCHAR, season__number VARCHAR)
SELECT SUM(rank) FROM table_name_19 WHERE worldwide_gross = "$183,031,272"
What is the Rank of the Film with a Worldwide Gross of $183,031,272?
CREATE TABLE table_name_19 (rank INTEGER, worldwide_gross VARCHAR)
SELECT listed FROM table_name_46 WHERE construction_completed = "08/10/2007"
What construction completed on 08/10/2007?
CREATE TABLE table_name_46 (listed VARCHAR, construction_completed VARCHAR)
SELECT outcome FROM table_22834834_3 WHERE score_in_the_final = "6–3, 6–2"
Which outcomes have a final score of 6–3, 6–2?
CREATE TABLE table_22834834_3 (outcome VARCHAR, score_in_the_final VARCHAR)
SELECT constructor FROM table_name_54 WHERE rounds = "1-2" AND driver = "divina galica"
I want the constructor for divina galica rounds of 1-2
CREATE TABLE table_name_54 (constructor VARCHAR, rounds VARCHAR, driver VARCHAR)
SELECT productions FROM table_name_96 WHERE herbie = "rex robbins"
Which production had Rex Robbins as Herbie?
CREATE TABLE table_name_96 (productions VARCHAR, herbie VARCHAR)
SELECT type FROM table_name_12 WHERE opened = "1982"
Which type opened in 1982?
CREATE TABLE table_name_12 (type VARCHAR, opened VARCHAR)
SELECT tournament FROM table_name_17 WHERE opponents_in_the_final = "maria lindström maria strandlund"
Which Tournament has Opponents in the final of maria lindström maria strandlund?
CREATE TABLE table_name_17 (tournament VARCHAR, opponents_in_the_final VARCHAR)
SELECT mccain_percentage FROM table_20722805_1 WHERE obama_percentage = "64.39%"
What was McCain's percentage when Obama had 64.39% of the vote?
CREATE TABLE table_20722805_1 (mccain_percentage VARCHAR, obama_percentage VARCHAR)
SELECT on_air_id FROM table_name_54 WHERE band = "fm" AND callsign = "4nsa"
What is the On-air ID of FM broadcaster 4nsa?
CREATE TABLE table_name_54 (on_air_id VARCHAR, band VARCHAR, callsign VARCHAR)
SELECT directed_by FROM table_25604014_5 WHERE production_code = "7D03"
Who direcred the episode with production code 7d03?
CREATE TABLE table_25604014_5 (directed_by VARCHAR, production_code VARCHAR)
SELECT root_of_all_evil FROM table_15781170_3 WHERE poll_winner = "Bloggers"
When bloggers was the poll winner, who was the root of all evil?
CREATE TABLE table_15781170_3 (root_of_all_evil VARCHAR, poll_winner VARCHAR)
SELECT after FROM table_28498999_3 WHERE player = "Kevin Streelman"
What is the after for the player kevin streelman?
CREATE TABLE table_28498999_3 (after VARCHAR, player VARCHAR)
SELECT romanised_name FROM table_name_84 WHERE portfolio_attachment = "education"
What is the Romanised name of the Undersecretary with an education portfolio attachment?
CREATE TABLE table_name_84 (romanised_name VARCHAR, portfolio_attachment VARCHAR)
SELECT COUNT(new_council) FROM table_name_82 WHERE previous_council = 54 AND staying_councillors > 36
What is the full number of New Council when the previous council was 54 and the staying councilor number is bigger than 36?
CREATE TABLE table_name_82 (new_council VARCHAR, previous_council VARCHAR, staying_councillors VARCHAR)
SELECT COUNT(top_10) FROM table_2597876_2 WHERE position = "5th"
How many values of top 10 for 5th position?
CREATE TABLE table_2597876_2 (top_10 VARCHAR, position VARCHAR)
SELECT MIN(bits_precision) FROM table_name_32 WHERE total_bits < 16
What's the lowest bits precision when the total bits are less than 16?
CREATE TABLE table_name_32 (bits_precision INTEGER, total_bits INTEGER)
SELECT away_team FROM table_name_45 WHERE venue = "cairns convention centre"
Who is the away team when the venue is cairns convention centre?
CREATE TABLE table_name_45 (away_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_40 WHERE tie_no = "8"
What home team has 8 ties?
CREATE TABLE table_name_40 (home_team VARCHAR, tie_no VARCHAR)
SELECT COUNT(common_name) FROM table_26708105_5 WHERE accession_number = "XP_001843282"
How many times is the accession number xp_001843282?
CREATE TABLE table_26708105_5 (common_name VARCHAR, accession_number VARCHAR)
SELECT ottoman_sultan FROM table_24706337_1 WHERE treaty_at_the_end_of_the_war = "Treaty of Constantinople (1590)"
Who was the Ottoman Sultan where the treaty at the end of the war was the Treaty of Constantinople (1590)?
CREATE TABLE table_24706337_1 (ottoman_sultan VARCHAR, treaty_at_the_end_of_the_war VARCHAR)
SELECT COUNT(pick__number) FROM table_name_55 WHERE college = "oklahoma" AND round < 4
What is the total number of Pick #, when College is Oklahoma, and when Round is less than 4?
CREATE TABLE table_name_55 (pick__number VARCHAR, college VARCHAR, round VARCHAR)
SELECT we_two FROM table_1015914_24 WHERE you_two = "ngipen"
What is we two where you two is ngipen?
CREATE TABLE table_1015914_24 (we_two VARCHAR, you_two VARCHAR)
SELECT high_points FROM table_13619053_8 WHERE record = "13-49"
Who scored the most points in the game where the Raptors became 13-49?
CREATE TABLE table_13619053_8 (high_points VARCHAR, record VARCHAR)
SELECT friday FROM table_name_25 WHERE tuesday = "jay mohr sports"
What is shown on Friday when Tuesday is Jay Mohr Sports?
CREATE TABLE table_name_25 (friday VARCHAR, tuesday VARCHAR)
SELECT DISTINCT T1.name FROM mill AS T1 JOIN architect AS t2 ON T1.architect_id = T2.id JOIN bridge AS T3 ON T3.architect_id = T2.id WHERE T3.length_meters > 80
What are the distinct name of the mills built by the architects who have also built a bridge longer than 80 meters?
CREATE TABLE architect (Id VARCHAR); CREATE TABLE mill (name VARCHAR, architect_id VARCHAR); CREATE TABLE bridge (architect_id VARCHAR, length_meters INTEGER)
SELECT line_s_ FROM table_1817879_2 WHERE segment_description = "Red Line MOS-2 West"
How many lines have the segment description of red line mos-2 west?
CREATE TABLE table_1817879_2 (line_s_ VARCHAR, segment_description VARCHAR)
SELECT 1 AS st_leg FROM table_name_33 WHERE round = "2q"
What is the 1st leg of 2q round?
CREATE TABLE table_name_33 (round VARCHAR)
SELECT school_club_team FROM table_name_50 WHERE round = 2 AND pick < 42
What school or team has round of 2 with less than 42 picks?
CREATE TABLE table_name_50 (school_club_team VARCHAR, round VARCHAR, pick VARCHAR)
SELECT AVG(attendance) FROM table_name_70 WHERE week = 8
What was the Attendance on Week 8?
CREATE TABLE table_name_70 (attendance INTEGER, week VARCHAR)