text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: Tell me the average Laps for grid larger than 22 <|assistant|> SELECT AVG("laps") FROM "rac...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: Tell me the constructor for grid of 17 <|assistant|> SELECT "constructor" FROM "race" WHERE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ukraine_managers" ( "manager" text, "ukraine_career" text, "played" real, "drawn" real, "lost" real, "win_pct" real ); Question: What years had a manager who lost more than 1 and drawn more t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ukraine_managers" ( "manager" text, "ukraine_career" text, "played" real, "drawn" real, "lost" real, "win_pct" real ); Question: what is the total win % of manager viktor prokopenko, when he ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "format_and_schedule" ( "round" text, "date_s" text, "clubs_from_the_previous_round" text, "clubs_involved" real, "fixtures" real ); Question: When 4 clubs are involved, what is the average numb...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "format_and_schedule" ( "round" text, "date_s" text, "clubs_from_the_previous_round" text, "clubs_involved" real, "fixtures" real ); Question: In the sixth round, what is the sum of fixtures whe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" text, "division" text, "league" text, "reg_season" text, "playoffs" text, "challenge_cup" text ); Question: Tell me the league for year of 1915/16 <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: What is the make of the car that drove 54 laps? <|assistant|> SELECT "constructor" FROM "ra...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_capped" ( "name" text, "career" text, "caps" real, "goals" real, "first_cap" text, "recent_cap" text ); Question: Who has a 59 cap? <|assistant|> SELECT "name" FROM "highest_capped" W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text ); Question: Tell me the sum of frequency for ERP W less than 1 <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "players" ( "player" text, "total_w_l" text, "singles_w_l" text, "doubles_w_l" text, "ties_played" real, "debut" real, "years_played" real ); Question: Tell me the lowest ties played with a ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "event" text ); Question: Where did the Paris Marathon occur? <|assistant|> SELECT "venue" FROM "achievements" WH...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_usl_soccer_specific_stadiums" ( "stadium" text, "club_s" text, "division" text, "city" text, "capacity" real, "opened" text ); Question: Tell me the capacity for city park stadium <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "titles_6" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text ); Question: Tell me the tournament for ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "titles_6" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text ); Question: Tell me the tournament for ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "titles_6" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text ); Question: Tell me the opponents for s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "titles_6" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text ); Question: Tell me the surface for 16 ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "publications" ( "title" text, "year" real, "isbn" text, "volume" text, "strips" text, "pages" real, "colors" text ); Question: I want the average pages for ISBN of 978-0-9766580-5-4 <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "publications" ( "title" text, "year" real, "isbn" text, "volume" text, "strips" text, "pages" real, "colors" text ); Question: Tell me the sum of year for 244 pages <|assistant|> SELECT SUM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "publications" ( "title" text, "year" real, "isbn" text, "volume" text, "strips" text, "pages" real, "colors" text ); Question: Tell me the title for pages of 96 <|assistant|> SELECT "title"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "historical" ( "begin_date" text, "representative" text, "date_of_birth" text, "house_term" text, "state_served" text, "party" text, "age_years_days" text ); Question: What was the date of b...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "historical" ( "begin_date" text, "representative" text, "date_of_birth" text, "house_term" text, "state_served" text, "party" text, "age_years_days" text ); Question: What was the age of th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "historical" ( "begin_date" text, "representative" text, "date_of_birth" text, "house_term" text, "state_served" text, "party" text, "age_years_days" text ); Question: What was the date of b...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "historical" ( "begin_date" text, "representative" text, "date_of_birth" text, "house_term" text, "state_served" text, "party" text, "age_years_days" text ); Question: Which member of the Un...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "historical" ( "begin_date" text, "representative" text, "date_of_birth" text, "house_term" text, "state_served" text, "party" text, "age_years_days" text ); Question: Which state did Samuel...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "t" ( "player" text, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text ); Question: What position does Hedo Türkoğlu play? <|assistant|> SELECT "position" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "t" ( "player" text, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text ); Question: How long has Sebastian Telfair played for Toronto? <|assistant|> SELECT "y...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "games_developed" ( "title" text, "japan" text, "north_america" text, "europe" text, "australia" text ); Question: Tell me the title for japan august 23, 2012 <|assistant|> SELECT "title" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "games_developed" ( "title" text, "japan" text, "north_america" text, "europe" text, "australia" text ); Question: Tell me the title for japan august 23, 2012 <|assistant|> SELECT "title" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "games_developed" ( "title" text, "japan" text, "north_america" text, "europe" text, "australia" text ); Question: Tell me the Australia march 17, 2005 <|assistant|> SELECT "australia" FROM "gam...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "games_developed" ( "title" text, "japan" text, "north_america" text, "europe" text, "australia" text ); Question: Tell me the Europe for z.h.p. unlosing ranger vs darkdeath evilman <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_a" ( "place" real, "team" text, "wins" real, "ties" real, "losses" real, "points" text ); Question: Name the total losses for 4 place and ties less than 0 <|assistant|> SELECT COUNT("lo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_a" ( "place" real, "team" text, "wins" real, "ties" real, "losses" real, "points" text ); Question: Name the average place for ties less than 1 and losess more than 3 with points of 6 q...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_a" ( "place" real, "team" text, "wins" real, "ties" real, "losses" real, "points" text ); Question: Name the most wins for losses more than 2 and points of two with place larger than 7 ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_a" ( "place" real, "team" text, "wins" real, "ties" real, "losses" real, "points" text ); Question: Name the sum of place with ties larger than 0 and point sof 7 qc and losses more than...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fleet_details" ( "class" text, "type" text, "no_converted" real, "year_converted" text, "no_range" text, "operator" text, "withdrawn" text ); Question: Tell me the number range for 4vip <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "heat_rank" real, "lane" real, "swimmer" text, "country" text, "time" real, "overall_rank" text ); Question: Name the heat rank for senegal <|assistant|> SELECT "heat_rank" FROM "hea...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: What is the value for 2010 when t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: What is the value for 2010 when t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: What is the value for 2012 when t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: What is the value for 2008 for th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: What is the value for 2009 when t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_4_1976_1977" ( "series_num" real, "season_num" real, "title" text, "original_air_date" text, "tape_date" text ); Question: Tell me the highest series # for september 22, 1976 <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performance_series" ( "model" text, "release_date" text, "sensor_res_size" text, "lens_35mmequiv_zoom_aperture" text, "screen_size_pixels" text, "dimensions_w_h_d_mm" text, "weight" text ); ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performance_series" ( "model" text, "release_date" text, "sensor_res_size" text, "lens_35mmequiv_zoom_aperture" text, "screen_size_pixels" text, "dimensions_w_h_d_mm" text, "weight" text ); ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performance_series" ( "model" text, "release_date" text, "sensor_res_size" text, "lens_35mmequiv_zoom_aperture" text, "screen_size_pixels" text, "dimensions_w_h_d_mm" text, "weight" text ); ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "number_of_children_involved_in_ilo_categ" ( "all_children_000s" real, "economically_active_children_000s" real, "economically_active_children_pct" real, "child_labour_000s" real, "child_labour_p...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "number_of_children_involved_in_ilo_categ" ( "all_children_000s" real, "economically_active_children_000s" real, "economically_active_children_pct" real, "child_labour_000s" real, "child_labour_p...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "record_by_conference" ( "conference" text, "num_of_bids" real, "record" text, "win_pct" text, "round_of_32" text, "elite_eight" text, "final_four" text, "championship_game" text ); Questi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Name the lowest total for rank of 13 with bronze less than 1 <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "original_week" real, "date" text, "opponent" text, "result" text, "venue" text ); Question: Tell me the sum of original week for september 16, 1982 <|assistant|> SELECT SUM("origin...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "original_week" real, "date" text, "opponent" text, "result" text, "venue" text ); Question: Tell me the average original week for soldier field <|assistant|> SELECT AVG("original_w...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "original_week" real, "date" text, "opponent" text, "result" text, "venue" text ); Question: Tell me the date for original week less than 16 and result of l 23–22 <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fm_stations" ( "call_sign" text, "frequency" text, "city_of_license" text, "owner" text, "format" text ); Question: Tell me the call sign for frequency of 0 97.3 fm <|assistant|> SELECT "call_s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fm_stations" ( "call_sign" text, "frequency" text, "city_of_license" text, "owner" text, "format" text ); Question: Tell me the owner for classical <|assistant|> SELECT "owner" FROM "fm_station...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fm_stations" ( "call_sign" text, "frequency" text, "city_of_license" text, "owner" text, "format" text ); Question: Tell me the city of license for 0 106.9 fm <|assistant|> SELECT "city_of_lice...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "o" ( "player" text, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text ); Question: What year(s) did Hakeem Olajuwon play Center for Toronto? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "o" ( "player" text, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text ); Question: What position did Jimmy Oliver of the United States play? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "name" text, "canton" text, "height_meters" real, "crest_length_meters" real, "type" text, "year_of_construction" real, "name_of_the_lake" text ); Question: Tell me the total nu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "name" text, "canton" text, "height_meters" real, "crest_length_meters" real, "type" text, "year_of_construction" real, "name_of_the_lake" text ); Question: Tell me the name of ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ternary_azeotropes" ( "2nd_component" text, "b_p_2nd_comp_c" real, "3rd_component" text, "b_p_3rd_comp_c" text, "b_p_azeo_c" text, "pct_wt_1st" text, "pct_wt_2nd" text, "pct_wt_3rd" text )...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ternary_azeotropes" ( "2nd_component" text, "b_p_2nd_comp_c" real, "3rd_component" text, "b_p_3rd_comp_c" text, "b_p_azeo_c" text, "pct_wt_1st" text, "pct_wt_2nd" text, "pct_wt_3rd" text )...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "rank" real, "county" text, "name" text, "type" text, "elevation" text ); Question: Tell me the name with sør-trøndelag <|assistant|> SELECT "name" FROM "see_also" WHERE "county"='s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "rank" real, "county" text, "name" text, "type" text, "elevation" text ); Question: Tell me the elevation for oslo <|assistant|> SELECT "elevation" FROM "see_also" WHERE "county"='o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "professional_boxing_record" ( "result" text, "opponent" text, "type" text, "rd_time" text, "date" text ); Question: What was the result of the match against Pat Lawlor? <|assistant|> SELECT "re...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fleet" ( "class" text, "operator" text, "no_built" real, "year_built" text, "cars_per_set" real ); Question: Tell me the sum of cars per set for operator of london midland <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_releases_in_japan" ( "title" text, "japan" text, "north_america" text, "europe" text, "australia" text ); Question: Tell me the title of japan january 31, 2008 <|assistant|> SELECT "title"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_releases_in_japan" ( "title" text, "japan" text, "north_america" text, "europe" text, "australia" text ); Question: Tell me japan for jigsaw land: japan graffiti <|assistant|> SELECT "japa...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_releases_in_japan" ( "title" text, "japan" text, "north_america" text, "europe" text, "australia" text ); Question: Tell me north america for january 23, 2013 <|assistant|> SELECT "north_a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_releases_in_japan" ( "title" text, "japan" text, "north_america" text, "europe" text, "australia" text ); Question: Tell me the north america for september 18, 2009 <|assistant|> SELECT "n...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_releases_in_japan" ( "title" text, "japan" text, "north_america" text, "europe" text, "australia" text ); Question: Tell me europe for japan of january 28, 2010 <|assistant|> SELECT "europ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_releases_in_japan" ( "title" text, "japan" text, "north_america" text, "europe" text, "australia" text ); Question: Tell me the north america for phantom brave <|assistant|> SELECT "north_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "home_stadiums" ( "venue" text, "city" text, "first_international" text, "last_international" text, "played" real, "draw" real, "lost" real, "average_attendance" real ); Question: What is ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "theater_credits" ( "year" real, "play" text, "role" text, "theatre" text, "location" text ); Question: Tell me the role of festival theatre <|assistant|> SELECT "role" FROM "theater_credits" WH...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "theater_credits" ( "year" real, "play" text, "role" text, "theatre" text, "location" text ); Question: Tell me the lowest year for shubert theatre <|assistant|> SELECT MIN("year") FROM "theater...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "theater_credits" ( "year" real, "play" text, "role" text, "theatre" text, "location" text ); Question: Tell me the total number of years for lady cecily waynflete and opera house, kennedy cente...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "theater_credits" ( "year" real, "play" text, "role" text, "theatre" text, "location" text ); Question: Tell me the role for tea and sympathy <|assistant|> SELECT "role" FROM "theater_credits" W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "saints" ( "name" text, "martyred" real, "place" text, "beatified" real, "canonised" real ); Question: When was the first beatification in Korea that was canonised before 1984? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "saints" ( "name" text, "martyred" real, "place" text, "beatified" real, "canonised" real ); Question: When was Laurent-Marie-Joseph Imbert / St. Imbert, who was beatified after 1909 and canonis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "saints" ( "name" text, "martyred" real, "place" text, "beatified" real, "canonised" real ); Question: When was the person(s) who were canonised before 1988 beatified? <|assistant|> SELECT "beat...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "saints" ( "name" text, "martyred" real, "place" text, "beatified" real, "canonised" real ); Question: When was John Hoan Trinh Doan / St. John Hoan, who was beatified in 1909 and canonised afte...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "year" real, "conference" text, "city" text, "country" text, "local_host_s" text ); Question: What is the sum of year with the local host Sai? <|assistant|> SELECT SUM("year") FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "year" real, "conference" text, "city" text, "country" text, "local_host_s" text ); Question: Who are the local hosts for the United States in years earlier than 2007? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "year" real, "conference" text, "city" text, "country" text, "local_host_s" text ); Question: Which city has a conference of LCC2 and a year earlier than 2009? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_am_rolex_sports_car_series_results" ( "year" real, "team" text, "make" text, "engine" text, "class" text, "rank" text, "points" real ); Question: Tell me the class with rank of 89th <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_am_rolex_sports_car_series_results" ( "year" real, "team" text, "make" text, "engine" text, "class" text, "rank" text, "points" real ); Question: Tell me the most year for 3 points <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "heat_rank" real, "lane" real, "swimmer" text, "country" text, "time" real, "overall_rank" real ); Question: Which lane is Goksu Bicer in? <|assistant|> SELECT "lane" FROM "heats" WH...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: Which Driver that has a Grid less than 9 and a Time/Retired of 2:06:26.358? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: Which driver drove a Ferrari in the 2007 European Grand Prix with a grid less than 3? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); Question: Name the location of ufc 98 <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_25" real, "events" real, "cuts_made" real ); Question: What is the smallest number of wins for the Totals Tournament with a Top-2...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_25" real, "events" real, "cuts_made" real ); Question: What is the sum of Top-5 values with events values less than 2? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_25" real, "events" real, "cuts_made" real ); Question: What is the smallest value for Wins when the number of cuts is greater tha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "event" text ); Question: Tell me the competition for 2nd position with year more than 2005 <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "event" text ); Question: Name the sum of year for 2nd position for junior race <|assistant|> SELECT SUM("year") ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "event" text ); Question: Name the venue for 2nd position of year before 2008 <|assistant|> SELECT "venue" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "non_championship_grands_prix" ( "name" text, "circuit" text, "date" text, "winning_driver" text, "winning_constructor" text, "report" text ); Question: Which circuit did Raymond Mays win? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "non_championship_grands_prix" ( "name" text, "circuit" text, "date" text, "winning_driver" text, "winning_constructor" text, "report" text ); Question: Which Circuit did Johnny Wakefield win?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Tell me the lowest bronze for panama and total larger than 8 <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Tell me the average total for guatemala and bronze less than 2 <|assistant|> SE...