text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year" (
"year" real,
"division" real,
"league" text,
"regular_season" text,
"playoffs" text,
"open_cup" text
);
Question: Which Year has Playoffs which did not qualify?
<|assistant|>
SELECT AVG("year") FROM "year_by_year" WHERE "playoffs"='did not qualify';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "team" (
"year" real,
"location" text,
"gold" text,
"silver" text,
"bronze" text
);
Question: Can you tell me the Gold that has the Silver of south korea, and the Year of 1986?
<|assistant|>
SELECT "gold" FROM "team" WHERE "silver"='south korea' AND "year"=1986;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "filmography" (
"year" text,
"title" text,
"director" text,
"distributor_s" text,
"box_office" text
);
Question: When was Lee Phillips the director?
<|assistant|>
SELECT "year" FROM "filmography" WHERE "director"='lee phillips';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "filmography" (
"year" text,
"title" text,
"director" text,
"distributor_s" text,
"box_office" text
);
Question: What is the movie that Paul Schneider directed?
<|assistant|>
SELECT "title" FROM "filmography" WHERE "director"='paul schneider';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "filmography" (
"year" text,
"title" text,
"director" text,
"distributor_s" text,
"box_office" text
);
Question: The box office was $961,147 in what year?
<|assistant|>
SELECT "year" FROM "filmography" WHERE "box_office"='$961,147';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "filmography" (
"year" text,
"title" text,
"director" text,
"distributor_s" text,
"box_office" text
);
Question: Three Men and a Little Lady from Touchstone Pictures was from what year?
<|assistant|>
SELECT "year" FROM "filmography" WHERE "distributor_s"='touchstone pictures' AND "title"='three men and a little lady';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "filmography" (
"year" text,
"title" text,
"director" text,
"distributor_s" text,
"box_office" text
);
Question: What is the name of the movie from 1997 distributed from HBO Pictures?
<|assistant|>
SELECT "title" FROM "filmography" WHERE "year"='1997' AND "distributor_s"='hbo pictures';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "filmography" (
"year" text,
"title" text,
"director" text,
"distributor_s" text,
"box_office" text
);
Question: What movie earned $1,659,542 at the box office?
<|assistant|>
SELECT "title" FROM "filmography" WHERE "box_office"='$1,659,542';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "orthologs" (
"common_name" text,
"protein_name" text,
"divergence_from_human_lineage_mya" real,
"accession_number" text,
"sequence_length_aa" real,
"sequence_identity_to_human_protein" text
);
Question: Which accession number has a protein name of ccdc165, and a divergence from human lineage (MYA) smaller than 296?
<|assistant|>
SELECT "accession_number" FROM "orthologs" WHERE "protein_name"='ccdc165' AND "divergence_from_human_lineage_mya"<296;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "orthologs" (
"common_name" text,
"protein_name" text,
"divergence_from_human_lineage_mya" real,
"accession_number" text,
"sequence_length_aa" real,
"sequence_identity_to_human_protein" text
);
Question: Which sequence identity to human protein has a divergence from human lineage (MYA) larger than 8.8, and a sequence length (aa) larger than 1587, and a protein name of soga2?
<|assistant|>
SELECT "sequence_identity_to_human_protein" FROM "orthologs" WHERE "divergence_from_human_lineage_mya">8.8 AND "sequence_length_aa">1587 AND "protein_name"='soga2';<|endoftext|> |
<|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,
"record" text,
"game_site" text,
"attendance" real
);
Question: What's the record of the team who played the Cleveland Browns?
<|assistant|>
SELECT "record" FROM "schedule" WHERE "opponent"='cleveland browns';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "special_teams" (
"position" text,
"number" real,
"name" text,
"height" text,
"weight" text,
"class" text,
"hometown" text,
"games" real
);
Question: What is the hometown of the player who plays pr?
<|assistant|>
SELECT "hometown" FROM "special_teams" WHERE "position"='pr';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "atlanta_falcons_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: Which college's overall number is more than 158 when Travian Robertson is the name?
<|assistant|>
SELECT "college" FROM "atlanta_falcons_draft_history" WHERE "overall">158 AND "name"='travian robertson';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "atlanta_falcons_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: Which round's name is Jonathan Massaquoi?
<|assistant|>
SELECT "round" FROM "atlanta_falcons_draft_history" WHERE "name"='jonathan massaquoi';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "atlanta_falcons_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: What is the mean round number for center position when the pick number is less than 23?
<|assistant|>
SELECT AVG("round") FROM "atlanta_falcons_draft_history" WHERE "position"='center' AND "pick_num"<23;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"rank" text,
"common_of" text,
"population" real,
"area_km_2" real,
"density_inhabitants_km_2" real,
"altitude_mslm" real
);
Question: Which Altitude (mslm) has a Density (inhabitants/km 2) smaller than 1233, and a Rank of 9th?
<|assistant|>
SELECT SUM("altitude_mslm") FROM "see_also" WHERE "density_inhabitants_km_2"<1233 AND "rank"='9th';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"rank" text,
"common_of" text,
"population" real,
"area_km_2" real,
"density_inhabitants_km_2" real,
"altitude_mslm" real
);
Question: Which Altitude (mslm) has a Density (inhabitants/km 2) smaller than 1467.5, and a Common of moncalieri?
<|assistant|>
SELECT SUM("altitude_mslm") FROM "see_also" WHERE "density_inhabitants_km_2"<1467.5 AND "common_of"='moncalieri';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"rank" text,
"common_of" text,
"population" real,
"area_km_2" real,
"density_inhabitants_km_2" real,
"altitude_mslm" real
);
Question: How much Area (km 2) has a Common of collegno, and a Population smaller than 50137?
<|assistant|>
SELECT COUNT("area_km_2") FROM "see_also" WHERE "common_of"='collegno' AND "population"<50137;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"rank" text,
"common_of" text,
"population" real,
"area_km_2" real,
"density_inhabitants_km_2" real,
"altitude_mslm" real
);
Question: How many people have an Altitude (mslm) larger than 302, and an Area (km 2) of 29.2?
<|assistant|>
SELECT COUNT("population") FROM "see_also" WHERE "altitude_mslm">302 AND "area_km_2"=29.2;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"rank" text,
"common_of" text,
"population" real,
"area_km_2" real,
"density_inhabitants_km_2" real,
"altitude_mslm" real
);
Question: Which Population is the highest one that has an Altitude (mslm) smaller than 229, and an Area (km 2) larger than 32.7?
<|assistant|>
SELECT MAX("population") FROM "see_also" WHERE "altitude_mslm"<229 AND "area_km_2">32.7;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ships" (
"ship" text,
"original_pennant_number" text,
"builder" text,
"laid_down" text,
"launched" text,
"commissioned" text
);
Question: what builder launched 20 jun 1953?
<|assistant|>
SELECT "builder" FROM "ships" WHERE "launched"='20 jun 1953';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ships" (
"ship" text,
"original_pennant_number" text,
"builder" text,
"laid_down" text,
"launched" text,
"commissioned" text
);
Question: what is the commissioned date with laid down of 17 dec 1951?
<|assistant|>
SELECT "commissioned" FROM "ships" WHERE "laid_down"='17 dec 1951';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" text,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
Question: What round was matt brait?
<|assistant|>
SELECT "round" FROM "draft_picks" WHERE "player"='matt brait';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" text,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
Question: Which player is in position center for round 2?
<|assistant|>
SELECT "player" FROM "draft_picks" WHERE "round"='2' AND "position"='center';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" text,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
Question: What position is Sweden in round 2?
<|assistant|>
SELECT "position" FROM "draft_picks" WHERE "nationality"='sweden' AND "round"='2';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "middle_tennessee" (
"position" text,
"number" real,
"name" text,
"height" text,
"weight" real,
"class" text,
"hometown" text,
"games" real
);
Question: What is the height of number 52?
<|assistant|>
SELECT "height" FROM "middle_tennessee" WHERE "number"=52;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "middle_tennessee" (
"position" text,
"number" real,
"name" text,
"height" text,
"weight" real,
"class" text,
"hometown" text,
"games" real
);
Question: What number is Tony Dixon?
<|assistant|>
SELECT "number" FROM "middle_tennessee" WHERE "name"='tony dixon';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"draw" real,
"language" text,
"artist" text,
"song" text,
"english_translation" text,
"place" real,
"points" real
);
Question: What is the average Draw for the artist(s), whose language is Swedish, and scored less than 10 points?
<|assistant|>
SELECT AVG("draw") FROM "results" WHERE "language"='swedish' AND "points"<10;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "barangays" (
"barangay" text,
"population_2010" real,
"economic_class" text,
"land_area_in_sqm" real,
"punong_barangay_term_2010_2013" text
);
Question: Which Economic Class has a Barangay of imelda bliss village?
<|assistant|>
SELECT "economic_class" FROM "barangays" WHERE "barangay"='imelda bliss village';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "barangays" (
"barangay" text,
"population_2010" real,
"economic_class" text,
"land_area_in_sqm" real,
"punong_barangay_term_2010_2013" text
);
Question: Which Economic Class has a Population (2010) larger than 1,265, and a Barangay of capellan?
<|assistant|>
SELECT "economic_class" FROM "barangays" WHERE "population_2010">'1,265' AND "barangay"='capellan';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text,
"1997" text,
"1998" text,
"1999" text,
"2000" text
);
Question: What 1997 has grand slams for the 1999?
<|assistant|>
SELECT "1997" FROM "singles_performance_timeline" WHERE "1999"='grand slams';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text,
"1997" text,
"1998" text,
"1999" text,
"2000" text
);
Question: What 1992 has atp masters series for the 1995?
<|assistant|>
SELECT "1992" FROM "singles_performance_timeline" WHERE "1995"='atp masters series';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text,
"1997" text,
"1998" text,
"1999" text,
"2000" text
);
Question: What 1995 has 1r as the 1999, and a 1998 of 4r?
<|assistant|>
SELECT "1995" FROM "singles_performance_timeline" WHERE "1999"='1r' AND "1998"='4r';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text,
"1997" text,
"1998" text,
"1999" text,
"2000" text
);
Question: What 1998 has 2r as a 1993, and 1r as a 1990?
<|assistant|>
SELECT "1998" FROM "singles_performance_timeline" WHERE "1993"='2r' AND "1990"='1r';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text,
"1997" text,
"1998" text,
"1999" text,
"2000" text
);
Question: What 1997, has qf as a 1994, and 1r as a 1999?
<|assistant|>
SELECT "1997" FROM "singles_performance_timeline" WHERE "1994"='qf' AND "1999"='1r';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text,
"1997" text,
"1998" text,
"1999" text,
"2000" text
);
Question: What 1993 has 2r as a 1994, and 1r as a 1995?
<|assistant|>
SELECT "1993" FROM "singles_performance_timeline" WHERE "1994"='2r' AND "1995"='1r';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "team_and_driver_lineup_prior_to_unificat" (
"team" text,
"no_num" real,
"driver_s" text,
"sponsor_s" text,
"test_drivers" text
);
Question: Which Driver has a Sponsor of pdvsa?
<|assistant|>
SELECT "driver_s" FROM "team_and_driver_lineup_prior_to_unificat" WHERE "sponsor_s"='pdvsa';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams" (
"team" text,
"city_region" text,
"arena" text,
"colours" text,
"head_coach" text
);
Question: What are the colours of the team with benedikt guðmundsson as head coach?
<|assistant|>
SELECT "colours" FROM "teams" WHERE "head_coach"='benedikt guðmundsson';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams" (
"team" text,
"city_region" text,
"arena" text,
"colours" text,
"head_coach" text
);
Question: What is the city and region of the team in the dalhús arena?
<|assistant|>
SELECT "city_region" FROM "teams" WHERE "arena"='dalhús';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams" (
"team" text,
"city_region" text,
"arena" text,
"colours" text,
"head_coach" text
);
Question: What is the arena in Borgarnes?
<|assistant|>
SELECT "arena" FROM "teams" WHERE "city_region"='borgarnes';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams" (
"team" text,
"city_region" text,
"arena" text,
"colours" text,
"head_coach" text
);
Question: What team is in the toyota höllin arena?
<|assistant|>
SELECT "team" FROM "teams" WHERE "arena"='toyota höllin';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams" (
"team" text,
"city_region" text,
"arena" text,
"colours" text,
"head_coach" text
);
Question: What team is in the dhl-höllin arena?
<|assistant|>
SELECT "team" FROM "teams" WHERE "arena"='dhl-höllin';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams" (
"team" text,
"city_region" text,
"arena" text,
"colours" text,
"head_coach" text
);
Question: What are the colors of the team in Borgarnes?
<|assistant|>
SELECT "colours" FROM "teams" WHERE "city_region"='borgarnes';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_10_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
Question: What is the number of points for the team with 49 tries against and 14 lost?
<|assistant|>
SELECT "points_against" FROM "2009_10_table" WHERE "tries_against"='49' AND "lost"='14';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_10_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
Question: What is the losing bonus for the team that has 33 tries against and 5 lost?
<|assistant|>
SELECT "losing_bonus" FROM "2009_10_table" WHERE "tries_against"='33' AND "lost"='5';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_10_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
Question: What is the tries against for the team that has a losing bonus?
<|assistant|>
SELECT "tries_against" FROM "2009_10_table" WHERE "losing_bonus"='losing bonus';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_10_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
Question: What is the number of tries for the team that has 22 plays with 33 tries against and 60 points?
<|assistant|>
SELECT "tries_for" FROM "2009_10_table" WHERE "played"='22' AND "tries_against"='33' AND "points"='60';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_10_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
Question: What is the losing bonus of the team with 22 pays and 428 points against?
<|assistant|>
SELECT "losing_bonus" FROM "2009_10_table" WHERE "played"='22' AND "points_against"='428';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "all_time_overall_scorers" (
"ranking" real,
"nationality" text,
"name" text,
"goals" real,
"years" text
);
Question: Name the years for spain with 215 goals
<|assistant|>
SELECT "years" FROM "all_time_overall_scorers" WHERE "nationality"='spain' AND "goals"=215;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "all_time_overall_scorers" (
"ranking" real,
"nationality" text,
"name" text,
"goals" real,
"years" text
);
Question: Name the most goals for josep samitier
<|assistant|>
SELECT MAX("goals") FROM "all_time_overall_scorers" WHERE "name"='josep samitier';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: Which Record has a December smaller than 22 and a Score of 4–3?
<|assistant|>
SELECT "record" FROM "regular_season" WHERE "december"<22 AND "score"='4–3';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: Which Score has a Record of 15–12–2?
<|assistant|>
SELECT "score" FROM "regular_season" WHERE "record"='15–12–2';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: Which December has a Game of 37 and Points smaller than 47?
<|assistant|>
SELECT AVG("december") FROM "regular_season" WHERE "game"=37 AND "points"<47;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: Which Points have a December smaller than 6, and a Score of 1–1 ot, and a Game smaller than 28?
<|assistant|>
SELECT MIN("points") FROM "regular_season" WHERE "december"<6 AND "score"='1–1 ot' AND "game"<28;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: Which Game has a Score of 4–0 and Points of 44?
<|assistant|>
SELECT "game" FROM "regular_season" WHERE "score"='4–0' AND "points"=44;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "membership" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"num_county" text,
"year_joined" real,
"previous_conference" text
);
Question: Which Previous conference has a Year joined smaller than 1976, and an IHSAA Class of A?
<|assistant|>
SELECT "previous_conference" FROM "membership" WHERE "year_joined"<1976 AND "ihsaa_class"='a';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "membership" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"num_county" text,
"year_joined" real,
"previous_conference" text
);
Question: Which Enrollment has a Mascot of norsemen?
<|assistant|>
SELECT SUM("enrollment") FROM "membership" WHERE "mascot"='norsemen';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "membership" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"num_county" text,
"year_joined" real,
"previous_conference" text
);
Question: Which Mascot has a Previous conference of independents, and a Location of akron?
<|assistant|>
SELECT "mascot" FROM "membership" WHERE "previous_conference"='independents' AND "location"='akron';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "membership" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"num_county" text,
"year_joined" real,
"previous_conference" text
);
Question: Which IHSAA Class has a Mascot of wildcats?
<|assistant|>
SELECT "ihsaa_class" FROM "membership" WHERE "mascot"='wildcats';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "membership" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"num_county" text,
"year_joined" real,
"previous_conference" text
);
Question: Which School in Wabash has a Mascot of knights?
<|assistant|>
SELECT "school" FROM "membership" WHERE "location"='wabash' AND "mascot"='knights';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list" (
"name" text,
"term" text,
"games" real,
"record_w_l_t_otl" text,
"points" real,
"win_percentage" real
);
Question: Which Win percentage has a Name of red kelly?
<|assistant|>
SELECT SUM("win_percentage") FROM "list" WHERE "name"='red kelly';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list" (
"name" text,
"term" text,
"games" real,
"record_w_l_t_otl" text,
"points" real,
"win_percentage" real
);
Question: Which Name has Games of 105?
<|assistant|>
SELECT "name" FROM "list" WHERE "games"=105;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list" (
"name" text,
"term" text,
"games" real,
"record_w_l_t_otl" text,
"points" real,
"win_percentage" real
);
Question: Which Win percentage has Points smaller than 472, and a Record (W–L–T/OTL) of 140–220–40?
<|assistant|>
SELECT AVG("win_percentage") FROM "list" WHERE "points"<472 AND "record_w_l_t_otl"='140–220–40';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fa_cup" (
"date" text,
"round" text,
"opponents" text,
"h_a" text,
"result_f_a" text,
"attendance" real
);
Question: Which round has an H/A of A with Notts County as opponents?
<|assistant|>
SELECT "round" FROM "fa_cup" WHERE "h_a"='a' AND "opponents"='notts county';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "previous_clubs" (
"club" text,
"nickname" text,
"years_in_competition" text,
"no_of_premierships" real,
"premiership_years" text
);
Question: What was the Premiership Years that had in the Competition of 1983-1992?
<|assistant|>
SELECT "premiership_years" FROM "previous_clubs" WHERE "years_in_competition"='1983-1992';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "previous_clubs" (
"club" text,
"nickname" text,
"years_in_competition" text,
"no_of_premierships" real,
"premiership_years" text
);
Question: What was the Years in competition that had a Premiership of 1982, 1984, 1999, 2002-03, 2008-09-10?
<|assistant|>
SELECT "years_in_competition" FROM "previous_clubs" WHERE "premiership_years"='1982, 1984, 1999, 2002-03, 2008-09-10';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "previous_clubs" (
"club" text,
"nickname" text,
"years_in_competition" text,
"no_of_premierships" real,
"premiership_years" text
);
Question: What is the Nickname in the Competition of 1982-1994?
<|assistant|>
SELECT "nickname" FROM "previous_clubs" WHERE "years_in_competition"='1982-1994';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "previous_clubs" (
"club" text,
"nickname" text,
"years_in_competition" text,
"no_of_premierships" real,
"premiership_years" text
);
Question: What was the Nickname that had a No. 0, and Years in Competition of 1982-2003?
<|assistant|>
SELECT "nickname" FROM "previous_clubs" WHERE "no_of_premierships"=0 AND "years_in_competition"='1982-2003';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"january" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: Which highest Points has a Score of 1–1 ot?
<|assistant|>
SELECT MAX("points") FROM "regular_season" WHERE "score"='1–1 ot';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nhl_draft" (
"round" real,
"pick" real,
"player" text,
"nationality" text,
"college_junior_club_team" text
);
Question: Which College/Junior/Club team has a Round of 6?
<|assistant|>
SELECT "college_junior_club_team" FROM "nhl_draft" WHERE "round"=6;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "chicago_black_hawks_4_detroit_red_wings_" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: What was the record on April 16?
<|assistant|>
SELECT "record" FROM "chicago_black_hawks_4_detroit_red_wings_" WHERE "date"='april 16';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "chicago_black_hawks_4_detroit_red_wings_" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: What was the record on April 8?
<|assistant|>
SELECT "record" FROM "chicago_black_hawks_4_detroit_red_wings_" WHERE "date"='april 8';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "chicago_black_hawks_4_detroit_red_wings_" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: What date was the visitor chicago black hawks, and a Record of 1-1?
<|assistant|>
SELECT "date" FROM "chicago_black_hawks_4_detroit_red_wings_" WHERE "visitor"='chicago black hawks' AND "record"='1-1';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000s" (
"year" text,
"flagship_station" text,
"play_by_play" text,
"color_commentator_s" text,
"studio_host" text
);
Question: Studio host of jimmy myers had what play by play?
<|assistant|>
SELECT "play_by_play" FROM "2000s" WHERE "studio_host"='jimmy myers';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000s" (
"year" text,
"flagship_station" text,
"play_by_play" text,
"color_commentator_s" text,
"studio_host" text
);
Question: Play-by-play of sean grande, and a Year of 2004-05 had what studio host?
<|assistant|>
SELECT "studio_host" FROM "2000s" WHERE "play_by_play"='sean grande' AND "year"='2004-05';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000s" (
"year" text,
"flagship_station" text,
"play_by_play" text,
"color_commentator_s" text,
"studio_host" text
);
Question: Year of 2006-07 had what studio host?
<|assistant|>
SELECT "studio_host" FROM "2000s" WHERE "year"='2006-07';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000s" (
"year" text,
"flagship_station" text,
"play_by_play" text,
"color_commentator_s" text,
"studio_host" text
);
Question: Play-by-play of sean grande, and a Flagship Station of wrko, and a Year of 2005-06 had what studio host?
<|assistant|>
SELECT "studio_host" FROM "2000s" WHERE "play_by_play"='sean grande' AND "flagship_station"='wrko' AND "year"='2005-06';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000s" (
"year" text,
"flagship_station" text,
"play_by_play" text,
"color_commentator_s" text,
"studio_host" text
);
Question: Studio host of john ryder, and a Year of 2007-08 had what play by play?
<|assistant|>
SELECT "play_by_play" FROM "2000s" WHERE "studio_host"='john ryder' AND "year"='2007-08';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000s" (
"year" text,
"flagship_station" text,
"play_by_play" text,
"color_commentator_s" text,
"studio_host" text
);
Question: Play-by-play of sean grande, and a Flagship Station of wrko involved what color commentator?
<|assistant|>
SELECT "color_commentator_s" FROM "2000s" WHERE "play_by_play"='sean grande' AND "flagship_station"='wrko';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_five_natural_honey_producing_countri" (
"rank" text,
"country" text,
"2009" text,
"2010" text,
"2011" text
);
Question: What was the value in 2011 for United States?
<|assistant|>
SELECT "2011" FROM "top_five_natural_honey_producing_countri" WHERE "country"='united states';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_five_natural_honey_producing_countri" (
"rank" text,
"country" text,
"2009" text,
"2010" text,
"2011" text
);
Question: What was the value in 2011 when value in 2009 was 82,003?
<|assistant|>
SELECT "2011" FROM "top_five_natural_honey_producing_countri" WHERE "2009"='82,003';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_five_natural_honey_producing_countri" (
"rank" text,
"country" text,
"2009" text,
"2010" text,
"2011" text
);
Question: What country was rank 1?
<|assistant|>
SELECT "country" FROM "top_five_natural_honey_producing_countri" WHERE "rank"='1';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_five_natural_honey_producing_countri" (
"rank" text,
"country" text,
"2009" text,
"2010" text,
"2011" text
);
Question: What country was rank 4?
<|assistant|>
SELECT "country" FROM "top_five_natural_honey_producing_countri" WHERE "rank"='4';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "varsity_letter_winners" (
"player" text,
"position" text,
"games_started" text,
"hometown" text,
"height" text,
"weight" real,
"class" text,
"previous_experience" text
);
Question: Games started of 4 is in what hometown?
<|assistant|>
SELECT "hometown" FROM "varsity_letter_winners" WHERE "games_started"='4';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "varsity_letter_winners" (
"player" text,
"position" text,
"games_started" text,
"hometown" text,
"height" text,
"weight" real,
"class" text,
"previous_experience" text
);
Question: Weight larger than 180, and a Player of charles b. carter is what previous experience?
<|assistant|>
SELECT "previous_experience" FROM "varsity_letter_winners" WHERE "weight">180 AND "player"='charles b. carter';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "varsity_letter_winners" (
"player" text,
"position" text,
"games_started" text,
"hometown" text,
"height" text,
"weight" real,
"class" text,
"previous_experience" text
);
Question: Height of 5' 10", and a Games started of 7 involves which hometown?
<|assistant|>
SELECT "hometown" FROM "varsity_letter_winners" WHERE "height"='5'' 10\"' AND "games_started"='7';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "varsity_letter_winners" (
"player" text,
"position" text,
"games_started" text,
"hometown" text,
"height" text,
"weight" real,
"class" text,
"previous_experience" text
);
Question: Player of herbert s. graver has what position?
<|assistant|>
SELECT "position" FROM "varsity_letter_winners" WHERE "player"='herbert s. graver';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "varsity_letter_winners" (
"player" text,
"position" text,
"games_started" text,
"hometown" text,
"height" text,
"weight" real,
"class" text,
"previous_experience" text
);
Question: Position of fullback has what highest weight?
<|assistant|>
SELECT MAX("weight") FROM "varsity_letter_winners" WHERE "position"='fullback';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "defunct_callsigns" (
"callsign" text,
"area_served" text,
"frequency" text,
"band" text,
"on_air_id" text,
"purpose" text
);
Question: what is the callsign whtat uses 7bu?
<|assistant|>
SELECT "callsign" FROM "defunct_callsigns" WHERE "on_air_id"='7bu';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"wins" real
);
Question: What is the highest rank for ben crenshaw after winning more than 14 times?
<|assistant|>
SELECT MAX("rank") FROM "leaders" WHERE "player"='ben crenshaw' AND "wins">14;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"wins" real
);
Question: What is the lowest number of wins for ben crenshaw?
<|assistant|>
SELECT MIN("wins") FROM "leaders" WHERE "player"='ben crenshaw';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"wins" real
);
Question: What player has 14 wins?
<|assistant|>
SELECT "player" FROM "leaders" WHERE "wins"=14;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text,
"1997" text,
"1998" text,
"career_sr" text,
"career_win_loss" text
);
Question: What is the 1995 value with of the 1993 ATP Masters Series?
<|assistant|>
SELECT "1995" FROM "doubles_performance_timeline" WHERE "1993"='atp masters series';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text,
"1997" text,
"1998" text,
"career_sr" text,
"career_win_loss" text
);
Question: What is the 1993 value of the 1997 Grand Slams?
<|assistant|>
SELECT "1993" FROM "doubles_performance_timeline" WHERE "1997"='grand slams';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text,
"1997" text,
"1998" text,
"career_sr" text,
"career_win_loss" text
);
Question: What is the 1998 value with A in 1995, A in 1993, and 1r in 1996?
<|assistant|>
SELECT "1998" FROM "doubles_performance_timeline" WHERE "1995"='a' AND "1993"='a' AND "1996"='1r';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"team" text,
"games" real,
"drawn" real,
"lost" real,
"points_difference" text,
"points" real
);
Question: How many games does team Czechoslovakia have that had a drawn greater than 0?
<|assistant|>
SELECT MAX("games") FROM "first_round" WHERE "team"='czechoslovakia' AND "drawn">0;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_ministers_for_employment" (
"order" text,
"minister" text,
"party" text,
"prime_minister" text,
"term_start" text,
"term_end" text,
"term_in_office" text
);
Question: Which Prime Minister's served a term of 344 days?
<|assistant|>
SELECT "prime_minister" FROM "list_of_ministers_for_employment" WHERE "term_in_office"='344 days';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_ministers_for_employment" (
"order" text,
"minister" text,
"party" text,
"prime_minister" text,
"term_start" text,
"term_end" text,
"term_in_office" text
);
Question: Who was the Minister that served for 307 days?
<|assistant|>
SELECT "minister" FROM "list_of_ministers_for_employment" WHERE "term_in_office"='307 days';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "awards_and_nominations" (
"year" real,
"ceremony" text,
"result" text,
"award" text,
"work" text
);
Question: what ceremony did big titty milfs work in
<|assistant|>
SELECT "ceremony" FROM "awards_and_nominations" WHERE "work"='big titty milfs';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What was the end result for 28 February 2001?
<|assistant|>
SELECT "result" FROM "international_goals" WHERE "date"='28 february 2001';<|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.