answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT colors FROM table_27653955_1 WHERE enrollment = 2020
What are the colors for the enrollment of 2020?
CREATE TABLE table_27653955_1 (colors VARCHAR, enrollment VARCHAR)
SELECT date FROM table_name_59 WHERE where_sunk = "south atlantic"
What is the date that a ship sank in the South Atlantic?
CREATE TABLE table_name_59 (date VARCHAR, where_sunk VARCHAR)
SELECT time FROM table_name_76 WHERE rank = 6
What is the time of the rider ranked 6?
CREATE TABLE table_name_76 (time VARCHAR, rank VARCHAR)
SELECT speed FROM table_name_36 WHERE glider = "diana 2" AND pilot = "sebastian kawa"
What was sebastian kawa's average speed with Diana 2?
CREATE TABLE table_name_36 (speed VARCHAR, glider VARCHAR, pilot VARCHAR)
SELECT rim_diameter FROM table_name_27 WHERE neck_diameter = "11.84 (.466)"
Which Rim diameter has a Neck diameter of 11.84 (.466)?
CREATE TABLE table_name_27 (rim_diameter VARCHAR, neck_diameter VARCHAR)
SELECT builder FROM table_name_71 WHERE date = "1953"
What is Builder, when Date is 1953?
CREATE TABLE table_name_71 (builder VARCHAR, date VARCHAR)
SELECT commissioned FROM table_name_24 WHERE project = "636.3" AND status = "ordered"
What is the commissioned with a 636.3 project, and ordered status?
CREATE TABLE table_name_24 (commissioned VARCHAR, project VARCHAR, status VARCHAR)
SELECT toronto___broadway FROM table_10402018_1 WHERE uk_tour = "n/a"
Which person is in the tronto/broadway and has a uk tour of n/a
CREATE TABLE table_10402018_1 (toronto___broadway VARCHAR, uk_tour VARCHAR)
SELECT round FROM table_name_74 WHERE opponent = "sofia bagherdai"
What round did the fight against Sofia Bagherdai go to?
CREATE TABLE table_name_74 (round VARCHAR, opponent VARCHAR)
SELECT away_team FROM table_name_52 WHERE match_no = "9"
What is the away team of match 9?
CREATE TABLE table_name_52 (away_team VARCHAR, match_no VARCHAR)
SELECT COUNT(record) FROM table_14945881_1 WHERE attendance = 44023
Name the number of record when attendance is 44023
CREATE TABLE table_14945881_1 (record VARCHAR, attendance VARCHAR)
SELECT years FROM table_name_13 WHERE jersey_number_s_ = "34, 30"
During what years was the Jersey Numbers 34, 30 played?
CREATE TABLE table_name_13 (years VARCHAR, jersey_number_s_ VARCHAR)
SELECT Grape, Winery, YEAR FROM WINE WHERE Price > 100 ORDER BY YEAR
List the grape, winery and year of the wines whose price is bigger than 100 ordered by year.
CREATE TABLE WINE (Grape VARCHAR, Winery VARCHAR, YEAR VARCHAR, Price INTEGER)
SELECT AVG(total) FROM table_name_82 WHERE tournament < 0
Name the average total for tournament less than 0
CREATE TABLE table_name_82 (total INTEGER, tournament INTEGER)
SELECT pick FROM table_1013129_3 WHERE player = "Dorain Anneck"
What's Dorain Anneck's pick number?
CREATE TABLE table_1013129_3 (pick VARCHAR, player VARCHAR)
SELECT COUNT(location) FROM table_22875369_3 WHERE record = "22-1"
Name the number of location for 22-1
CREATE TABLE table_22875369_3 (location VARCHAR, record VARCHAR)
SELECT AVG(population) FROM table_name_19 WHERE regional_county_municipality = "le domaine-du-roy" AND type = "m" AND region < 2
what is the average population when the regional county municipality is le domaine-du-roy, the type is m and the region is less than 2?
CREATE TABLE table_name_19 (population INTEGER, region VARCHAR, regional_county_municipality VARCHAR, type VARCHAR)
SELECT COUNT(release_date) FROM table_2263152_1 WHERE security_issues = "99-025" AND distribution_mechanism = "Microsoft website"
If the security issues is 99-025 and the distribution mechanism is the Microsoft website, what is the release date total number?
CREATE TABLE table_2263152_1 (release_date VARCHAR, security_issues VARCHAR, distribution_mechanism VARCHAR)
SELECT position FROM table_name_35 WHERE speed = "123.220"
Which position has a speed of 123.220?
CREATE TABLE table_name_35 (position VARCHAR, speed VARCHAR)
SELECT AVG(total) FROM table_name_3 WHERE rank > 1 AND bronze > 8
What is the average Total with a Rank greater than 1, and a Bronze larger than 8?
CREATE TABLE table_name_3 (total INTEGER, rank VARCHAR, bronze VARCHAR)
SELECT MIN(fumb_td) FROM table_name_72 WHERE int_td = 1 AND fumb_f < 1
Which Fumb TD has an Int TD of 1, and a Fumb F. smaller than 1?
CREATE TABLE table_name_72 (fumb_td INTEGER, int_td VARCHAR, fumb_f VARCHAR)
SELECT COUNT(published) FROM table_name_86 WHERE in_order_of_publication = "first"
How many total publications were the first of the series?
CREATE TABLE table_name_86 (published VARCHAR, in_order_of_publication VARCHAR)
SELECT party FROM table_2841865_2 WHERE congress = "85th"
What party is listed for the Representative under the 85th congress?
CREATE TABLE table_2841865_2 (party VARCHAR, congress VARCHAR)
SELECT chassis FROM table_name_69 WHERE rounds = "all" AND entrant = "benson and hedges jordan" AND driver = "damon hill"
What is the chassis for all rounds on the entrant Benson and Hedges Jordan driven by Damon Hill?
CREATE TABLE table_name_69 (chassis VARCHAR, driver VARCHAR, rounds VARCHAR, entrant VARCHAR)
SELECT player FROM table_name_33 WHERE place = "t5" AND score = 73 - 72 - 71 - 75 = 291
Can you tell me the Player that has the Place of t5, and the Score of 73-72-71-75=291?
CREATE TABLE table_name_33 (player VARCHAR, place VARCHAR, score VARCHAR)
SELECT COUNT(wins) FROM table_name_17 WHERE points < 1
What is the total number of Wins, when Points is less than 1?
CREATE TABLE table_name_17 (wins VARCHAR, points INTEGER)
SELECT MAX(first_elected) FROM table_name_37 WHERE counties_represented = "baltimore county, howard" AND committee = "environmental matters (vice-chair)"
When Baltimore County, Howard are represented, what's the first elected when the committee is environmental matters (vice-chair)?
CREATE TABLE table_name_37 (first_elected INTEGER, counties_represented VARCHAR, committee VARCHAR)
SELECT AVG(attendance) FROM table_name_85 WHERE opponent = "dunfermline athletic"
Can you tell me the average Attendance rhat has the Opponent of dunfermline athletic?
CREATE TABLE table_name_85 (attendance INTEGER, opponent VARCHAR)
SELECT attendance FROM table_name_92 WHERE week = 1
What is the attendance of week 1
CREATE TABLE table_name_92 (attendance VARCHAR, week VARCHAR)
SELECT MAX(tropical_lows) FROM table_name_13 WHERE season = "1990–91" AND tropical_cyclones > 10
What is the largest number for tropical Lows for the 1990–91 season with more than 10 tropical cyclones?
CREATE TABLE table_name_13 (tropical_lows INTEGER, season VARCHAR, tropical_cyclones VARCHAR)
SELECT track FROM table_name_23 WHERE time = "2:30"
What track has a time of 2:30?
CREATE TABLE table_name_23 (track VARCHAR, time 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 country FROM table_name_94 WHERE catalogue_number_s_ = "eredv711"
Which Country has a Catalogue number(s) of eredv711?
CREATE TABLE table_name_94 (country VARCHAR, catalogue_number_s_ VARCHAR)
SELECT MIN(introduced) FROM table_1081459_1
What is the smallest introduced value?
CREATE TABLE table_1081459_1 (introduced INTEGER)
SELECT name FROM event ORDER BY YEAR DESC
List all the event names by year from the most recent to the oldest.
CREATE TABLE event (name VARCHAR, YEAR VARCHAR)
SELECT pick FROM table_name_74 WHERE position = "centre" AND nationality = "canada"
Tell me the pick for canada centre
CREATE TABLE table_name_74 (pick VARCHAR, position VARCHAR, nationality VARCHAR)
SELECT MAX(points) FROM table_name_83 WHERE draw = 2 AND played < 18
What was the highest number of points scored when there was a draw of 2 and when the amount played was 18?
CREATE TABLE table_name_83 (points INTEGER, draw VARCHAR, played VARCHAR)
SELECT T1.engineer_id, T1.first_name, T1.last_name FROM Maintenance_Engineers AS T1 JOIN Engineer_Visits AS T2 ON T1.engineer_id = T2.engineer_id GROUP BY T1.engineer_id ORDER BY COUNT(*) LIMIT 1
Among those engineers who have visited, which engineer makes the least number of visits? List the engineer id, first name and last name.
CREATE TABLE Engineer_Visits (engineer_id VARCHAR); CREATE TABLE Maintenance_Engineers (engineer_id VARCHAR, first_name VARCHAR, last_name VARCHAR)
SELECT name FROM projects WHERE hours > (SELECT AVG(hours) FROM projects)
List the name of all projects that are operated longer than the average working hours of all projects.
CREATE TABLE projects (name VARCHAR, hours INTEGER)
SELECT SUM(frequency_mhz) FROM table_name_43 WHERE erp_w < 1
Tell me the sum of frequency for ERP W less than 1
CREATE TABLE table_name_43 (frequency_mhz INTEGER, erp_w INTEGER)
SELECT job_id, hire_date FROM employees WHERE hire_date BETWEEN '2007-11-05' AND '2009-07-05'
Find job id and date of hire for those employees who was hired between November 5th, 2007 and July 5th, 2009.
CREATE TABLE employees (job_id VARCHAR, hire_date INTEGER)
SELECT att_cmp_int FROM table_name_16 WHERE gp_gs = "12" AND avg_g = 174.3
What is the att-cmp-int that has 12 for the gp-gs and 174.3 as the avg/g?
CREATE TABLE table_name_16 (att_cmp_int VARCHAR, gp_gs VARCHAR, avg_g VARCHAR)
SELECT reunion_weight FROM table_28654454_5 WHERE lbs_lost_finale = "74.4"
What is the reunion weight of the contestant who lost 74.4 lbs at the finale?
CREATE TABLE table_28654454_5 (reunion_weight VARCHAR, lbs_lost_finale VARCHAR)
SELECT login_name, family_name FROM Course_Authors_and_Tutors
List all the login names and family names of course author and tutors.
CREATE TABLE Course_Authors_and_Tutors (login_name VARCHAR, family_name VARCHAR)
SELECT incumbent FROM table_1341663_10 WHERE district = "Florida 9"
who is the incumbent where the district is florida 9?
CREATE TABLE table_1341663_10 (incumbent VARCHAR, district VARCHAR)
SELECT date FROM table_name_2 WHERE tie_no = "5"
What was the date of tie number 5?
CREATE TABLE table_name_2 (date VARCHAR, tie_no VARCHAR)
SELECT date FROM table_24732149_2 WHERE fastest_lap = "Mike Rockenfeller"
What date did Mike Rockenfeller have the fastest lap?
CREATE TABLE table_24732149_2 (date VARCHAR, fastest_lap VARCHAR)
SELECT 1 AS st_place_team FROM table_name_84 WHERE year > 1956
What team was in 1st plate in a year later than 1956?
CREATE TABLE table_name_84 (year INTEGER)
SELECT pick FROM table_name_29 WHERE player = "larry fonacier"
What pick number is Larry Fonacier?
CREATE TABLE table_name_29 (pick VARCHAR, player VARCHAR)
SELECT grand_finalist FROM table_name_26 WHERE grand_finalists = "jonathan loh, peterson poon, nathan santos"
who is the grand finalist when the grand finalists are jonathan loh, peterson poon, nathan santos?
CREATE TABLE table_name_26 (grand_finalist VARCHAR, grand_finalists VARCHAR)
SELECT MIN(against) FROM table_name_84 WHERE wins < 9 AND draws < 0
What is the lowest against that has less than 9 wins, and draws smaller than 0?
CREATE TABLE table_name_84 (against INTEGER, wins VARCHAR, draws VARCHAR)
SELECT MIN(3 AS _credits) FROM table_148535_2
Name the most 3 credits
CREATE TABLE table_148535_2 (Id VARCHAR)
SELECT date FROM table_name_33 WHERE location = "faro"
Name the date for faro
CREATE TABLE table_name_33 (date VARCHAR, location VARCHAR)
SELECT tournament FROM table_name_93 WHERE outcome = "runner-up" AND opponent = "maša zec peškirič"
Which tournament has an Outcome of runner-up, and an Opponent of maša zec peškirič?
CREATE TABLE table_name_93 (tournament VARCHAR, outcome VARCHAR, opponent VARCHAR)
SELECT competition FROM table_name_11 WHERE date = "28/04/1906"
What competition took place on 28/04/1906?
CREATE TABLE table_name_11 (competition VARCHAR, date VARCHAR)
SELECT years_of_kindergarten AS provided FROM table_1831309_1 WHERE canton = "Ticino"
How many years of kindergarten is provided in Ticino?
CREATE TABLE table_1831309_1 (years_of_kindergarten VARCHAR, canton VARCHAR)
SELECT COUNT(tar_heels_points) FROM table_20745444_1 WHERE result = "Loss"
How many results finished in a loss?
CREATE TABLE table_20745444_1 (tar_heels_points VARCHAR, result VARCHAR)
SELECT time FROM table_name_86 WHERE opponent = "phil collins"
What is the time when the opponent is phil collins?
CREATE TABLE table_name_86 (time VARCHAR, opponent VARCHAR)
SELECT result FROM table_name_97 WHERE year = 1973
What was the Result in Year 1973?
CREATE TABLE table_name_97 (result VARCHAR, year VARCHAR)
SELECT location_of_the_church FROM table_178408_1 WHERE sub_parish__sokn_ = "Bremanger"
Name the location of the church for bremanger
CREATE TABLE table_178408_1 (location_of_the_church VARCHAR, sub_parish__sokn_ VARCHAR)
SELECT metrical_equivalence FROM table_26538461_2 WHERE portuguese_name = "Linha"
Name the metrical equivalence for linha
CREATE TABLE table_26538461_2 (metrical_equivalence VARCHAR, portuguese_name VARCHAR)
SELECT school FROM table_name_15 WHERE team = "golden knights"
What is the School, when the Team is Golden Knights?
CREATE TABLE table_name_15 (school VARCHAR, team VARCHAR)
SELECT name FROM useracct WHERE NOT u_id IN (SELECT u_id FROM review)
Find the names of users who did not leave any review.
CREATE TABLE review (name VARCHAR, u_id VARCHAR); CREATE TABLE useracct (name VARCHAR, u_id VARCHAR)
SELECT MAX(total) FROM table_name_92 WHERE bronze = 1 AND silver > 1
What is the largest total for a nation with 1 bronze and more than 1 silver?
CREATE TABLE table_name_92 (total INTEGER, bronze VARCHAR, silver VARCHAR)
SELECT season FROM table_name_94 WHERE away = "1–2"
Which Season has an Away of 1–2?
CREATE TABLE table_name_94 (season VARCHAR, away VARCHAR)
SELECT MAX(lost) FROM table_name_40 WHERE season > 1979 AND avg_attend = 16 OFFSET 605
What is the maximum number of losses that the Minnesota Kicks had after 1979 with an average attendance of 16,605?
CREATE TABLE table_name_40 (lost INTEGER, season VARCHAR, avg_attend VARCHAR)
SELECT COUNT(DISTINCT participant_id) FROM participants_in_Events
What are all the distinct participant ids who attended any events?
CREATE TABLE participants_in_Events (participant_id VARCHAR)
SELECT country FROM table_name_3 WHERE player = "tiger woods"
What is the country for the player Tiger Woods?
CREATE TABLE table_name_3 (country VARCHAR, player VARCHAR)
SELECT mens_doubles FROM table_13553701_1 WHERE mens_singles = "Lee Hyun-il"
Who are the mens doubles and and mens singles is lee hyun-il?
CREATE TABLE table_13553701_1 (mens_doubles VARCHAR, mens_singles VARCHAR)
SELECT time FROM table_name_40 WHERE race = "kentucky derby"
What is the fastest time for the Kentucky Derby race?
CREATE TABLE table_name_40 (time VARCHAR, race VARCHAR)
SELECT club FROM table_name_49 WHERE founded > 1998
Which club was founded after 1998?
CREATE TABLE table_name_49 (club VARCHAR, founded INTEGER)
SELECT date FROM table_name_7 WHERE grand_prix = "austrian grand prix"
When was the Austrian Grand Prix?
CREATE TABLE table_name_7 (date VARCHAR, grand_prix VARCHAR)
SELECT COUNT(nfl_team) FROM table_2508633_6 WHERE player = "Ellis Gardner"
Name the total number for nfl team for ellis gardner
CREATE TABLE table_2508633_6 (nfl_team VARCHAR, player VARCHAR)
SELECT MAX(pick) FROM table_name_11 WHERE position = "te" AND round < 2
WHAT IS THE HIGHEST PICK WITH A TE POSITION, AND ROUND SMALLER THAN 2?
CREATE TABLE table_name_11 (pick INTEGER, position VARCHAR, round VARCHAR)
SELECT species FROM table_26615633_1 WHERE jewel = "Coal"
What is the species when jewel is coal?
CREATE TABLE table_26615633_1 (species VARCHAR, jewel VARCHAR)
SELECT country FROM table_name_22 WHERE player = "george archer"
Which country is George Archer from?
CREATE TABLE table_name_22 (country VARCHAR, player VARCHAR)
SELECT city FROM addresses WHERE NOT city IN (SELECT DISTINCT t3.city FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id)
Find the list of cities that no customer is living in.
CREATE TABLE customers (customer_id VARCHAR); CREATE TABLE addresses (city VARCHAR, address_id VARCHAR); CREATE TABLE customer_addresses (customer_id VARCHAR, address_id VARCHAR); CREATE TABLE addresses (city VARCHAR)
SELECT novelty FROM table_name_75 WHERE status = "jr synonym of protosialis casca"
Who has the status of jr synonym of protosialis casca?
CREATE TABLE table_name_75 (novelty VARCHAR, status VARCHAR)
SELECT outcome FROM table_name_73 WHERE tournament = "jounieh"
What is the Outcome of the jounieh tournament?
CREATE TABLE table_name_73 (outcome VARCHAR, tournament VARCHAR)
SELECT make FROM table_name_17 WHERE car__number < 40 AND points < 151 AND winnings = "$84,400"
Which driver has a # smaller than 40, less than 151 points, and Winnings of $84,400?
CREATE TABLE table_name_17 (make VARCHAR, winnings VARCHAR, car__number VARCHAR, points VARCHAR)
SELECT home_team FROM table_name_21 WHERE result = "99-112"
WHAT IS THE HOME TEAM, RESULT 99-112?
CREATE TABLE table_name_21 (home_team VARCHAR, result VARCHAR)
SELECT driver FROM table_name_55 WHERE laps < 19 AND time_retired = "ignition"
Who drove during the race with less than 19 laps and a time listed as ignition?
CREATE TABLE table_name_55 (driver VARCHAR, laps VARCHAR, time_retired VARCHAR)
SELECT player FROM table_name_21 WHERE to_par = 12 AND country = "fiji"
Which Player has a To par of 12, and a Country of fiji?
CREATE TABLE table_name_21 (player VARCHAR, to_par VARCHAR, country VARCHAR)
SELECT SUM(estd) FROM table_name_14 WHERE college_or_campus_name = "anna university - panruti campus"
In what year was anna university - panruti campus established?
CREATE TABLE table_name_14 (estd INTEGER, college_or_campus_name VARCHAR)
SELECT score FROM table_name_8 WHERE visitor = "buffalo" AND date = "april 27"
Tell me the score on april 27 with visitor of buffalo
CREATE TABLE table_name_8 (score VARCHAR, visitor VARCHAR, date VARCHAR)
SELECT governor FROM table_name_4 WHERE name = "hugh thomas miller"
What is the party of the governor under Hugh Thomas Miller.
CREATE TABLE table_name_4 (governor VARCHAR, name VARCHAR)
SELECT county FROM table_12280396_1 WHERE elevation__m_ = 1262
What is the county with an elevation of 1262?
CREATE TABLE table_12280396_1 (county VARCHAR, elevation__m_ VARCHAR)
SELECT quarterfinals FROM table_18602462_21 WHERE athlete = "Bas van Erp"
When bas van erp was the athlete what was the quarterfinals?
CREATE TABLE table_18602462_21 (quarterfinals VARCHAR, athlete VARCHAR)
SELECT COUNT(first_elected) FROM table_1805191_48 WHERE district = "Washington 4"
How many categories of first elected are in Washington 4 district?
CREATE TABLE table_1805191_48 (first_elected VARCHAR, district VARCHAR)
SELECT production_cost FROM table_name_34 WHERE date = "february 2000"
What is the Production Cost with a Date that is february 2000?
CREATE TABLE table_name_34 (production_cost VARCHAR, date VARCHAR)
SELECT representative FROM table_2841865_2 WHERE congress = "112th"
What name is listed under representative for the 112th congress?
CREATE TABLE table_2841865_2 (representative VARCHAR, congress VARCHAR)
SELECT COUNT(january) FROM table_name_67 WHERE game < 37 AND opponent = "detroit red wings"
How much January has a Game smaller than 37, and an Opponent of detroit red wings?
CREATE TABLE table_name_67 (january VARCHAR, game VARCHAR, opponent VARCHAR)
SELECT place FROM table_name_46 WHERE country = "united states" AND score = 72 - 70 - 69 = 211
The golfer from the United states with a score of 72-70-69=211 is in what place?
CREATE TABLE table_name_46 (place VARCHAR, country VARCHAR, score VARCHAR)
SELECT score FROM table_name_94 WHERE surface = "hard" AND opponent_in_the_final = "irena pavlovic"
What was the score when the opponent was irena pavlovic and the surface was hard?
CREATE TABLE table_name_94 (score VARCHAR, surface VARCHAR, opponent_in_the_final VARCHAR)
SELECT marriage FROM table_name_79 WHERE became_dauphine = "31 august 1412"
when was the marriage when became dauphine is 31 august 1412?
CREATE TABLE table_name_79 (marriage VARCHAR, became_dauphine VARCHAR)
SELECT first_aired FROM table_name_30 WHERE role = "professor hubert whitehead"
What's the first aired date when Professor Hubert Whitehead was the role?
CREATE TABLE table_name_30 (first_aired VARCHAR, role VARCHAR)
SELECT 1987 FROM table_name_81 WHERE 1989 = "a" AND 1986 = "3r"
What was the 1987 result for the tournament with 1986 result of 3R and 1989 of A?
CREATE TABLE table_name_81 (Id VARCHAR)
SELECT position FROM table_name_54 WHERE player = "drew barry category:articles with hcards"
What is Position when Player is Drew Barry Category:Articles With hCards?
CREATE TABLE table_name_54 (position VARCHAR, player VARCHAR)
SELECT AVG(game) FROM table_name_51 WHERE date = "may 2"
What is the game number held on May 2?
CREATE TABLE table_name_51 (game INTEGER, date VARCHAR)
SELECT circuit FROM table_name_63 WHERE winning_constructor = "darracq" AND name = "cuban race"
Name the circuit for darracq and name of cuban race
CREATE TABLE table_name_63 (circuit VARCHAR, winning_constructor VARCHAR, name VARCHAR)