text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real ); Question: Where did they play the San Diego Chargers? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real ); Question: How many times during the season were the seahawks 8-6?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real ); Question: On what day was the team playing at milwaukee county st...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real ); Question: How many times did the team play at oakland-alameda cou...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13301516_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13301516_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13301516_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13301516_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13301516_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "team" ( "shirt_no" real, "player" text, "birth_date" text, "weight" real, "height" real ); Question: How many players weight 95? <|assistant|> SELECT COUNT("player") FROM "team" WHERE "weight"=...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "team" ( "shirt_no" real, "player" text, "birth_date" text, "weight" real, "height" real ); Question: What's Enrique de la Fuente's weight? <|assistant|> SELECT MIN("weight") FROM "team" WHERE "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "passages" ( "incumbent" text, "reason_for_vacancy" text, "appointed_successor" text, "date_of_appointment" text, "elected_successor" text, "date_of_election" text ); Question: What was the el...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "passages" ( "incumbent" text, "reason_for_vacancy" text, "appointed_successor" text, "date_of_appointment" text, "elected_successor" text, "date_of_election" text ); Question: What was the el...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season_rankings" ( "num" real, "player" text, "country" text, "points" real, "events" real, "reset_points" real ); Question: What is the country for # 8 <|assistant|> SELECT "country...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season_rankings" ( "num" real, "player" text, "country" text, "points" real, "events" real, "reset_points" real ); Question: what is the country where the player is phil mickelson? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season_rankings" ( "num" real, "player" text, "country" text, "points" real, "events" real, "reset_points" real ); Question: What is the highest reset points where the events is 23? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fixtures_results" ( "competition" text, "round" text, "opponent" text, "result" text, "score" text, "home_away" text, "venue" text, "attendance" text, "date" text ); Question: What roun...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fixtures_results" ( "competition" text, "round" text, "opponent" text, "result" text, "score" text, "home_away" text, "venue" text, "attendance" text, "date" text ); Question: What's th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fixtures_results" ( "competition" text, "round" text, "opponent" text, "result" text, "score" text, "home_away" text, "venue" text, "attendance" text, "date" text ); Question: How many ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fixtures_results" ( "competition" text, "round" text, "opponent" text, "result" text, "score" text, "home_away" text, "venue" text, "attendance" text, "date" text ); Question: Who was t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fixtures_results" ( "competition" text, "round" text, "opponent" text, "result" text, "score" text, "home_away" text, "venue" text, "attendance" text, "date" text ); Question: When was ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fixtures_results" ( "competition" text, "round" text, "opponent" text, "result" text, "score" text, "home_away" text, "venue" text, "attendance" text, "date" text ); Question: What comp...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ethnic_distribution_in_2005_population_e" ( "country" text, "population" real, "native_american" text, "whites" text, "s_mestizo" text, "es_mulatto" text, "blacks" text, "s_zambo" text, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ethnic_distribution_in_2005_population_e" ( "country" text, "population" real, "native_american" text, "whites" text, "s_mestizo" text, "es_mulatto" text, "blacks" text, "s_zambo" text, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ethnic_distribution_in_2005_population_e" ( "country" text, "population" real, "native_american" text, "whites" text, "s_mestizo" text, "es_mulatto" text, "blacks" text, "s_zambo" text, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ethnic_distribution_in_2005_population_e" ( "country" text, "population" real, "native_american" text, "whites" text, "s_mestizo" text, "es_mulatto" text, "blacks" text, "s_zambo" text, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ethnic_distribution_in_2005_population_e" ( "country" text, "population" real, "native_american" text, "whites" text, "s_mestizo" text, "es_mulatto" text, "blacks" text, "s_zambo" text, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ethnic_distribution_in_2005_population_e" ( "country" text, "population" real, "native_american" text, "whites" text, "s_mestizo" text, "es_mulatto" text, "blacks" text, "s_zambo" text, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13336122_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text ); Question: When did the episode directed by Davi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13336122_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text ); Question: What's the title of the episode direc...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13336122_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text ); Question: How many episodes have been directed ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13336122_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text ); Question: What's the smallest episode number of...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13336122_6" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_million" text ); Question: Name th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13336122_6" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_million" text ); Question: What is...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13336122_5" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_million" text ); Question: what is...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13336122_5" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_million" text ); Question: What is...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "buildings_completed_as_of_february_2011" ( "rank" real, "building" text, "address" text, "height" text, "storeys" real, "completed" real ); Question: what is the maximum completed for delta b...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "buildings_completed_as_of_february_2011" ( "rank" real, "building" text, "address" text, "height" text, "storeys" real, "completed" real ); Question: what is the maximum completed for address...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "buildings_completed_as_of_february_2011" ( "rank" real, "building" text, "address" text, "height" text, "storeys" real, "completed" real ); Question: what is the total number of building for ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "buildings_completed_as_of_february_2011" ( "rank" real, "building" text, "address" text, "height" text, "storeys" real, "completed" real ); Question: what are all the building with 12 storeys...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "buildings_completed_as_of_february_2011" ( "rank" real, "building" text, "address" text, "height" text, "storeys" real, "completed" real ); Question: what is the minimum storeys on 325 5th av...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1337525_1" ( "complete_series" text, "region_1" text, "region_2" text, "region_4" text, "dvd_extras_and_bonus_features" text, "number_of_discs" real ); Question: What is the region 2 f...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1337525_1" ( "complete_series" text, "region_1" text, "region_2" text, "region_4" text, "dvd_extras_and_bonus_features" text, "number_of_discs" real ); Question: What is the number of ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1337525_1" ( "complete_series" text, "region_1" text, "region_2" text, "region_4" text, "dvd_extras_and_bonus_features" text, "number_of_discs" real ); Question: What is the region 1 w...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1337525_1" ( "complete_series" text, "region_1" text, "region_2" text, "region_4" text, "dvd_extras_and_bonus_features" text, "number_of_discs" real ); Question: Name the region 4 for ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_2010_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_2010_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_2010_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_2010_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_2010_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_2010_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13403120_1" ( "num" real, "title" text, "director" text, "writer_s" text, "originalairdate" text, "repeatairdate_s" text, "prod_code" text ); Question: What is the original date of t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13403120_1" ( "num" real, "title" text, "director" text, "writer_s" text, "originalairdate" text, "repeatairdate_s" text, "prod_code" text ); Question: What is the repeat date of the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13403120_1" ( "num" real, "title" text, "director" text, "writer_s" text, "originalairdate" text, "repeatairdate_s" text, "prod_code" text ); Question: who is the writer of the episo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13403120_1" ( "num" real, "title" text, "director" text, "writer_s" text, "originalairdate" text, "repeatairdate_s" text, "prod_code" text ); Question: what is the prod.code of the e...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "massachusetts" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: Who were the candidates when ed markey was the incumbent?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "massachusetts" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: How many times was the incumbent mike capuano <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "massachusetts" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: Who were the candidates when Barney Frank was the incumbe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "massachusetts" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: What was the earliest year someone was first elected from...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "maryland" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text, "candidates" text ); Question: What party did incumbent Albert Wynn belong to? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "maryland" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text, "candidates" text ); Question: What was the result of the election in the Maryland 7 distric...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "maryland" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text, "candidates" text ); Question: How many candidates ran in the election where Wayne Gilchrest...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "maryland" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text, "candidates" text ); Question: What were the results in the election where Albert Wynn was t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "maryland" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text, "candidates" text ); Question: Who were the candidates in the Maryland 5 district election? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1341423_13" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text, "candidates" text ); Question: What district is Henry Hyde in <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1341423_13" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text, "candidates" text ); Question: What year was Luis Gutierrez election <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "massachusetts" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text, "candidates" text ); Question: Which district is Joe Moakley? <|assistant|> SELECT "dis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "massachusetts" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text, "candidates" text ); Question: What is the lowest first elected? <|assistant|> SELECT M...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "new_york" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text, "candidates" text ); Question: Name the first election for john mchugh <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "new_york" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text, "candidates" text ); Question: Name the results for district new york 24 <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "new_york" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text, "candidates" text ); Question: Name the district for carolyn mccarthy <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "new_york" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text, "candidates" text ); Question: Name the number of party for new york 29 <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "michigan" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text, "candidates" text ); Question: Which party does the incumbent first elected in 1994 belong t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "michigan" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text, "candidates" text ); Question: How many districts have Bart Stupak as the incumbent? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ohio" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text, "candidates" text ); Question: Who was elected in 1972 <|assistant|> SELECT "incumbent" FROM "oh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "south_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text, "candidates" text ); Question: what is the earliest first elected with the results re-...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "south_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text, "candidates" text ); Question: what is the party with the incumbent jim demint? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "south_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text, "candidates" text ); Question: what is the party for the district south carolina 4? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "south_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text, "candidates" text ); Question: what is the party when candidates is jim demint (r) 80%...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "south_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text, "candidates" text ); Question: what is the party when candidates is jim demint (r) 80%...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "south_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text, "candidates" text ); Question: who are the candidates when the incumbent is lindsey gr...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "oklahoma" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "results" text, "candidates" text ); Question: What was the results when the incumbent was ernest istook? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "oklahoma" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "results" text, "candidates" text ); Question: What was the results for the district oklahoma 3? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "oklahoma" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "results" text, "candidates" text ); Question: How many party were listed for district oklahoma 5? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "oklahoma" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "results" text, "candidates" text ); Question: What is the party when the candidates were ernest istook (r) ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "oklahoma" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "results" text, "candidates" text ); Question: when was the first elected for districk oklahoma 1? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "oklahoma" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "results" text, "candidates" text ); Question: What were the results for the district oklahoma 5? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pennsylvania" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text, "candidates" text ); Question: How many parties is the incumbent Bob Brady a member of? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pennsylvania" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text, "candidates" text ); Question: How many candidates were there in the district won by Joe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pennsylvania" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text, "candidates" text ); Question: Who were the candidates in district Pennsylvania 3? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pennsylvania" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text, "candidates" text ); Question: What's the first elected year of the district whose incum...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1341423_46" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text, "candidates" text ); Question: What was the result of the election featuring incumb...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wisconsin" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text, "candidates" text ); Question: Who were the candidates in the district first elected in 199...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wisconsin" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text, "candidates" text ); Question: Who ran in the district elections won by Tom Petri? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wisconsin" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text, "candidates" text ); Question: When was the first election in the district whose incumbent ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wisconsin" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text, "candidates" text ); Question: What year was the first election in the district whose elect...