answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT rounds FROM table_name_48 WHERE entrant = "scuderia milano"
In what rounds did Scuderia Milano participate?
CREATE TABLE table_name_48 (rounds VARCHAR, entrant VARCHAR)
SELECT AVG(wins) FROM table_name_2 WHERE tournament = "totals" AND cuts_made > 42
Which Wins has a Tournament of totals, and a Cuts made larger than 42?
CREATE TABLE table_name_2 (wins INTEGER, tournament VARCHAR, cuts_made VARCHAR)
SELECT score FROM table_name_81 WHERE year = "2006-2007"
What is the score during the 2006-2007 year?
CREATE TABLE table_name_81 (score VARCHAR, year VARCHAR)
SELECT name FROM table_name_91 WHERE area = "balclutha" AND decile < 7 AND roll > 186
What's the school name in Balclutha that has a Decile of 7 and a roll larger than 186?
CREATE TABLE table_name_91 (name VARCHAR, roll VARCHAR, area VARCHAR, decile VARCHAR)
SELECT years_in_orlando FROM table_name_74 WHERE school_club_team = "texas tech"
Which Years in Orlando has a School/Club Team of texas tech?
CREATE TABLE table_name_74 (years_in_orlando VARCHAR, school_club_team VARCHAR)
SELECT result FROM table_name_97 WHERE location = "boston"
What was the result for the match held in Boston?
CREATE TABLE table_name_97 (result VARCHAR, location VARCHAR)
SELECT conference_record FROM table_name_7 WHERE year = "1971"
What is the conference record for the year of 1971?
CREATE TABLE table_name_7 (conference_record VARCHAR, year VARCHAR)
SELECT MIN(wins) FROM table_name_11 WHERE year < 1999 AND draws > 1 AND points > 17
What is the lowest wins that has a year prior to 1999, with draws greater than 1, and points greater than 17?
CREATE TABLE table_name_11 (wins INTEGER, points VARCHAR, year VARCHAR, draws VARCHAR)
SELECT COUNT(*) FROM aircraft
How many aircrafts are there?
CREATE TABLE aircraft (Id VARCHAR)
SELECT pos FROM table_name_57 WHERE school_country = "arkansas"
What position does the player from arkansas play?
CREATE TABLE table_name_57 (pos VARCHAR, school_country VARCHAR)
SELECT billboard_peak FROM table_name_93 WHERE label = "sanctuary" AND date_of_release = "september 12, 2000"
What was the Billboard peak for the album released on September 12, 2000 by sanctuary?
CREATE TABLE table_name_93 (billboard_peak VARCHAR, label VARCHAR, date_of_release VARCHAR)
SELECT COUNT(game) FROM table_28768469_7 WHERE high_assists = "Earl Watson (11)" AND location_attendance = "KeyArena 16,841"
How many games have high assists as earl watson (11) and location attendance as Keyarena 16,841?
CREATE TABLE table_28768469_7 (game VARCHAR, high_assists VARCHAR, location_attendance VARCHAR)
SELECT COUNT(year) FROM table_name_45 WHERE nominee = "denis lawson"
What years was Denis Lawson nominated for an award?
CREATE TABLE table_name_45 (year VARCHAR, nominee VARCHAR)
SELECT city FROM employee WHERE age < 30 GROUP BY city HAVING COUNT(*) > 1
Which cities do more than one employee under age 30 come from?
CREATE TABLE employee (city VARCHAR, age INTEGER)
SELECT original_title FROM table_name_67 WHERE film_title_used_in_nomination = "gypsy magic"
What is the original title of the Gypsy Magic film title used in nomination?
CREATE TABLE table_name_67 (original_title VARCHAR, film_title_used_in_nomination VARCHAR)
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 SUM(loses) FROM table_name_54 WHERE draws < 4 AND goals_conceded < 105 AND position > 2 AND goals_scored < 38
What is the loses total when there is less than 4 draws, less than 105 conceded goals, less than 38 goals scored, and the club is positioned greater than 2?
CREATE TABLE table_name_54 (loses INTEGER, goals_scored VARCHAR, position VARCHAR, draws VARCHAR, goals_conceded VARCHAR)
SELECT pac_10_record FROM table_27862483_3 WHERE date = "April 20"
What was the PAC-10 record of the game played on April 20?
CREATE TABLE table_27862483_3 (pac_10_record VARCHAR, date VARCHAR)
SELECT region FROM table_name_58 WHERE date = "1970"
Which region has a date of 1970?
CREATE TABLE table_name_58 (region VARCHAR, date VARCHAR)
SELECT COUNT(DISTINCT pettype) FROM pets
Find the number of distinct type of pets.
CREATE TABLE pets (pettype VARCHAR)
SELECT team FROM table_name_4 WHERE venue = "şükrü saracoğlu stadium"
What is Team, when Venue is "Şükrü Saracoğlu Stadium"?
CREATE TABLE table_name_4 (team VARCHAR, venue VARCHAR)
SELECT scores FROM table_23575917_6 WHERE lees_team = "Kevin Bridges and Katy Wix"
When kevin bridges and katy wix are both on the less team what is the score?
CREATE TABLE table_23575917_6 (scores VARCHAR, lees_team VARCHAR)
SELECT record FROM table_23248940_7 WHERE team = "Milwaukee"
Name the record for milwaukee
CREATE TABLE table_23248940_7 (record VARCHAR, team VARCHAR)
SELECT longitude FROM table_16799784_8 WHERE name = "Razia Patera"
What is the longitude of the feature named Razia Patera?
CREATE TABLE table_16799784_8 (longitude VARCHAR, name VARCHAR)
SELECT ranking FROM table_name_14 WHERE season = "2009"
Which Ranking has a Season of 2009?
CREATE TABLE table_name_14 (ranking VARCHAR, season VARCHAR)
SELECT MIN(games) FROM table_name_25 WHERE team = "partizan belgrade" AND name = "nikola peković" AND rank > 4
What is the number of Games for Partizan Belgrade player Nikola Peković with a Rank of more than 4?
CREATE TABLE table_name_25 (games INTEGER, rank VARCHAR, team VARCHAR, name VARCHAR)
SELECT Publisher FROM publication WHERE Price > 10000000 INTERSECT SELECT Publisher FROM publication WHERE Price < 5000000
Show the publishers that have publications with price higher than 10000000 and publications with price lower than 5000000.
CREATE TABLE publication (Publisher VARCHAR, Price INTEGER)
SELECT january_15_16 FROM table_25355501_2 WHERE august_21_22 = "August 22, 1979"
january 15-16 when august 21-22 is august 22, 1979?
CREATE TABLE table_25355501_2 (january_15_16 VARCHAR, august_21_22 VARCHAR)
SELECT nfl_team FROM table_name_19 WHERE college = "washington"
WHich team draft the player who went to college in Washington?
CREATE TABLE table_name_19 (nfl_team VARCHAR, college VARCHAR)
SELECT 3 FROM table_16779068_5 WHERE weightlifter = "M. Van der Goten ( BEL )"
Name the 3 where weightlifter is m. van der goten ( bel )
CREATE TABLE table_16779068_5 (weightlifter VARCHAR)
SELECT COUNT(code) FROM table_name_99 WHERE type = "v" AND population > 7 OFFSET 747
When populatioin is greater than 7,747 and the type is V, what is the sum of code?
CREATE TABLE table_name_99 (code VARCHAR, type VARCHAR, population VARCHAR)
SELECT comp FROM table_name_1 WHERE date = "1998-04-22"
What's the comp for 1998-04-22?
CREATE TABLE table_name_1 (comp VARCHAR, date VARCHAR)
SELECT score FROM table_name_42 WHERE visitor = "pittsburgh"
What was the score when Pittsburgh was the visitor?
CREATE TABLE table_name_42 (score VARCHAR, visitor VARCHAR)
SELECT term_end FROM table_name_89 WHERE term_start = "28 november 1912"
When did the term end for the person who started their term on 28 November 1912?
CREATE TABLE table_name_89 (term_end VARCHAR, term_start VARCHAR)
SELECT main_legion_base FROM table_242785_3 WHERE date_disband = "70 XX"
What is the main legion base that disbanded 70 xx?
CREATE TABLE table_242785_3 (main_legion_base VARCHAR, date_disband VARCHAR)
SELECT name FROM table_name_28 WHERE pos = "cb" AND date_of_birth = "1983-03-14"
born on 1983-03-14, what is the cb's name?
CREATE TABLE table_name_28 (name VARCHAR, pos VARCHAR, date_of_birth VARCHAR)
SELECT incumbent FROM table_19753079_4 WHERE result = "Lost renomination Republican hold"
Name the incumbent for lost renomination republican hold
CREATE TABLE table_19753079_4 (incumbent VARCHAR, result VARCHAR)
SELECT country FROM table_name_56 WHERE peak = "20" AND project_name = "jarn yabhour; ramhan"
What country has peak 20 and a project named jarn yabhour; ramhan?
CREATE TABLE table_name_56 (country VARCHAR, peak VARCHAR, project_name VARCHAR)
SELECT year FROM table_name_47 WHERE english_title = "the ocean"
What is the year for the ocean?
CREATE TABLE table_name_47 (year VARCHAR, english_title VARCHAR)
SELECT time FROM table_name_84 WHERE news_freq = "1 hour" AND show_name = "best mix overnight"
Which time has a news frequency of 1 hour and show name of Best Mix Overnight?
CREATE TABLE table_name_84 (time VARCHAR, news_freq VARCHAR, show_name VARCHAR)
SELECT party FROM table_1341718_14 WHERE incumbent = "Sidney R. Yates"
what is the party when the incumbent is sidney r. yates?
CREATE TABLE table_1341718_14 (party VARCHAR, incumbent VARCHAR)
SELECT format FROM table_name_94 WHERE catalogue = "wpcr13504"
What format is catalogue WPCR13504 in?
CREATE TABLE table_name_94 (format VARCHAR, catalogue VARCHAR)
SELECT t2.claim_status_name FROM claims_processing AS t1 JOIN claims_processing_stages AS t2 ON t1.claim_stage_id = t2.claim_stage_id GROUP BY t1.claim_stage_id ORDER BY COUNT(*) DESC LIMIT 1
What is the name of the claim processing stage that most of the claims are on?
CREATE TABLE claims_processing (claim_stage_id VARCHAR); CREATE TABLE claims_processing_stages (claim_status_name VARCHAR, claim_stage_id VARCHAR)
SELECT election_date FROM table_1193568_1 WHERE electorate = "Christchurch Country"
what's the election date where electorate is christchurch country
CREATE TABLE table_1193568_1 (election_date VARCHAR, electorate VARCHAR)
SELECT venue FROM table_name_25 WHERE home_team = "essendon"
What venue featured essendon as home team?
CREATE TABLE table_name_25 (venue VARCHAR, home_team VARCHAR)
SELECT 2012 FROM table_name_19 WHERE 2009 = "1r"
Name the 2012 for 2009 of 1r
CREATE TABLE table_name_19 (Id VARCHAR)
SELECT location_attendance FROM table_name_1 WHERE game > 36 AND team = "atlanta"
What was the location and attendance for the game after game 36 against Atlanta?
CREATE TABLE table_name_1 (location_attendance VARCHAR, game VARCHAR, team VARCHAR)
SELECT shirt_sponsor FROM table_name_23 WHERE manager = "mark hughes"
Which sponsor has Mark Hughes as manager?
CREATE TABLE table_name_23 (shirt_sponsor VARCHAR, manager VARCHAR)
SELECT team FROM table_27733909_7 WHERE date = "January 17"
Name the team for january 17
CREATE TABLE table_27733909_7 (team VARCHAR, date VARCHAR)
SELECT high_points FROM table_name_31 WHERE game < 2
What is the highest amount of points when the game is less than 2?
CREATE TABLE table_name_31 (high_points VARCHAR, game INTEGER)
SELECT MIN(points) FROM table_name_59 WHERE chassis = "m16" AND year > 2006
What is the low point total after 2006 with an m16 chassis?
CREATE TABLE table_name_59 (points INTEGER, chassis VARCHAR, year VARCHAR)
SELECT MIN(series_episode) FROM table_18712423_3 WHERE viewers__millions_ = "1.215"
What is the show episode number of the episode that reached 1.215 millions views?
CREATE TABLE table_18712423_3 (series_episode INTEGER, viewers__millions_ VARCHAR)
SELECT AVG(attendance) FROM table_name_40 WHERE home = "blues"
What is the average attendance of the game where the home team was the Blues?
CREATE TABLE table_name_40 (attendance INTEGER, home VARCHAR)
SELECT money___$__ FROM table_name_90 WHERE place = "t1" AND score = 66 - 69 - 70 - 75 = 280
What is the Money for the T1 Player with a Score of 66-69-70-75=280?
CREATE TABLE table_name_90 (money___$__ VARCHAR, place VARCHAR, score VARCHAR)
SELECT AVG(points) FROM table_name_77 WHERE played < 30
What is the average points with less than 30 played?
CREATE TABLE table_name_77 (points INTEGER, played INTEGER)
SELECT city_of_license FROM table_name_15 WHERE erp_w < 170
What is the city of license with an ERP W less than 170?
CREATE TABLE table_name_15 (city_of_license VARCHAR, erp_w INTEGER)
SELECT martial_art_style FROM table_14937957_1 WHERE city = "Rio de Janeiro"
Which martial arts style was shown in Rio de Janeiro?
CREATE TABLE table_14937957_1 (martial_art_style VARCHAR, city VARCHAR)
SELECT MIN(finals) FROM table_name_52 WHERE pre_season > 0
Which Finals have a Pre-Season larger than 0?
CREATE TABLE table_name_52 (finals INTEGER, pre_season INTEGER)
SELECT class FROM table_name_68 WHERE quantity_made = 5
What Class has a Quantity made of 5?
CREATE TABLE table_name_68 (class VARCHAR, quantity_made VARCHAR)
SELECT group FROM table_name_66 WHERE formula = "rncs"
Which group has the RNCS formula?
CREATE TABLE table_name_66 (group VARCHAR, formula VARCHAR)
SELECT counties_represented FROM table_14009909_1 WHERE first_elected = 2006
Which country has a delegate who was first elected in 2006?
CREATE TABLE table_14009909_1 (counties_represented VARCHAR, first_elected VARCHAR)
SELECT written_by FROM table_27116696_1 WHERE production_code = "3T7255"
Who wrote the episode with the production code of 3t7255?
CREATE TABLE table_27116696_1 (written_by VARCHAR, production_code VARCHAR)
SELECT player FROM table_name_36 WHERE from_club = "atlético madrid"
Which Player had a From club of atlético madrid?
CREATE TABLE table_name_36 (player VARCHAR, from_club VARCHAR)
SELECT type FROM table_261946_3 WHERE location__all_in_ohio_ = "Kent"
What is the type of institution in Kent State University?
CREATE TABLE table_261946_3 (type VARCHAR, location__all_in_ohio_ VARCHAR)
SELECT venue FROM table_name_29 WHERE away_team = "geelong"
What venue features geelong as the away side?
CREATE TABLE table_name_29 (venue VARCHAR, away_team VARCHAR)
SELECT year FROM table_name_86 WHERE result = "4–3" AND champions = "daegu tongyang orions"
What is the Year of the game with Result of 4–3 and Champions of Daegu Tongyang Orions?
CREATE TABLE table_name_86 (year VARCHAR, result VARCHAR, champions VARCHAR)
SELECT COUNT(production_code) FROM table_26429543_1 WHERE us_viewers__millions_ = "4.69"
How many different production codes are there for the episode with 4.69 million US viewers?
CREATE TABLE table_26429543_1 (production_code VARCHAR, us_viewers__millions_ VARCHAR)
SELECT away_team FROM table_name_28 WHERE attendance = "7,891"
Who was the away team when the attendance was 7,891?
CREATE TABLE table_name_28 (away_team VARCHAR, attendance VARCHAR)
SELECT owner FROM table_18536769_1 WHERE branding = "Classic Hits 102.1 CJCY"
When classic hits 102.1 cjcy is the branding who is the owner?
CREATE TABLE table_18536769_1 (owner VARCHAR, branding VARCHAR)
SELECT market_rank FROM table_10333757_1 WHERE calls = "WCRN"
Which Market/Rank is associated with WCRN calls?
CREATE TABLE table_10333757_1 (market_rank VARCHAR, calls VARCHAR)
SELECT COUNT(pick) FROM table_name_47 WHERE player = "robert ingalls"
What's the sum of the Pick that has the Player of Robert Ingalls?
CREATE TABLE table_name_47 (pick VARCHAR, player VARCHAR)
SELECT MAX(silver) FROM table_name_32 WHERE total < 1
What is the highest number of silver medals for a team with total less than 1?
CREATE TABLE table_name_32 (silver INTEGER, total INTEGER)
SELECT chassis FROM table_name_47 WHERE points = 6
Which chassis was used when over 6 points were earned?
CREATE TABLE table_name_47 (chassis VARCHAR, points VARCHAR)
SELECT loss FROM table_name_67 WHERE record = "68-80"
with a record of 68-80 what was the loss?
CREATE TABLE table_name_67 (loss VARCHAR, record VARCHAR)
SELECT leading_actress FROM table_24225238_1 WHERE leading_actor = "Warren Beatty" AND oscars = "40th"
Who was the leading actress in a film with Warren Beatty as the leading actor and also at the 40th Oscars?
CREATE TABLE table_24225238_1 (leading_actress VARCHAR, leading_actor VARCHAR, oscars VARCHAR)
SELECT name FROM table_name_35 WHERE roll = 422
Who has a roll value of 422?
CREATE TABLE table_name_35 (name VARCHAR, roll VARCHAR)
SELECT weeks_on_top FROM table_name_16 WHERE artist = "savage garden"
How many weeks on top was the single from Savage Garden?
CREATE TABLE table_name_16 (weeks_on_top VARCHAR, artist VARCHAR)
SELECT title FROM table_27969432_2 WHERE written_by = "Karina Csolty"
What is the name of the episode written by karina csolty?
CREATE TABLE table_27969432_2 (title VARCHAR, written_by VARCHAR)
SELECT high_assists FROM table_22893781_6 WHERE date = "January 15"
Name the high assists for january 15
CREATE TABLE table_22893781_6 (high_assists VARCHAR, date VARCHAR)
SELECT title FROM table_name_62 WHERE director = "pen-ek ratanaruang"
What film did Pen-Ek Ratanaruang direct?
CREATE TABLE table_name_62 (title VARCHAR, director VARCHAR)
SELECT partner FROM table_name_3 WHERE outcome = "winner" AND opponents_in_the_final = "rick leach jim pugh"
WHich Partner has a Outcome of winner, and a Opponents in the final of rick leach jim pugh?
CREATE TABLE table_name_3 (partner VARCHAR, outcome VARCHAR, opponents_in_the_final VARCHAR)
SELECT method FROM table_name_92 WHERE record = "4-0"
What was the method of resolution when Mikhail Ilyukhin's record was 4-0?
CREATE TABLE table_name_92 (method VARCHAR, record VARCHAR)
SELECT wavelength FROM table_name_53 WHERE frequency__mhz_ = "14.050–14.150"
What is the Wavelength of Frequency (MHz) 14.050–14.150?
CREATE TABLE table_name_53 (wavelength VARCHAR, frequency__mhz_ 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 nflcom_recap FROM table_name_81 WHERE game_site = "qualcomm stadium"
What's the site of the recap at qualcomm stadium?
CREATE TABLE table_name_81 (nflcom_recap VARCHAR, game_site VARCHAR)
SELECT movies FROM table_29217650_1 WHERE december_25 = "P3.2 million"
What film earmed p3.2 million on December 25?
CREATE TABLE table_29217650_1 (movies VARCHAR, december_25 VARCHAR)
SELECT AVG(points) FROM table_name_79 WHERE year > 1998 AND wins = 1
Which Points have a Year larger than 1998, and Wins of 1?
CREATE TABLE table_name_79 (points INTEGER, year VARCHAR, wins VARCHAR)
SELECT accolade FROM table_name_23 WHERE rank = 497
What's the accolade for the rank of 497?
CREATE TABLE table_name_23 (accolade VARCHAR, rank VARCHAR)
SELECT margin FROM table_name_89 WHERE year = 2002
Name the margin for 2002
CREATE TABLE table_name_89 (margin VARCHAR, year VARCHAR)
SELECT to_par FROM table_name_7 WHERE place = "t9" AND country = "australia"
What was Australia's to par when the place was t9?
CREATE TABLE table_name_7 (to_par VARCHAR, place VARCHAR, country VARCHAR)
SELECT COUNT(total) FROM table_name_85 WHERE gold = 1 AND nation = "portugal" AND bronze > 0
Portugal has how many total number of medals when there is 1 gold medal, and bronze medals are greater than 0?
CREATE TABLE table_name_85 (total VARCHAR, bronze VARCHAR, gold VARCHAR, nation VARCHAR)
SELECT MIN(fa_cup_goals) FROM table_name_55 WHERE fa_cup_apps = "4" AND total_apps = "49" AND total_goals > 17
What is the smallest number of FA Cup Goals for players with 4 FA Cup Appearances, 49 Total Appearances, and more than 17 total goals?
CREATE TABLE table_name_55 (fa_cup_goals INTEGER, total_goals VARCHAR, fa_cup_apps VARCHAR, total_apps VARCHAR)
SELECT final_score FROM table_name_33 WHERE date = "november 17"
What was the final score of the game on November 17?
CREATE TABLE table_name_33 (final_score VARCHAR, date VARCHAR)
SELECT location FROM table_name_69 WHERE mascot = "lakers"
Can you tell me the Location that has the Mascot of lakers?
CREATE TABLE table_name_69 (location VARCHAR, mascot VARCHAR)
SELECT COUNT(chassis) FROM table_15491596_1 WHERE no = 34
How many chassis used number 34?
CREATE TABLE table_15491596_1 (chassis VARCHAR, no VARCHAR)
SELECT date FROM table_name_7 WHERE race_name = "x gran premio di napoli"
Which date was the x gran premio di napoli?
CREATE TABLE table_name_7 (date VARCHAR, race_name VARCHAR)
SELECT college_junior_club_team FROM table_1013129_11 WHERE nhl_team = "St. Louis Blues"
What college/junior/club teams do the players from the St. Louis Blues come from?
CREATE TABLE table_1013129_11 (college_junior_club_team VARCHAR, nhl_team VARCHAR)
SELECT loss FROM table_name_90 WHERE series = "2-2"
Name the loss for series 2-2
CREATE TABLE table_name_90 (loss VARCHAR, series VARCHAR)
SELECT fuel_propulsion FROM table_name_73 WHERE fleet_series__quantity_ = "04001-04125 (125)"
Which Fuel Propulsion has a Fleet Series (Quantity) of 04001-04125 (125)?
CREATE TABLE table_name_73 (fuel_propulsion VARCHAR, fleet_series__quantity_ VARCHAR)
SELECT T3.Name FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID = T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID = T3.journalist_ID GROUP BY T3.Name HAVING COUNT(*) > 1
Show the names of journalists that have reported more than one event.
CREATE TABLE journalist (Name VARCHAR, journalist_ID VARCHAR); CREATE TABLE news_report (Event_ID VARCHAR, journalist_ID VARCHAR); CREATE TABLE event (Event_ID VARCHAR)