answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT notes FROM table_name_96 WHERE year = 2010
What is Notes, when Year is "2010"?
CREATE TABLE table_name_96 (notes VARCHAR, year VARCHAR)
SELECT course FROM table_name_1 WHERE to_par_[a_] = "n/a" AND country = "scotland" AND year > 1905 AND location = "philadelphia, pennsylvania"
With a year larger than 1905, and a location of philadelphia, pennsylvania with a to par [a] of n/a and a country of scotland what is the course?
CREATE TABLE table_name_1 (course VARCHAR, location VARCHAR, year VARCHAR, country VARCHAR, to_par_ VARCHAR, a_ VARCHAR)
SELECT SUM(games) FROM table_name_53 WHERE name = "allofs, klaus" AND goals < 177
What is the sum of Games for Allofs, Klaus, with Goals less than 177?
CREATE TABLE table_name_53 (games INTEGER, name VARCHAR, goals VARCHAR)
SELECT copa_libertadores_1999 FROM table_name_62 WHERE copa_mercosur_1999 = "group stage" AND team = "vasco"
What is the Copa Libertadores 1999 result for team vasco, which made the group stage in the Copa Mercosur 1999?
CREATE TABLE table_name_62 (copa_libertadores_1999 VARCHAR, copa_mercosur_1999 VARCHAR, team VARCHAR)
SELECT SUM(pick) FROM table_name_61 WHERE position = "n/a" AND player = "greg wendt" AND round < 6
What is the total of Pick with a Position of n/a and Greg Wendt as Player with a Round less than 6?
CREATE TABLE table_name_61 (pick INTEGER, round VARCHAR, position VARCHAR, player VARCHAR)
SELECT result FROM table_name_36 WHERE attendance = "51,100"
What was the final score (result) for the game where 51,100 attended?
CREATE TABLE table_name_36 (result VARCHAR, attendance VARCHAR)
SELECT score FROM table_name_44 WHERE opponent = "li na"
What is the score when Li Na was the opponent?
CREATE TABLE table_name_44 (score VARCHAR, opponent VARCHAR)
SELECT elector FROM table_name_33 WHERE place_of_birth = "san severino"
What Elector has the Place of birth of San Severino?
CREATE TABLE table_name_33 (elector VARCHAR, place_of_birth VARCHAR)
SELECT album_number FROM table_name_66 WHERE chinese__simplified_ = "情歌没有告诉你"
What is the album number for the record 情歌没有告诉你, simplified from the traditional Chinese name?
CREATE TABLE table_name_66 (album_number VARCHAR, chinese__simplified_ VARCHAR)
SELECT home_team FROM table_name_47 WHERE away_team = "fleetwood town"
What home team played against Fleetwood Town?
CREATE TABLE table_name_47 (home_team VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_12 WHERE winning_driver = "fabrizio giovanardi christian abt"
What is the date that Fabrizio Giovanardi Christian Abt won?
CREATE TABLE table_name_12 (date VARCHAR, winning_driver VARCHAR)
SELECT COUNT(constr) FROM table_12707313_2 WHERE first_win = "1978 Brazilian Grand Prix"
Name the number of constr with the first win at the 1978 brazilian grand prix
CREATE TABLE table_12707313_2 (constr VARCHAR, first_win VARCHAR)
SELECT rank FROM table_name_90 WHERE title = "best friends"
What rank did Best Friends receive?
CREATE TABLE table_name_90 (rank VARCHAR, title VARCHAR)
SELECT player FROM table_2508633_3 WHERE nfl_team = "Kansas City Chiefs"
Who was drafted by the Kansas City Chiefs?
CREATE TABLE table_2508633_3 (player VARCHAR, nfl_team VARCHAR)
SELECT * FROM Assessment_Notes ORDER BY date_of_notes
List all information about the assessment notes sorted by date in ascending order.
CREATE TABLE Assessment_Notes (date_of_notes VARCHAR)
SELECT record FROM table_name_7 WHERE result = "w" AND date = "january 2"
What record has w as the result, with January 2 as the date?
CREATE TABLE table_name_7 (record VARCHAR, result VARCHAR, date VARCHAR)
SELECT opponents FROM table_name_85 WHERE surface = "hard" AND date = "july 13, 2008"
Who were the opponents that played on a hard surface on July 13, 2008?
CREATE TABLE table_name_85 (opponents VARCHAR, surface VARCHAR, date VARCHAR)
SELECT power_kw FROM table_23394920_1 WHERE callsign = "DXRT-TV"
When dxrt-tv is the callsign what is the power kw?
CREATE TABLE table_23394920_1 (power_kw VARCHAR, callsign VARCHAR)
SELECT MAX(bronze) FROM table_name_7 WHERE rank = 4 AND gold < 0
Which Bronze has a Rank of 4, and a Gold smaller than 0?
CREATE TABLE table_name_7 (bronze INTEGER, rank VARCHAR, gold VARCHAR)
SELECT rank FROM table_name_94 WHERE time = "4:00.191"
What rank has a Time of 4:00.191?
CREATE TABLE table_name_94 (rank VARCHAR, time VARCHAR)
SELECT MAX(subscribers__2006___thousands_) FROM table_29395291_2 WHERE provider = "Mobilis"
What is the maximum number of 2006 subscribers for Mobilis?
CREATE TABLE table_29395291_2 (subscribers__2006___thousands_ INTEGER, provider VARCHAR)
SELECT rank FROM table_name_94 WHERE bronze = 3
Which Rank has a Bronze of 3?
CREATE TABLE table_name_94 (rank VARCHAR, bronze VARCHAR)
SELECT high_rebounds FROM table_13619135_7 WHERE team = "Charlotte"
Who was the high rebounder against charlotte?
CREATE TABLE table_13619135_7 (high_rebounds VARCHAR, team VARCHAR)
SELECT 2004 FROM table_name_73 WHERE 1998 = "35"
What is the 2004 value if the 1998 value is 35?
CREATE TABLE table_name_73 (Id VARCHAR)
SELECT role_code, street, city, state FROM professionals WHERE city LIKE '%West%'
Which professionals live in a city containing the substring 'West'? List his or her role, street, city and state.
CREATE TABLE professionals (role_code VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR)
SELECT winning_party_2003 FROM table_name_62 WHERE constituency = "aberdeen north"
Can you tell me the Winning party of 2003 that has the Constituency of aberdeen north?
CREATE TABLE table_name_62 (winning_party_2003 VARCHAR, constituency VARCHAR)
SELECT home_team FROM table_name_72 WHERE venue = "arden street oval"
What home team plays at Arden Street Oval?
CREATE TABLE table_name_72 (home_team VARCHAR, venue VARCHAR)
SELECT major_users FROM table_29474407_11 WHERE name__designation = "Gordon Close-Support Weapon System"
Who are all the major users of the Gordon Close-Support Weapon System?
CREATE TABLE table_29474407_11 (major_users VARCHAR, name__designation VARCHAR)
SELECT player FROM table_25711913_8 WHERE position = "Left tackle"
Which player was at position left tackle?
CREATE TABLE table_25711913_8 (player VARCHAR, position VARCHAR)
SELECT date FROM table_name_67 WHERE round = "sf"
What is the Date with a Round with sf?
CREATE TABLE table_name_67 (date VARCHAR, round VARCHAR)
SELECT COUNT(pick) FROM table_name_27 WHERE nationality = "canada" AND player = "dennis maxwell"
Which Pick has a Nationality of canada, and a Player of dennis maxwell?
CREATE TABLE table_name_27 (pick VARCHAR, nationality VARCHAR, player VARCHAR)
SELECT engine FROM table_name_41 WHERE chassis = "lotus 49c"
Which engine has a Lotus 49c chassis?
CREATE TABLE table_name_41 (engine VARCHAR, chassis VARCHAR)
SELECT MAX(goals_for) FROM table_name_84 WHERE goals_against = 85 AND drawn > 6
What is the highest goals entry with drawn larger than 6 and goals against 85?
CREATE TABLE table_name_84 (goals_for INTEGER, goals_against VARCHAR, drawn VARCHAR)
SELECT date_announced FROM table_1373542_1 WHERE reported_cost = "US$9 million"
On what date was it announced that an asset was acquired for US$9 Million?
CREATE TABLE table_1373542_1 (date_announced VARCHAR, reported_cost VARCHAR)
SELECT round FROM table_name_58 WHERE club = "maccabi haifa fc"
What round did the maccabi haifa fc club have?
CREATE TABLE table_name_58 (round VARCHAR, club VARCHAR)
SELECT 2011 FROM table_name_36 WHERE 2010 = "grand slam tournaments"
What is the 2011 when the 2010 shows grand slam tournaments?
CREATE TABLE table_name_36 (Id VARCHAR)
SELECT COUNT(november_3) FROM table_25355392_2 WHERE march_27_29 = "129"
how many times is march 27-29 is 129?
CREATE TABLE table_25355392_2 (november_3 VARCHAR, march_27_29 VARCHAR)
SELECT away_team FROM table_name_29 WHERE venue = "windy hill"
What was the away team that played at Windy Hill?
CREATE TABLE table_name_29 (away_team VARCHAR, venue VARCHAR)
SELECT score FROM table_name_99 WHERE tie_no = "32"
What is the score if the Tie no is 32?
CREATE TABLE table_name_99 (score VARCHAR, tie_no VARCHAR)
SELECT premiere FROM table_11323532_2 WHERE languages = "Danish"
Which premiere had languages in danish?
CREATE TABLE table_11323532_2 (premiere VARCHAR, languages VARCHAR)
SELECT points FROM table_24912693_4 WHERE steals = 2
How many points does the player with 2 steals have?
CREATE TABLE table_24912693_4 (points VARCHAR, steals VARCHAR)
SELECT torque FROM table_name_21 WHERE volume = "1896 cc" AND co_2 = "140 g/km"
Which Torque has a Volume of 1896 cc, and a CO 2 of 140 g/km?
CREATE TABLE table_name_21 (torque VARCHAR, volume VARCHAR, co_2 VARCHAR)
SELECT frequency FROM table_name_47 WHERE identifier = "cbf-fm-9"
What's the frequency when the identifier is cbf-fm-9?
CREATE TABLE table_name_47 (frequency VARCHAR, identifier VARCHAR)
SELECT category FROM table_name_45 WHERE country = "russia"
Russia has films in which category?
CREATE TABLE table_name_45 (category VARCHAR, country VARCHAR)
SELECT venue FROM table_name_19 WHERE state = "colorado"
What Venue is in Colorado?
CREATE TABLE table_name_19 (venue VARCHAR, state VARCHAR)
SELECT winning_driver FROM table_name_12 WHERE winning_car = "wolf wr3"
Which driver drove car Wolf WR3?
CREATE TABLE table_name_12 (winning_driver VARCHAR, winning_car VARCHAR)
SELECT MAX(played) FROM table_name_99 WHERE drawn < 1 AND position < 1
What is the greatest played with a drawn less than 1 and a position of less than 1?
CREATE TABLE table_name_99 (played INTEGER, drawn VARCHAR, position VARCHAR)
SELECT AVG(entered_service) FROM table_name_73 WHERE builder = "tom smith" AND number < 7007
When did the tom smith built train enter service with a number under 7007?
CREATE TABLE table_name_73 (entered_service INTEGER, builder VARCHAR, number VARCHAR)
SELECT player FROM table_name_60 WHERE events > 25
Which player had more than 25 events?
CREATE TABLE table_name_60 (player VARCHAR, events INTEGER)
SELECT college FROM table_15582870_1 WHERE choice = 143
Which college did draft pick #143 attend?
CREATE TABLE table_15582870_1 (college VARCHAR, choice VARCHAR)
SELECT chairman FROM table_29398373_2 WHERE captain = "Iker Casillas"
Name the chairman for iker casillas
CREATE TABLE table_29398373_2 (chairman VARCHAR, captain VARCHAR)
SELECT AVG(attendance) FROM table_name_61 WHERE week = 2
What was the average attendance in week 2?
CREATE TABLE table_name_61 (attendance INTEGER, week VARCHAR)
SELECT score FROM table_name_99 WHERE song = "第九夜"
What is Score, when Song is 第九夜?
CREATE TABLE table_name_99 (score VARCHAR, song VARCHAR)
SELECT Name FROM ship WHERE Nationality = "United States" OR Nationality = "United Kingdom"
Show the name of ships whose nationality is either United States or United Kingdom.
CREATE TABLE ship (Name VARCHAR, Nationality VARCHAR)
SELECT hdtv FROM table_15887683_1 WHERE television_service = "Italia 1"
What high definition television options are available for Italia 1?
CREATE TABLE table_15887683_1 (hdtv VARCHAR, television_service VARCHAR)
SELECT place FROM table_name_16 WHERE score = 67
What is the Place of the Player with a Score of 67?
CREATE TABLE table_name_16 (place VARCHAR, score VARCHAR)
SELECT entrant FROM table_name_94 WHERE chassis = "maserati 250f" AND year = 1954
What entrant had a chassis of Maserati 250f in 1954?
CREATE TABLE table_name_94 (entrant VARCHAR, chassis VARCHAR, year VARCHAR)
SELECT branding FROM table_12379297_4 WHERE location = "Metro Manila"
What is the branding of metro manila?
CREATE TABLE table_12379297_4 (branding VARCHAR, location VARCHAR)
SELECT record FROM table_name_78 WHERE opponent = "yukiya naito"
Tell me the record for yukiya naito
CREATE TABLE table_name_78 (record VARCHAR, opponent VARCHAR)
SELECT surface FROM table_name_56 WHERE finalist = "justine henin"
What was the surface for finalist Justine Henin?
CREATE TABLE table_name_56 (surface VARCHAR, finalist VARCHAR)
SELECT date FROM table_name_53 WHERE score = "6–3 6–4"
What date was the score of 6–3 6–4?
CREATE TABLE table_name_53 (date VARCHAR, score VARCHAR)
SELECT parish FROM table_20722805_1 WHERE mccain_percentage = "45.37%"
What parish did McCain have 45.37% of the votes?
CREATE TABLE table_20722805_1 (parish VARCHAR, mccain_percentage VARCHAR)
SELECT country FROM table_name_37 WHERE year_s__won = "1964"
Which country has a Year(s) won in 1964?
CREATE TABLE table_name_37 (country VARCHAR, year_s__won VARCHAR)
SELECT poll_source FROM table_name_87 WHERE lead_margin = 17
Which poll source has a lead of 17?
CREATE TABLE table_name_87 (poll_source VARCHAR, lead_margin VARCHAR)
SELECT launched FROM table_name_97 WHERE name = "danaide"
what is the name of the builder who launched in danaide
CREATE TABLE table_name_97 (launched VARCHAR, name VARCHAR)
SELECT AVG(heat_rank) FROM table_name_15 WHERE time < 24.02 AND lane = 1
Tell me the average heat rank for time less than 24.02 and lane of 1
CREATE TABLE table_name_15 (heat_rank INTEGER, time VARCHAR, lane VARCHAR)
SELECT home FROM table_name_28 WHERE result = "0:2" AND date = "21.10.07"
What is the home of the match with a 0:2 result on 21.10.07?
CREATE TABLE table_name_28 (home VARCHAR, result VARCHAR, date VARCHAR)
SELECT MIN(drawn) FROM table_name_83 WHERE games < 7
What is the lowest drawn that has games less than 7?
CREATE TABLE table_name_83 (drawn INTEGER, games INTEGER)
SELECT Case_burden FROM county_public_safety ORDER BY Population DESC
Show the case burden of counties in descending order of population.
CREATE TABLE county_public_safety (Case_burden VARCHAR, Population VARCHAR)
SELECT network_brand_name FROM table_name_45 WHERE company_name = "vodafone group" AND country = "germany"
What is the network brand name of the company vodafone group in Germany?
CREATE TABLE table_name_45 (network_brand_name VARCHAR, company_name VARCHAR, country VARCHAR)
SELECT title FROM table_1876825_8 WHERE no_in_season = 2
what is the title no in season 2?
CREATE TABLE table_1876825_8 (title VARCHAR, no_in_season VARCHAR)
SELECT finale FROM table_175980_2 WHERE timeslot = "Tuesday 9:30 p.m."
What finales took place in the Tuesday 9:30 p.m. timeslot?
CREATE TABLE table_175980_2 (finale VARCHAR, timeslot VARCHAR)
SELECT AVG(draws) FROM table_name_25 WHERE played > 38
What is the average draws with more than 38 played?
CREATE TABLE table_name_25 (draws INTEGER, played INTEGER)
SELECT episode_air_date FROM table_27615445_1 WHERE guest_fourth_judge = "Luiza Possi"
List all episode air dates where Luiza Possi was the guest fourth judge?
CREATE TABLE table_27615445_1 (episode_air_date VARCHAR, guest_fourth_judge VARCHAR)
SELECT mascot FROM table_name_16 WHERE location = "mishawaka"
Who is the mascot for Mishawaka?
CREATE TABLE table_name_16 (mascot VARCHAR, location VARCHAR)
SELECT arranger FROM table_name_29 WHERE title = "ana rouh"
Who is the arranger for Ana Rouh?
CREATE TABLE table_name_29 (arranger VARCHAR, title VARCHAR)
SELECT years FROM table_name_54 WHERE character = "dr trevor stewart"
Which Years have a Character of dr trevor stewart?
CREATE TABLE table_name_54 (years VARCHAR, character VARCHAR)
SELECT points_difference FROM table_name_97 WHERE points > 2 AND lost < 3 AND drawn < 1
What is the difference associated with more than 2 points, fewer than 3 losses, and fewer than 1 draw?
CREATE TABLE table_name_97 (points_difference VARCHAR, drawn VARCHAR, points VARCHAR, lost VARCHAR)
SELECT school_club_team FROM table_name_78 WHERE position = "center" AND player = "rafael araújo"
What school/club team did the center Rafael Araújo play for?
CREATE TABLE table_name_78 (school_club_team VARCHAR, position VARCHAR, player VARCHAR)
SELECT SUM(round) FROM table_name_70 WHERE record = "19-25-5"
What is the sum of Round, when Record is "19-25-5"?
CREATE TABLE table_name_70 (round INTEGER, record VARCHAR)
SELECT agg FROM table_name_45 WHERE team__number2 = "okk beograd"
What was the aggregate for a team #2 of Okk Beograd?
CREATE TABLE table_name_45 (agg VARCHAR, team__number2 VARCHAR)
SELECT competition FROM table_name_98 WHERE position = "8th"
What's the name of the competition in 8th position?
CREATE TABLE table_name_98 (competition VARCHAR, position VARCHAR)
SELECT 3 AS rd_run FROM table_name_97 WHERE rank = 1
Which 3rd run has rank of 1?
CREATE TABLE table_name_97 (rank VARCHAR)
SELECT total FROM table_name_15 WHERE a_score < 6.6 AND b_score = 8.925
What is the total when the A score was less than 6.6, and the B score was 8.925?
CREATE TABLE table_name_15 (total VARCHAR, a_score VARCHAR, b_score VARCHAR)
SELECT COUNT(record) FROM table_27734577_8 WHERE date = "January 2"
How many records where in January 2?
CREATE TABLE table_27734577_8 (record VARCHAR, date VARCHAR)
SELECT census_ranking FROM table_name_32 WHERE area_km_2 = 173.4
what is the census ranking when the area km 2 is 173.4?
CREATE TABLE table_name_32 (census_ranking VARCHAR, area_km_2 VARCHAR)
SELECT 1996 FROM table_name_53 WHERE 1986 = "1r"
What's the 1996 if 1986 has a 1R?
CREATE TABLE table_name_53 (Id VARCHAR)
SELECT Citizenship FROM singer GROUP BY Citizenship ORDER BY COUNT(*) DESC LIMIT 1
Please show the most common citizenship of singers.
CREATE TABLE singer (Citizenship VARCHAR)
SELECT attendance FROM table_17778417_1 WHERE week = 8
How many people attended the Week 8 game when Denver played Buffalo?
CREATE TABLE table_17778417_1 (attendance VARCHAR, week VARCHAR)
SELECT home_team FROM table_name_44 WHERE tie_no = "20"
What home team has a tie no of 20?
CREATE TABLE table_name_44 (home_team VARCHAR, tie_no VARCHAR)
SELECT amt_30__desktop_ FROM table_name_76 WHERE feature = "vlan settings for intel amt network interfaces"
What's the AMT 3.0 when it has a feature of Vlan Settings for Intel AMT Network Interfaces?
CREATE TABLE table_name_76 (amt_30__desktop_ VARCHAR, feature VARCHAR)
SELECT venue FROM table_name_93 WHERE result = "draw"
Which venue led to a draw?
CREATE TABLE table_name_93 (venue VARCHAR, result VARCHAR)
SELECT manner_of_departure FROM table_27782699_3 WHERE replaced_by = "Jakob Michelsen"
How did the manager who was replaced by Jakob Michelsen depart?
CREATE TABLE table_27782699_3 (manner_of_departure VARCHAR, replaced_by VARCHAR)
SELECT MAX(goals) FROM table_name_7 WHERE nat = "ita" AND transfer_fee = "youth system"
Name the highest goals for youth system and ita
CREATE TABLE table_name_7 (goals INTEGER, nat VARCHAR, transfer_fee VARCHAR)
SELECT record FROM table_name_87 WHERE visitor = "chicago black hawks" AND date = "november 24"
What was the team's record when they played visitor team Chicago Black Hawks on November 24?
CREATE TABLE table_name_87 (record VARCHAR, visitor VARCHAR, date VARCHAR)
SELECT record FROM table_name_32 WHERE date = "april 13"
What is the Record on april 13?
CREATE TABLE table_name_32 (record VARCHAR, date VARCHAR)
SELECT COUNT(number_of_dances) FROM table_26375386_28 WHERE place = 1
How many numbers of dances for place 1?
CREATE TABLE table_26375386_28 (number_of_dances VARCHAR, place VARCHAR)
SELECT MIN(number_of_seats) FROM table_name_21 WHERE current_status = "retired" AND quantity < 8
What is the smallest number of seats in a vehicle currently retired and in quantities less than 8?
CREATE TABLE table_name_21 (number_of_seats INTEGER, current_status VARCHAR, quantity VARCHAR)
SELECT cmi_cross_ref_id FROM cmi_cross_references EXCEPT SELECT cmi_cross_ref_id FROM parking_fines
Which cmi cross reference id is not related to any parking taxes?
CREATE TABLE parking_fines (cmi_cross_ref_id VARCHAR); CREATE TABLE cmi_cross_references (cmi_cross_ref_id VARCHAR)
SELECT streak FROM table_name_45 WHERE attendance = "33,013"
Which streak had an attendance of 33,013?
CREATE TABLE table_name_45 (streak VARCHAR, attendance VARCHAR)