answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT artist FROM table_name_80 WHERE theme = "400th anniversary of quebec"
Which artist created the silver dollar for the 400th anniversary of Quebec?
CREATE TABLE table_name_80 (artist VARCHAR, theme VARCHAR)
SELECT country FROM table_name_8 WHERE player = "dutch harrison"
What is Country, when Player is "Dutch Harrison"?
CREATE TABLE table_name_8 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_62 WHERE score = 70 - 73 - 70 = 213
What country has a 70-73-70=213 score?
CREATE TABLE table_name_62 (country VARCHAR, score VARCHAR)
SELECT services FROM table_name_94 WHERE local_authority = "chiltern" AND zone_2010 = "9"
Which Services have a Local authority of chiltern, and a Zone 2010 of 9?
CREATE TABLE table_name_94 (services VARCHAR, local_authority VARCHAR, zone_2010 VARCHAR)
SELECT location FROM table_name_19 WHERE event = "k-1 world grand prix 2004 in saitama"
what is the location when the event is k-1 world grand prix 2004 in saitama?
CREATE TABLE table_name_19 (location VARCHAR, event VARCHAR)
SELECT set_3 FROM table_name_58 WHERE set_2 = "15–6"
What is the Set 3 with a Set 2 with 15–6?
CREATE TABLE table_name_58 (set_3 VARCHAR, set_2 VARCHAR)
SELECT COUNT(top_25) FROM table_name_92 WHERE top_10 > 2 AND cuts_made < 29
What is the total number of top-25 with a top-10 bigger than 2 and less than 29 cuts?
CREATE TABLE table_name_92 (top_25 VARCHAR, top_10 VARCHAR, cuts_made VARCHAR)
SELECT location FROM table_23192661_3 WHERE record = "2-1"
Name the location for 2-1 record
CREATE TABLE table_23192661_3 (location VARCHAR, record VARCHAR)
SELECT MIN(week) FROM table_name_70 WHERE date = "september 19, 1965" AND attendance < 46 OFFSET 941
What is the lowest week that has September 19, 1965 as the date, with an attendance less than 46,941?
CREATE TABLE table_name_70 (week INTEGER, date VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_42 WHERE score = "5-1"
When was there a score of 5-1?
CREATE TABLE table_name_42 (date VARCHAR, score VARCHAR)
SELECT home_team FROM table_14312471_7 WHERE away_team = "Richmond"
Who played Richmond at home?
CREATE TABLE table_14312471_7 (home_team VARCHAR, away_team VARCHAR)
SELECT date, mean_temperature_f, mean_humidity FROM weather ORDER BY max_gust_speed_mph DESC LIMIT 3
What are the date, mean temperature and mean humidity for the top 3 days with the largest max gust speeds?
CREATE TABLE weather (date VARCHAR, mean_temperature_f VARCHAR, mean_humidity VARCHAR, max_gust_speed_mph VARCHAR)
SELECT joint_music_award FROM table_name_81 WHERE year < 2006 AND rthk = "1"
How many Joint Music Awards were there with a RTHK of 1, in a Year before 2006?
CREATE TABLE table_name_81 (joint_music_award VARCHAR, year VARCHAR, rthk VARCHAR)
SELECT Comptroller, COUNT(*) FROM party GROUP BY Comptroller ORDER BY COUNT(*) DESC LIMIT 1
Show the people that have been comptroller the most times and the corresponding number of times.
CREATE TABLE party (Comptroller VARCHAR)
SELECT group FROM table_name_42 WHERE team = "dolphins"
What is the Dolphins Group?
CREATE TABLE table_name_42 (group VARCHAR, team VARCHAR)
SELECT opponent FROM table_name_10 WHERE date = "september 13, 1992"
Who was the opponent on September 13, 1992?
CREATE TABLE table_name_10 (opponent VARCHAR, date VARCHAR)
SELECT COUNT(train_no) FROM table_27011761_2 WHERE arrival = "11:00"
How many trains arrive at 11:00?
CREATE TABLE table_27011761_2 (train_no VARCHAR, arrival VARCHAR)
SELECT character_name FROM table_1410384_1 WHERE voice_actor__english_1997___saban_ = "Ian James Corlett"
what's the character name with voice actor (englbeingh 1997 / saban) being ian james corlett
CREATE TABLE table_1410384_1 (character_name VARCHAR, voice_actor__english_1997___saban_ VARCHAR)
SELECT location FROM table_name_26 WHERE opponent = "fábio maldonado"
What location was fábio maldonado the opponent at?
CREATE TABLE table_name_26 (location VARCHAR, opponent VARCHAR)
SELECT AVG(year) FROM table_name_49 WHERE quantity = 10 AND gwr_numbers = "409, 290, 315, 317–321, 324, 333"
What is the average Year that has a Quantity of 10, and a GWR Numbers of 409, 290, 315, 317–321, 324, 333?
CREATE TABLE table_name_49 (year INTEGER, quantity VARCHAR, gwr_numbers VARCHAR)
SELECT gdp_world_rank FROM table_2249029_1 WHERE asian_rank = 15
Name the gdp world rank for asian rank being 15
CREATE TABLE table_2249029_1 (gdp_world_rank VARCHAR, asian_rank VARCHAR)
SELECT location_attendance FROM table_27882867_4 WHERE score = "L 93-105"
Name the location attendance for l 93-105
CREATE TABLE table_27882867_4 (location_attendance VARCHAR, score VARCHAR)
SELECT team_2 FROM table_name_34 WHERE team_1 = "milli piyango sk"
What is the Team 2 with a Team 1 that is milli piyango sk?
CREATE TABLE table_name_34 (team_2 VARCHAR, team_1 VARCHAR)
SELECT location_attendance FROM table_23248910_6 WHERE team = "Nets"
What location and it's attendance was the game against the Nets?
CREATE TABLE table_23248910_6 (location_attendance VARCHAR, team VARCHAR)
SELECT away_team FROM table_name_90 WHERE venue = "mcg"
Which away team had a venue of mcg?
CREATE TABLE table_name_90 (away_team VARCHAR, venue VARCHAR)
SELECT player FROM table_name_43 WHERE school = "vanderbilt university"
What is the name of the player from Vanderbilt University?
CREATE TABLE table_name_43 (player VARCHAR, school VARCHAR)
SELECT athlete FROM table_name_48 WHERE result = "4.30"
What was the athlete with a final result of 4.30?
CREATE TABLE table_name_48 (athlete VARCHAR, result VARCHAR)
SELECT MAX(points) FROM table_name_32 WHERE games < 7
which Points has Games smaller than 7?
CREATE TABLE table_name_32 (points INTEGER, games INTEGER)
SELECT entrant FROM table_name_70 WHERE rounds = "16" AND constructor = "ferrari"
What was the entrant in round 16 were Ferrari was the constructor?
CREATE TABLE table_name_70 (entrant VARCHAR, rounds VARCHAR, constructor VARCHAR)
SELECT COUNT(population__2011_) FROM table_2562572_35 WHERE settlement = "Perlez"
Name the total number of population 2011 for perlez
CREATE TABLE table_2562572_35 (population__2011_ VARCHAR, settlement VARCHAR)
SELECT margin_of_victory FROM table_name_43 WHERE date = "27 feb 2011"
What is the Margin of victory on 27 feb 2011?
CREATE TABLE table_name_43 (margin_of_victory VARCHAR, date VARCHAR)
SELECT record FROM table_name_2 WHERE games = "2013 nassau"
What is the Record of the 2013 Nassau Games?
CREATE TABLE table_name_2 (record VARCHAR, games VARCHAR)
SELECT team__number1 FROM table_name_76 WHERE time___cest__ < 18
What id the team with a smaller Time than 18?
CREATE TABLE table_name_76 (team__number1 VARCHAR, time___cest__ INTEGER)
SELECT SUM(gold) FROM table_name_57 WHERE silver > 6 AND rank = "1" AND bronze < 61
What is the sum of Gold, when Silver is greater than 6, when Rank is 1, and when Bronze is less than 61?
CREATE TABLE table_name_57 (gold INTEGER, bronze VARCHAR, silver VARCHAR, rank VARCHAR)
SELECT race_number FROM table_name_95 WHERE driver = "bob wollek"
what is the race number of bob wollek
CREATE TABLE table_name_95 (race_number VARCHAR, driver VARCHAR)
SELECT SUM(points) FROM table_name_12 WHERE name = "antwain barbour" AND games < 39
How many points did Antwain Barbour score in the year he played 39 games?
CREATE TABLE table_name_12 (points INTEGER, name VARCHAR, games VARCHAR)
SELECT tie_no FROM table_name_31 WHERE home_team = "dartford"
What is the Tie number for the match where Dartford was the hone team?
CREATE TABLE table_name_31 (tie_no VARCHAR, home_team VARCHAR)
SELECT power_output__kw_ FROM table_name_6 WHERE model = "hxd3d"
What is the power output (kw) of model hxd3d?
CREATE TABLE table_name_6 (power_output__kw_ VARCHAR, model VARCHAR)
SELECT COUNT(round) FROM table_name_64 WHERE time = "2:18"
How many rounds have a time of 2:18?
CREATE TABLE table_name_64 (round VARCHAR, time VARCHAR)
SELECT location FROM table_name_92 WHERE method = "submission (standing guillotine choke)"
Where was the match with a method of submission (standing guillotine choke)?
CREATE TABLE table_name_92 (location VARCHAR, method VARCHAR)
SELECT date FROM table_name_55 WHERE week > 16
What was the date of a week larger than 16?
CREATE TABLE table_name_55 (date VARCHAR, week INTEGER)
SELECT record FROM table_23916539_3 WHERE location = "Clarke Stadium"
What is the record if the location is Clarke Stadium?
CREATE TABLE table_23916539_3 (record VARCHAR, location VARCHAR)
SELECT region FROM table_25042332_16 WHERE below_50_percentage_of_median_income = "17.4%"
In what region does 17.4% of the population make below 50% of the median income?
CREATE TABLE table_25042332_16 (region VARCHAR, below_50_percentage_of_median_income VARCHAR)
SELECT SUM(wins) FROM table_name_16 WHERE against < 1067
What is the sum of wins for teams with against under 1067?
CREATE TABLE table_name_16 (wins INTEGER, against INTEGER)
SELECT city FROM table_name_58 WHERE opponent = "poland"
What city did Yugoslavia play against Poland in?
CREATE TABLE table_name_58 (city VARCHAR, opponent VARCHAR)
SELECT equatorial_diameter FROM table_name_24 WHERE body = "mars"
What is the Equatorial diameter of the Body: Mars?
CREATE TABLE table_name_24 (equatorial_diameter VARCHAR, body VARCHAR)
SELECT T1.engineer_id, T1.first_name, T1.last_name FROM Maintenance_Engineers AS T1 JOIN Engineer_Visits AS T2 GROUP BY T1.engineer_id ORDER BY COUNT(*) DESC LIMIT 1
Which engineer has visited the most times? Show the engineer id, first name and last name.
CREATE TABLE Maintenance_Engineers (engineer_id VARCHAR, first_name VARCHAR, last_name VARCHAR); CREATE TABLE Engineer_Visits (Id VARCHAR)
SELECT home FROM table_name_52 WHERE date = "march 5"
Who is the home team on March 5?
CREATE TABLE table_name_52 (home VARCHAR, date VARCHAR)
SELECT result FROM table_14302582_1 WHERE home_matches = 14
What was the result when the team had contested 14 home games?
CREATE TABLE table_14302582_1 (result VARCHAR, home_matches VARCHAR)
SELECT basin FROM table_name_66 WHERE in_state_area = "071 238km 2 92mi 2"
What is the name of the basin with an in-state area of 071 238km 2 92mi 2?
CREATE TABLE table_name_66 (basin VARCHAR, in_state_area VARCHAR)
SELECT AVG(lost) FROM table_name_70 WHERE against > 19 AND drawn < 1
Which average Lost has an Against larger than 19, and a Drawn smaller than 1?
CREATE TABLE table_name_70 (lost INTEGER, against VARCHAR, drawn VARCHAR)
SELECT party FROM table_1341640_11 WHERE candidates = "Newt Gingrich (R) 59.1% Dock H. Davis (D) 40.9%"
What is the party with the candidates newt gingrich (r) 59.1% dock h. davis (d) 40.9%?
CREATE TABLE table_1341640_11 (party VARCHAR, candidates VARCHAR)
SELECT COUNT(*) FROM salary AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year = 2000
How many players were in the team Boston Red Stockings in 2000?
CREATE TABLE salary (team_id VARCHAR, year VARCHAR); CREATE TABLE team (team_id_br VARCHAR, name VARCHAR)
SELECT MAX(year_born) FROM table_23670057_4 WHERE player = "Ido Kozikaro"
What is the date of birth for basket baller called ido kozikaro
CREATE TABLE table_23670057_4 (year_born INTEGER, player VARCHAR)
SELECT MIN(year) FROM table_12275654_1 WHERE mens_singles = "Chetan Anand"
When did Chetan Anand win his first men's single?
CREATE TABLE table_12275654_1 (year INTEGER, mens_singles VARCHAR)
SELECT date FROM table_name_76 WHERE location = "berlin"
What's the date when the location is Berlin?
CREATE TABLE table_name_76 (date VARCHAR, location VARCHAR)
SELECT MAX(rr1_pts) FROM table_21457754_2
Name the most rr 1 pts
CREATE TABLE table_21457754_2 (rr1_pts INTEGER)
SELECT weight FROM table_name_31 WHERE number = "26"
How much does number 26 weigh?
CREATE TABLE table_name_31 (weight VARCHAR, number VARCHAR)
SELECT opponent FROM table_name_42 WHERE surface = "hard"
What person was played against when the playing surface was hard?
CREATE TABLE table_name_42 (opponent VARCHAR, surface VARCHAR)
SELECT money_spent, _3q FROM table_name_43 WHERE candidate = "dennis kucinich"
How much money has Candidate Dennis Kucinich spent?
CREATE TABLE table_name_43 (money_spent VARCHAR, _3q VARCHAR, candidate VARCHAR)
SELECT bowling_figures_wickets_runs__overs_ FROM table_name_43 WHERE venue = "port elizabeth" AND versus = "australia"
During the competition at Port Elizabeth, where the opponent was Australia, what were the bowling figures?
CREATE TABLE table_name_43 (bowling_figures_wickets_runs__overs_ VARCHAR, venue VARCHAR, versus VARCHAR)
SELECT population__people_ FROM table_14465924_1 WHERE area__km_2__ = "24.35"
Name the population of people for area being 24.35
CREATE TABLE table_14465924_1 (population__people_ VARCHAR, area__km_2__ VARCHAR)
SELECT constellation FROM table_name_19 WHERE ngc_number < 5457
What is the name of the constellation that has a NGC number smaller tha 5457?
CREATE TABLE table_name_19 (constellation VARCHAR, ngc_number INTEGER)
SELECT date FROM table_name_57 WHERE home = "chicago black hawks" AND record = "0–1"
When is Home of chicago black hawks has a Record of 0–1?
CREATE TABLE table_name_57 (date VARCHAR, home VARCHAR, record VARCHAR)
SELECT score FROM table_name_70 WHERE tournament = "spain f32, gran canaria"
What was the Score of the Spain F32, Gran Canaria Tournament?
CREATE TABLE table_name_70 (score VARCHAR, tournament VARCHAR)
SELECT AVG(qiangshu) FROM table_name_45 WHERE rank > 4 AND jianshu < 9.22
What is the average Qiangshu lower than rank 4 and less than 9.22 Jianshu?
CREATE TABLE table_name_45 (qiangshu INTEGER, rank VARCHAR, jianshu VARCHAR)
SELECT streak FROM table_name_12 WHERE heat_points = 101 AND game = 16
What is Streak, when Heat Points is "101", and when Game is "16"?
CREATE TABLE table_name_12 (streak VARCHAR, heat_points VARCHAR, game VARCHAR)
SELECT total_trade FROM table_26160007_1 WHERE exports = "13,608.65"
Where the exports is 13,608.65, what is the total trade?
CREATE TABLE table_26160007_1 (total_trade VARCHAR, exports VARCHAR)
SELECT pick FROM table_name_70 WHERE college = "wiley"
What is the pick of wiley college?
CREATE TABLE table_name_70 (pick VARCHAR, college VARCHAR)
SELECT competition FROM table_name_42 WHERE date = "august 11, 1996"
Which competition was on August 11, 1996?
CREATE TABLE table_name_42 (competition VARCHAR, date VARCHAR)
SELECT date FROM table_name_18 WHERE week = 3
What date was the Week 3 game played?
CREATE TABLE table_name_18 (date VARCHAR, week VARCHAR)
SELECT record FROM table_27539272_4 WHERE location_attendance = "Prudential Center - 12,880"
Name the record for prudential center - 12,880
CREATE TABLE table_27539272_4 (record VARCHAR, location_attendance VARCHAR)
SELECT format FROM table_name_78 WHERE catalogue = "148615"
What format is catalogue 148615 in?
CREATE TABLE table_name_78 (format VARCHAR, catalogue VARCHAR)
SELECT AVG(gold) FROM table_name_99 WHERE nation = "russia (rus)" AND silver < 2
What is the average Gold where the Nation is Russia (rus) and the number of silver is less than 2?
CREATE TABLE table_name_99 (gold INTEGER, nation VARCHAR, silver VARCHAR)
SELECT tournament FROM table_name_57 WHERE margin_of_victory = "4 strokes"
What is the Tournament with a Margin of victory that was 4 strokes?
CREATE TABLE table_name_57 (tournament VARCHAR, margin_of_victory VARCHAR)
SELECT record FROM table_name_36 WHERE date = "may 30"
What is the record of the game on May 30?
CREATE TABLE table_name_36 (record VARCHAR, date VARCHAR)
SELECT team__number1 FROM table_name_71 WHERE team__number2 = "kalise gran canaria"
Who was the first team when the second team was Kalise Gran Canaria?
CREATE TABLE table_name_71 (team__number1 VARCHAR, team__number2 VARCHAR)
SELECT DISTINCT title FROM Movie EXCEPT SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T3.name = 'Chris Jackson'
Find the titles of all movies not reviewed by Chris Jackson.
CREATE TABLE Reviewer (rID VARCHAR, name VARCHAR); CREATE TABLE Movie (title VARCHAR, mID VARCHAR); CREATE TABLE Movie (title VARCHAR); CREATE TABLE Rating (mID VARCHAR, rID VARCHAR)
SELECT event FROM table_name_42 WHERE time = "45.74"
Which event had the time 45.74?
CREATE TABLE table_name_42 (event VARCHAR, time VARCHAR)
SELECT MIN(total) FROM table_name_44 WHERE games < 6 AND gold > 0
What is the fewest number of medals associated with under 6 games and over 0 golds?
CREATE TABLE table_name_44 (total INTEGER, games VARCHAR, gold VARCHAR)
SELECT release_date FROM table_name_59 WHERE title = "the blow out"
What is the release date of The Blow Out?
CREATE TABLE table_name_59 (release_date VARCHAR, title VARCHAR)
SELECT COUNT(_number) FROM table_16072430_1 WHERE weekly_rank = "TBA" AND timeslot = "8:00 P.M."
How many episodes have a weekly rank tba and are broadcast at 8:00 p.m.?
CREATE TABLE table_16072430_1 (_number VARCHAR, weekly_rank VARCHAR, timeslot VARCHAR)
SELECT COUNT(a_league) FROM table_name_85 WHERE pre_season > 0
How much A-League has a Pre-Season larger than 0?
CREATE TABLE table_name_85 (a_league VARCHAR, pre_season INTEGER)
SELECT T1.Title FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID = T2.Book_ID ORDER BY T2.Price DESC
Show the titles of books in descending order of publication price.
CREATE TABLE publication (Book_ID VARCHAR, Price VARCHAR); CREATE TABLE book (Title VARCHAR, Book_ID VARCHAR)
SELECT theme FROM table_name_91 WHERE year < 2006
What is the theme of the coin from before 2006?
CREATE TABLE table_name_91 (theme VARCHAR, year INTEGER)
SELECT place FROM table_name_45 WHERE score = 69 - 69 = 138
What is the place of the player witha 69-69=138 score?
CREATE TABLE table_name_45 (place VARCHAR, score VARCHAR)
SELECT team FROM table_name_87 WHERE year > 1998 AND start = "dnq"
What team is after 1998 with a start of dnq?
CREATE TABLE table_name_87 (team VARCHAR, year VARCHAR, start VARCHAR)
SELECT MIN(perfect_40s) FROM table_15988037_24
What is the minimum number of perfect 40s?
CREATE TABLE table_15988037_24 (perfect_40s INTEGER)
SELECT category FROM table_name_76 WHERE event_name = "touchdown atlantic"
What is the category of the touchdown atlantic?
CREATE TABLE table_name_76 (category VARCHAR, event_name VARCHAR)
SELECT frequency FROM table_16729930_11 WHERE part_number_s_ = "AC80566UE041DW"
Name the frequency for part number of ac80566ue041dw
CREATE TABLE table_16729930_11 (frequency VARCHAR, part_number_s_ VARCHAR)
SELECT result FROM table_name_68 WHERE date = "december 31, 2005"
What was the result on December 31, 2005?
CREATE TABLE table_name_68 (result VARCHAR, date VARCHAR)
SELECT date FROM table_name_54 WHERE away_team = "carlton"
What date did Carlton play as the away team?
CREATE TABLE table_name_54 (date VARCHAR, away_team VARCHAR)
SELECT website FROM table_name_49 WHERE head_coach = "yuriy korotkevich"
What is the Website of Head Coach Yuriy Korotkevich?
CREATE TABLE table_name_49 (website VARCHAR, head_coach VARCHAR)
SELECT name FROM table_name_6 WHERE death = "2001"
What is the name with a death in 2001?
CREATE TABLE table_name_6 (name VARCHAR, death VARCHAR)
SELECT T1.cmi_details FROM Customer_Master_Index AS T1 JOIN CMI_Cross_References AS T2 ON T1.master_customer_id = T2.master_customer_id WHERE T2.source_system_code = 'Tax'
what are the details of the cmi masters that have the cross reference code 'Tax'?
CREATE TABLE CMI_Cross_References (master_customer_id VARCHAR, source_system_code VARCHAR); CREATE TABLE Customer_Master_Index (cmi_details VARCHAR, master_customer_id VARCHAR)
SELECT home_team AS score FROM table_name_88 WHERE home_team = "melbourne"
What did Melbourne score as the home team?
CREATE TABLE table_name_88 (home_team VARCHAR)
SELECT away_team FROM table_name_33 WHERE score = "2–0" AND home_team = "wolverhampton wanderers"
What is the Away team at the Wolverhampton Wanderers Home game with a Score of 2–0?
CREATE TABLE table_name_33 (away_team VARCHAR, score VARCHAR, home_team VARCHAR)
SELECT t3.individual_last_name FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id = t2.organization_id JOIN individuals AS t3 ON t2.individual_id = t3.individual_id WHERE t1.organization_name = "Labour Party" ORDER BY t2.date_contact_to DESC LIMIT 1
Find the last name of the latest contact individual of the organization "Labour Party".
CREATE TABLE organizations (organization_id VARCHAR, organization_name VARCHAR); CREATE TABLE individuals (individual_last_name VARCHAR, individual_id VARCHAR); CREATE TABLE organization_contact_individuals (organization_id VARCHAR, individual_id VARCHAR, date_contact_to VARCHAR)
SELECT MIN(crowd) FROM table_name_75 WHERE away_team = "melbourne"
When melbourne was the away team, what was the lowest crowd turnout they had?
CREATE TABLE table_name_75 (crowd INTEGER, away_team VARCHAR)
SELECT COUNT(rank) FROM table_name_13 WHERE alliance = "star alliance" AND country = "brazil"
How many airlines have the star alliance and are in brazil?
CREATE TABLE table_name_13 (rank VARCHAR, alliance VARCHAR, country VARCHAR)