question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
what's the candidates with party being democratic and dbeingtrict being north carolina 1
CREATE TABLE table_1341930_33 (candidates VARCHAR, party VARCHAR, district VARCHAR)
SELECT candidates FROM table_1341930_33 WHERE party = "Democratic" AND district = "North Carolina 1"
How many players had the most assists against New Jersey?
CREATE TABLE table_15873014_3 (high_assists VARCHAR, team VARCHAR)
SELECT COUNT(high_assists) FROM table_15873014_3 WHERE team = "New Jersey"
What is the capacity of Bandırma Banvit?
CREATE TABLE table_name_28 (capacity INTEGER, club VARCHAR)
SELECT AVG(capacity) FROM table_name_28 WHERE club = "bandırma banvit"
Show the names of clubs that have players with position "Right Wing".
CREATE TABLE club (name VARCHAR, Club_ID VARCHAR); CREATE TABLE player (Club_ID VARCHAR, Position VARCHAR)
SELECT T1.name FROM club AS T1 JOIN player AS T2 ON T1.Club_ID = T2.Club_ID WHERE T2.Position = "Right Wing"
How many games are shown against Houston?
CREATE TABLE table_27721131_6 (game VARCHAR, team VARCHAR)
SELECT COUNT(game) FROM table_27721131_6 WHERE team = "Houston"
What were the outcomes of matches with bill tilden florence ballin as opponents?
CREATE TABLE table_2127933_3 (outcome VARCHAR, opponents VARCHAR)
SELECT outcome FROM table_2127933_3 WHERE opponents = "Bill Tilden Florence Ballin"
What shareholder has 3.63 percent of capital?
CREATE TABLE table_206419_3 (shareholder VARCHAR, percent_of_capital VARCHAR)
SELECT shareholder FROM table_206419_3 WHERE percent_of_capital = "3.63"
What was the number of passengers going to MCO with a rank larger than 9?
CREATE TABLE table_name_54 (passengers VARCHAR, airport VARCHAR, rank VARCHAR)
SELECT COUNT(passengers) FROM table_name_54 WHERE airport = "mco" AND rank > 9
What season had 2.52 million viewers?
CREATE TABLE table_2170969_2 (tv_season VARCHAR, viewers_in_millions VARCHAR)
SELECT tv_season FROM table_2170969_2 WHERE viewers_in_millions = "2.52"
What's the volume:issue of Sheryl Crow with 3 weeks on top?
CREATE TABLE table_name_7 (volume VARCHAR, weeks_on_top VARCHAR, artist VARCHAR)
SELECT volume AS :issue FROM table_name_7 WHERE weeks_on_top = "3" AND artist = "sheryl crow"
Which Home has a Date of april 1?
CREATE TABLE table_name_56 (home VARCHAR, date VARCHAR)
SELECT home FROM table_name_56 WHERE date = "april 1"
Name the club with points of 56
CREATE TABLE table_name_9 (club VARCHAR, points VARCHAR)
SELECT club FROM table_name_9 WHERE points = "56"
When birkenhead is the city/town and merseyside is the county and england is the country how many ranks are there?
CREATE TABLE table_23248420_1 (rank VARCHAR, city_town VARCHAR, country VARCHAR, county VARCHAR)
SELECT COUNT(rank) FROM table_23248420_1 WHERE country = "England" AND county = "Merseyside" AND city_town = "Birkenhead"
How many Ford Focus electric vehicle emission test scores were recorded in California?
CREATE TABLE table_16105186_2 (california__san_francisco_ VARCHAR, vehicle VARCHAR)
SELECT COUNT(california__san_francisco_) FROM table_16105186_2 WHERE vehicle = "Ford Focus Electric"
Name the date for clay surface and score of 0–6, 0–6
CREATE TABLE table_name_75 (date VARCHAR, surface VARCHAR, score VARCHAR)
SELECT date FROM table_name_75 WHERE surface = "clay" AND score = "0–6, 0–6"
What result has 1947 sun bowl as the bowl game?
CREATE TABLE table_name_81 (result VARCHAR, bowl_game VARCHAR)
SELECT result FROM table_name_81 WHERE bowl_game = "1947 sun bowl"
What is the title of the representative appointed by James K. Polk?
CREATE TABLE table_name_52 (title VARCHAR, appointed_by VARCHAR)
SELECT title FROM table_name_52 WHERE appointed_by = "james k. polk"
What team was the lower when the winner was the new york jets, and a Year earlier than 1994, and a Result of 37–13?
CREATE TABLE table_name_98 (loser VARCHAR, result VARCHAR, winner VARCHAR, year VARCHAR)
SELECT loser FROM table_name_98 WHERE winner = "new york jets" AND year < 1994 AND result = "37–13"
What is the Result with a Location of brussels?
CREATE TABLE table_name_96 (result VARCHAR, location VARCHAR)
SELECT COUNT(result) FROM table_name_96 WHERE location = "brussels"
How many laps did car 23 do?
CREATE TABLE table_name_17 (laps VARCHAR, car_no VARCHAR)
SELECT laps FROM table_name_17 WHERE car_no = "23"
What is the first yar that someone won with a score of 68-66-68-71=273?
CREATE TABLE table_18862490_2 (year INTEGER, score VARCHAR)
SELECT MIN(year) FROM table_18862490_2 WHERE score = 68 - 66 - 68 - 71 = 273
What year was incumbent Claude Fuller first elected?
CREATE TABLE table_1342338_5 (first_elected VARCHAR, incumbent VARCHAR)
SELECT first_elected FROM table_1342338_5 WHERE incumbent = "Claude Fuller"
Name the fleet series with a quantity of 5
CREATE TABLE table_name_96 (fleet_series VARCHAR, quantity VARCHAR)
SELECT fleet_series FROM table_name_96 WHERE quantity = 5
Which Rank by average is the lowest one that has a Total of 425, and a Place larger than 1?
CREATE TABLE table_name_54 (rank_by_average INTEGER, total VARCHAR, place VARCHAR)
SELECT MIN(rank_by_average) FROM table_name_54 WHERE total = 425 AND place > 1
What was the preliminary average for Miss Maryland?
CREATE TABLE table_16323766_3 (preliminary_average VARCHAR, state VARCHAR)
SELECT preliminary_average FROM table_16323766_3 WHERE state = "Maryland"
How many positions do the players of Chicago Black Hawks play in?
CREATE TABLE table_1213511_2 (position VARCHAR, nhl_team VARCHAR)
SELECT COUNT(position) FROM table_1213511_2 WHERE nhl_team = "Chicago Black Hawks"
Can you tell me the total number of Total that has the First round of 0, and the Finals smaller than 5?
CREATE TABLE table_name_23 (total VARCHAR, first_round VARCHAR, finals VARCHAR)
SELECT COUNT(total) FROM table_name_23 WHERE first_round = "0" AND finals < 5
What was the sum of the years, when the entrant was Scuderia Centro Sud, and when there were 6 points?
CREATE TABLE table_name_69 (year INTEGER, entrant VARCHAR, points VARCHAR)
SELECT SUM(year) FROM table_name_69 WHERE entrant = "scuderia centro sud" AND points = 6
What is the time/retired when the grid is 19?
CREATE TABLE table_name_42 (time_retired VARCHAR, grid VARCHAR)
SELECT time_retired FROM table_name_42 WHERE grid = "19"
What is the sum of losses for teams with less than 4 games played?
CREATE TABLE table_name_38 (lost INTEGER, played INTEGER)
SELECT SUM(lost) FROM table_name_38 WHERE played < 4
What game site has a result of bye?
CREATE TABLE table_name_52 (game_site VARCHAR, result VARCHAR)
SELECT game_site FROM table_name_52 WHERE result = "bye"
Which competition held the 1st position in 2009?
CREATE TABLE table_name_89 (competition VARCHAR, position VARCHAR, year VARCHAR)
SELECT competition FROM table_name_89 WHERE position = "1st" AND year = 2009
what is the year when the location is yankee stadium and the result is 23-23
CREATE TABLE table_name_74 (year INTEGER, location VARCHAR, result VARCHAR)
SELECT AVG(year) FROM table_name_74 WHERE location = "yankee stadium" AND result = "23-23"
Which school/club has a pick smaller than 196, a round higher than 5 and has Blake Miller?
CREATE TABLE table_name_25 (school_club_team VARCHAR, player VARCHAR, pick VARCHAR, round VARCHAR)
SELECT school_club_team FROM table_name_25 WHERE pick < 196 AND round > 5 AND player = "blake miller"
What was the location and attendance for game 2?
CREATE TABLE table_27700530_15 (location_attendance VARCHAR, game VARCHAR)
SELECT location_attendance FROM table_27700530_15 WHERE game = 2
On December 25, what was the record?
CREATE TABLE table_name_82 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_82 WHERE date = "december 25"
How many skaters have a Rank in FS of 3, and a Rank in SP larger than 4?
CREATE TABLE table_name_37 (final_rank VARCHAR, rank_in_fs VARCHAR, rank_in_sp VARCHAR)
SELECT COUNT(final_rank) FROM table_name_37 WHERE rank_in_fs = 3 AND rank_in_sp > 4
Which Championship has a Scoreboard that is 22-14?
CREATE TABLE table_name_74 (champion VARCHAR, scoreboard VARCHAR)
SELECT champion FROM table_name_74 WHERE scoreboard = "22-14"
Who is the March playmate with an August playmate Gianna Amore?
CREATE TABLE table_name_53 (march VARCHAR, august VARCHAR)
SELECT march FROM table_name_53 WHERE august = "gianna amore"
What issue was the Spoofed Title of the crockford files in?
CREATE TABLE table_name_50 (issue VARCHAR, spoofed_title VARCHAR)
SELECT issue FROM table_name_50 WHERE spoofed_title = "the crockford files"
What is the Standings of Eintracht Braunschweig?
CREATE TABLE table_name_28 (standings VARCHAR, champions VARCHAR)
SELECT standings FROM table_name_28 WHERE champions = "eintracht braunschweig"
with a Time/Retired of +47.376 what is the lap sum?
CREATE TABLE table_name_67 (laps INTEGER, time_retired VARCHAR)
SELECT SUM(laps) FROM table_name_67 WHERE time_retired = "+47.376"
Who is the captain of the team in Southampton?
CREATE TABLE table_18461635_1 (captain VARCHAR, location VARCHAR)
SELECT captain FROM table_18461635_1 WHERE location = "Southampton"
Tell me the build year for total production of 150
CREATE TABLE table_name_44 (build_year VARCHAR, total_production VARCHAR)
SELECT build_year FROM table_name_44 WHERE total_production = 150
What is the average for the agricultural panel that has a National University of Ireland less than 0?
CREATE TABLE table_name_16 (agricultural_panel INTEGER, national_university_of_ireland INTEGER)
SELECT AVG(agricultural_panel) FROM table_name_16 WHERE national_university_of_ireland < 0
Name the D 47 when it has a D 41 of r 36
CREATE TABLE table_name_93 (d_47 VARCHAR, d_41 VARCHAR)
SELECT d_47 FROM table_name_93 WHERE d_41 = "r 36"
What game had the result of 112-100?
CREATE TABLE table_name_98 (game VARCHAR, result VARCHAR)
SELECT game FROM table_name_98 WHERE result = "112-100"
What is the vote percentage for the couple gary and maria?
CREATE TABLE table_26375386_20 (vote_percentage VARCHAR, couple VARCHAR)
SELECT vote_percentage FROM table_26375386_20 WHERE couple = "Gary and Maria"
What dates were the matches at windy hill?
CREATE TABLE table_name_1 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_1 WHERE venue = "windy hill"
What is the start value for rank 11?
CREATE TABLE table_name_31 (start VARCHAR, rank VARCHAR)
SELECT start FROM table_name_31 WHERE rank = "11"
What was the Loss that had a Score of 9-1?
CREATE TABLE table_name_87 (loss VARCHAR, score VARCHAR)
SELECT loss FROM table_name_87 WHERE score = "9-1"
Which Points have a Time/Retired of +49.222 secs?
CREATE TABLE table_name_5 (points INTEGER, time_retired VARCHAR)
SELECT MAX(points) FROM table_name_5 WHERE time_retired = "+49.222 secs"
What is the Population of the group that has a Height (m) of 15 and an Area (ha) of 00017 17?
CREATE TABLE table_name_30 (population VARCHAR, height__m_ VARCHAR, area___ha__ VARCHAR)
SELECT population FROM table_name_30 WHERE height__m_ = 15 AND area___ha__ = "00017 17"
What was the result when Ray Roberts was elected?
CREATE TABLE table_1341718_44 (result VARCHAR, incumbent VARCHAR)
SELECT result FROM table_1341718_44 WHERE incumbent = "Ray Roberts"
How many cars have a larger accelerate than the car with the largest horsepower?
CREATE TABLE CARS_DATA (Accelerate INTEGER, Horsepower VARCHAR)
SELECT COUNT(*) FROM CARS_DATA WHERE Accelerate > (SELECT Accelerate FROM CARS_DATA ORDER BY Horsepower DESC LIMIT 1)
What's the total in 2005 if there's more than 10.2 in 2006, less than 29.5 in 2007, more than 4.9 in 2009 and less than 43.8 in 2010?
CREATE TABLE table_name_1 (Id VARCHAR)
SELECT COUNT(2005) FROM table_name_1 WHERE 2010 < 43.8 AND 2007 < 29.5 AND 2009 > 4.9 AND 2006 > 10.2
Find the maximum weight for each type of pet. List the maximum weight and pet type.
CREATE TABLE pets (petType VARCHAR, weight INTEGER)
SELECT MAX(weight), petType FROM pets GROUP BY petType
What date was Millwall the home team?
CREATE TABLE table_name_29 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_29 WHERE home_team = "millwall"
What is every value for change% for area of 1835.01?
CREATE TABLE table_26321719_1 (change___percentage_ VARCHAR, area__km²_ VARCHAR)
SELECT change___percentage_ FROM table_26321719_1 WHERE area__km²_ = "1835.01"
What is Constellation, when Date Sent is "September 4, 2001", and when Distance ( ly ) is less than 57.4?
CREATE TABLE table_name_71 (constellation VARCHAR, date_sent VARCHAR, distance___ly__ VARCHAR)
SELECT constellation FROM table_name_71 WHERE date_sent = "september 4, 2001" AND distance___ly__ < 57.4
When was the game that was held at the Princes Park?
CREATE TABLE table_name_85 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_85 WHERE venue = "princes park"
What is the name of the institution with the mascot of blue devils?
CREATE TABLE table_12434380_1 (institution VARCHAR, mascot VARCHAR)
SELECT institution FROM table_12434380_1 WHERE mascot = "Blue Devils"
What is every weekly schedule in the country of Norway?
CREATE TABLE table_18821196_1 (weekly_schedule VARCHAR, country VARCHAR)
SELECT weekly_schedule FROM table_18821196_1 WHERE country = "Norway"
What Episode has a Share of tba?
CREATE TABLE table_name_17 (episode VARCHAR, share VARCHAR)
SELECT episode FROM table_name_17 WHERE share = "tba"
What's the Total for a Mexico City game with a Gold of less than 4 and a Bronze of less than 2?
CREATE TABLE table_name_1 (total VARCHAR, bronze VARCHAR, host_city VARCHAR, gold VARCHAR)
SELECT COUNT(total) FROM table_name_1 WHERE host_city = "mexico city" AND gold < 4 AND bronze < 2
What is Player, when Score is less than 69, and when Country is "United States"?
CREATE TABLE table_name_70 (player VARCHAR, score VARCHAR, country VARCHAR)
SELECT player FROM table_name_70 WHERE score < 69 AND country = "united states"
What is the highest Super G, when Season is later than 1996?
CREATE TABLE table_name_46 (super_g INTEGER, season INTEGER)
SELECT MAX(super_g) FROM table_name_46 WHERE season > 1996
What location attendance had a score of l 92–116?
CREATE TABLE table_name_30 (location_attendance VARCHAR, score VARCHAR)
SELECT location_attendance FROM table_name_30 WHERE score = "l 92–116"
Tell me the name for commissioned of 30 august 1941 and laid down of 22 september 1939
CREATE TABLE table_name_73 (name VARCHAR, laid_down VARCHAR, commissioned VARCHAR)
SELECT name FROM table_name_73 WHERE laid_down = "22 september 1939" AND commissioned = "30 august 1941"
Who was the scoring leader and how many points did he get in games on December 23?
CREATE TABLE table_10812293_4 (high_points VARCHAR, date VARCHAR)
SELECT high_points FROM table_10812293_4 WHERE date = "December 23"
When bbc two is the original channel what is the date of original removal?
CREATE TABLE table_19114172_11 (date_s__of_original_removal VARCHAR, original_channel VARCHAR)
SELECT date_s__of_original_removal FROM table_19114172_11 WHERE original_channel = "BBC Two"
What was the earliest year that a structure was located in gray court, south carolina?
CREATE TABLE table_name_63 (year INTEGER, town VARCHAR)
SELECT MIN(year) FROM table_name_63 WHERE town = "gray court, south carolina"
what is the seats 2006 total with %2001 of 39 and seats 2001 less than 12?
CREATE TABLE table_name_64 (seats_2006 INTEGER, _percentage_2001 VARCHAR, seats_2001 VARCHAR)
SELECT MAX(seats_2006) FROM table_name_64 WHERE _percentage_2001 = 39 AND seats_2001 < 12
What place has a To par of +4 and a score of 74-70-74-74=292?
CREATE TABLE table_name_77 (place VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT place FROM table_name_77 WHERE to_par = "+4" AND score = 74 - 70 - 74 - 74 = 292
Tell me the circuit for 20 august
CREATE TABLE table_name_99 (circuit VARCHAR, date VARCHAR)
SELECT circuit FROM table_name_99 WHERE date = "20 august"
Who has fewer than 2047.3 overs, more than 200 wickets and an average of 29.02?
CREATE TABLE table_name_53 (name VARCHAR, average VARCHAR, overs VARCHAR, wickets VARCHAR)
SELECT name FROM table_name_53 WHERE overs < 2047.3 AND wickets > 200 AND average > 29.02
What is the average year for Maserati Straight-4 Engines?
CREATE TABLE table_name_86 (year INTEGER, engine VARCHAR)
SELECT AVG(year) FROM table_name_86 WHERE engine = "maserati straight-4"
Which Pick has a Year larger than 1983, and a Player name of brian jozwiak?
CREATE TABLE table_name_56 (pick VARCHAR, year VARCHAR, player_name VARCHAR)
SELECT pick FROM table_name_56 WHERE year > 1983 AND player_name = "brian jozwiak"
Tell me the overall rank for roland schoeman
CREATE TABLE table_name_50 (overall_rank VARCHAR, swimmer VARCHAR)
SELECT overall_rank FROM table_name_50 WHERE swimmer = "roland schoeman"
How many tickets were there sold/available in Barcelona?
CREATE TABLE table_name_54 (tickets_sold___available VARCHAR, city VARCHAR)
SELECT tickets_sold___available FROM table_name_54 WHERE city = "barcelona"
What is College/Junior/Club Team (League), when Position is "Defence", when Nationality is "Canada", when Round is less than 5, and when Player is "Josiah Didier"?
CREATE TABLE table_name_18 (college_junior_club_team__league_ VARCHAR, player VARCHAR, round VARCHAR, position VARCHAR, nationality VARCHAR)
SELECT college_junior_club_team__league_ FROM table_name_18 WHERE position = "defence" AND nationality = "canada" AND round < 5 AND player = "josiah didier"
What is the Prize amount of Winner Dominik Nitsche?
CREATE TABLE table_name_15 (prize VARCHAR, winner VARCHAR)
SELECT prize FROM table_name_15 WHERE winner = "dominik nitsche"
Which episodes had production code 217?
CREATE TABLE table_18424435_3 (title VARCHAR, production_code VARCHAR)
SELECT title FROM table_18424435_3 WHERE production_code = 217
What is the home team that had an away team of lincoln city?
CREATE TABLE table_name_21 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_21 WHERE away_team = "lincoln city"
Which region (year) has Abigail at number 7, Sophia at number 1 and Aaliyah at number 5?
CREATE TABLE table_name_12 (region__year_ VARCHAR, no_5 VARCHAR, no_7 VARCHAR, no_1 VARCHAR)
SELECT region__year_ FROM table_name_12 WHERE no_7 = "abigail" AND no_1 = "sophia" AND no_5 = "aaliyah"
Which Sleeves have a Back of Unknown?
CREATE TABLE table_name_72 (sleeves VARCHAR, back VARCHAR)
SELECT sleeves FROM table_name_72 WHERE back = "unknown"
What home team score has a Away team of melbourne?
CREATE TABLE table_name_63 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_63 WHERE away_team = "melbourne"
Which Type has a Release date of november 30, 1997?
CREATE TABLE table_name_88 (type VARCHAR, release_date VARCHAR)
SELECT type FROM table_name_88 WHERE release_date = "november 30, 1997"
What are the civilian total when the security force total is 36?
CREATE TABLE table_21636599_2 (civilians VARCHAR, security_forces VARCHAR)
SELECT civilians FROM table_21636599_2 WHERE security_forces = "36"
Private/Catholic school's minimum enrollment is?
CREATE TABLE table_16403890_1 (enrollment INTEGER, affiliation VARCHAR)
SELECT MIN(enrollment) FROM table_16403890_1 WHERE affiliation = "Private/Catholic"
Where was the game with the attendance of 54,436?
CREATE TABLE table_name_99 (game_site VARCHAR, attendance VARCHAR)
SELECT game_site FROM table_name_99 WHERE attendance = "54,436"
What is the Home team when the Attendance was 1920?
CREATE TABLE table_name_20 (home VARCHAR, attendance VARCHAR)
SELECT home FROM table_name_20 WHERE attendance = 1920
How many people live in the area of Sorell according to the Census of 2011?
CREATE TABLE table_140297_1 (population_2011_census VARCHAR, local_government_area VARCHAR)
SELECT population_2011_census FROM table_140297_1 WHERE local_government_area = "Sorell"
What is the Armenian name of the district that is 8.37 km² large?
CREATE TABLE table_27366772_3 (armenian VARCHAR, area__km²_ VARCHAR)
SELECT armenian FROM table_27366772_3 WHERE area__km²_ = "8.37"
How many records show Utah as the opponent?
CREATE TABLE table_22815265_1 (record VARCHAR, opponent VARCHAR)
SELECT COUNT(record) FROM table_22815265_1 WHERE opponent = "Utah"
What is the highest overall pick from the College of Southern Mississippi that was selected before round 6?
CREATE TABLE table_name_8 (overall INTEGER, college VARCHAR, round VARCHAR)
SELECT MAX(overall) FROM table_name_8 WHERE college = "southern mississippi" AND round < 6
what is the score when the home team is king's lynn?
CREATE TABLE table_name_66 (score VARCHAR, home_team VARCHAR)
SELECT score FROM table_name_66 WHERE home_team = "king's lynn"
What was the result on 10/06/1934?
CREATE TABLE table_name_80 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_80 WHERE date = "10/06/1934"
What is set 3 when set 5 is na, set 1 is 21-25, and set 2 is 25-16?
CREATE TABLE table_name_54 (set_3 VARCHAR, set_2 VARCHAR, set_5 VARCHAR, set_1 VARCHAR)
SELECT set_3 FROM table_name_54 WHERE set_5 = "na" AND set_1 = "21-25" AND set_2 = "25-16"
In which venue was round F?
CREATE TABLE table_name_72 (venue VARCHAR, round VARCHAR)
SELECT venue FROM table_name_72 WHERE round = "f"