answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT tyre FROM table_name_50 WHERE pole_position = "jacky ickx" AND race = "canadian grand prix"
In the Canadian Grand Prix, what tyre was used when Jacky Ickx held pole position?
CREATE TABLE table_name_50 (tyre VARCHAR, pole_position VARCHAR, race VARCHAR)
SELECT country FROM table_2889810_2 WHERE moto3_125cc = 15
how many country has moto3/125cc with 15
CREATE TABLE table_2889810_2 (country VARCHAR, moto3_125cc VARCHAR)
SELECT railway_number_s_ FROM table_name_19 WHERE quantity = 3
Which railway number has 3 quantity?
CREATE TABLE table_name_19 (railway_number_s_ VARCHAR, quantity VARCHAR)
SELECT AirportName FROM AIRPORTS WHERE AirportCode = "AKO"
What is the airport name for airport 'AKO'?
CREATE TABLE AIRPORTS (AirportName VARCHAR, AirportCode VARCHAR)
SELECT game FROM table_13464416_6 WHERE location_attendance = "Omni Coliseum 7,194"
how many times was the participation at omni coliseum 7,194?
CREATE TABLE table_13464416_6 (game VARCHAR, location_attendance VARCHAR)
SELECT open_source FROM table_name_48 WHERE cost___us$__ = "free" AND activity = "some" AND editor = "markitup"
Which source has a Cost free, and an Activity of some, and an Editor of markitup?
CREATE TABLE table_name_48 (open_source VARCHAR, editor VARCHAR, cost___us$__ VARCHAR, activity VARCHAR)
SELECT MAX(2007) FROM table_name_56 WHERE 1985 > 52 AND 1987 > 130 AND 1990 < 1990
What is the highest 2007 value with a 1985 value greater than 52, a 1987 value greater than 130, and a 1990 less than 1990?
CREATE TABLE table_name_56 (Id VARCHAR)
SELECT COUNT(DISTINCT state) FROM college WHERE enr < (SELECT AVG(enr) FROM college)
What is the number of states that has some colleges whose enrollment is smaller than the average enrollment?
CREATE TABLE college (state VARCHAR, enr INTEGER)
SELECT years_exp FROM table_name_94 WHERE height = "7-2"
What is Years Exp, when Height is "7-2"?
CREATE TABLE table_name_94 (years_exp VARCHAR, height VARCHAR)
SELECT evening FROM table_name_18 WHERE sunday = "no" AND name = "s. vidal/plant express"
Name the Evening that has a Sunday of no, and a Name of s. vidal/plant express?
CREATE TABLE table_name_18 (evening VARCHAR, sunday VARCHAR, name VARCHAR)
SELECT date FROM table_name_53 WHERE winning_team = "a.z.k./roc-compétition a.z.k./roc-compétition" AND circuit = "zolder"
What is the date of the zolder circuit, which had a.z.k./roc-compétition a.z.k./roc-compétition as the winning team?
CREATE TABLE table_name_53 (date VARCHAR, winning_team VARCHAR, circuit VARCHAR)
SELECT name FROM table_name_84 WHERE lane = 5
Who was in Lane 5?
CREATE TABLE table_name_84 (name VARCHAR, lane VARCHAR)
SELECT international_passengers FROM table_13836704_7 WHERE rank = 15
What is the total number of passengers of the airport ranked 15?
CREATE TABLE table_13836704_7 (international_passengers VARCHAR, rank VARCHAR)
SELECT fcc_info FROM table_name_67 WHERE erp_w = "100 watts"
Which FCC info has an ERP W of 100 watts?
CREATE TABLE table_name_67 (fcc_info VARCHAR, erp_w VARCHAR)
SELECT gorham_principal FROM table_25037577_1 WHERE year = "2010-2011"
Who was the gorham principal in 2010-2011?
CREATE TABLE table_25037577_1 (gorham_principal VARCHAR, year VARCHAR)
SELECT AVG(round) FROM table_name_59 WHERE player = "pete laframboise"
What's the average Round of Pete Laframboise?
CREATE TABLE table_name_59 (round INTEGER, player VARCHAR)
SELECT melbourne FROM table_name_71 WHERE sydney = "yes" AND gold_coast = "yes" AND perth = "yes"
Which Melbourne has Sydney yes, Gold Coast yes, and Perth yes?
CREATE TABLE table_name_71 (melbourne VARCHAR, perth VARCHAR, sydney VARCHAR, gold_coast VARCHAR)
SELECT sweet_potato_[g_] FROM table_name_92 WHERE soybean__green__[f_] = "1.65"
What is the Sweet Potato amount when the soybean amount is 1.65?
CREATE TABLE table_name_92 (sweet_potato_ VARCHAR, g_ VARCHAR, soybean__green__ VARCHAR, f_ VARCHAR)
SELECT SUM(against) FROM table_name_86 WHERE played < 38
What is the sum of againsts the team with less than 38 played had?
CREATE TABLE table_name_86 (against INTEGER, played INTEGER)
SELECT undecided FROM table_name_66 WHERE date = "2009-05-24"
What is the Undecided on 2009-05-24?
CREATE TABLE table_name_66 (undecided VARCHAR, date VARCHAR)
SELECT devices_per_channel FROM table_name_19 WHERE name = "sata revision 3.0"
What is the Devices per channel where the Name is sata revision 3.0?
CREATE TABLE table_name_19 (devices_per_channel VARCHAR, name VARCHAR)
SELECT report FROM table_name_92 WHERE race = "mexican grand prix"
What's the report for the mexican grand prix?
CREATE TABLE table_name_92 (report VARCHAR, race VARCHAR)
SELECT candidates FROM table_1341690_20 WHERE incumbent = "Goodloe Byron"
List all candidates in elections where the incumbent politician is Goodloe Byron.
CREATE TABLE table_1341690_20 (candidates VARCHAR, incumbent VARCHAR)
SELECT actor FROM table_name_31 WHERE soap_opera = "shortland street" AND years = "1993–1999, 2001–2003, 2007, 2009—"
who is the actor for shortland street for the years 1993–1999, 2001–2003, 2007, 2009—?
CREATE TABLE table_name_31 (actor VARCHAR, soap_opera VARCHAR, years VARCHAR)
SELECT competition FROM table_name_7 WHERE score = "2-0"
Which Competition has a Score of 2-0?
CREATE TABLE table_name_7 (competition VARCHAR, score VARCHAR)
SELECT result FROM table_name_1 WHERE venue = "russia" AND date = "may 9, 2012"
What is the result of the game played in Russia on May 9, 2012?
CREATE TABLE table_name_1 (result VARCHAR, venue VARCHAR, date VARCHAR)
SELECT competition FROM table_name_71 WHERE venue = "klfa stadium, cheras" AND score = "3-3"
Venue of klfa stadium, cheras, and a Score of 3-3 had what competition?
CREATE TABLE table_name_71 (competition VARCHAR, venue VARCHAR, score VARCHAR)
SELECT record FROM table_name_42 WHERE date = "may 25"
What's the record on May 25?
CREATE TABLE table_name_42 (record VARCHAR, date VARCHAR)
SELECT score FROM table_name_3 WHERE attendance = "39,446"
What was the Score that has an Attendance of 39,446?
CREATE TABLE table_name_3 (score VARCHAR, attendance VARCHAR)
SELECT SUM(gold) FROM table_name_19 WHERE bronze < 0
Name the sum of gold when Bronze is less than 0
CREATE TABLE table_name_19 (gold INTEGER, bronze INTEGER)
SELECT tennis FROM table_name_78 WHERE golf = "yes" AND soccer = "yes" AND swimming = "yes" AND school = "cleveland state"
What is the status for tennis at cleveland state who has yes for swimming, golf and soccer?
CREATE TABLE table_name_78 (tennis VARCHAR, school VARCHAR, swimming VARCHAR, golf VARCHAR, soccer VARCHAR)
SELECT SUM(regular_season) FROM table_name_41 WHERE playoffs = 35 AND total > 302
A total larger than 302 and playoffs of 35 also list the total of regular seasons as what?
CREATE TABLE table_name_41 (regular_season INTEGER, playoffs VARCHAR, total VARCHAR)
SELECT MAX(played) FROM table_name_9 WHERE place > 10
What is listed as the Highest Played and that has a Place that is larger than 10?
CREATE TABLE table_name_9 (played INTEGER, place INTEGER)
SELECT moving_from FROM table_name_27 WHERE type = "transfer" AND name = "andy webster"
What is Moving, when Type is "Transfer", and when Name is "Andy Webster"?
CREATE TABLE table_name_27 (moving_from VARCHAR, type VARCHAR, name VARCHAR)
SELECT win_loss FROM table_name_23 WHERE coach = "peter german"
What is the win/loss of coach Peter German?
CREATE TABLE table_name_23 (win_loss VARCHAR, coach VARCHAR)
SELECT COUNT(source_s_) FROM table_29487895_2 WHERE country___region = "South Africa"
How many sources are there for south africa?
CREATE TABLE table_29487895_2 (source_s_ VARCHAR, country___region VARCHAR)
SELECT shooter FROM table_name_51 WHERE score_points = "defending champion"
Who's the shooter with score points of defending champion?
CREATE TABLE table_name_51 (shooter VARCHAR, score_points VARCHAR)
SELECT opponent FROM table_name_44 WHERE date = "april 24"
Who did the Blue Jays play against on April 24?
CREATE TABLE table_name_44 (opponent VARCHAR, date VARCHAR)
SELECT winner FROM table_name_32 WHERE third_place = "mikael pernfors" AND tournament = "hong kong"
Who is the winner for the Tournament in Hong Kong with a third place winner named Mikael Pernfors?
CREATE TABLE table_name_32 (winner VARCHAR, third_place VARCHAR, tournament VARCHAR)
SELECT player FROM table_name_71 WHERE position = "db" AND college = "saint mary's"
What is Player, when Position is DB, and when College is Saint Mary's?
CREATE TABLE table_name_71 (player VARCHAR, position VARCHAR, college VARCHAR)
SELECT name FROM table_name_98 WHERE qual_1 = "1:01.461"
Who had a qual 1 of 1:01.461?
CREATE TABLE table_name_98 (name VARCHAR, qual_1 VARCHAR)
SELECT first_elected FROM table_1342338_5 WHERE incumbent = "Claude Fuller"
What year was incumbent Claude Fuller first elected?
CREATE TABLE table_1342338_5 (first_elected VARCHAR, incumbent VARCHAR)
SELECT player FROM table_name_5 WHERE position = "sg" AND jersey_number_s_ = "20"
Who wears the jersey number 20 and has the position of SG?
CREATE TABLE table_name_5 (player VARCHAR, position VARCHAR, jersey_number_s_ VARCHAR)
SELECT COUNT(league_of_communists) FROM table_15306124_1 WHERE peoples_party = 7
How many league of communists have the people's party at 7?
CREATE TABLE table_15306124_1 (league_of_communists VARCHAR, peoples_party VARCHAR)
SELECT country FROM table_18821196_1 WHERE tv_network_s_ = "AXN India"
What is every country with a TV network of AXN India?
CREATE TABLE table_18821196_1 (country VARCHAR, tv_network_s_ VARCHAR)
SELECT conversion_from_patent_application FROM table_2279413_1 WHERE country = "Tonga"
In Tonga, what is the conversion from patent application?
CREATE TABLE table_2279413_1 (conversion_from_patent_application VARCHAR, country VARCHAR)
SELECT SUM(week) FROM table_name_58 WHERE result = "w 23-17"
Which Week had a Result of w 23-17?
CREATE TABLE table_name_58 (week INTEGER, result VARCHAR)
SELECT attendance FROM table_name_89 WHERE tie_no = 1
How many were in Attendance during a Tie no of 1?
CREATE TABLE table_name_89 (attendance VARCHAR, tie_no VARCHAR)
SELECT opponent FROM table_name_9 WHERE date = "november 21, 1999"
Which Opponent has a Date of november 21, 1999?
CREATE TABLE table_name_9 (opponent VARCHAR, date VARCHAR)
SELECT country, COUNT(*) FROM people GROUP BY country
Show all countries and the number of people from each country.
CREATE TABLE people (country VARCHAR)
SELECT record_as_played FROM table_name_19 WHERE regular_season_vacated = "24–0" AND season > 1997
What is shown for Record as played with a Regular season Vacated of 24–0 later than 1997?
CREATE TABLE table_name_19 (record_as_played VARCHAR, regular_season_vacated VARCHAR, season VARCHAR)
SELECT result FROM table_19810459_1 WHERE background = "Business major"
What was the result for the contestant whose background was as a business major?
CREATE TABLE table_19810459_1 (result VARCHAR, background VARCHAR)
SELECT MAX(crowd) FROM table_name_62 WHERE away_team = "carlton"
What is the highest crowd when carlton is the away team?
CREATE TABLE table_name_62 (crowd INTEGER, away_team VARCHAR)
SELECT result FROM table_name_63 WHERE week = 5
Can you tell me the Result that has the Week of 5?
CREATE TABLE table_name_63 (result VARCHAR, week VARCHAR)
SELECT round FROM table_name_84 WHERE school_club_team = "delta st."
What round did the player from delta st. get picked?
CREATE TABLE table_name_84 (round VARCHAR, school_club_team VARCHAR)
SELECT authors FROM table_name_42 WHERE unit = "densuș-ciula formation"
Which authors have a Unit of densuș-ciula formation?
CREATE TABLE table_name_42 (authors VARCHAR, unit VARCHAR)
SELECT MIN(began_in_st_louis) FROM table_21564794_3 WHERE league = "Negro American league"
What year did Negro American League join?
CREATE TABLE table_21564794_3 (began_in_st_louis INTEGER, league VARCHAR)
SELECT MIN(used__kb_) FROM table_18950885_3 WHERE graphics_mode = 4
What is the used (kb) when the graphics mode is 4?
CREATE TABLE table_18950885_3 (used__kb_ INTEGER, graphics_mode VARCHAR)
SELECT date FROM table_name_66 WHERE week = 10
What date has 10 for the week?
CREATE TABLE table_name_66 (date VARCHAR, week VARCHAR)
SELECT MAX(grid) FROM table_name_8 WHERE driver = "jacques villeneuve" AND laps > 36
What grid for jacques villeneuve with over 36 laps?
CREATE TABLE table_name_8 (grid INTEGER, driver VARCHAR, laps VARCHAR)
SELECT address FROM table_name_44 WHERE mascot = "coyotes"
What is the address for the school that has the coyotes mascot?
CREATE TABLE table_name_44 (address VARCHAR, mascot VARCHAR)
SELECT week FROM table_name_57 WHERE game_site = "giants stadium"
Which week has giants stadium as the game site?
CREATE TABLE table_name_57 (week VARCHAR, game_site VARCHAR)
SELECT agg FROM table_name_70 WHERE team_1 = "milan"
What is the agg when team 1 is Milan?
CREATE TABLE table_name_70 (agg VARCHAR, team_1 VARCHAR)
SELECT T1.template_id, T2.Template_Type_Code FROM Documents AS T1 JOIN Templates AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_id ORDER BY COUNT(*) DESC LIMIT 1
What is the id and type code for the template used by the most documents?
CREATE TABLE Documents (template_id VARCHAR); CREATE TABLE Templates (Template_Type_Code VARCHAR, template_id VARCHAR)
SELECT revised_hepburn FROM table_26263954_1 WHERE english = "Roman characters"
how many revised hepburn when english is roman characters
CREATE TABLE table_26263954_1 (revised_hepburn VARCHAR, english VARCHAR)
SELECT final_points FROM table_name_60 WHERE total = "0" AND draw = 22
What are the final points a 0 total and 22 draws?
CREATE TABLE table_name_60 (final_points VARCHAR, total VARCHAR, draw VARCHAR)
SELECT position FROM table_24477075_1 WHERE minutes = 132
Name the position for 132 minutes
CREATE TABLE table_24477075_1 (position VARCHAR, minutes VARCHAR)
SELECT location FROM table_26476336_2 WHERE years = "2005-2010"
What location is listed from 2005-2010?
CREATE TABLE table_26476336_2 (location VARCHAR, years VARCHAR)
SELECT COUNT(australian) FROM table_17798093_20 WHERE american = "əs"
how many endings have american pronounciation əs
CREATE TABLE table_17798093_20 (australian VARCHAR, american VARCHAR)
SELECT score FROM table_23249053_8 WHERE game > 29.0
What is the score when the game is bigger than 29.0?
CREATE TABLE table_23249053_8 (score VARCHAR, game INTEGER)
SELECT score FROM table_name_6 WHERE high_assists = "rodriguez (8)"
Which Score has High assists of rodriguez (8)?
CREATE TABLE table_name_6 (score VARCHAR, high_assists VARCHAR)
SELECT lead_supporting_vocal FROM table_name_32 WHERE time = "4:54"
Who was the lead supporting vocalist on the song that was 4:54 long?
CREATE TABLE table_name_32 (lead_supporting_vocal VARCHAR, time VARCHAR)
SELECT word_wrap_support FROM table_name_65 WHERE format = "mobipocket"
Which Word wrap support has a Format of mobipocket?
CREATE TABLE table_name_65 (word_wrap_support VARCHAR, format VARCHAR)
SELECT venue FROM table_name_12 WHERE position = "4th"
What is the venue of the race where Lineth Chepkurui placed 4th?
CREATE TABLE table_name_12 (venue VARCHAR, position VARCHAR)
SELECT AVG(year) FROM table_name_19 WHERE engine = "renault v10" AND points > 4
Name the average yeara for engine of renault v10 with points more than 4
CREATE TABLE table_name_19 (year INTEGER, engine VARCHAR, points VARCHAR)
SELECT COUNT(original_air_date) FROM table_15938543_1 WHERE us_viewers__million_ = "5.1"
How many episodes had an original air date with 5.1 million viewers
CREATE TABLE table_15938543_1 (original_air_date VARCHAR, us_viewers__million_ VARCHAR)
SELECT AVG(points) FROM table_name_8 WHERE november = 6
What is the average points on November 6?
CREATE TABLE table_name_8 (points INTEGER, november VARCHAR)
SELECT home FROM table_name_67 WHERE date = "january 22"
What is the home team of the game on January 22?
CREATE TABLE table_name_67 (home VARCHAR, date VARCHAR)
SELECT COUNT(location_attendance) FROM table_11959669_6 WHERE score = "98–90"
How many times is the score 98–90?
CREATE TABLE table_11959669_6 (location_attendance VARCHAR, score VARCHAR)
SELECT score FROM table_name_36 WHERE record = "5-4"
Which Score has a Record of 5-4?
CREATE TABLE table_name_36 (score VARCHAR, record VARCHAR)
SELECT location_attendance FROM table_name_32 WHERE team = "golden state"
What is the location attendance when the team is Golden State?
CREATE TABLE table_name_32 (location_attendance VARCHAR, team VARCHAR)
SELECT home_team FROM table_name_47 WHERE date = "7 january 1956" AND away_team = "accrington stanley"
For the match played on 7 January 1956, with away team of Accrington Stanley, who was the home team?
CREATE TABLE table_name_47 (home_team VARCHAR, date VARCHAR, away_team VARCHAR)
SELECT SUM(losses) FROM table_name_70 WHERE against > 1510
What is the sum of losses for Against values over 1510?
CREATE TABLE table_name_70 (losses INTEGER, against INTEGER)
SELECT day_4 FROM table_name_3 WHERE day_2 = "paaq"
What is day 4 when day 2 is PAAQ?
CREATE TABLE table_name_3 (day_4 VARCHAR, day_2 VARCHAR)
SELECT date FROM table_name_53 WHERE to_par = "–12"
Which date has a To par of –12?
CREATE TABLE table_name_53 (date VARCHAR, to_par VARCHAR)
SELECT AVG(lost) FROM table_name_42 WHERE against = 57
What is the average Lost when there are 57 against?
CREATE TABLE table_name_42 (lost INTEGER, against VARCHAR)
SELECT boxscore FROM table_name_82 WHERE loss = "capuano (5–5)"
Which box score has a Loss of capuano (5–5)?
CREATE TABLE table_name_82 (boxscore VARCHAR, loss VARCHAR)
SELECT MAX(lost) FROM table_name_58 WHERE season = "2001–02" AND points > 47
Which Lost is the highest one that has a Season of 2001–02, and Points larger than 47?
CREATE TABLE table_name_58 (lost INTEGER, season VARCHAR, points VARCHAR)
SELECT season FROM table_name_68 WHERE south = "esc holzkirchen" AND west = "esv buchloe" AND north = "ehc bayreuth"
What season has esc holzkirchen south, esv buchloe west, and ehc bayreuth north?
CREATE TABLE table_name_68 (season VARCHAR, north VARCHAR, south VARCHAR, west VARCHAR)
SELECT high_rebounds FROM table_27733258_2 WHERE date = "October 14"
What two players had the highest rebounds for the October 14 game?
CREATE TABLE table_27733258_2 (high_rebounds VARCHAR, date VARCHAR)
SELECT venue FROM table_name_99 WHERE away_team = "richmond"
In the game where richmond was the away team, what venue was it played at?
CREATE TABLE table_name_99 (venue VARCHAR, away_team VARCHAR)
SELECT cause_of_death FROM table_name_49 WHERE date_of_death = "1956-09-07"
What is the Cause of death of the Officer with a Date of death of 1956-09-07?
CREATE TABLE table_name_49 (cause_of_death VARCHAR, date_of_death VARCHAR)
SELECT MIN(week) FROM table_name_75 WHERE opponent = "minnesota vikings"
What is the lowest week that has Minnesota Vikings as the opponent?
CREATE TABLE table_name_75 (week INTEGER, opponent VARCHAR)
SELECT MIN(year_built) FROM table_name_47 WHERE last_refurbished < 2013
What is the earliest year built for the ship refurbished earlier than 2013?
CREATE TABLE table_name_47 (year_built INTEGER, last_refurbished INTEGER)
SELECT COUNT(mens_singles) FROM table_28138035_6 WHERE womens_doubles = "China"
How many times was the womens doubles in china?
CREATE TABLE table_28138035_6 (mens_singles VARCHAR, womens_doubles VARCHAR)
SELECT first_broadcast FROM table_23292220_3 WHERE daves_team = "Dave Johns and Sally Lindsay"
What is the first broadcast date of the episode in which Dave's team is made up of Dave Johns and Sally Lindsay?
CREATE TABLE table_23292220_3 (first_broadcast VARCHAR, daves_team VARCHAR)
SELECT venue FROM table_name_21 WHERE home_team = "fitzroy"
Where did fitzroy play as the home team?
CREATE TABLE table_name_21 (venue VARCHAR, home_team VARCHAR)
SELECT MAX(wins) FROM table_name_42 WHERE year < 2000 AND best_finish = "4" AND tournaments_played < 3
Tell me the highest wins for year less than 2000 and best finish of 4 and tournaments played less than 3
CREATE TABLE table_name_42 (wins INTEGER, tournaments_played VARCHAR, year VARCHAR, best_finish VARCHAR)
SELECT highest_score FROM table_16570286_2 WHERE innings = 9 AND player = "Donald Bradman"
What was the score when Donald Bradman in 9 innings?
CREATE TABLE table_16570286_2 (highest_score VARCHAR, innings VARCHAR, player VARCHAR)
SELECT host_team FROM table_name_55 WHERE date = "december 27"
Who was the host team for the game on December 27?
CREATE TABLE table_name_55 (host_team VARCHAR, date VARCHAR)