answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT first_team_goals FROM table_name_73 WHERE player = "samir carruthers"
How many first-team goals does the team have whose player is Samir Carruthers?
CREATE TABLE table_name_73 (first_team_goals VARCHAR, player VARCHAR)
SELECT MAX(opponents) FROM table_20745444_1 WHERE record = "4-0"
How many losses were there when the record was 4-0?
CREATE TABLE table_20745444_1 (opponents INTEGER, record VARCHAR)
SELECT round FROM table_name_70 WHERE opponent = "emanuel newton"
What is the round of the match with Emanuel Newton as the opponent?
CREATE TABLE table_name_70 (round VARCHAR, opponent VARCHAR)
SELECT term_in_office FROM table_name_21 WHERE order = "9"
What is the Term in office with an Order that is 9?
CREATE TABLE table_name_21 (term_in_office VARCHAR, order VARCHAR)
SELECT teams FROM table_name_48 WHERE name = "boumediene abderahmane"
What is the team with the name Boumediene Abderahmane?
CREATE TABLE table_name_48 (teams VARCHAR, name VARCHAR)
SELECT SUM(seats_2006) FROM table_name_33 WHERE parties_and_voter_communities = "voter turnout in %" AND _percentage_2006 > 51.5
what is the total number of seats 2006 that has parties and voter turnout in % and whose %2006 is greater than 51.5?
CREATE TABLE table_name_33 (seats_2006 INTEGER, parties_and_voter_communities VARCHAR, _percentage_2006 VARCHAR)
SELECT method FROM table_name_86 WHERE time = "5:00" AND round > 4
What is the method when the time was 5:00, and the round higher than 4?
CREATE TABLE table_name_86 (method VARCHAR, time VARCHAR, round VARCHAR)
SELECT result FROM table_name_65 WHERE attendance = "47,971"
What was the result when the attendance was 47,971?
CREATE TABLE table_name_65 (result VARCHAR, attendance VARCHAR)
SELECT week FROM table_14941284_1 WHERE attendance = 74804
When 74804 is the attendance what week is it?
CREATE TABLE table_14941284_1 (week VARCHAR, attendance VARCHAR)
SELECT SUM(league_cup) FROM table_name_29 WHERE position = "defender" AND UEfa_cup < 10
What is the sum of the appearances at the league cup for the defender who had less than 10 appearances at the UEFA cup?
CREATE TABLE table_name_29 (league_cup INTEGER, position VARCHAR, UEfa_cup VARCHAR)
SELECT points_classification FROM table_name_31 WHERE stage = "16"
Name the points classification of stage 16
CREATE TABLE table_name_31 (points_classification VARCHAR, stage VARCHAR)
SELECT nicd FROM table_name_23 WHERE type = "capacity under 500ma constant drain"
What is NiCd, when Type is "Capacity under 500mA constant Drain"?
CREATE TABLE table_name_23 (nicd VARCHAR, type VARCHAR)
SELECT round FROM table_name_23 WHERE player = "anna chakvetadze"
Which Round has a Player of anna chakvetadze?
CREATE TABLE table_name_23 (round VARCHAR, player VARCHAR)
SELECT leagues_entering FROM table_name_69 WHERE clubs = "8 → 4"
What is the item for Leagues entering, when the value for Clubs is 8 → 4?
CREATE TABLE table_name_69 (leagues_entering VARCHAR, clubs VARCHAR)
SELECT japanese FROM table_name_15 WHERE prefecture = "ibaraki" AND name = "tsukuba"
What Japanese prefecture has Ibaraki, Tsukuba?
CREATE TABLE table_name_15 (japanese VARCHAR, prefecture VARCHAR, name VARCHAR)
SELECT score FROM table_name_91 WHERE home = "montreal" AND record = "40–24–6"
What was the score of the game where Montreal was the home team and the Devils had a record of 40–24–6?
CREATE TABLE table_name_91 (score VARCHAR, home VARCHAR, record VARCHAR)
SELECT original_air_date FROM table_13336122_5 WHERE written_by = "Vanessa Reisen"
what is the original air date for the episoe written by vanessa reisen?
CREATE TABLE table_13336122_5 (original_air_date VARCHAR, written_by VARCHAR)
SELECT name, dept_name FROM student ORDER BY tot_cred
Find the name of the students and their department names sorted by their total credits in ascending order.
CREATE TABLE student (name VARCHAR, dept_name VARCHAR, tot_cred VARCHAR)
SELECT AVG(roll) FROM table_name_18 WHERE name = "fairfield school"
What is the average roll for Fairfield school?
CREATE TABLE table_name_18 (roll INTEGER, name VARCHAR)
SELECT COUNT(status) FROM table_171361_2 WHERE official_name = "Eldon"
Name the total number of status for eldon
CREATE TABLE table_171361_2 (status VARCHAR, official_name VARCHAR)
SELECT deaths FROM table_name_56 WHERE type = "shipwreck" AND date = "1873"
How many deaths were there during the shipwreck in 1873?
CREATE TABLE table_name_56 (deaths VARCHAR, type VARCHAR, date VARCHAR)
SELECT player FROM table_name_97 WHERE rank = 2011
What player has the rank 2011?
CREATE TABLE table_name_97 (player VARCHAR, rank VARCHAR)
SELECT MIN(storeys) FROM table_13397394_1 WHERE address = "325 5th Ave N"
what is the minimum storeys on 325 5th ave n
CREATE TABLE table_13397394_1 (storeys INTEGER, address VARCHAR)
SELECT house_name FROM table_11464746_1 WHERE colours = "Green"
What is the name of the green house?
CREATE TABLE table_11464746_1 (house_name VARCHAR, colours VARCHAR)
SELECT SUM(gold) FROM table_name_28 WHERE silver > 17 AND bronze > 24
What is the sum for gold when there is more than 17 silver and more than 24 bronze?
CREATE TABLE table_name_28 (gold INTEGER, silver VARCHAR, bronze VARCHAR)
SELECT COUNT(no_in_season) FROM table_21312959_1 WHERE us_viewers__millions_ = "5.0"
How many episodes had the us viewers (millions) figure of 5.0?
CREATE TABLE table_21312959_1 (no_in_season VARCHAR, us_viewers__millions_ VARCHAR)
SELECT college FROM table_name_46 WHERE overall > 187 AND round < 7 AND position = "defensive end"
Name the college that has an overall larger than 187 and a round smaller than 7 for the defensive end position.
CREATE TABLE table_name_46 (college VARCHAR, position VARCHAR, overall VARCHAR, round VARCHAR)
SELECT MIN(no_in_series) FROM table_27713890_1 WHERE us_viewers__millions_ = "24.8"
Wha episode number in the series had 24.8 million u.s. viewers?
CREATE TABLE table_27713890_1 (no_in_series INTEGER, us_viewers__millions_ VARCHAR)
SELECT type FROM table_262495_1 WHERE nickname = "Pointers"
When pointers are the nickname what is the type?
CREATE TABLE table_262495_1 (type VARCHAR, nickname VARCHAR)
SELECT name FROM table_name_80 WHERE model = "euro-fighter" AND opened = "2011"
What is the name of the coaster that opened in 2011 and is a euro-fighter model?
CREATE TABLE table_name_80 (name VARCHAR, model VARCHAR, opened VARCHAR)
SELECT MIN(year) FROM table_name_54 WHERE silver = "matthias merz"
WHAT YEAR HAS A SILVER FOR MATTHIAS MERZ?
CREATE TABLE table_name_54 (year INTEGER, silver VARCHAR)
SELECT class FROM table_name_32 WHERE year_s__of_manufacture = "1899"
Which Class has a Year(s) of Manufacture of 1899?
CREATE TABLE table_name_32 (class VARCHAR, year_s__of_manufacture VARCHAR)
SELECT voltage_center__v_ FROM table_name_76 WHERE s_spec_number = "sk096"
Which Voltage Center (V) has an S-Spec Number of sk096?
CREATE TABLE table_name_76 (voltage_center__v_ VARCHAR, s_spec_number VARCHAR)
SELECT COUNT(kei) FROM table_23050383_1 WHERE economic_incentive_regime = "2.56"
How many KEI catagories are listed when the economic incentive regime is 2.56?
CREATE TABLE table_23050383_1 (kei VARCHAR, economic_incentive_regime VARCHAR)
SELECT copaxone FROM table_name_13 WHERE mitoxantrone = "no" AND betaseron__beta_1b_ = "no"
Name the copaxone with mitoxantrone of no and betaseron (beta-1b) of no
CREATE TABLE table_name_13 (copaxone VARCHAR, mitoxantrone VARCHAR, betaseron__beta_1b_ VARCHAR)
SELECT race FROM table_2581397_4 WHERE weight__kg_ = "55" AND winner_2nd = "1st - Jim And Tonic"
In what race was the weight in kg 55 and the winner/2nd 1st - Jim and Tonic?
CREATE TABLE table_2581397_4 (race VARCHAR, weight__kg_ VARCHAR, winner_2nd VARCHAR)
SELECT date FROM table_name_30 WHERE grand_prix = "portuguese grand prix"
What date is the Portuguese Grand Prix?
CREATE TABLE table_name_30 (date VARCHAR, grand_prix VARCHAR)
SELECT AVG(to_par) FROM table_name_22 WHERE player = "julius boros"
What is the average To Par, when Player is "Julius Boros"?
CREATE TABLE table_name_22 (to_par INTEGER, player VARCHAR)
SELECT county FROM table_22815568_6 WHERE unemployment_rate = "4.8%"
What county is the unemployment rate 4.8%?
CREATE TABLE table_22815568_6 (county VARCHAR, unemployment_rate VARCHAR)
SELECT jockey FROM table_name_55 WHERE time = "1:15.89"
What is Jockey, when Time is 1:15.89?
CREATE TABLE table_name_55 (jockey VARCHAR, time VARCHAR)
SELECT record FROM table_name_32 WHERE score = "73-82"
What is the record of the 73-82 score?
CREATE TABLE table_name_32 (record VARCHAR, score VARCHAR)
SELECT pa FROM table_29565541_2 WHERE w = 6
When 6 is the w what is the pa?
CREATE TABLE table_29565541_2 (pa VARCHAR, w VARCHAR)
SELECT position FROM table_name_27 WHERE name = "rod paavola"
What is the Postion, when the Name is Rod Paavola?
CREATE TABLE table_name_27 (position VARCHAR, name VARCHAR)
SELECT grid FROM table_name_8 WHERE time_retired = "suspension"
What was the grid for suspension time/retired?
CREATE TABLE table_name_8 (grid VARCHAR, time_retired VARCHAR)
SELECT construction_start FROM table_name_99 WHERE design_flow__lpm_ = 1300
What Construction Start has a Design flow (LPM) of 1300?
CREATE TABLE table_name_99 (construction_start VARCHAR, design_flow__lpm_ VARCHAR)
SELECT high_assists FROM table_23281862_5 WHERE record = "4-3"
Name the high assists for 4-3
CREATE TABLE table_23281862_5 (high_assists VARCHAR, record VARCHAR)
SELECT game_site FROM table_name_68 WHERE date = "september 25, 1983"
Date of september 25, 1983 is what game site?
CREATE TABLE table_name_68 (game_site VARCHAR, date VARCHAR)
SELECT t1.name, t1.sex FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id ORDER BY t2.support_rate DESC LIMIT 1
Find the name and gender of the candidate who got the highest support rate.
CREATE TABLE candidate (people_id VARCHAR, support_rate VARCHAR); CREATE TABLE people (name VARCHAR, sex VARCHAR, people_id VARCHAR)
SELECT COUNT(height) FROM table_12962773_12 WHERE no = 5
What is the height for player number 5?
CREATE TABLE table_12962773_12 (height VARCHAR, no VARCHAR)
SELECT SUM(rank) FROM table_name_19 WHERE lowest_point = "lake geneva" AND canton = "vaud"
What rank is Vaud with the lowest point is Lake Geneva?
CREATE TABLE table_name_19 (rank INTEGER, lowest_point VARCHAR, canton VARCHAR)
SELECT meet FROM table_name_5 WHERE time = "1:04.84"
What Meet has a Time of 1:04.84?
CREATE TABLE table_name_5 (meet VARCHAR, time VARCHAR)
SELECT MAX(wins) FROM table_name_87 WHERE goals_scored > 64 AND position < 2
What was the highest win when there were more than 64 goals scored and a position smaller than 2?
CREATE TABLE table_name_87 (wins INTEGER, goals_scored VARCHAR, position VARCHAR)
SELECT date FROM table_name_48 WHERE stadium = "alltel stadium" AND final_score = "6-20"
What is the date that a game at the Alltel Stadium had a final score of 6-20?
CREATE TABLE table_name_48 (date VARCHAR, stadium VARCHAR, final_score VARCHAR)
SELECT lees_team FROM table_23575917_4 WHERE episode = "4x04"
Who is the Lees Team for episode 4x04?
CREATE TABLE table_23575917_4 (lees_team VARCHAR, episode VARCHAR)
SELECT player FROM table_name_81 WHERE score = 73 - 65 = 138
What is the name of the golfer that has the score of 73-65=138?
CREATE TABLE table_name_81 (player VARCHAR, score VARCHAR)
SELECT team FROM table_name_54 WHERE inn = "9th"
What team had the record asscoiated with the 9th inning?
CREATE TABLE table_name_54 (team VARCHAR, inn VARCHAR)
SELECT COUNT(game) FROM table_name_37 WHERE opponents < 118 AND nets_points > 109 AND opponent = "washington"
How many games had fewer than 118 opponents and more than 109 net points with an opponent of Washington?
CREATE TABLE table_name_37 (game VARCHAR, opponent VARCHAR, opponents VARCHAR, nets_points VARCHAR)
SELECT local_affairs FROM table_name_9 WHERE human_resources_ & _operations = "n. charles hamilton"
Who was in local affairs when the Human Resources & Operations was N. Charles Hamilton?
CREATE TABLE table_name_9 (local_affairs VARCHAR, human_resources_ VARCHAR, _operations VARCHAR)
SELECT MIN(decile) FROM table_name_10 WHERE name = "ohau school"
What is the lowest decile that Ohau School has?
CREATE TABLE table_name_10 (decile INTEGER, name VARCHAR)
SELECT serials_issued FROM table_name_71 WHERE issued = 1966
What is the issued serial given in 1966?
CREATE TABLE table_name_71 (serials_issued VARCHAR, issued VARCHAR)
SELECT COUNT(rank) FROM table_name_18 WHERE total < 5 AND bronze < 0
What is the total rank where the total is less than 5, and bronze is less than 0?
CREATE TABLE table_name_18 (rank VARCHAR, total VARCHAR, bronze VARCHAR)
SELECT liberal_ticket FROM table_name_73 WHERE socialist_workers_ticket = "judith white"
What is the liberal ticket that has judith white as the socialist workers?
CREATE TABLE table_name_73 (liberal_ticket VARCHAR, socialist_workers_ticket VARCHAR)
SELECT COUNT(*) FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_first_name = "Art" AND T2.customer_last_name = "Turcotte"
How many cards does customer Art Turcotte have?
CREATE TABLE Customers_cards (customer_id VARCHAR); CREATE TABLE Customers (customer_id VARCHAR, customer_first_name VARCHAR, customer_last_name VARCHAR)
SELECT MIN(no_in_series) FROM table_17758010_2
What is the lowest no. in series?
CREATE TABLE table_17758010_2 (no_in_series INTEGER)
SELECT opponent FROM table_name_41 WHERE attendance = "57,331"
Who is the opponent when the attendance is 57,331?
CREATE TABLE table_name_41 (opponent VARCHAR, attendance VARCHAR)
SELECT COUNT(first_elected) FROM table_1341930_33 WHERE district = "North Carolina 2"
how many first elected with district being north carolina 2
CREATE TABLE table_1341930_33 (first_elected VARCHAR, district VARCHAR)
SELECT tournament FROM table_name_42 WHERE 2011 = "qf" AND 2012 = "sf"
what is the tournament when 2011 is qf and 2012 is sf?
CREATE TABLE table_name_42 (tournament VARCHAR)
SELECT average_speed__mph_ FROM table_17802778_1 WHERE race_time = "1:45:00"
What was the average speed (mph) for the racer who finished in 1:45:00?
CREATE TABLE table_17802778_1 (average_speed__mph_ VARCHAR, race_time VARCHAR)
SELECT venue FROM table_name_41 WHERE year < 2007 AND result = "1st"
a Year smaller than 2007, and a Result of 1st is in what venue?
CREATE TABLE table_name_41 (venue VARCHAR, year VARCHAR, result VARCHAR)
SELECT date_of_death FROM table_16527640_3 WHERE player = "Archie Roberts"
What day did ARchie Roberts die?
CREATE TABLE table_16527640_3 (date_of_death VARCHAR, player VARCHAR)
SELECT date FROM table_name_83 WHERE tournament = "wgc-accenture match play championship"
What is the Date for the wgc-accenture match play championship?
CREATE TABLE table_name_83 (date VARCHAR, tournament VARCHAR)
SELECT MIN(total_produced) FROM table_name_68 WHERE model = "fm h-15-44"
Which is the smallest Total produced with a model of FM H-15-44?
CREATE TABLE table_name_68 (total_produced INTEGER, model 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 network FROM table_name_26 WHERE vidéotron__gatineau_ < 8 AND rogers_cable__ottawa_ < 8 AND call_sign = "cjoh-dt"
Which Network is on a Vidéotron (Gatineau) channel lower than 8 and a Rogers Cable (Ottawa) channel lower than 8 and has a Call Sign of cjoh-dt?
CREATE TABLE table_name_26 (network VARCHAR, call_sign VARCHAR, vidéotron__gatineau_ VARCHAR, rogers_cable__ottawa_ VARCHAR)
SELECT MIN(year) FROM table_name_53 WHERE category = "top 10 selling mandarin albums of the year"
What is the earliest year with a category of Top 10 Selling Mandarin Albums of the Year?
CREATE TABLE table_name_53 (year INTEGER, category VARCHAR)
SELECT tournament FROM table_name_48 WHERE 2001 = "1r"
What is Tournament, when 2001 is "1R"?
CREATE TABLE table_name_48 (tournament VARCHAR)
SELECT title FROM table_228973_9 WHERE original_air_date = "February 4, 2003"
If the original air date is February 4, 2003, what is the episode title?
CREATE TABLE table_228973_9 (title VARCHAR, original_air_date VARCHAR)
SELECT COUNT(location) FROM table_262560_2 WHERE nickname = "Panthers"
How many locations have a school that is nicknamed the Panthers?
CREATE TABLE table_262560_2 (location VARCHAR, nickname VARCHAR)
SELECT 1987 FROM table_name_47 WHERE 1989 = "3r" AND 1986 = "f"
What is the 1987 results when the results of 1989 is 3R, and the 1986 results is F?
CREATE TABLE table_name_47 (Id VARCHAR)
SELECT district FROM table_1342270_5 WHERE incumbent = "William Fadjo Cravens"
William Fadjo Cravens serves the fourth district of Arkansas.
CREATE TABLE table_1342270_5 (district VARCHAR, incumbent VARCHAR)
SELECT original_air_date FROM table_11630008_8 WHERE written_by = "Karen Felix and Don Woodard"
What is the original air date of the episode written by Karen Felix and Don Woodard?
CREATE TABLE table_11630008_8 (original_air_date VARCHAR, written_by VARCHAR)
SELECT away_team AS score FROM table_name_22 WHERE venue = "kardinia park"
at kardinia park, what was the away team's score?
CREATE TABLE table_name_22 (away_team VARCHAR, venue VARCHAR)
SELECT status FROM table_name_90 WHERE area_km_2 < 27.82 AND population = 352
What status has an area km 2 less than 27.82, with 352 as the population?
CREATE TABLE table_name_90 (status VARCHAR, area_km_2 VARCHAR, population VARCHAR)
SELECT material FROM table_name_36 WHERE completed < 1966 AND location = "st. paul, minnesota"
What was the statue in st. paul, minnesota constructed before 1966 made out of?
CREATE TABLE table_name_36 (material VARCHAR, completed VARCHAR, location VARCHAR)
SELECT player FROM table_name_84 WHERE college = "western washington"
Which player went to the college of Western Washington?
CREATE TABLE table_name_84 (player VARCHAR, college VARCHAR)
SELECT location FROM table_1211545_2 WHERE name = "Carousel Toll Plaza"
What is the location of the Carousel toll plaza?
CREATE TABLE table_1211545_2 (location VARCHAR, name VARCHAR)
SELECT nationality FROM table_name_77 WHERE position = "g"
What was the nationality of the players with a position of g?
CREATE TABLE table_name_77 (nationality VARCHAR, position VARCHAR)
SELECT semi_finalists FROM table_name_43 WHERE week_of = "12 june" AND runner_up = "lori mcneil"
Who are the semi finalists on the week of 12 june, when the runner-up is listed as Lori McNeil?
CREATE TABLE table_name_43 (semi_finalists VARCHAR, week_of VARCHAR, runner_up VARCHAR)
SELECT MIN(number_of_electorates__2009_) FROM table_name_2 WHERE name = "churai"
Churai has what as the fewest number of electorates?
CREATE TABLE table_name_2 (number_of_electorates__2009_ INTEGER, name VARCHAR)
SELECT name FROM table_24302700_6 WHERE nationality = "United States"
Who are all the players from the united states?
CREATE TABLE table_24302700_6 (name VARCHAR, nationality VARCHAR)
SELECT State FROM representative GROUP BY State HAVING COUNT(*) >= 2
What states have at least two representatives?
CREATE TABLE representative (State VARCHAR)
SELECT date_of_latest_revision FROM Catalogs GROUP BY date_of_latest_revision HAVING COUNT(*) > 1
Find the dates on which more than one revisions were made.
CREATE TABLE Catalogs (date_of_latest_revision VARCHAR)
SELECT term_ended FROM table_224672_2 WHERE term_began = "December 4, 1978"
When did the term end that began December 4, 1978?
CREATE TABLE table_224672_2 (term_ended VARCHAR, term_began VARCHAR)
SELECT time_retired FROM table_name_24 WHERE laps = 52
what is the time/retired when the laps is 52?
CREATE TABLE table_name_24 (time_retired VARCHAR, laps VARCHAR)
SELECT competition FROM table_name_47 WHERE year < 2007 AND notes = "7434"
What competition was held earlier than 2007 and has 7434 in the notes field?
CREATE TABLE table_name_47 (competition VARCHAR, year VARCHAR, notes VARCHAR)
SELECT award FROM table_name_32 WHERE year < 2001
What was the award before 2001?
CREATE TABLE table_name_32 (award VARCHAR, year INTEGER)
SELECT film FROM table_name_64 WHERE year = "2000"
Which film took place in 2000?
CREATE TABLE table_name_64 (film VARCHAR, year VARCHAR)
SELECT country FROM table_name_22 WHERE score = 69 - 67 - 69 - 70 = 275
Which country scored 69-67-69-70=275?
CREATE TABLE table_name_22 (country VARCHAR, score VARCHAR)
SELECT MIN(rank) FROM table_name_43 WHERE nation = "east germany"
What is the lowest Rank with a Nation that is east germany?
CREATE TABLE table_name_43 (rank INTEGER, nation VARCHAR)
SELECT MAX(against) FROM table_name_14 WHERE difference = "12"
Which Against is the highest one that has a Difference of 12?
CREATE TABLE table_name_14 (against INTEGER, difference VARCHAR)