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_... |
<|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 C... |
<|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 Po... |
<|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 Nu... |
<|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_... |
<|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 ... |
<|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... |
<|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 i... |
<|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 ... |
<|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|>... |
<|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 "... |
<|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" FR... |
<|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... |
<|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 "releas... |
<|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" FRO... |
<|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|>
SELEC... |
<|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?
<|a... |
<|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... |
<|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?
<... |
<|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|>
SELE... |
<|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... |
<|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 point... |
<|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
<|... |
<|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, ... |
<|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šaity... |
<|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'... |
<|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?
<|as... |
<|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... |
<|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... |
<|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 fawc... |
<|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:00... |
<|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?
... |
<|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_r... |
<|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" W... |
<|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 populatio... |
<|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" ... |
<|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... |
<|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 MH... |
<|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 Cal... |
<|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?
<|ass... |
<|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 ... |
<|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 i... |
<|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 ... |
<|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 a... |
<|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?
<|assista... |
<|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?
<|a... |
<|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 ... |
<|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") FR... |
<|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 ... |
<|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("... |
<|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
<|assista... |
<|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" FR... |
<|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... |
<|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';<|e... |
<|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") FR... |
<|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 ... |
<|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, ... |
<|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 1... |
<|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 manufactu... |
<|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,
"goal... |
<|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,
"goal... |
<|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,
"goal... |
<|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,
"goal... |
<|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,
"goal... |
<|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... |
<|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 "res... |
<|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 ... |
<|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... |
<|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?
<|... |
<|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?
<|a... |
<|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?... |
<|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 fea... |
<|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?
<|a... |
<|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... |
<|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" ... |
<|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 ... |
<|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... |
<|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" F... |
<|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 "versio... |
<|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 ... |
<|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 ri... |
<|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 failur... |
<|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 a... |
<|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... |
<|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... |
<|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... |
<|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 ... |
<|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 s... |
<|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 201... |
<|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|>
... |
<|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 Surf... |
<|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 ... |
<|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... |
<|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|>
SE... |
<|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|>
SEL... |
<|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"... |
<|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"... |
<|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" W... |
<|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 "t... |
<|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 "... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.