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" text,
"time_retired" text,
"grid" text
);
Question: What is the Time/Retired for the BMW Sauber, and Nick Heidfeld?
<|assistant|>
SELECT "time_retired" FROM "race" WHERE "constructor"='bmw sauber' AND "driver"='nick heidfeld';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"april" real,
"opponent" text,
"score" text,
"record" text
);
Question: What were the total number of games in April greater than 83?
<|assistant|>
SELECT COUNT("april") FROM "schedule_and_results" WHERE "game">83;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "defense" (
"position" text,
"number" real,
"name" text,
"height" text,
"weight" text,
"class" text,
"hometown" text,
"games" real
);
Question: Which Games↑ is the lowest one that has a Position of wlb?
<|assistant|>
SELECT MIN("games") FROM "defense" WHERE "position"='wlb';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "defense" (
"position" text,
"number" real,
"name" text,
"height" text,
"weight" text,
"class" text,
"hometown" text,
"games" real
);
Question: Which Games↑ is the lowest one that has a Number of 98?
<|assistant|>
SELECT MIN("games") FROM "defense" WHERE "number"=98;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "roster_and_rotation" (
"name" text,
"number" real,
"team_position" real,
"height" text,
"year" text
);
Question: What is the height of Josh Tabb?
<|assistant|>
SELECT "height" FROM "roster_and_rotation" WHERE "name"='josh tabb';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_11_2008" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_a" text,
"segment_b" text,
"segment_c" text,
"segment_d" text
);
Question: What series episode has stetson hats (part 1) under segment C?
<|assistant|>
SELECT "series_ep" FROM "season_11_2008" WHERE "segment_c"='stetson hats (part 1)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_11_2008" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_a" text,
"segment_b" text,
"segment_c" text,
"segment_d" text
);
Question: What is under segment C when s cuckoo clock is under segment B?
<|assistant|>
SELECT "segment_c" FROM "season_11_2008" WHERE "segment_b"='s cuckoo clock';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_11_2008" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_a" text,
"segment_b" text,
"segment_c" text,
"segment_d" text
);
Question: When segment B is s pineapple, what is the segment C?
<|assistant|>
SELECT "segment_c" FROM "season_11_2008" WHERE "segment_b"='s pineapple';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_11_2008" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_a" text,
"segment_b" text,
"segment_c" text,
"segment_d" text
);
Question: What series episode has jukeboxes as segment B?
<|assistant|>
SELECT "series_ep" FROM "season_11_2008" WHERE "segment_b"='jukeboxes';<|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,
"attendance" real
);
Question: What week ended in a result of w 30-3, and had an attendance less than 62,795?
<|assistant|>
SELECT MIN("week") FROM "schedule" WHERE "result"='w 30-3' AND "attendance"<'62,795';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"date" text,
"label" text,
"region" text,
"format" text,
"catalog" real
);
Question: Which Format has a Catalog of 61298, and a Date of september 1984?
<|assistant|>
SELECT "format" FROM "release_history" WHERE "catalog"=61298 AND "date"='september 1984';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"date" text,
"label" text,
"region" text,
"format" text,
"catalog" real
);
Question: Which Catalog has a Format of 7" single (second cover)?
<|assistant|>
SELECT "catalog" FROM "release_history" WHERE "format"='7\" single (second cover)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"date" text,
"label" text,
"region" text,
"format" text,
"catalog" real
);
Question: Which Region has a Label of rca, and a Catalog of 61298, and a Format of 7" single (first cover)?
<|assistant|>
SELECT "region" FROM "release_history" WHERE "label"='rca' AND "catalog"=61298 AND "format"='7\" single (first cover)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"date" text,
"label" text,
"region" text,
"format" text,
"catalog" real
);
Question: Which Format has a Catalog smaller than 61298?
<|assistant|>
SELECT "format" FROM "release_history" WHERE "catalog"<61298;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"march" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: What was the score of the game with 96 points?
<|assistant|>
SELECT "score" FROM "game_log" WHERE "points"=96;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"march" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: What was the score of the game with a record of 34–17–11–2?
<|assistant|>
SELECT "score" FROM "game_log" WHERE "record"='34–17–11–2';<|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 record after the game at Rich Stadium?
<|assistant|>
SELECT "record" FROM "schedule" WHERE "game_site"='rich stadium';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_goalscorers" (
"name" text,
"goals" real,
"caps" real,
"first_cap" text,
"latest_cap" text
);
Question: When was the first cap associated with 74 caps?
<|assistant|>
SELECT "first_cap" FROM "top_goalscorers" WHERE "caps"=74;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_goalscorers" (
"name" text,
"goals" real,
"caps" real,
"first_cap" text,
"latest_cap" text
);
Question: How many goals are associated with over 97 caps and a Latest cap of april 24, 2013?
<|assistant|>
SELECT AVG("goals") FROM "top_goalscorers" WHERE "latest_cap"='april 24, 2013' AND "caps">97;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_goalscorers" (
"name" text,
"goals" real,
"caps" real,
"first_cap" text,
"latest_cap" text
);
Question: When was the first cap associated with 39 caps and under 33 goals?
<|assistant|>
SELECT "first_cap" FROM "top_goalscorers" WHERE "goals"<33 AND "caps"=39;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_goalscorers" (
"name" text,
"goals" real,
"caps" real,
"first_cap" text,
"latest_cap" text
);
Question: What is the highest number of goals associated with 39 caps?
<|assistant|>
SELECT MAX("goals") FROM "top_goalscorers" WHERE "caps"=39;<|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: How many days in April has a record of 42–22–12–3, and less than 99 points?
<|assistant|>
SELECT COUNT("april") FROM "regular_season" WHERE "record"='42–22–12–3' AND "points"<99;<|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: Name the total number of points for 44 game and january more than 15
<|assistant|>
SELECT COUNT("points") FROM "regular_season" WHERE "game"=44 AND "january">15;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "past_winners" (
"year" real,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
);
Question: Men's singles of kęstutis navickas, and a Women's singles of ugnė urbonaitė, and a Year larger than 2004 involved which mens double?
<|assistant|>
SELECT "men_s_doubles" FROM "past_winners" WHERE "men_s_singles"='kęstutis navickas' AND "women_s_singles"='ugnė urbonaitė' AND "year">2004;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "past_winners" (
"year" real,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
);
Question: Women's singles of akvilė stapušaitytė, and a Year of 2010 had what mixed doubles?
<|assistant|>
SELECT "mixed_doubles" FROM "past_winners" WHERE "women_s_singles"='akvilė stapušaitytė' AND "year"=2010;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "past_winners" (
"year" real,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
);
Question: Year smaller than 1993, and a Women's singles of jūratė markaitytė, and a Men's singles of arūnas petkevičius involved which women's doubles?
<|assistant|>
SELECT "women_s_doubles" FROM "past_winners" WHERE "year"<1993 AND "women_s_singles"='jūratė markaitytė' AND "men_s_singles"='arūnas petkevičius';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "preseason" (
"week" text,
"date" text,
"kickoff" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text,
"nfl_recap" text
);
Question: Which Date had a Result of 7–20?
<|assistant|>
SELECT "date" FROM "preseason" WHERE "result"='7–20';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "preseason" (
"week" text,
"date" text,
"kickoff" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text,
"nfl_recap" text
);
Question: Which Date had an Opponent of buffalo bills?
<|assistant|>
SELECT "date" FROM "preseason" WHERE "opponent"='buffalo bills';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "preseason" (
"week" text,
"date" text,
"kickoff" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text,
"nfl_recap" text
);
Question: Which Kickoff had a Game Site of bank of america stadium?
<|assistant|>
SELECT "kickoff" FROM "preseason" WHERE "game_site"='bank of america stadium';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "preseason" (
"week" text,
"date" text,
"kickoff" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text,
"nfl_recap" text
);
Question: Which Kickoff had a Game Site of fawcett stadium?
<|assistant|>
SELECT "kickoff" FROM "preseason" WHERE "game_site"='fawcett stadium';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "preseason" (
"week" text,
"date" text,
"kickoff" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text,
"nfl_recap" text
);
Question: Which NFL Recap had a Kickoff of 7:00pm edt?
<|assistant|>
SELECT "nfl_recap" FROM "preseason" WHERE "kickoff"='7:00pm edt';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "preseason" (
"week" text,
"date" text,
"kickoff" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text,
"nfl_recap" text
);
Question: Which NFL Recap had a Record of 1–3?
<|assistant|>
SELECT "nfl_recap" FROM "preseason" WHERE "record"='1–3';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"january" real,
"opponent" text,
"score" text,
"record" text
);
Question: What was the Record on Game 50?
<|assistant|>
SELECT "record" FROM "schedule_and_results" WHERE "game"=50;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school_club_team" text
);
Question: what player score is higher than 17
<|assistant|>
SELECT "player" FROM "nfl_draft" WHERE "round"=17;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "distribution" (
"region" text,
"total_population" real,
"manchu" real,
"percentage_in_manchu_population" text,
"regional_percentage_of_population" real
);
Question: What is the lowest population associated with a Regional Percentage of Population of 2.95?
<|assistant|>
SELECT MIN("total_population") FROM "distribution" WHERE "regional_percentage_of_population"=2.95;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
Question: Which opponent has an attendance of 17,015?
<|assistant|>
SELECT "opponent" FROM "game_log" WHERE "attendance"='17,015';<|endoftext|> |
<|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: Which Frequency MHz is the highest one that has a Call sign of k241an?
<|assistant|>
SELECT MAX("frequency_m_hz") FROM "translators" WHERE "call_sign"='k241an';<|endoftext|> |
<|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: Which ERP W is the highest one that has a Frequency MHz larger than 88.3, and a City of license of lewis, kansas?
<|assistant|>
SELECT MAX("erp_w") FROM "translators" WHERE "frequency_m_hz">88.3 AND "city_of_license"='lewis, kansas';<|endoftext|> |
<|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: Which FCC info has a ERP W smaller than 222, and a Call sign of k297ai?
<|assistant|>
SELECT "fcc_info" FROM "translators" WHERE "erp_w"<222 AND "call_sign"='k297ai';<|endoftext|> |
<|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: Which City of license has a Call sign of k241an?
<|assistant|>
SELECT "city_of_license" FROM "translators" WHERE "call_sign"='k241an';<|endoftext|> |
<|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: Which Class has an ERP W of 222?
<|assistant|>
SELECT "class" FROM "translators" WHERE "erp_w"=222;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam_tournament_performance_timeli" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"opponent" text,
"score" text
);
Question: What was the score on a clay surface in a year later than 2006 with David Ferrer as an opponent?
<|assistant|>
SELECT "score" FROM "grand_slam_tournament_performance_timeli" WHERE "surface"='clay' AND "year">2006 AND "opponent"='david ferrer';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam_tournament_performance_timeli" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"opponent" text,
"score" text
);
Question: Which championship is in a year later than 2010 on a grass surface?
<|assistant|>
SELECT "championship" FROM "grand_slam_tournament_performance_timeli" WHERE "year">2010 AND "surface"='grass';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam_tournament_performance_timeli" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"opponent" text,
"score" text
);
Question: Which championship has Roger Federer as an opponent on a clay surface in a year earlier than 2007?
<|assistant|>
SELECT "championship" FROM "grand_slam_tournament_performance_timeli" WHERE "opponent"='roger federer' AND "surface"='clay' AND "year"<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,
"attendance" real
);
Question: How many weeks have an attendance greater than 21,231, with l 38-10 as the result?
<|assistant|>
SELECT COUNT("week") FROM "schedule" WHERE "attendance">'21,231' AND "result"='l 38-10';<|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,
"attendance" real
);
Question: Which opponent has an attendance greater than 57,491, with october 28, 1962 as the date?
<|assistant|>
SELECT "opponent" FROM "schedule" WHERE "attendance">'57,491' AND "date"='october 28, 1962';<|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,
"attendance" real
);
Question: What is the largest attendance that has December 16, 1962 as the date?
<|assistant|>
SELECT MAX("attendance") FROM "schedule" WHERE "date"='december 16, 1962';<|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,
"attendance" real
);
Question: What is the largest week that has t 35-35 as the result?
<|assistant|>
SELECT MAX("week") FROM "schedule" WHERE "result"='t 35-35';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary_of_results_by_season" (
"played" real,
"wins" real,
"losses" real,
"no_result" real,
"pct_win" text
);
Question: Name the total number of no result for losses more than 1 and played of 38 and wins less than 19
<|assistant|>
SELECT COUNT("no_result") FROM "summary_of_results_by_season" WHERE "losses">1 AND "played"=38 AND "wins"<19;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary_of_results_by_season" (
"played" real,
"wins" real,
"losses" real,
"no_result" real,
"pct_win" text
);
Question: Name the sum of played with wins more than 19
<|assistant|>
SELECT SUM("played") FROM "summary_of_results_by_season" WHERE "wins">19;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary_of_results_by_season" (
"played" real,
"wins" real,
"losses" real,
"no_result" real,
"pct_win" text
);
Question: Name the total number of losses with number result less than 0
<|assistant|>
SELECT COUNT("losses") FROM "summary_of_results_by_season" WHERE "no_result"<0;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_scorers" (
"rank" text,
"scorer" text,
"club" text,
"goals" real,
"matches" text
);
Question: Which Rank has Goals larger than 4, and a Scorer of oh seok-jae?
<|assistant|>
SELECT "rank" FROM "top_scorers" WHERE "goals">4 AND "scorer"='oh seok-jae';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_scorers" (
"rank" text,
"scorer" text,
"club" text,
"goals" real,
"matches" text
);
Question: Which Goals is the lowest one that has Matches of 16, and a Scorer of park sang-in?
<|assistant|>
SELECT MIN("goals") FROM "top_scorers" WHERE "matches"='16' AND "scorer"='park sang-in';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_scorers" (
"rank" text,
"scorer" text,
"club" text,
"goals" real,
"matches" text
);
Question: Which Club has a Rank of 1?
<|assistant|>
SELECT "club" FROM "top_scorers" WHERE "rank"='1';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_scorers" (
"rank" text,
"scorer" text,
"club" text,
"goals" real,
"matches" text
);
Question: Which Goals have a Club of hallelujah fc, and a Rank of 7?
<|assistant|>
SELECT SUM("goals") FROM "top_scorers" WHERE "club"='hallelujah fc' AND "rank"='7';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "michigan_86_ohio_state_0" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
Question: How many Extra points have Touchdowns larger than 2, and Field goals larger than 0?
<|assistant|>
SELECT COUNT("extra_points") FROM "michigan_86_ohio_state_0" WHERE "touchdowns">2 AND "field_goals">0;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "michigan_86_ohio_state_0" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
Question: Which Field goals is the highest one that has Touchdowns of 0, and Points larger than 4?
<|assistant|>
SELECT MAX("field_goals") FROM "michigan_86_ohio_state_0" WHERE "touchdowns"=0 AND "points">4;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "statistics_at_michigan" (
"year" text,
"tackles" real,
"assists" real,
"totals" real,
"interceptions" real,
"high_game_tackles" text
);
Question: How many Totals have a High Game Tackles of 19 (purdue), and Interceptions smaller than 3?
<|assistant|>
SELECT COUNT("totals") FROM "statistics_at_michigan" WHERE "high_game_tackles"='19 (purdue)' AND "interceptions"<3;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "125cc_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What is the grid number of Sandro Cortese, who has Aprilia as the manufacturer and less than 19 laps?
<|assistant|>
SELECT SUM("grid") FROM "125cc_classification" WHERE "manufacturer"='aprilia' AND "laps"<19 AND "rider"='sandro cortese';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "all_time_ranking_in_the_championship_pla" (
"rank" real,
"club" text,
"seasons" real,
"played" real,
"drew" real,
"lost" real,
"points" real,
"avg_points" real,
"goals_for" real,
"goals_against" real,
"goal_diff" real
);
Question: Which Rank has a Lost smaller than 12, and a Played larger than 20, and an Avg Points larger than 1.73?
<|assistant|>
SELECT MAX("rank") FROM "all_time_ranking_in_the_championship_pla" WHERE "lost"<12 AND "played">20 AND "avg_points">1.73;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "all_time_ranking_in_the_championship_pla" (
"rank" real,
"club" text,
"seasons" real,
"played" real,
"drew" real,
"lost" real,
"points" real,
"avg_points" real,
"goals_for" real,
"goals_against" real,
"goal_diff" real
);
Question: Which Drew has a Rank of 5, and a Played larger than 30?
<|assistant|>
SELECT COUNT("drew") FROM "all_time_ranking_in_the_championship_pla" WHERE "rank"=5 AND "played">30;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "all_time_ranking_in_the_championship_pla" (
"rank" real,
"club" text,
"seasons" real,
"played" real,
"drew" real,
"lost" real,
"points" real,
"avg_points" real,
"goals_for" real,
"goals_against" real,
"goal_diff" real
);
Question: Which Rank has a Club of zulte waregem, and Points larger than 22?
<|assistant|>
SELECT COUNT("rank") FROM "all_time_ranking_in_the_championship_pla" WHERE "club"='zulte waregem' AND "points">22;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "all_time_ranking_in_the_championship_pla" (
"rank" real,
"club" text,
"seasons" real,
"played" real,
"drew" real,
"lost" real,
"points" real,
"avg_points" real,
"goals_for" real,
"goals_against" real,
"goal_diff" real
);
Question: Which Lost has Seasons of 2, and Goals against larger than 43?
<|assistant|>
SELECT MAX("lost") FROM "all_time_ranking_in_the_championship_pla" WHERE "seasons"=2 AND "goals_against">43;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "all_time_ranking_in_the_championship_pla" (
"rank" real,
"club" text,
"seasons" real,
"played" real,
"drew" real,
"lost" real,
"points" real,
"avg_points" real,
"goals_for" real,
"goals_against" real,
"goal_diff" real
);
Question: Which Drew has a Lost larger than 14?
<|assistant|>
SELECT SUM("drew") FROM "all_time_ranking_in_the_championship_pla" WHERE "lost">14;<|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,
"location" text,
"time_et" text,
"result" text,
"record" text
);
Question: Which Record has a Week smaller than 15, and an Opponent of at new york jets?
<|assistant|>
SELECT "record" FROM "schedule" WHERE "week"<15 AND "opponent"='at new york jets';<|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,
"location" text,
"time_et" text,
"result" text,
"record" text
);
Question: Which Result has a Record of 5–4?
<|assistant|>
SELECT "result" FROM "schedule" WHERE "record"='5–4';<|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,
"location" text,
"time_et" text,
"result" text,
"record" text
);
Question: Which Record has a Time (ET) of 1:00pm, and an Opponent of kansas city chiefs?
<|assistant|>
SELECT "record" FROM "schedule" WHERE "time_et"='1:00pm' AND "opponent"='kansas city chiefs';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "monday" (
"7_00" text,
"7_30" text,
"8_00" text,
"8_30" text,
"9_00" text,
"9_30" text,
"10_00" text,
"10_30" text
);
Question: What is the 7:30 feature with an 8:30 feature Melrose Place?
<|assistant|>
SELECT "7_30" FROM "monday" WHERE "8_30"='melrose place';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "monday" (
"7_00" text,
"7_30" text,
"8_00" text,
"8_30" text,
"9_00" text,
"9_30" text,
"10_00" text,
"10_30" text
);
Question: What is the 8:30 feature with a 7:00 feature Loft Story?
<|assistant|>
SELECT "8_30" FROM "monday" WHERE "7_00"='loft story';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "monday" (
"7_00" text,
"7_30" text,
"8_00" text,
"8_30" text,
"9_00" text,
"9_30" text,
"10_00" text,
"10_30" text
);
Question: What is the 8:00 feature with a 7:00 feature Air Farce?
<|assistant|>
SELECT "8_00" FROM "monday" WHERE "7_00"='air farce';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "monday" (
"7_00" text,
"7_30" text,
"8_00" text,
"8_30" text,
"9_00" text,
"9_30" text,
"10_00" text,
"10_30" text
);
Question: What is the 10:30 feature with Hercule as the 7:30 feature?
<|assistant|>
SELECT "10_30" FROM "monday" WHERE "7_30"='hercule';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "monday" (
"7_00" text,
"7_30" text,
"8_00" text,
"8_30" text,
"9_00" text,
"9_30" text,
"10_00" text,
"10_30" text
);
Question: What is the 8:00 feature with Mad About You as the 8:30 feature?
<|assistant|>
SELECT "8_00" FROM "monday" WHERE "8_30"='mad about you';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "monday" (
"7_00" text,
"7_30" text,
"8_00" text,
"8_30" text,
"9_00" text,
"9_30" text,
"10_00" text,
"10_30" text
);
Question: What is the 7:30 feature with an 8:00 feature of Cosby?
<|assistant|>
SELECT "7_30" FROM "monday" WHERE "8_00"='cosby';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification" (
"hindi" text,
"romani" text,
"domari" text,
"lomavren" text,
"persian" text
);
Question: What is the Hindi associated with a Domari of tærən?
<|assistant|>
SELECT "hindi" FROM "classification" WHERE "domari"='tærən';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification" (
"hindi" text,
"romani" text,
"domari" text,
"lomavren" text,
"persian" text
);
Question: What is the Lomavren associated with a Persian of se?
<|assistant|>
SELECT "lomavren" FROM "classification" WHERE "persian"='se';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification" (
"hindi" text,
"romani" text,
"domari" text,
"lomavren" text,
"persian" text
);
Question: What is the Romani associated with a Domari of na?
<|assistant|>
SELECT "romani" FROM "classification" WHERE "domari"='na';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification" (
"hindi" text,
"romani" text,
"domari" text,
"lomavren" text,
"persian" text
);
Question: What is the Domari associated with a Persian of yak, yek?
<|assistant|>
SELECT "domari" FROM "classification" WHERE "persian"='yak, yek';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification" (
"hindi" text,
"romani" text,
"domari" text,
"lomavren" text,
"persian" text
);
Question: What is the Lomavren associated with a Hindi of sāt?
<|assistant|>
SELECT "lomavren" FROM "classification" WHERE "hindi"='sāt';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "official_versions" (
"version" text,
"length" text,
"album" text,
"remixed_by" text,
"year" real
);
Question: What is the Version before 2001 with a Length of 7:42?
<|assistant|>
SELECT "version" FROM "official_versions" WHERE "year"<2001 AND "length"='7:42';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "official_versions" (
"version" text,
"length" text,
"album" text,
"remixed_by" text,
"year" real
);
Question: In what Year is the length of the Song 7:42?
<|assistant|>
SELECT AVG("year") FROM "official_versions" WHERE "length"='7:42';<|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 College/Junior/Club Team (League) has a Position of right wing, and a Round smaller than 3?
<|assistant|>
SELECT "college_junior_club_team_league" FROM "draft_picks" WHERE "position"='right wing' AND "round"<3;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_orbit" (
"orbital_regime" text,
"launches" real,
"successes" real,
"failures" real,
"accidentally_achieved" real
);
Question: What is the orbital regime of launches greater than 4 and failures less than 2?
<|assistant|>
SELECT "orbital_regime" FROM "by_orbit" WHERE "launches">4 AND "failures"<2;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_orbit" (
"orbital_regime" text,
"launches" real,
"successes" real,
"failures" real,
"accidentally_achieved" real
);
Question: What is the total of medium earth orbital regime, accidentally achieved and successes greater than 3?
<|assistant|>
SELECT SUM("accidentally_achieved") FROM "by_orbit" WHERE "orbital_regime"='medium earth' AND "successes">3;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_orbit" (
"orbital_regime" text,
"launches" real,
"successes" real,
"failures" real,
"accidentally_achieved" real
);
Question: What is the greatest successes that have failures greater than 1 and launches less than 28?
<|assistant|>
SELECT MAX("successes") FROM "by_orbit" WHERE "failures">1 AND "launches"<28;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_orbit" (
"orbital_regime" text,
"launches" real,
"successes" real,
"failures" real,
"accidentally_achieved" real
);
Question: What is the total failures of heliocentric orbit orbital regimes and launches less than 1?
<|assistant|>
SELECT SUM("failures") FROM "by_orbit" WHERE "orbital_regime"='heliocentric orbit' AND "launches"<1;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"rank" real,
"player" text,
"team" text,
"year" real,
"bb_so" real
);
Question: What was the rank of tris speaker when BB/SO was 7?
<|assistant|>
SELECT "rank" FROM "see_also" WHERE "player"='tris speaker' AND "bb_so"=7;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"rank" real,
"player" text,
"team" text,
"year" real,
"bb_so" real
);
Question: What is the average rank for team cle when the BB/SO is 10.89?
<|assistant|>
SELECT AVG("rank") FROM "see_also" WHERE "team"='cle' AND "bb_so"=10.89;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "futures_titles" (
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponent_in_the_final" text,
"score" text
);
Question: What is the name of a partner that played on a hard surface on 18 April 2011?
<|assistant|>
SELECT "partner" FROM "futures_titles" WHERE "surface"='hard' AND "date"='18 april 2011';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "futures_titles" (
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponent_in_the_final" text,
"score" text
);
Question: What was the score for the final played on 2 July 2012?
<|assistant|>
SELECT "score" FROM "futures_titles" WHERE "date"='2 july 2012';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_15_10_5" (
"outcome" text,
"date" text,
"surface" text,
"partner" text,
"opponent_in_the_final" text,
"score" text
);
Question: What was the Score on February 18, 2008?
<|assistant|>
SELECT "score" FROM "doubles_15_10_5" WHERE "date"='february 18, 2008';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_15_10_5" (
"outcome" text,
"date" text,
"surface" text,
"partner" text,
"opponent_in_the_final" text,
"score" text
);
Question: What was the Opponent on the game played on a Hard Surface with a Score of 3–6, 6–3, [7–10]?
<|assistant|>
SELECT "opponent_in_the_final" FROM "doubles_15_10_5" WHERE "surface"='hard' AND "score"='3–6, 6–3, [7–10]';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_15_10_5" (
"outcome" text,
"date" text,
"surface" text,
"partner" text,
"opponent_in_the_final" text,
"score" text
);
Question: On what Surface was the game with Partner David Martin played Scoring 4–6, 6–7 (4-7)?
<|assistant|>
SELECT "surface" FROM "doubles_15_10_5" WHERE "partner"='david martin' AND "score"='4–6, 6–7 (4-7)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_15_10_5" (
"outcome" text,
"date" text,
"surface" text,
"partner" text,
"opponent_in_the_final" text,
"score" text
);
Question: What was the Outcome of the game with a Score of 3–6, 4–6?
<|assistant|>
SELECT "outcome" FROM "doubles_15_10_5" WHERE "score"='3–6, 4–6';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_15_10_5" (
"outcome" text,
"date" text,
"surface" text,
"partner" text,
"opponent_in_the_final" text,
"score" text
);
Question: What was the Partner on June 17, 2012?
<|assistant|>
SELECT "partner" FROM "doubles_15_10_5" WHERE "date"='june 17, 2012';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "april" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"record" text
);
Question: What record has Glenn Robinson (16) as the leading scorer?
<|assistant|>
SELECT "record" FROM "april" WHERE "leading_scorer"='glenn robinson (16)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "april" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"record" text
);
Question: What date has 136-134 as the score?
<|assistant|>
SELECT "date" FROM "april" WHERE "score"='136-134';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "april" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"record" text
);
Question: What home has 136-134 as the score?
<|assistant|>
SELECT "home" FROM "april" WHERE "score"='136-134';<|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: What is the most recent year that China won a bronze?
<|assistant|>
SELECT MAX("year") FROM "team" WHERE "bronze"='china';<|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: What is the oldest year that the location was at Guangzhou?
<|assistant|>
SELECT MIN("year") FROM "team" WHERE "location"='guangzhou';<|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: For how many years was the location at Beijing?
<|assistant|>
SELECT SUM("year") FROM "team" WHERE "location"='beijing';<|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.