answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT night_rank FROM table_11354111_3 WHERE rating = "6.2"
what's the night rank with rating of 6.2
CREATE TABLE table_11354111_3 (night_rank VARCHAR, rating VARCHAR)
SELECT result FROM table_22603701_1 WHERE college = "Wisconsin"
What is the result for Wisconsin?
CREATE TABLE table_22603701_1 (result VARCHAR, college VARCHAR)
SELECT sail_number FROM table_name_47 WHERE position < 2
Which Sail number has a Position smaller than 2?
CREATE TABLE table_name_47 (sail_number VARCHAR, position INTEGER)
SELECT MIN(last_1_4) FROM table_name_30 WHERE time = "1:53.2" AND odds = "*1.30"
What is the lowest last quarter with a time of 1:53.2 and odds of *1.30?
CREATE TABLE table_name_30 (last_1_4 INTEGER, time VARCHAR, odds VARCHAR)
SELECT tries_against FROM table_name_22 WHERE points_for = "98"
What is Tries Against, when Points For is 98?
CREATE TABLE table_name_22 (tries_against VARCHAR, points_for VARCHAR)
SELECT MAX(top_10) FROM table_name_57 WHERE top_25 < 18 AND top_5 = 6 AND cuts_made < 20
Which Top-10 has a Top-25 smaller than 18, and a Top-5 of 6, and a Cuts made smaller than 20?
CREATE TABLE table_name_57 (top_10 INTEGER, cuts_made VARCHAR, top_25 VARCHAR, top_5 VARCHAR)
SELECT MIN(total) FROM table_name_36 WHERE gold < 3 AND bronze > 0 AND silver > 0
What is the smallest total that has under 3 golds, more than 0 silvers and bronzes?
CREATE TABLE table_name_36 (total INTEGER, silver VARCHAR, gold VARCHAR, bronze VARCHAR)
SELECT MAX(mccain__number) FROM table_20424014_1 WHERE obama__percentage = "33.7%"
what is the highest mccain # where obama got 33.7%
CREATE TABLE table_20424014_1 (mccain__number INTEGER, obama__percentage VARCHAR)
SELECT date FROM table_name_53 WHERE home_team = "luton town"
What is Date, when Home Team is "Luton Town"?
CREATE TABLE table_name_53 (date VARCHAR, home_team VARCHAR)
SELECT COUNT(density) FROM table_name_57 WHERE population > 393 OFFSET 390
What's the total number of density for the place with a population over 393,390?
CREATE TABLE table_name_57 (density VARCHAR, population INTEGER)
SELECT AVG(students) FROM table_name_25 WHERE pupil_teacher_ratio = 25.1
What is the average number of students for schools with a pupil to teacher ratio of 25.1?
CREATE TABLE table_name_25 (students INTEGER, pupil_teacher_ratio VARCHAR)
SELECT kōhaku__number FROM table_1315616_1 WHERE red_team_host = "Peggy Hayama"
In what number kōhaku was the red team host Peggy Hayama?
CREATE TABLE table_1315616_1 (kōhaku__number VARCHAR, red_team_host VARCHAR)
SELECT MIN(goals_against) FROM table_name_57 WHERE club = "cd alcoyano" AND points > 25
What is the fewest goals of CD Alcoyano with more than 25 points?
CREATE TABLE table_name_57 (goals_against INTEGER, club VARCHAR, points VARCHAR)
SELECT team FROM table_name_8 WHERE location_attendance = "target center 11,921"
WHAT IS THE TEAM WITH ATTENDANCE AT TARGET CENTER 11,921?
CREATE TABLE table_name_8 (team VARCHAR, location_attendance VARCHAR)
SELECT COUNT(joined) FROM table_261954_1 WHERE institution = "Guilford College"
How many values for joined occur at Guilford College?
CREATE TABLE table_261954_1 (joined VARCHAR, institution VARCHAR)
SELECT location FROM table_name_51 WHERE event = "ufc 98"
Name the location of ufc 98
CREATE TABLE table_name_51 (location VARCHAR, event VARCHAR)
SELECT MAX(week) FROM table_name_81 WHERE result = "w 21-17" AND attendance > 45 OFFSET 254
What was the highest week with a w 21-17 result, and more than 45,254 in attendance?
CREATE TABLE table_name_81 (week INTEGER, result VARCHAR, attendance VARCHAR)
SELECT COUNT(position) FROM table_12962773_16 WHERE current_club = "Energa Czarni"
How many players are from energa czarni?
CREATE TABLE table_12962773_16 (position VARCHAR, current_club VARCHAR)
SELECT COUNT(DISTINCT allergytype) FROM Allergy_type
How many different allergy types exist?
CREATE TABLE Allergy_type (allergytype VARCHAR)
SELECT median_house__hold_income FROM table_1840495_2 WHERE population = 2188
If the population is 2188, what was the median household income?
CREATE TABLE table_1840495_2 (median_house__hold_income VARCHAR, population VARCHAR)
SELECT opponent FROM table_name_30 WHERE record = "33-45"
Who did the Mariners play when they had a record of 33-45?
CREATE TABLE table_name_30 (opponent VARCHAR, record VARCHAR)
SELECT nationality FROM table_name_51 WHERE round = 7 AND position = "goalie"
What is the nationality of the goalie in Round 7?
CREATE TABLE table_name_51 (nationality VARCHAR, round VARCHAR, position VARCHAR)
SELECT country FROM table_name_19 WHERE finish = "t32" AND year_s__won = "1996"
Which Country has a Finish of t32, and a Year(s) won of 1996?
CREATE TABLE table_name_19 (country VARCHAR, finish VARCHAR, year_s__won VARCHAR)
SELECT month_held FROM table_26166836_3 WHERE location = "Paris"
What month is the Paris 20k Road Race held?
CREATE TABLE table_26166836_3 (month_held VARCHAR, location VARCHAR)
SELECT place FROM table_name_74 WHERE player = "lee westwood"
What place did Lee Westwood finish in?
CREATE TABLE table_name_74 (place VARCHAR, player VARCHAR)
SELECT named AS after FROM table_name_87 WHERE longitude < 270.7 AND latitude > -47.1 AND diameter__km_ < 7.2 AND name = "ayashe"
What is the namesake of Ayashe at a longitude less than 270.7, latitude more than -47.1, and a diameter less than 7.2?
CREATE TABLE table_name_87 (named VARCHAR, name VARCHAR, diameter__km_ VARCHAR, longitude VARCHAR, latitude VARCHAR)
SELECT SUM(interview) FROM table_name_4 WHERE average < 8.697 AND evening_gown < 8.73 AND state = "north dakota" AND swimsuit > 8.41
What is the sum of the interview scores from North Dakota that have averages less than 8.697, evening gown scores less than 8.73, and swimsuit scores greater than 8.41?
CREATE TABLE table_name_4 (interview INTEGER, swimsuit VARCHAR, state VARCHAR, average VARCHAR, evening_gown VARCHAR)
SELECT attendance FROM table_name_86 WHERE date = "november 7, 1999"
What was the Attendance on November 7, 1999?
CREATE TABLE table_name_86 (attendance VARCHAR, date VARCHAR)
SELECT label FROM table_name_83 WHERE region = "netherlands" AND catalog = "magik muzik 802-1"
What label has the netherlands as the region, and magik muzik 802-1 as the catalog?
CREATE TABLE table_name_83 (label VARCHAR, region VARCHAR, catalog VARCHAR)
SELECT commissioned__decommissioned FROM table_name_17 WHERE nvr_page = "aor-7"
Name the commissioned-decommissioned for NVR page of aor-7
CREATE TABLE table_name_17 (commissioned__decommissioned VARCHAR, nvr_page VARCHAR)
SELECT time FROM table_name_13 WHERE country = "kazakhstan"
What was the time for the country of kazakhstan?
CREATE TABLE table_name_13 (time VARCHAR, country VARCHAR)
SELECT COUNT(year) FROM table_name_53 WHERE category = "best international newcomer"
What year had the category of best international newcomer?
CREATE TABLE table_name_53 (year VARCHAR, category VARCHAR)
SELECT airport FROM table_name_33 WHERE country = "singapore"
Which airport is located in Singapore?
CREATE TABLE table_name_33 (airport VARCHAR, country VARCHAR)
SELECT MIN(year) FROM table_name_54 WHERE silver = "matthias merz"
WHAT YEAR HAS A SILVER FOR MATTHIAS MERZ?
CREATE TABLE table_name_54 (year INTEGER, silver VARCHAR)
SELECT COUNT(district) FROM table_25030512_41 WHERE incumbent = "Bill Shuster"
Name the number of district for bill shuster
CREATE TABLE table_25030512_41 (district VARCHAR, incumbent VARCHAR)
SELECT station_name FROM table_name_99 WHERE opening_year = "2013" AND park_and_ride_lot = "no"
Which station was opened in 2013, with no park & ride lot?
CREATE TABLE table_name_99 (station_name VARCHAR, opening_year VARCHAR, park_and_ride_lot VARCHAR)
SELECT AVG(gold) FROM table_name_6 WHERE bronze > 1
What is the average number of gold medals with more than 1 bronze medal?
CREATE TABLE table_name_6 (gold INTEGER, bronze INTEGER)
SELECT COUNT(frequency_mhz) FROM table_name_19 WHERE call_sign = "kgrj" AND erp_w > 21 OFFSET 500
What is the total frequency mhz of the kgrj call sign, which has an erp w greater than 21,500?
CREATE TABLE table_name_19 (frequency_mhz VARCHAR, call_sign VARCHAR, erp_w VARCHAR)
SELECT couple FROM table_name_91 WHERE results = "safe" AND style = "paso doble"
Which couple participated in the Paso Doble style and were safe?
CREATE TABLE table_name_91 (couple VARCHAR, results VARCHAR, style VARCHAR)
SELECT score FROM table_name_39 WHERE home = "boston bruins" AND date = "april 11"
What is the score of the Boston Bruins game from April 11?
CREATE TABLE table_name_39 (score VARCHAR, home VARCHAR, date VARCHAR)
SELECT COUNT(purse___us) AS $__ FROM table_1529260_2 WHERE margin_of_victory = "8 strokes"
How many dollars is the purse when the margin of victory is 8 strokes?
CREATE TABLE table_1529260_2 (purse___us VARCHAR, margin_of_victory VARCHAR)
SELECT order_part_number FROM table_name_61 WHERE multi_1 = "12.5x"
What is the order part number with a 12.5x multi 1?
CREATE TABLE table_name_61 (order_part_number VARCHAR, multi_1 VARCHAR)
SELECT party FROM table_19753079_35 WHERE candidates = "Yvette Clarke (D) 90.6% Hugh Carr (R) 9.4%"
Name the party for yvette clarke (d) 90.6% hugh carr (r) 9.4%
CREATE TABLE table_19753079_35 (party VARCHAR, candidates VARCHAR)
SELECT friday_day_six FROM table_1277350_7 WHERE thursday_day_five = "پچھمبے pachhambey"
What is friday day six when thursday day five is پچھمبے pachhambey?
CREATE TABLE table_1277350_7 (friday_day_six VARCHAR, thursday_day_five VARCHAR)
SELECT church_name FROM table_178381_1 WHERE location_of_the_church = "Stavang"
What's the name of the church in Stavang?
CREATE TABLE table_178381_1 (church_name VARCHAR, location_of_the_church VARCHAR)
SELECT award FROM table_name_76 WHERE result = "nominated" AND year = 2007
What award was nominated in 2007?
CREATE TABLE table_name_76 (award VARCHAR, result VARCHAR, year VARCHAR)
SELECT date FROM table_name_76 WHERE label = "spunk"
What date is associated with the Spunk label?
CREATE TABLE table_name_76 (date VARCHAR, label VARCHAR)
SELECT result FROM table_name_4 WHERE opponent = "steve walker"
Which Result has an Opponent of steve walker?
CREATE TABLE table_name_4 (result VARCHAR, opponent VARCHAR)
SELECT standing FROM table_2619469_1 WHERE goals_against = 130
What was the team standing if the won 130 goals against another team?
CREATE TABLE table_2619469_1 (standing VARCHAR, goals_against VARCHAR)
SELECT reason FROM table_28898974_3 WHERE electorate = "Peninsula"
When peninsula is the electorate what is the reason?
CREATE TABLE table_28898974_3 (reason VARCHAR, electorate VARCHAR)
SELECT poles FROM table_29434211_1 WHERE series = "European F3 Open"
How many poles does the European F3 Open series have?
CREATE TABLE table_29434211_1 (poles VARCHAR, series VARCHAR)
SELECT result FROM table_1341663_26 WHERE district = "Missouri 2"
What is the result for the district missouri 2?
CREATE TABLE table_1341663_26 (result VARCHAR, district VARCHAR)
SELECT score FROM table_name_2 WHERE date = "march 23"
What was the score on March 23?
CREATE TABLE table_name_2 (score VARCHAR, date VARCHAR)
SELECT raised FROM table_name_35 WHERE original_team = "hydra" AND hometown = "bronx, new york"
How much did the Hydra team from Bronx, New York raise?
CREATE TABLE table_name_35 (raised VARCHAR, original_team VARCHAR, hometown VARCHAR)
SELECT result FROM table_name_67 WHERE year = 2001
What was the result of the tournament in 2001?
CREATE TABLE table_name_67 (result VARCHAR, year VARCHAR)
SELECT date FROM table_name_71 WHERE record = "4-5"
Which date has a Record of 4-5?
CREATE TABLE table_name_71 (date VARCHAR, record VARCHAR)
SELECT fri_4_june FROM table_25220821_3 WHERE wed_2_june = "20' 50.62 108.608mph"
What is the Friday 4 June if the Wednesday 2 June is 20' 50.62 108.608mph?
CREATE TABLE table_25220821_3 (fri_4_june VARCHAR, wed_2_june VARCHAR)
SELECT AVG(total_viewers) FROM table_name_96 WHERE share = "17.6%"
What's the average total viewers that has 17.6% Share?
CREATE TABLE table_name_96 (total_viewers INTEGER, share VARCHAR)
SELECT status FROM table_24431348_18 WHERE rank = 20
What was the status of rank 20?
CREATE TABLE table_24431348_18 (status VARCHAR, rank VARCHAR)
SELECT result FROM table_name_48 WHERE week = 9
What was the result of the week 9 game?
CREATE TABLE table_name_48 (result VARCHAR, week VARCHAR)
SELECT season FROM table_25058269_1 WHERE runner_up = "Lase-R/Riga"
In which season is the runner-up Lase-R/Riga?
CREATE TABLE table_25058269_1 (season VARCHAR, runner_up VARCHAR)
SELECT score FROM table_name_33 WHERE player = "craig stadler"
Name the Score of craig stadler?
CREATE TABLE table_name_33 (score VARCHAR, player VARCHAR)
SELECT SUM(game) FROM table_name_99 WHERE record = "27–30"
Which Game has a Record of 27–30?
CREATE TABLE table_name_99 (game INTEGER, record VARCHAR)
SELECT date FROM table_name_2 WHERE set_3 = "18-25"
When was set 3 of 18-25?
CREATE TABLE table_name_2 (date VARCHAR, set_3 VARCHAR)
SELECT nhl_team FROM table_name_97 WHERE player = "steve durbano"
Which NHL team has a Player of steve durbano?
CREATE TABLE table_name_97 (nhl_team VARCHAR, player VARCHAR)
SELECT day, _date FROM table_name_20 WHERE game = "2"
What is the day and date of game 2?
CREATE TABLE table_name_20 (day VARCHAR, _date VARCHAR, game VARCHAR)
SELECT COUNT(directed_by) FROM table_14346353_1 WHERE teleplay_by = "David Simon" AND series__number = 4
Who directed series #4 that was teleplayed by David Simon?
CREATE TABLE table_14346353_1 (directed_by VARCHAR, teleplay_by VARCHAR, series__number VARCHAR)
SELECT home_away FROM table_name_70 WHERE date = "april 27, 2008"
Which Home/Away was on April 27, 2008?
CREATE TABLE table_name_70 (home_away VARCHAR, date VARCHAR)
SELECT place FROM table_name_43 WHERE to_par = "–5"
What is the Place of the Player with a To par of –5?
CREATE TABLE table_name_43 (place VARCHAR, to_par VARCHAR)
SELECT COUNT(original_air_date) FROM table_2226817_12 WHERE production_code = "11.19"
when was the episode premiere if the production code is 11.19?
CREATE TABLE table_2226817_12 (original_air_date VARCHAR, production_code VARCHAR)
SELECT tries_for FROM table_name_3 WHERE points = "5" AND tries_against = "2"
How many tries for are associated with 5 points and 2 tries against?
CREATE TABLE table_name_3 (tries_for VARCHAR, points VARCHAR, tries_against VARCHAR)
SELECT career_win_loss FROM table_name_76 WHERE 2001 = "1–1"
Which Career Win-Loss has a 2001 of 1–1?
CREATE TABLE table_name_76 (career_win_loss VARCHAR)
SELECT week_2 FROM table_name_83 WHERE week_1 = "daniella mugnolo"
What is the week 2 with daniella mugnolo in week 1?
CREATE TABLE table_name_83 (week_2 VARCHAR, week_1 VARCHAR)
SELECT reward FROM table_28742659_2 WHERE finish = "13th voted Out 6th Jury Member Day 43"
What is listed in reward when the finish is listed at 13th voted out 6th jury Member Day 43?
CREATE TABLE table_28742659_2 (reward VARCHAR, finish VARCHAR)
SELECT results FROM table_1341453_11 WHERE incumbent = "Peter Deutsch"
What are the results in the county with Peter Deutsch as a candidate?
CREATE TABLE table_1341453_11 (results VARCHAR, incumbent VARCHAR)
SELECT county FROM table_name_25 WHERE ihsaa_football_class = "aaaaa" AND mascot = "grizzly cubs"
What county has a football team in IHSAA class AAAAA and a school macot of the Grizzly Cubs?
CREATE TABLE table_name_25 (county VARCHAR, ihsaa_football_class VARCHAR, mascot VARCHAR)
SELECT MIN(week) FROM table_name_7 WHERE record = "4–7–1"
In what Week was the Record 4–7–1?
CREATE TABLE table_name_7 (week INTEGER, record VARCHAR)
SELECT right_ascension___j2000__ FROM table_name_58 WHERE ngc_number < 3384 AND constellation = "hydra" AND object_type = "spiral galaxy"
what is the right ascension (j2000) with the ngc number less than 3384, the constellation is hydra and the object type is spiral galaxy?
CREATE TABLE table_name_58 (right_ascension___j2000__ VARCHAR, object_type VARCHAR, ngc_number VARCHAR, constellation VARCHAR)
SELECT SUM(win__percentage) FROM table_name_55 WHERE drawn > 35
Tell me the sum of win % for drawn being larger than 35
CREATE TABLE table_name_55 (win__percentage INTEGER, drawn INTEGER)
SELECT winner FROM table_name_61 WHERE circuit = "phillip island grand prix circuit"
Which driver won the Phillip Island Grand Prix Circuit?
CREATE TABLE table_name_61 (winner VARCHAR, circuit VARCHAR)
SELECT location FROM table_name_62 WHERE game = 78
Where was game 78 held?
CREATE TABLE table_name_62 (location VARCHAR, game VARCHAR)
SELECT COUNT(tdp) FROM table_27277284_27 WHERE order_part_number = "AMQL65DAM22GG"
How many thermal design power levels does part number amql65dam22gg have?
CREATE TABLE table_27277284_27 (tdp VARCHAR, order_part_number VARCHAR)
SELECT league_from FROM table_name_95 WHERE position = "lw" AND pick__number > 34 AND player = "bradley ross"
Which League from has a Position of lw, a Pick # larger than 34, and a Player of bradley ross?
CREATE TABLE table_name_95 (league_from VARCHAR, player VARCHAR, position VARCHAR, pick__number VARCHAR)
SELECT under_13 FROM table_26368963_2 WHERE under_15 = "Maria Elena Ubina"
What is every value for Under-13 when value for Under-15 is Maria Elena Ubina?
CREATE TABLE table_26368963_2 (under_13 VARCHAR, under_15 VARCHAR)
SELECT COUNT(zip_code_prefix_es_) FROM table_14253123_1 WHERE _percentage_of_boundary_by_water = "63%"
When the % of boundary by water is 63% what is the overall number of zip code prefix(es)?
CREATE TABLE table_14253123_1 (zip_code_prefix_es_ VARCHAR, _percentage_of_boundary_by_water VARCHAR)
SELECT AVG(starts) FROM table_name_33 WHERE cuts_made = 11 AND top_10 > 4
What is the average number of starts when 11 cuts were made and the top 10 ranking is larger than 4?
CREATE TABLE table_name_33 (starts INTEGER, cuts_made VARCHAR, top_10 VARCHAR)
SELECT high_points FROM table_13762472_5 WHERE record = "24-17"
Who had the high point total when the team was 24-17?
CREATE TABLE table_13762472_5 (high_points VARCHAR, record VARCHAR)
SELECT MIN(round) FROM table_29033869_3 WHERE opponent = "Melbourne" AND date = "Saturday, 4 April 2:10pm"
What is the round number of the round against melbourne on saturday, 4 april 2:10pm?
CREATE TABLE table_29033869_3 (round INTEGER, opponent VARCHAR, date VARCHAR)
SELECT ungegn FROM table_name_23 WHERE khmer = "១០០"
what's the ungegn for the ១០០ khmer?
CREATE TABLE table_name_23 (ungegn VARCHAR, khmer VARCHAR)
SELECT campus FROM campuses WHERE YEAR >= 1935 AND YEAR <= 1939
Which campus was opened between 1935 and 1939?
CREATE TABLE campuses (campus VARCHAR, YEAR VARCHAR)
SELECT name FROM table_name_49 WHERE goals = 6
Which name had 6 goals?
CREATE TABLE table_name_49 (name VARCHAR, goals VARCHAR)
SELECT party FROM table_name_57 WHERE incumbent = "virginia foxx"
What is the party affiliation of Virginia Foxx?
CREATE TABLE table_name_57 (party VARCHAR, incumbent VARCHAR)
SELECT place FROM table_name_32 WHERE score < 67 AND country = "south africa"
What is Place, when Score is less than 67, and when Country is South Africa?
CREATE TABLE table_name_32 (place VARCHAR, score VARCHAR, country VARCHAR)
SELECT away_team FROM table_name_22 WHERE venue = "brunswick street oval"
What away team is playing at the Brunswick Street Oval Venue?
CREATE TABLE table_name_22 (away_team VARCHAR, venue VARCHAR)
SELECT score FROM table_name_73 WHERE date = "april 12"
What was the score for the April 12 game?
CREATE TABLE table_name_73 (score VARCHAR, date VARCHAR)
SELECT director_s_ FROM table_18994724_1 WHERE film_title_used_in_nomination = "Nuits d'Arabie"
Who directed the film Nuits d'arabie?
CREATE TABLE table_18994724_1 (director_s_ VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT time_retired FROM table_name_2 WHERE grid = "8"
What shows as the Time/Retired for Grid 8?
CREATE TABLE table_name_2 (time_retired VARCHAR, grid VARCHAR)
SELECT distance_medellín_downtown___km__ FROM table_name_86 WHERE municipalities = "envigado"
What is the Distance Medellín Downtown (km) when the municipalities Envigado?
CREATE TABLE table_name_86 (distance_medellín_downtown___km__ VARCHAR, municipalities VARCHAR)
SELECT SUM(attendance) FROM table_name_76 WHERE tie_no = 19
How many attended tie number 19?
CREATE TABLE table_name_76 (attendance INTEGER, tie_no VARCHAR)
SELECT score FROM table_name_28 WHERE date = "05 dec"
Can you tell me the Score that has the Date of 05 dec?
CREATE TABLE table_name_28 (score VARCHAR, date VARCHAR)