text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "south_australia" (
"team" text,
"coach" text,
"home_ground" text,
"location" text,
"founded" text
);
Question: Who is the coach of the team from Port Pirie?
<|assistant|>
SELECT "coach" FROM "s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "south_australia" (
"team" text,
"coach" text,
"home_ground" text,
"location" text,
"founded" text
);
Question: Who is the coach of the team with home ground at Club Cove?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "south_australia" (
"team" text,
"coach" text,
"home_ground" text,
"location" text,
"founded" text
);
Question: Which team was founded in 1970?
<|assistant|>
SELECT "team" FROM "south_australia"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "acharyas" (
"acharya_number" real,
"name_of_acharya" text,
"born_on" text,
"became_acharya_on" text,
"death" text,
"term" text
);
Question: When did acharya shree koshalendraprasadji maharaj ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "acharyas" (
"acharya_number" real,
"name_of_acharya" text,
"born_on" text,
"became_acharya_on" text,
"death" text,
"term" text
);
Question: What is the term of acharya shree vasudevprasadji m... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"location" text
);
Question: What was the event where justin robbins had ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"location" text
);
Question: Where was the location where justin robbins ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"location" text
);
Question: What was the method of resolution for the fi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_goalscorers" (
"name" text,
"years" text,
"regular_season" real,
"playoffs" real,
"total" real
);
Question: A total larger than 302 and playoffs of 35 also list the total of regular seasons... |
<|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: What is the college/junior/club team (league) of lw position... |
<|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: Who is the lw position player from a round greater than 10?
... |
<|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: Who is the player from round 8?
<|assistant|>
SELECT "player... |
<|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: What is the nationality of the player from round 7?
<|assist... |
<|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: What is the nationality of the player from round 5?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_current_northeast_governors" (
"governor" text,
"state" text,
"past" text,
"party" text,
"elected_assumed_office" real,
"seat_up" real
);
Question: What state had an elected/assumed o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_2_2009_2010_weekly_ratings" (
"episode" text,
"air_date" text,
"timeslot" text,
"18_49" text,
"viewers" real
);
Question: What was the air date of the episode that has an 18-49 of 2.2/7?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_2_2009_2010_weekly_ratings" (
"episode" text,
"air_date" text,
"timeslot" text,
"18_49" text,
"viewers" real
);
Question: What was the air date of 'Gary tries to do it all'?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_2_2009_2010_weekly_ratings" (
"episode" text,
"air_date" text,
"timeslot" text,
"18_49" text,
"viewers" real
);
Question: What is the highest number of viewers for the episode that has a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_2_2009_2010_weekly_ratings" (
"episode" text,
"air_date" text,
"timeslot" text,
"18_49" text,
"viewers" real
);
Question: What was the timeslot for the episode with less than 6.76 viewer... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_2_2009_2010_weekly_ratings" (
"episode" text,
"air_date" text,
"timeslot" text,
"18_49" text,
"viewers" real
);
Question: What is the timeslot for the episode with an 18-49 of 2.2/7?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_2_2009_2010_weekly_ratings" (
"episode" text,
"air_date" text,
"timeslot" text,
"18_49" text,
"viewers" real
);
Question: What is the timeslot for 'gary has to choose' with an 18-49 of 1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_women_s_teams" (
"institution" text,
"location" text,
"nickname" text,
"enrollment" real,
"established" real
);
Question: What is the location of the university that was established in ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_women_s_teams" (
"institution" text,
"location" text,
"nickname" text,
"enrollment" real,
"established" real
);
Question: What year was the team with the nickname pride established?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_women_s_teams" (
"institution" text,
"location" text,
"nickname" text,
"enrollment" real,
"established" real
);
Question: What is the enrollment of the university established in or afte... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men_s_50_km" (
"winner" text,
"country" text,
"winter_olympics" real,
"fis_nordic_world_ski_championships" text,
"holmenkollen" text
);
Question: What country was ole ellefsæter from?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men_s_50_km" (
"winner" text,
"country" text,
"winter_olympics" real,
"fis_nordic_world_ski_championships" text,
"holmenkollen" text
);
Question: Who won the FIS Nordic World Ski Championships ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" text
);
Question: For a country of Spain, place of t6, what is the Money ($)?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" text
);
Question: Which country has a to par of e?
<|assistant|>
SELECT "country" FROM "final_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" text
);
Question: Which player is from Australia, and has a place of t9?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" text
);
Question: What was the place for player John Merrick?
<|assistant|>
SELECT "place" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" text
);
Question: Which country had a place of t1, as well as a score of 72-68-70-73=283?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
Question: What place has jack renner as the player?
<|assistant|>
SELECT "place" FROM "first_round" WH... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
Question: What to par has The United States as the country, t8 as the place, and tommy valentine as th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
Question: What to par has 66 as the score?
<|assistant|>
SELECT "to_par" FROM "first_round" WHERE "sco... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "torneo_clausura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
Question: Mean of played with ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "torneo_clausura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
Question: The highest position... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "torneo_clausura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
Question: The highest draws wi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "senate" (
"senator" text,
"party" text,
"district" real,
"home_town" text,
"took_office" real
);
Question: Which Home Town has a Took Office of 1983, and a District larger than 15?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "senate" (
"senator" text,
"party" text,
"district" real,
"home_town" text,
"took_office" real
);
Question: Which Senator has a Party of republican, a Home Town of houston, and a District of 7?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "senate" (
"senator" text,
"party" text,
"district" real,
"home_town" text,
"took_office" real
);
Question: Which Home Town has a Senator of dan shelley?
<|assistant|>
SELECT "home_town" FROM "s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "senate" (
"senator" text,
"party" text,
"district" real,
"home_town" text,
"took_office" real
);
Question: Which Took Office has a Party of democratic, a Home Town of victoria, and a District s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "senate" (
"senator" text,
"party" text,
"district" real,
"home_town" text,
"took_office" real
);
Question: Which Took Office has a District of 29?
<|assistant|>
SELECT AVG("took_office") FROM "... |
<|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" text,
"grid" real
);
Question: What are the average Laps on Grid 15?
<|assistant|>
SELECT AVG("laps") FROM "125cc_... |
<|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" text,
"grid" real
);
Question: What is the lowest number of Laps that have a Time of +24.440, and a Grid higher th... |
<|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" text,
"grid" real
);
Question: What is the highest number of Laps that have a Time of +18.366, and a Grid lower th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" text,
"series" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" real,
"position" text
);
Question: What is the lowest Wi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" text,
"series" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" real,
"position" text
);
Question: What is Position, whe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" text,
"series" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" real,
"position" text
);
Question: What is the sum of Ra... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" text,
"series" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" real,
"position" text
);
Question: What is the average P... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" text,
"series" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" real,
"position" text
);
Question: What is the total num... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_member_schools" (
"school" text,
"location" text,
"enrolment" real,
"founded" real,
"denomination" text,
"boys_girls" text,
"day_boarding" text,
"year_entered_competition" real
);
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_member_schools" (
"school" text,
"location" text,
"enrolment" real,
"founded" real,
"denomination" text,
"boys_girls" text,
"day_boarding" text,
"year_entered_competition" real
);
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: How many to par in England?
<|assistant|>
SELECT "to_par" FROM "second_round" WHERE "countr... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: Where is David Frost from?
<|assistant|>
SELECT "place" FROM "second_round" WHERE "player"=... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: Which country earned place T3 with a score of 70-68=138?
<|assistant|>
SELECT "country" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: Which country had a score of 69-67=136?
<|assistant|>
SELECT "country" FROM "second_round" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: How many to par for Greg Norman?
<|assistant|>
SELECT "to_par" FROM "second_round" WHERE "p... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "special_editions" (
"title" text,
"parent_magazine" text,
"magazine_type" text,
"frequency" text,
"magazine_run" text
);
Question: What is the parent magazine of Dengeki g's festival! deluxe?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "special_editions" (
"title" text,
"parent_magazine" text,
"magazine_type" text,
"frequency" text,
"magazine_run" text
);
Question: How often does Dengeki girl's style come out?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "special_editions" (
"title" text,
"parent_magazine" text,
"magazine_type" text,
"frequency" text,
"magazine_run" text
);
Question: What titles come out monthly?
<|assistant|>
SELECT "title" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "special_editions" (
"title" text,
"parent_magazine" text,
"magazine_type" text,
"frequency" text,
"magazine_run" text
);
Question: What is the parent magazine for Dengeki 5pb.?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "special_editions" (
"title" text,
"parent_magazine" text,
"magazine_type" text,
"frequency" text,
"magazine_run" text
);
Question: What is the magazine type that ran from March 3, 2009–February... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "special_editions" (
"title" text,
"parent_magazine" text,
"magazine_type" text,
"frequency" text,
"magazine_run" text
);
Question: What is the frequency for the magazine that runs September 2, ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What is the highest number of laps with a +1:23.297 time/retired and a grid larger than 4?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What is the time/retired with a toyota constructor and a 5 grid?
<|assistant|>
SELECT "time... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What is the average number of laps with 16 grids?
<|assistant|>
SELECT AVG("laps") FROM "ra... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "university_location_date_established" (
"university" text,
"location" text,
"established" real,
"endowment_as_of_2008" text,
"campus_area_acres" real,
"kiplinger_s_top_100_values" text,
"enr... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "university_location_date_established" (
"university" text,
"location" text,
"established" real,
"endowment_as_of_2008" text,
"campus_area_acres" real,
"kiplinger_s_top_100_values" text,
"enr... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
Question: On what day was the attendance that had a Tie value of 40?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
Question: Who was the home team for the away game that Canvey Island played?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
Question: On what day was there a Home game for Gillingham?
<|assistant|>
SELECT "att... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: Which Pick has an Overall larger than 308, and a Posi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: How much Overall has a Position of wr, and a College ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: What is indiana college's average pick?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: Which College has an Overall of 308?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_20_10_10" (
"outcome" text,
"date" text,
"championship" text,
"surface" text,
"opponent" text,
"score" text
);
Question: What was the surface for the opponent Marcos Baghdatis?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2003_2009" (
"poll_year" text,
"winner" text,
"second" text,
"third" text,
"fourth" text,
"fifth" text,
"sixth" text,
"seventh" text,
"eighth" text,
"ninth" text,
"tenth" text
);
Qu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2003_2009" (
"poll_year" text,
"winner" text,
"second" text,
"third" text,
"fourth" text,
"fifth" text,
"sixth" text,
"seventh" text,
"eighth" text,
"ninth" text,
"tenth" text
);
Qu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2003_2009" (
"poll_year" text,
"winner" text,
"second" text,
"third" text,
"fourth" text,
"fifth" text,
"sixth" text,
"seventh" text,
"eighth" text,
"ninth" text,
"tenth" text
);
Qu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2003_2009" (
"poll_year" text,
"winner" text,
"second" text,
"third" text,
"fourth" text,
"fifth" text,
"sixth" text,
"seventh" text,
"eighth" text,
"ninth" text,
"tenth" text
);
Qu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2003_2009" (
"poll_year" text,
"winner" text,
"second" text,
"third" text,
"fourth" text,
"fifth" text,
"sixth" text,
"seventh" text,
"eighth" text,
"ninth" text,
"tenth" text
);
Qu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"location_attendance" text,
"record" text
);
Question: What average game has Jan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"location_attendance" text,
"record" text
);
Question: What score has january 19... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"location_attendance" text,
"record" text
);
Question: What is the loaction atte... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"location_attendance" text,
"record" text
);
Question: What is the highest game ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"location_attendance" text,
"record" text
);
Question: What is the highest rebou... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinals" (
"heat" real,
"lane" real,
"name" text,
"country" text,
"mark" text
);
Question: What is the highest lane value for a mark of 2:02.27 NR, with heats under 2?
<|assistant|>
SELECT M... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinals" (
"heat" real,
"lane" real,
"name" text,
"country" text,
"mark" text
);
Question: What is the mark for the runner from Mozambique?
<|assistant|>
SELECT "mark" FROM "semifinals" WHER... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinals" (
"heat" real,
"lane" real,
"name" text,
"country" text,
"mark" text
);
Question: Who was in lane 6 with a mark of 2:05.58 SB?
<|assistant|>
SELECT "name" FROM "semifinals" WHERE "l... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nouns" (
"consonant_final_stem" text,
"example_k_ats_man" text,
"vowel_final_stem_truncating" text,
"example_mama_father" text,
"vowel_final_stem_non_truncating" text,
"example_sakartvelo_geor... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nouns" (
"consonant_final_stem" text,
"example_k_ats_man" text,
"vowel_final_stem_truncating" text,
"example_mama_father" text,
"vowel_final_stem_non_truncating" text,
"example_sakartvelo_geor... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nouns" (
"consonant_final_stem" text,
"example_k_ats_man" text,
"vowel_final_stem_truncating" text,
"example_mama_father" text,
"vowel_final_stem_non_truncating" text,
"example_sakartvelo_geor... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nouns" (
"consonant_final_stem" text,
"example_k_ats_man" text,
"vowel_final_stem_truncating" text,
"example_mama_father" text,
"vowel_final_stem_non_truncating" text,
"example_sakartvelo_geor... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nouns" (
"consonant_final_stem" text,
"example_k_ats_man" text,
"vowel_final_stem_truncating" text,
"example_mama_father" text,
"vowel_final_stem_non_truncating" text,
"example_sakartvelo_geor... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nouns" (
"consonant_final_stem" text,
"example_k_ats_man" text,
"vowel_final_stem_truncating" text,
"example_mama_father" text,
"vowel_final_stem_non_truncating" text,
"example_sakartvelo_geor... |
<|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 round was Ken Irvin drafted?
<|assistant|>
SELECT MAX("round") FROM "nfl_draft"... |
<|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: In what round was a player from Michigan selected?
<|assistant|>
SELECT MAX("round")... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.