text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"volume_issue" text,
"issue_date" text,
"weeks_on_numbe_one" text,
"song" text,
"artist_s" text
);
Question: Which song is from Volume:Issue 64:11-12?
<|assistant|>
SELECT "song" FROM "see_also" WHERE "volume_issue"='64:11-12';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"volume_issue" text,
"issue_date" text,
"weeks_on_numbe_one" text,
"song" text,
"artist_s" text
);
Question: Which Artist's song is listed as " missing "?
<|assistant|>
SELECT "artist_s" FROM "see_also" WHERE "song"='\" missing \"';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"volume_issue" text,
"issue_date" text,
"weeks_on_numbe_one" text,
"song" text,
"artist_s" text
);
Question: Which song is from Volume:Issue 63:5?
<|assistant|>
SELECT "song" FROM "see_also" WHERE "volume_issue"='63:5';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"volume_issue" text,
"issue_date" text,
"weeks_on_numbe_one" text,
"song" text,
"artist_s" text
);
Question: Which song is linked to Volume:Issue 64:14-18?
<|assistant|>
SELECT "song" FROM "see_also" WHERE "volume_issue"='64:14-18';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "national_team" (
"date" text,
"venue" text,
"score_1" text,
"comp" text,
"match_report" text
);
Question: What is the match report of the match on 20 August?
<|assistant|>
SELECT "match_report" FROM "national_team" WHERE "date"='20 august';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "animation_channels" (
"name" text,
"hanzi" text,
"origin" text,
"launch" real,
"owner" text
);
Question: What is the origin for the launch taking place in 2010?
<|assistant|>
SELECT "origin" FROM "animation_channels" WHERE "launch"=2010;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "animation_channels" (
"name" text,
"hanzi" text,
"origin" text,
"launch" real,
"owner" text
);
Question: What is the origin for the item with an owner of Hunan Broadcasting System (HBS)?
<|assistant|>
SELECT "origin" FROM "animation_channels" WHERE "owner"='hunan broadcasting system (hbs)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"pick_num" real,
"round" text,
"player" text,
"position" text,
"college" text
);
Question: If the college is Trinity, what position is listed?
<|assistant|>
SELECT "position" FROM "nfl_draft" WHERE "college"='trinity';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"pick_num" real,
"round" text,
"player" text,
"position" text,
"college" text
);
Question: How many picks did the College of USC wind up getting?
<|assistant|>
SELECT COUNT("pick_num") FROM "nfl_draft" WHERE "college"='usc';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"pick_num" real,
"round" text,
"player" text,
"position" text,
"college" text
);
Question: For Pick #323, which round is it?
<|assistant|>
SELECT "round" FROM "nfl_draft" WHERE "pick_num"=323;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "largest_margin_of_runs_victory" (
"score" text,
"opposition" text,
"venue" text,
"city" text,
"year" real
);
Question: What score has amblecote as the venue?
<|assistant|>
SELECT "score" FROM "largest_margin_of_runs_victory" WHERE "venue"='amblecote';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "largest_margin_of_runs_victory" (
"score" text,
"opposition" text,
"venue" text,
"city" text,
"year" real
);
Question: What city has riverside ground as the venue, with a year prior to 1998?
<|assistant|>
SELECT "city" FROM "largest_margin_of_runs_victory" WHERE "venue"='riverside ground' AND "year"<1998;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "largest_margin_of_runs_victory" (
"score" text,
"opposition" text,
"venue" text,
"city" text,
"year" real
);
Question: What is the lowest year that has chester-le-street as the city, with 345 runs as the score?
<|assistant|>
SELECT MIN("year") FROM "largest_margin_of_runs_victory" WHERE "city"='chester-le-street' AND "score"='345 runs';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "largest_margin_of_runs_victory" (
"score" text,
"opposition" text,
"venue" text,
"city" text,
"year" real
);
Question: What year has 385 runs as the score?
<|assistant|>
SELECT "year" FROM "largest_margin_of_runs_victory" WHERE "score"='385 runs';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "largest_margin_of_runs_victory" (
"score" text,
"opposition" text,
"venue" text,
"city" text,
"year" real
);
Question: What score has 1998 as the year?
<|assistant|>
SELECT "score" FROM "largest_margin_of_runs_victory" WHERE "year"=1998;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "villach" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" real,
"2nd_m" real,
"points" real,
"overall_wc_points_rank" text
);
Question: What is the 2nd (m) value for Gregor Schlierenzauer?
<|assistant|>
SELECT MIN("2nd_m") FROM "villach" WHERE "name"='gregor schlierenzauer';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"winner" text,
"score" text,
"1st_prize" real
);
Question: What is the Date of the tournament with a score of 199 (β17)?
<|assistant|>
SELECT "date" FROM "tournament_results" WHERE "score"='199 (β17)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"winner" text,
"score" text,
"1st_prize" real
);
Question: What was the amount of the 1st prize when paul azinger (9) was the winner?
<|assistant|>
SELECT AVG("1st_prize") FROM "tournament_results" WHERE "winner"='paul azinger (9)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"winner" text,
"score" text,
"1st_prize" real
);
Question: What is the name of the winner of the tour championship tournament?
<|assistant|>
SELECT "winner" FROM "tournament_results" WHERE "tournament"='the tour championship';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"winner" text,
"score" text,
"1st_prize" real
);
Question: What is the Date of the at&t pebble beach national pro-am Tournament?
<|assistant|>
SELECT "date" FROM "tournament_results" WHERE "tournament"='at&t pebble beach national pro-am';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2007_2008" (
"date" text,
"site" text,
"sport" text,
"winning_team" text,
"series" text
);
Question: Which Site has a Sport of w swimming?
<|assistant|>
SELECT "site" FROM "2007_2008" WHERE "sport"='w swimming';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2007_2008" (
"date" text,
"site" text,
"sport" text,
"winning_team" text,
"series" text
);
Question: Which Series are on september 15, 2007?
<|assistant|>
SELECT "series" FROM "2007_2008" WHERE "date"='september 15, 2007';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "defensive_player_of_the_year" (
"season" text,
"player" text,
"position" text,
"nationality" text,
"team" text
);
Question: What position did the 2010-11 USA Γr player have?
<|assistant|>
SELECT "position" FROM "defensive_player_of_the_year" WHERE "nationality"='usa' AND "team"='Γr' AND "season"='2010-11';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "defensive_player_of_the_year" (
"season" text,
"player" text,
"position" text,
"nationality" text,
"team" text
);
Question: What position did the kr team player play?
<|assistant|>
SELECT "position" FROM "defensive_player_of_the_year" WHERE "team"='kr';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "defensive_player_of_the_year" (
"season" text,
"player" text,
"position" text,
"nationality" text,
"team" text
);
Question: What team has Steinar Kaldal, a guard / forward?
<|assistant|>
SELECT "team" FROM "defensive_player_of_the_year" WHERE "position"='guard / forward' AND "player"='steinar kaldal';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "defensive_player_of_the_year" (
"season" text,
"player" text,
"position" text,
"nationality" text,
"team" text
);
Question: What team did the 2003-04 winner play for?
<|assistant|>
SELECT "team" FROM "defensive_player_of_the_year" WHERE "season"='2003-04';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalogue" text
);
Question: Which catalogue is on 12" vinyl?
<|assistant|>
SELECT "catalogue" FROM "release_history" WHERE "format"='12\" vinyl';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalogue" text
);
Question: Which region has and eyeball label and catalogue 7200222?
<|assistant|>
SELECT "region" FROM "release_history" WHERE "label"='eyeball' AND "catalogue"='7200222';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalogue" text
);
Question: Which catalogue is from Japan?
<|assistant|>
SELECT "catalogue" FROM "release_history" WHERE "region"='japan';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalogue" text
);
Question: What is the format for the United States dated July 23, 2002?
<|assistant|>
SELECT "format" FROM "release_history" WHERE "region"='united states' AND "date"='july 23, 2002';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalogue" text
);
Question: What is the label for catalogue 7200222?
<|assistant|>
SELECT "label" FROM "release_history" WHERE "catalogue"='7200222';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_roster" (
"surname" text,
"first" text,
"d_o_b" text,
"uninum" real,
"bats" text,
"throws" text,
"position" text
);
Question: What is Marc's Surname?
<|assistant|>
SELECT "surname" FROM "player_roster" WHERE "first"='marc';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_roster" (
"surname" text,
"first" text,
"d_o_b" text,
"uninum" real,
"bats" text,
"throws" text,
"position" text
);
Question: What is the highest uni# of the person with the first name Todd?
<|assistant|>
SELECT MAX("uninum") FROM "player_roster" WHERE "first"='todd';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_roster" (
"surname" text,
"first" text,
"d_o_b" text,
"uninum" real,
"bats" text,
"throws" text,
"position" text
);
Question: Which position does #14 play?
<|assistant|>
SELECT "position" FROM "player_roster" WHERE "uninum"=14;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_roster" (
"surname" text,
"first" text,
"d_o_b" text,
"uninum" real,
"bats" text,
"throws" text,
"position" text
);
Question: Which does the lhp player with the first name lachlan bat?
<|assistant|>
SELECT "bats" FROM "player_roster" WHERE "position"='lhp' AND "first"='lachlan';<|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: How many were in Attendance on December 11, 1954?
<|assistant|>
SELECT COUNT("attendance") FROM "schedule" WHERE "date"='december 11, 1954';<|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: In what Week were there more than 23,875 in Attendance at Memorial Stadium with Detroit Lions as the Opponent?
<|assistant|>
SELECT AVG("week") FROM "schedule" WHERE "attendance">'23,875' AND "game_site"='memorial stadium' AND "opponent"='detroit lions';<|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 was the Result on Week 3?
<|assistant|>
SELECT "result" FROM "schedule" WHERE "week"=3;<|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: On what Week was the Detroit Lions the Opponent?
<|assistant|>
SELECT "week" FROM "schedule" WHERE "opponent"='detroit lions';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"november" real,
"opponent" text,
"score" text,
"record" text
);
Question: What was the rangers' record on Game 14?
<|assistant|>
SELECT "record" FROM "schedule_and_results" WHERE "game"=14;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"november" real,
"opponent" text,
"score" text,
"record" text
);
Question: What is the highest game number when the rangers had a record of 11-11-1 and the date was after November 29?
<|assistant|>
SELECT MAX("game") FROM "schedule_and_results" WHERE "record"='11-11-1' AND "november">29;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list" (
"name" text,
"nationality" text,
"position" text,
"years" text,
"appearances" real,
"goals" real
);
Question: What's Francis Harris' position?
<|assistant|>
SELECT "position" FROM "list" WHERE "name"='francis harris';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "main_places" (
"place" text,
"code" real,
"area_km_2" real,
"population" real,
"most_spoken_language" text
);
Question: Which place has more area (km 2) than 34.42?
<|assistant|>
SELECT "place" FROM "main_places" WHERE "area_km_2">34.42;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "groups_all_around" (
"place" real,
"nation" text,
"6_ropes" real,
"4_hoops_2_clubs" real,
"total" real
);
Question: What is the lowest 4 hoops, 2 clubs of the nation with a total of 38.25?
<|assistant|>
SELECT MIN("4_hoops_2_clubs") FROM "groups_all_around" WHERE "total"=38.25;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "groups_all_around" (
"place" real,
"nation" text,
"6_ropes" real,
"4_hoops_2_clubs" real,
"total" real
);
Question: What is the total of Greece, which is placed below 8?
<|assistant|>
SELECT COUNT("total") FROM "groups_all_around" WHERE "nation"='greece' AND "place">8;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "groups_all_around" (
"place" real,
"nation" text,
"6_ropes" real,
"4_hoops_2_clubs" real,
"total" real
);
Question: What is the palce number of Russia, which has 6 ropes of 19.425 and a total less than 38.925?
<|assistant|>
SELECT SUM("place") FROM "groups_all_around" WHERE "6_ropes"=19.425 AND "nation"='russia' AND "total"<38.925;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "groups_all_around" (
"place" real,
"nation" text,
"6_ropes" real,
"4_hoops_2_clubs" real,
"total" real
);
Question: What is the place of the nation with a total greater than 37.85 and 4 hoops, 2 clubs of 19.15?
<|assistant|>
SELECT SUM("place") FROM "groups_all_around" WHERE "total">37.85 AND "4_hoops_2_clubs"=19.15;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "groups_all_around" (
"place" real,
"nation" text,
"6_ropes" real,
"4_hoops_2_clubs" real,
"total" real
);
Question: What is the highest 4 hoops, 2 clubs of Belarus, which has a total less than 38.25?
<|assistant|>
SELECT MAX("4_hoops_2_clubs") FROM "groups_all_around" WHERE "nation"='belarus' AND "total"<38.25;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "groups_all_around" (
"place" real,
"nation" text,
"6_ropes" real,
"4_hoops_2_clubs" real,
"total" real
);
Question: What is the total of the nation with 19.025 4 hoops, 2 clubs?
<|assistant|>
SELECT "total" FROM "groups_all_around" WHERE "4_hoops_2_clubs"=19.025;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "kuopio" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" real,
"points" real,
"overall_nt_points" text,
"overall_wc_points_rank" text
);
Question: Which Nationality has a Name of janne happonen?
<|assistant|>
SELECT "nationality" FROM "kuopio" WHERE "name"='janne happonen';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "kuopio" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" real,
"points" real,
"overall_nt_points" text,
"overall_wc_points_rank" text
);
Question: Which Nationality has a Rank larger than 3, and a Name of tom hilde?
<|assistant|>
SELECT "nationality" FROM "kuopio" WHERE "rank">3 AND "name"='tom hilde';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "kuopio" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" real,
"points" real,
"overall_nt_points" text,
"overall_wc_points_rank" text
);
Question: Which Name has a Nationality of nor, and Points of 136?
<|assistant|>
SELECT "name" FROM "kuopio" WHERE "nationality"='nor' AND "points"=136;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "kuopio" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" real,
"points" real,
"overall_nt_points" text,
"overall_wc_points_rank" text
);
Question: Which Points have a 1st (m) smaller than 132.5, and a Nationality of aut, and a Rank larger than 2?
<|assistant|>
SELECT AVG("points") FROM "kuopio" WHERE "1st_m"<132.5 AND "nationality"='aut' AND "rank">2;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "kuopio" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" real,
"points" real,
"overall_nt_points" text,
"overall_wc_points_rank" text
);
Question: Which Points have a Rank of 3, and a 1st (m) smaller than 132?
<|assistant|>
SELECT SUM("points") FROM "kuopio" WHERE "rank"=3 AND "1st_m"<132;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men" (
"rank" real,
"name" text,
"nation" text,
"points" real,
"places" real
);
Question: What was the average rank of Wolfgang Schwarz with greater than 13 places?
<|assistant|>
SELECT AVG("rank") FROM "men" WHERE "name"='wolfgang schwarz' AND "places">13;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men" (
"rank" real,
"name" text,
"nation" text,
"points" real,
"places" real
);
Question: What nation had 1399.3 points?
<|assistant|>
SELECT "nation" FROM "men" WHERE "points"=1399.3;<|endoftext|> |
<|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: What is the lowest round number for the fight that had a time of 1:09?
<|assistant|>
SELECT MIN("round") FROM "mixed_martial_arts_record" WHERE "time"='1:09';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "jacksonville_jaguars_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: How much Overall has a Pick # smaller than 20, and a Round smaller than 6?
<|assistant|>
SELECT SUM("overall") FROM "jacksonville_jaguars_draft_history" WHERE "pick_num"<20 AND "round"<6;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "jacksonville_jaguars_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: Which average Round has a Pick # larger than 20, and a College of virginia, and an Overall larger than 127?
<|assistant|>
SELECT AVG("round") FROM "jacksonville_jaguars_draft_history" WHERE "pick_num">20 AND "college"='virginia' AND "overall">127;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "jacksonville_jaguars_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: How many picks does chad owens have?
<|assistant|>
SELECT COUNT("pick_num") FROM "jacksonville_jaguars_draft_history" WHERE "name"='chad owens';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"april" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: What is the lowest value in April with New York Rangers as opponent for a game less than 82?
<|assistant|>
SELECT MIN("april") FROM "regular_season" WHERE "opponent"='new york rangers' AND "game"<82;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"april" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: What is the highest value in April with a record of 35β37β11 and more than 81 points?
<|assistant|>
SELECT MAX("april") FROM "regular_season" WHERE "record"='35β37β11' AND "points">81;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"attendance" real,
"record" text,
"points" real
);
Question: What is the record of the game played at home by the Blues where the attendance was larger than 4,719?
<|assistant|>
SELECT "record" FROM "game_log" WHERE "attendance">'4,719' AND "home"='blues';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"winner" text,
"score" text,
"1st_prize" text
);
Question: What is the name of the winner when the Score was 274 (β14) in tennessee?
<|assistant|>
SELECT "winner" FROM "tournament_results" WHERE "score"='274 (β14)' AND "location"='tennessee';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"winner" text,
"score" text,
"1st_prize" text
);
Question: What is the Score when the 1st prize was 63,000, and a Winner of keith fergus (1)?
<|assistant|>
SELECT "score" FROM "tournament_results" WHERE "1st_prize"='63,000' AND "winner"='keith fergus (1)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"winner" text,
"score" text,
"1st_prize" text
);
Question: What is the winners name at the western open?
<|assistant|>
SELECT "winner" FROM "tournament_results" WHERE "tournament"='western open';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"winner" text,
"score" text,
"1st_prize" text
);
Question: What is the score of the Tournament named danny thomas memphis classic?
<|assistant|>
SELECT "score" FROM "tournament_results" WHERE "tournament"='danny thomas memphis classic';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"winner" text,
"score" text,
"1st_prize" text
);
Question: What is the name of the Winner in north carolina at the greater greensboro open?
<|assistant|>
SELECT "winner" FROM "tournament_results" WHERE "location"='north carolina' AND "tournament"='greater greensboro open';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"winner" text,
"score" text,
"1st_prize" text
);
Question: What is the Location of the byron nelson golf classic?
<|assistant|>
SELECT "location" FROM "tournament_results" WHERE "tournament"='byron nelson golf classic';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "players_of_the_week" (
"week" text,
"division" text,
"position" text,
"player" text,
"school" text
);
Question: What is the position of player Tiffany Garofano (2)?
<|assistant|>
SELECT "position" FROM "players_of_the_week" WHERE "player"='tiffany garofano (2)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "players_of_the_week" (
"week" text,
"division" text,
"position" text,
"player" text,
"school" text
);
Question: What is the week with a school that is ball state?
<|assistant|>
SELECT "week" FROM "players_of_the_week" WHERE "school"='ball state';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performance_of_indian_teams" (
"club" text,
"wins" real,
"last_win" text,
"runners_up" real,
"last_runners_up" real
);
Question: What number last Runners-up where there when the Last win was 1999 and the Runners-up was bigger than 1?
<|assistant|>
SELECT COUNT("last_runners_up") FROM "performance_of_indian_teams" WHERE "last_win"='1999' AND "runners_up">1;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performance_of_indian_teams" (
"club" text,
"wins" real,
"last_win" text,
"runners_up" real,
"last_runners_up" real
);
Question: What is the number of Last Runners-up that has the club name of dempo sc?
<|assistant|>
SELECT SUM("last_runners_up") FROM "performance_of_indian_teams" WHERE "club"='dempo sc';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
Question: Which Position has a Round larger than 6, and a Player of neil pilon?
<|assistant|>
SELECT "position" FROM "draft_picks" WHERE "round">6 AND "player"='neil pilon';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
Question: Which Nationality has a Player of rudy poeschek?
<|assistant|>
SELECT "nationality" FROM "draft_picks" WHERE "player"='rudy poeschek';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
Question: Which Position has a Player of steve nemeth?
<|assistant|>
SELECT "position" FROM "draft_picks" WHERE "player"='steve nemeth';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
Question: Which Position has a Nationality of canada, and a Player of pat janostin?
<|assistant|>
SELECT "position" FROM "draft_picks" WHERE "nationality"='canada' AND "player"='pat janostin';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_runner_ups_6" (
"date" text,
"tournament" text,
"surface" text,
"partnering" text,
"opponents_in_the_final" text,
"score" text
);
Question: What was the score of the match on April 23, 2007?
<|assistant|>
SELECT "score" FROM "doubles_runner_ups_6" WHERE "date"='april 23, 2007';<|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,
"game_site" text,
"attendance" real
);
Question: Which Date has a Game site of shea stadium, and a Week of 5?
<|assistant|>
SELECT "date" FROM "schedule" WHERE "game_site"='shea stadium' AND "week"=5;<|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,
"game_site" text,
"attendance" real
);
Question: Which Attendance is the highest one that has a Week smaller than 9, and a Result of l 24β23?
<|assistant|>
SELECT MAX("attendance") FROM "schedule" WHERE "week"<9 AND "result"='l 24β23';<|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,
"game_site" text,
"attendance" real
);
Question: Which Week has an Opponent of baltimore colts, and an Attendance smaller than 55,137?
<|assistant|>
SELECT AVG("week") FROM "schedule" WHERE "opponent"='baltimore colts' AND "attendance"<'55,137';<|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 Points of 53, and an Opponent of @ minnesota north stars, and a December larger than 30?
<|assistant|>
SELECT AVG("game") FROM "regular_season" WHERE "points"=53 AND "opponent"='@ minnesota north stars' AND "december">30;<|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 Record of 21β6β5?
<|assistant|>
SELECT AVG("december") FROM "regular_season" WHERE "record"='21β6β5';<|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 an Opponent of @ pittsburgh penguins?
<|assistant|>
SELECT MAX("points") FROM "regular_season" WHERE "opponent"='@ pittsburgh penguins';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "detailed_list_of_projects_for_2010" (
"country" text,
"project_name" text,
"year_startup" text,
"operator" text,
"peak" text
);
Question: What year was the startup for the Project Named of taq taq ph 2?
<|assistant|>
SELECT "year_startup" FROM "detailed_list_of_projects_for_2010" WHERE "project_name"='taq taq ph 2';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "detailed_list_of_projects_for_2010" (
"country" text,
"project_name" text,
"year_startup" text,
"operator" text,
"peak" text
);
Question: What is the operator for peak 90, in startup year 2010 for the project named Aosp expansion 1 (jackpine ph 1a)?
<|assistant|>
SELECT "operator" FROM "detailed_list_of_projects_for_2010" WHERE "peak"='90' AND "year_startup"='2010' AND "project_name"='aosp expansion 1 (jackpine ph 1a)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "detailed_list_of_projects_for_2010" (
"country" text,
"project_name" text,
"year_startup" text,
"operator" text,
"peak" text
);
Question: What country has peak 20 and a project named jarn yabhour; ramhan?
<|assistant|>
SELECT "country" FROM "detailed_list_of_projects_for_2010" WHERE "peak"='20' AND "project_name"='jarn yabhour; ramhan';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "january" (
"date" real,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"competition" text
);
Question: How much Attendance has an Opponent of swindon wildcats?
<|assistant|>
SELECT COUNT("attendance") FROM "january" WHERE "opponent"='swindon wildcats';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "january" (
"date" real,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"competition" text
);
Question: Which Attendance is the lowest one that has a Venue of away, and a Date of 19?
<|assistant|>
SELECT MIN("attendance") FROM "january" WHERE "venue"='away' AND "date"=19;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "january" (
"date" real,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"competition" text
);
Question: Which Venue has a Result of won 5-4?
<|assistant|>
SELECT "venue" FROM "january" WHERE "result"='won 5-4';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "structures_between_metres_ft_and_metres_" (
"planned_pinnacle_height" text,
"expected_year_of_completion" real,
"structural_type" text,
"country" text,
"town" text
);
Question: what country has dubai
<|assistant|>
SELECT "country" FROM "structures_between_metres_ft_and_metres_" WHERE "town"='dubai';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "structures_between_metres_ft_and_metres_" (
"planned_pinnacle_height" text,
"expected_year_of_completion" real,
"structural_type" text,
"country" text,
"town" text
);
Question: what country is dubai in
<|assistant|>
SELECT "country" FROM "structures_between_metres_ft_and_metres_" WHERE "town"='dubai';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_summary" (
"game" text,
"date" text,
"home_team" text,
"result" text,
"road_team" text
);
Question: What home team has june 22 as the date?
<|assistant|>
SELECT "home_team" FROM "series_summary" WHERE "date"='june 22';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_summary" (
"game" text,
"date" text,
"home_team" text,
"result" text,
"road_team" text
);
Question: What road team has 86-84 as the result?
<|assistant|>
SELECT "road_team" FROM "series_summary" WHERE "result"='86-84';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_summary" (
"game" text,
"date" text,
"home_team" text,
"result" text,
"road_team" text
);
Question: What road team has 91-82 as the result?
<|assistant|>
SELECT "road_team" FROM "series_summary" WHERE "result"='91-82';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_summary" (
"game" text,
"date" text,
"home_team" text,
"result" text,
"road_team" text
);
Question: Which game has houston as the road team, and june 15 as the date?
<|assistant|>
SELECT "game" FROM "series_summary" WHERE "road_team"='houston' AND "date"='june 15';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "contestants" (
"player" text,
"hometown" text,
"occupation" text,
"education" text,
"game_status" text
);
Question: What is listed under occupation for someone from Santa Monica, California?
<|assistant|>
SELECT "occupation" FROM "contestants" WHERE "hometown"='santa monica, california';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "contestants" (
"player" text,
"hometown" text,
"occupation" text,
"education" text,
"game_status" text
);
Question: For natives of St. Louis, Missouri, what was listed under education?
<|assistant|>
SELECT "education" FROM "contestants" WHERE "hometown"='st. louis, missouri';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "contestants" (
"player" text,
"hometown" text,
"occupation" text,
"education" text,
"game_status" text
);
Question: When the occupation was utility worker on-air talent, what was the game status?
<|assistant|>
SELECT "game_status" FROM "contestants" WHERE "occupation"='utility worker on-air talent';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam_tournament_performance_timeli" (
"tournament" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text,
"win_pct" real
);
Question: Which 2005 has a 2004 of 3β2?
<|assistant|>
SELECT "2005" FROM "grand_slam_tournament_performance_timeli" WHERE "2004"='3β2';<|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.