text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "january" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" text,
"record" text
);
Question: What is Score, when Leading Scorer is Tyrone Hill , 2... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "january" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" text,
"record" text
);
Question: What is Home, when Score is 103-93?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "january" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" text,
"record" text
);
Question: What is Attendance, when Home is Cleveland, and when ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "january" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" text,
"record" text
);
Question: What is Leading Scorer, when Attendance is Gund Arena... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "january" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" text,
"record" text
);
Question: What is Score, when Date is January 12?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "january" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" text,
"record" text
);
Question: What is Score, when Attendance is Gund Arena 20,562, ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
Question: What is the sum of Top-10(s), when Cuts made is less than... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
Question: What is the lowest Top-25, when Events is 10, and when Wi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
Question: What is the lowest Top-5, when Top-25 is less than 4, and... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "roster" (
"name" text,
"height" text,
"position" text,
"year" text,
"home_town" text
);
Question: What is the Height of Junior Meghan Austin?
<|assistant|>
SELECT "height" FROM "roster" WHERE "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "roster" (
"name" text,
"height" text,
"position" text,
"year" text,
"home_town" text
);
Question: What is Martina Wood's Position?
<|assistant|>
SELECT "position" FROM "roster" WHERE "name"='ma... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "roster" (
"name" text,
"height" text,
"position" text,
"year" text,
"home_town" text
);
Question: What is the Name of the Player from Charlotte, NC?
<|assistant|>
SELECT "name" FROM "roster" WH... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "roster" (
"name" text,
"height" text,
"position" text,
"year" text,
"home_town" text
);
Question: What is 6-2 Martina Wood's Position?
<|assistant|>
SELECT "position" FROM "roster" WHERE "heigh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "roster" (
"name" text,
"height" text,
"position" text,
"year" text,
"home_town" text
);
Question: What is the Position of the Player from Temple Hills, MD?
<|assistant|>
SELECT "position" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "roster" (
"name" text,
"height" text,
"position" text,
"year" text,
"home_town" text
);
Question: What is the Name of the Junior from Fayetteville, NC?
<|assistant|>
SELECT "name" FROM "roster"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_career_wickets" (
"rank" text,
"s_wicket" text,
"player" text,
"matches" text,
"average" text
);
Question: What rank has jo angel (wa) as the player?
<|assistant|>
SELECT "rank" FROM "most... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_career_wickets" (
"rank" text,
"s_wicket" text,
"player" text,
"matches" text,
"average" text
);
Question: What average has 1 as rhe rank?
<|assistant|>
SELECT "average" FROM "most_career_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_career_wickets" (
"rank" text,
"s_wicket" text,
"player" text,
"matches" text,
"average" text
);
Question: What rank has andy bichel (qld) as the player?
<|assistant|>
SELECT "rank" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_career_wickets" (
"rank" text,
"s_wicket" text,
"player" text,
"matches" text,
"average" text
);
Question: What is the average that has 2 for the rank?
<|assistant|>
SELECT "average" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_career_wickets" (
"rank" text,
"s_wicket" text,
"player" text,
"matches" text,
"average" text
);
Question: What playee has 24.21 as the average?
<|assistant|>
SELECT "player" FROM "most_ca... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_career_wickets" (
"rank" text,
"s_wicket" text,
"player" text,
"matches" text,
"average" text
);
Question: What is the average that has 441 as wicket?
<|assistant|>
SELECT "average" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "races_and_results" (
"district" text,
"incumbent" text,
"party" text,
"elected" real,
"status" text,
"2008_candidates" text,
"results" text
);
Question: What was the year Elected of Republi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "races_and_results" (
"district" text,
"incumbent" text,
"party" text,
"elected" real,
"status" text,
"2008_candidates" text,
"results" text
);
Question: What were the Results in the Washing... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "races_and_results" (
"district" text,
"incumbent" text,
"party" text,
"elected" real,
"status" text,
"2008_candidates" text,
"results" text
);
Question: What is the 2008 Candidates Elected ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "races_and_results" (
"district" text,
"incumbent" text,
"party" text,
"elected" real,
"status" text,
"2008_candidates" text,
"results" text
);
Question: Who is the Incumbent with Results of... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "races_and_results" (
"district" text,
"incumbent" text,
"party" text,
"elected" real,
"status" text,
"2008_candidates" text,
"results" text
);
Question: What District had Republican Incumbe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medals_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What was Italy's highest total when there were less than 4 bronze and 1 gold?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medals_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: How many totals had more than 4 bronze?
<|assistant|>
SELECT SUM("total") FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medals_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What was Austria's lowest total when the gold was more than 3?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" text,
"finish" text
);
Question: What are the years won when the to par is +5?
<|assistant|>
SELECT "y... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" text,
"finish" text
);
Question: What is the average total for Tiger Woods?
<|assistant|>
SELECT AVG("... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" text,
"finish" text
);
Question: Which country had a total of 295?
<|assistant|>
SELECT "country" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" text,
"finish" text
);
Question: What is the finish when the to par is +18?
<|assistant|>
SELECT "fini... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary_of_results" (
"matches" real,
"wins" real,
"losses" real,
"no_result" real,
"success_rate" text
);
Question: How many total No Results occured when the team had less than 46 wins and mo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary_of_results" (
"matches" real,
"wins" real,
"losses" real,
"no_result" real,
"success_rate" text
);
Question: When the team had more than 46 wins, what were the average losses?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary_of_results" (
"matches" real,
"wins" real,
"losses" real,
"no_result" real,
"success_rate" text
);
Question: How many total No Results are recorded for less than 6 wins?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1992" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"interview_subject" text,
"20_questions" text
);
Question: What Interview subject was on a Date that is 11-92?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "points" (
"rank" real,
"name" text,
"team" text,
"games" real,
"points" real
);
Question: What is the lowest game number with Aris Thessaloniki with points smaller than 120?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "points" (
"rank" real,
"name" text,
"team" text,
"games" real,
"points" real
);
Question: What is the game average that has a rank larger than 2 with team Olympiacos and points larger than 113?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
Question: Which result was there when the opponents were the Buffalo Bills?
<|assistant|>
SELEC... |
<|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,
"purse" real,
"winner" text,
"score" text,
"1st_prize" text
);
Question: What was the Purse ($) total for Iowa?
<|assi... |
<|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,
"purse" real,
"winner" text,
"score" text,
"1st_prize" text
);
Question: When did the Score of 195 (-21) happen?
<|ass... |
<|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,
"purse" real,
"winner" text,
"score" text,
"1st_prize" text
);
Question: When did Scott Hoch (2) win?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000_01_to_date" (
"season" text,
"first" text,
"second" text,
"third" text,
"fourth" text,
"fifth" text,
"sixth" text
);
Question: What team placed second during the season where Western A... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000_01_to_date" (
"season" text,
"first" text,
"second" text,
"third" text,
"fourth" text,
"fifth" text,
"sixth" text
);
Question: What team placed sixth during the season where Western Au... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000_01_to_date" (
"season" text,
"first" text,
"second" text,
"third" text,
"fourth" text,
"fifth" text,
"sixth" text
);
Question: What team placed sixth during the season where Tasmania p... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000_01_to_date" (
"season" text,
"first" text,
"second" text,
"third" text,
"fourth" text,
"fifth" text,
"sixth" text
);
Question: What team placed fifth during the season where Victoria p... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
Question: What is the smallest number of... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
Question: How many points occurred with ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
Question: What is the highest number of ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "premier_division" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
);
Question: Which date's attendance was more than 39,058 with an opponent of Motherwell?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "preliminary_round_ii" (
"team_num1" text,
"agg" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: In the round that had a 2nd leg score of 0-2, what did they score for the 1st... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "preliminary_round_ii" (
"team_num1" text,
"agg" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: When Estudiantes was team #2, what was their agg. value?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "preliminary_round_ii" (
"team_num1" text,
"agg" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: Who played against TSV bayer 04 leverkusen when they were team #1?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "preliminary_round_ii" (
"team_num1" text,
"agg" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: Who played against Hapoel tel aviv when they were team #1?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "seasons" (
"season" text,
"team" text,
"conf" text,
"conf_finish" text,
"div" text,
"div_finish" text,
"awards" text,
"head_coach" text
);
Question: what is the division in the western co... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "bafa_national_leagues" (
"team" text,
"location" text,
"years_in_senior_adult_league" text,
"2013_bafa_adult_division" text,
"2013_bafa_adult_flag_division" text,
"2013_bafa_junior_division" t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "bafa_national_leagues" (
"team" text,
"location" text,
"years_in_senior_adult_league" text,
"2013_bafa_adult_division" text,
"2013_bafa_adult_flag_division" text,
"2013_bafa_junior_division" t... |
<|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,
"catalog" text
);
Question: Records from Kontor Records from the catalog of Kontor446 was released in what format?
<|... |
<|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,
"catalog" text
);
Question: What date was the release that was Wrongun as the label?
<|assistant|>
SELECT "date" FROM... |
<|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,
"catalog" text
);
Question: Catalog Nebdj068 was released when?
<|assistant|>
SELECT "date" FROM "release_history" WH... |
<|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,
"catalog" text
);
Question: In what format was the release from the Nebt068 catalog on April 11, 2005 in?
<|assistant... |
<|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,
"catalog" text
);
Question: What region has the date of 2005 and Playground Music Scandinavia as a label?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_division" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
);
Question: What is the Result with a Venue that is filbert street?
<|assistant|>
SELECT "result"... |
<|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" text
);
Question: When did the Texans play BYE?
<|assistant|>
SELECT "date" FROM "schedule" WHERE "opponent"='... |
<|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" text
);
Question: Who did the Texans play when there were 70,724 people in attendance?
<|assistant|>
SELECT "o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "new_taxa" (
"name" text,
"novelty" text,
"status" text,
"authors" text,
"unit" text,
"location" text,
"notes" text
);
Question: Who has the status of jr synonym of protosialis casca?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "new_taxa" (
"name" text,
"novelty" text,
"status" text,
"authors" text,
"unit" text,
"location" text,
"notes" text
);
Question: Which writer is named mongolbittacus?
<|assistant|>
SELECT "a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"match_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
Question: What is the score of the game that had 359 people in attendance?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"match_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
Question: What is the home team of the game that ended with a score of 0-1?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"match_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
Question: How many people attended Match No. 31?
<|assistant|>
SELECT "attendance" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"match_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
Question: Who is the Home Team for Match No. 23?
<|assistant|>
SELECT "home_team" FROM "s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"match_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
Question: What is the score of the game with 1,125 people in attendance?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tv_channels" (
"channel" text,
"country" text,
"type" text,
"launched" text,
"description" text
);
Question: What is the Country with a Launched that is april 3, 1990?
<|assistant|>
SELECT "cou... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tv_channels" (
"channel" text,
"country" text,
"type" text,
"launched" text,
"description" text
);
Question: What is the Launched from a Country that is spain?
<|assistant|>
SELECT "launched" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_ministers_for_small_business" (
"order" real,
"minister" text,
"party_affiliation" text,
"prime_minister" text,
"term_start" text,
"term_end" text,
"term_in_office" text
);
Question... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "o" (
"player" text,
"nationality" text,
"position" text,
"years_in_orlando" text,
"school_club_team" text
);
Question: Which Years in Orlando has a Nationality of united states, and a Player of... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "o" (
"player" text,
"nationality" text,
"position" text,
"years_in_orlando" text,
"school_club_team" text
);
Question: Which Years in Orlando has a Nationality of united states, a Position of c... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "o" (
"player" text,
"nationality" text,
"position" text,
"years_in_orlando" text,
"school_club_team" text
);
Question: Which Years in Orlando has a Player of bo outlaw?
<|assistant|>
SELECT "ye... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "o" (
"player" text,
"nationality" text,
"position" text,
"years_in_orlando" text,
"school_club_team" text
);
Question: Which Years in Orlando has a School/Club Team of seattle?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "o" (
"player" text,
"nationality" text,
"position" text,
"years_in_orlando" text,
"school_club_team" text
);
Question: Which Nationality has a Position of center, and a Years in Orlando of 2010... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "o" (
"player" text,
"nationality" text,
"position" text,
"years_in_orlando" text,
"school_club_team" text
);
Question: Which Nationality has a School/Club Team of seattle?
<|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,
"record" text,
"game_site" text,
"attendance" real
);
Question: When did they play at Candlestick Park?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
Question: What is the average number of top-10s for events under 57... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
Question: What is the average number of top-10s for events with mor... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
Question: What is the average number of top-25s for events with les... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "locomotives" (
"number" real,
"builder" text,
"type" text,
"date" text,
"works_number" text
);
Question: Which Works number has a Builder of canadian engine & machinery company, and a Number sm... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "locomotives" (
"number" real,
"builder" text,
"type" text,
"date" text,
"works_number" text
);
Question: Which Works number has a Builder of avonside engine company, and a Type of 4-6-0, and a ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "locomotives" (
"number" real,
"builder" text,
"type" text,
"date" text,
"works_number" text
);
Question: Which Type has a Builder of avonside engine company, and a Number of 9?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "locomotives" (
"number" real,
"builder" text,
"type" text,
"date" text,
"works_number" text
);
Question: Which Date has a Type of 4-6-0, and a Number larger than 11?
<|assistant|>
SELECT "date"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "locomotives" (
"number" real,
"builder" text,
"type" text,
"date" text,
"works_number" text
);
Question: Which Builder has a Date of early 1871?
<|assistant|>
SELECT "builder" FROM "locomotives... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_four" (
"date" text,
"time" text,
"home" text,
"away" text,
"score" text,
"ground" text
);
Question: What ist he Home with a Score that is 42-64?
<|assistant|>
SELECT "home" FROM "round... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_four" (
"date" text,
"time" text,
"home" text,
"away" text,
"score" text,
"ground" text
);
Question: What is the Home with a Time that is 12:00?
<|assistant|>
SELECT "home" FROM "round_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_four" (
"date" text,
"time" text,
"home" text,
"away" text,
"score" text,
"ground" text
);
Question: What is the Ground with a Score that is 49-80?
<|assistant|>
SELECT "ground" FROM "r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"march" real,
"opponent" text,
"score" text,
"record" text
);
Question: What's the smallest March when the record is 22-12-6?
<|assistant|>
SELECT MIN("marc... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"march" real,
"opponent" text,
"score" text,
"record" text
);
Question: Which record's march was 26?
<|assistant|>
SELECT "record" FROM "schedule_and_result... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "league_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"points_difference" text,
"tries_for" text,
"tries_against" text,
"try_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "league_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"points_difference" text,
"tries_for" text,
"tries_against" text,
"try_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "league_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"points_difference" text,
"tries_for" text,
"tries_against" text,
"try_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the highest Total for the rank 12, and gold less than 0?
<|assistant|>
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.