text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "torneo_apertura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
Question: Which Losses has Sco... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_season" (
"season" text,
"race" real,
"podium" real,
"pole" real,
"f_lap" real
);
Question: On Race 14 when the FLap is larger than 1, what is the podium number?
<|assistant|>
SELECT COUNT("... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_season" (
"season" text,
"race" real,
"podium" real,
"pole" real,
"f_lap" real
);
Question: When the Flap is less than 15 and the podium is larger than 11, what is the pole?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_season" (
"season" text,
"race" real,
"podium" real,
"pole" real,
"f_lap" real
);
Question: When the pole is larger than 0 and the podium is less than 44, with a race number less than 16, wh... |
<|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: What is the average Week, when Opponent is Minnesota Vikings?
<|assistant|>
SELECT AVG("week... |
<|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: What is Opponent, when Attendance is 58,836?
<|assistant|>
SELECT "opponent" FROM "schedule"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"tyres" text,
"points" text
);
Question: Which engine of Rob Walker Racing Team has 47 ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"tyres" text,
"points" text
);
Question: Which entrant has 49 points and a Mclaren M7A ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"tyres" text,
"points" text
);
Question: How many points did Bob Gerard Racing have in ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"tyres" text,
"points" text
);
Question: Which entrant had a Brabham BT10 chassis befor... |
<|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: What is the Attendance on September 28, 1997?
<|assistant|>
SELECT "attendance" FROM "schedu... |
<|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: What was the Opponent on August 31, 1997?
<|assistant|>
SELECT "opponent" FROM "schedule" WH... |
<|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: What was the Attendance on Week 10?
<|assistant|>
SELECT "attendance" FROM "schedule" WHERE ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_standings" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"attendance" real,
"record" text,
"points" real
);
Question: How many Points have a Home of pittsburgh, and a Scor... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_standings" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"attendance" real,
"record" text,
"points" real
);
Question: Which Visitor has an Attendance larger than 10,959, a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_standings" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"attendance" real,
"record" text,
"points" real
);
Question: Which Date has a Record of 7–7–1?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_standings" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"attendance" real,
"record" text,
"points" real
);
Question: Which Date has a Record of 11–10–2?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" text,
"series" text,
"team" text,
"races" text,
"wins" text,
"poles" text,
"f_laps" text,
"podiums" text,
"points" text,
"position" text
);
Question: Which ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" text,
"series" text,
"team" text,
"races" text,
"wins" text,
"poles" text,
"f_laps" text,
"podiums" text,
"points" text,
"position" text
);
Question: What i... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" text,
"series" text,
"team" text,
"races" text,
"wins" text,
"poles" text,
"f_laps" text,
"podiums" text,
"points" text,
"position" text
);
Question: Which ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" text,
"series" text,
"team" text,
"races" text,
"wins" text,
"poles" text,
"f_laps" text,
"podiums" text,
"points" text,
"position" text
);
Question: What i... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" text,
"series" text,
"team" text,
"races" text,
"wins" text,
"poles" text,
"f_laps" text,
"podiums" text,
"points" text,
"position" text
);
Question: What i... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" text,
"series" text,
"team" text,
"races" text,
"wins" text,
"poles" text,
"f_laps" text,
"podiums" text,
"points" text,
"position" text
);
Question: What i... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
Question: Can you tell me the Opponent ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
Question: Can you tell me the Time that... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
Question: Can you tell me the lowest Ro... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"name" text,
"built" text,
"listed" text,
"location" text,
"county" text
);
Question: When was la vista built?
<|assistant|>
SELECT "built" FROM "see_also" WHERE "location"='la vist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"name" text,
"built" text,
"listed" text,
"location" text,
"county" text
);
Question: When was the sargent bridge built?
<|assistant|>
SELECT "built" FROM "see_also" WHERE "name"='s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"name" text,
"built" text,
"listed" text,
"location" text,
"county" text
);
Question: What's the location for the country of platte?
<|assistant|>
SELECT "location" FROM "see_also" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"name" text,
"built" text,
"listed" text,
"location" text,
"county" text
);
Question: what is the listing date for nuckolls county?
<|assistant|>
SELECT "listed" FROM "see_also" WHE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"name" text,
"built" text,
"listed" text,
"location" text,
"county" text
);
Question: what's the listing date for the verdigris creek bridge in royal of antelope county?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"name" text,
"built" text,
"listed" text,
"location" text,
"county" text
);
Question: what's the county name for the republican river bridge listed on 1992-06-29?
<|assistant|>
SELE... |
<|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" real
);
Question: what is the country when the money ($) is more than 3,600 and player is tom ... |
<|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" real
);
Question: what is the to par when the place is t10 and the score is 72-74-71-69=286?
<... |
<|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" real
);
Question: what is the to par when the player is hale irwin?
<|assistant|>
SELECT "to_p... |
<|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" real
);
Question: what is the to par for Dave hill?
<|assistant|>
SELECT "to_par" 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" real
);
Question: what is the place when the score is 68-67-73-68=276?
<|assistant|>
SELECT "p... |
<|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: Can you tell me the Date that has the Week smaller than 13, and the Opponent of green bay pa... |
<|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: Can you tell me the average Attendance that has the Opponent of new orleans saints, and the ... |
<|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: Can you tell me the Attendance that has the Opponent of new york giants?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "demographics" (
"municipalities_of_the_city" text,
"area_km" text,
"population_censo_2007_hab" text,
"population_under_1_year_old_censo_2007_hab" text,
"households_2007" text,
"density_hab_km"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "demographics" (
"municipalities_of_the_city" text,
"area_km" text,
"population_censo_2007_hab" text,
"population_under_1_year_old_censo_2007_hab" text,
"households_2007" text,
"density_hab_km"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "demographics" (
"municipalities_of_the_city" text,
"area_km" text,
"population_censo_2007_hab" text,
"population_under_1_year_old_censo_2007_hab" text,
"households_2007" text,
"density_hab_km"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "demographics" (
"municipalities_of_the_city" text,
"area_km" text,
"population_censo_2007_hab" text,
"population_under_1_year_old_censo_2007_hab" text,
"households_2007" text,
"density_hab_km"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_13" (
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text,
"crowd" real,
"box_score" text,
"report" text
);
Question: What's the report about townsville croc... |
<|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 record of game 67?
<|assistant|>
SELECT "record" FROM "schedule_and_resul... |
<|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 score of the game against the Boston Bruins and after game 68?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "births_and_deaths" (
"average_population_x_1000" text,
"live_births_1" text,
"deaths_1" text,
"natural_change_1" text,
"crude_birth_rate_per_1000" real,
"crude_death_rate_per_1000" real,
"na... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "births_and_deaths" (
"average_population_x_1000" text,
"live_births_1" text,
"deaths_1" text,
"natural_change_1" text,
"crude_birth_rate_per_1000" real,
"crude_death_rate_per_1000" real,
"na... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "births_and_deaths" (
"average_population_x_1000" text,
"live_births_1" text,
"deaths_1" text,
"natural_change_1" text,
"crude_birth_rate_per_1000" real,
"crude_death_rate_per_1000" real,
"na... |
<|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: Which Player has a To par of e, and a Country of united states?
<|assistant|>
SELECT "player... |
<|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: Which Place has a Score smaller than 72, and a To par of −1, and a Country of spain?
<|assis... |
<|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 was john huston's score?
<|assistant|>
SELECT "score" FROM "first_round" WHERE "player"... |
<|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 was willie wood's to par?
<|assistant|>
SELECT "to_par" FROM "first_round" WHERE "playe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_2" (
"date" text,
"city" text,
"event" text,
"winner" text,
"prize" text
);
Question: What is the Prize amount of Winner Dominik Nitsche?
<|assistant|>
SELECT "prize" FROM "season_2" WHE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_2" (
"date" text,
"city" text,
"event" text,
"winner" text,
"prize" text
);
Question: What is the Winner of the Event in Nuevo Vallarta?
<|assistant|>
SELECT "winner" FROM "season_2" WHE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_2" (
"date" text,
"city" text,
"event" text,
"winner" text,
"prize" text
);
Question: What is the Date of the Event in Punta del Este?
<|assistant|>
SELECT "date" FROM "season_2" WHERE "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_2" (
"date" text,
"city" text,
"event" text,
"winner" text,
"prize" text
);
Question: What is the Date of the Event with a Prize of $141,426?
<|assistant|>
SELECT "date" FROM "season_2" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_state_leaders_in_840s_bc" (
"type" text,
"name" text,
"title" text,
"royal_house" text,
"from" text
);
Question: What is the title of ahaziah?
<|assistant|>
SELECT "title" FROM "list_of... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_state_leaders_in_840s_bc" (
"type" text,
"name" text,
"title" text,
"royal_house" text,
"from" text
);
Question: What is the type of the king title?
<|assistant|>
SELECT "type" FROM "li... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_state_leaders_in_840s_bc" (
"type" text,
"name" text,
"title" text,
"royal_house" text,
"from" text
);
Question: What is the name of the queen regnant?
<|assistant|>
SELECT "name" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "250cc_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time" text,
"grid" real
);
Question: What is the total number of Grid, when Rider is Aleix Espargaro?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "250cc_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time" text,
"grid" real
);
Question: What is the Rider, when Grid is less than 16, when Manufacturer is Aprilia, and whe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "250cc_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time" text,
"grid" real
);
Question: What is the average Laps, when Grid is 15?
<|assistant|>
SELECT AVG("laps") FROM "2... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "250cc_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time" text,
"grid" real
);
Question: What is the Manufacturer, when Laps is 26, and when Rider is Aleix Espargaro?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sixth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: What is Home Team, when Date is "13 March 1985", and when Tie No is "1"?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sixth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: What is Date, when Away Team is "Ipswich Town"?
<|assistant|>
SELECT "date" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sixth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: What is Tie No, when Away Team is "Millwall"?
<|assistant|>
SELECT "tie_no" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sixth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: What is Score, when Date is "13 March 1985", and when Away Team is "Millwall"?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sixth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: What is Date, when Away Team is "Liverpool"?
<|assistant|>
SELECT "date" FROM "si... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sixth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: What is Score, when Home Team is "Manchester United"?
<|assistant|>
SELECT "score... |
<|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 "1929_30_season_as_a_three_year_old" (
"result" text,
"race" text,
"distance" text,
"weight" real,
"winner_or_2nd" text,
"pos_n" text
);
Question: What is the result of the ajc craven plate (w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1929_30_season_as_a_three_year_old" (
"result" text,
"race" text,
"distance" text,
"weight" real,
"winner_or_2nd" text,
"pos_n" text
);
Question: What is the distance of the race with amounis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1929_30_season_as_a_three_year_old" (
"result" text,
"race" text,
"distance" text,
"weight" real,
"winner_or_2nd" text,
"pos_n" text
);
Question: What is the result of the sajc king's cup rac... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1929_30_season_as_a_three_year_old" (
"result" text,
"race" text,
"distance" text,
"weight" real,
"winner_or_2nd" text,
"pos_n" text
);
Question: What is the winner or 2nd of the race with a ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1929_30_season_as_a_three_year_old" (
"result" text,
"race" text,
"distance" text,
"weight" real,
"winner_or_2nd" text,
"pos_n" text
);
Question: What is the sum of the weight of the race wit... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1929_30_season_as_a_three_year_old" (
"result" text,
"race" text,
"distance" text,
"weight" real,
"winner_or_2nd" text,
"pos_n" text
);
Question: What is the race with a 10f distance and moll... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_county" (
"county" text,
"total" real,
"gorenum" real,
"gorepct" text,
"bushnum" real,
"bushpct" text,
"othersnum" real,
"otherspct" text
);
Question: What is the highest number of Bus... |
<|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 "record_vs_other_opponents_at_least_15_ga" (
"missouri_vs" text,
"overall_record" text,
"at_columbia" text,
"at_opponent_s_venue" text,
"at_neutral_site" text,
"last_5_meetings" text,
"last_1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "record_vs_other_opponents_at_least_15_ga" (
"missouri_vs" text,
"overall_record" text,
"at_columbia" text,
"at_opponent_s_venue" text,
"at_neutral_site" text,
"last_5_meetings" text,
"last_1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text
);
Question: What is the total number of rounds at 5:36?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text
);
Question: What is the total number of rounds with a 4-0 re... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_population" (
"province" text,
"population" real,
"region" text,
"name_of_city" text,
"districts" real
);
Question: Which district is in the province of Piura?
<|assistant|>
SELECT "district... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_population" (
"province" text,
"population" real,
"region" text,
"name_of_city" text,
"districts" real
);
Question: What is the population of Chimbote?
<|assistant|>
SELECT SUM("population")... |
<|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 result of the game that was played at Detroit Lions?
<|assistant|>
SELECT "resul... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_1_1996_97" (
"series_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: What series number was directed by milan cheylov and written by... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_1_1996_97" (
"series_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: What series # had an original air date of november 30, 1996?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "northwest_germanic" (
"class" text,
"part_1" text,
"part_2" text,
"part_3" text,
"part_4" text
);
Question: What was part 4 when part 3 was *hleupun?
<|assistant|>
SELECT "part_4" FROM "northwe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "northwest_germanic" (
"class" text,
"part_1" text,
"part_2" text,
"part_3" text,
"part_4" text
);
Question: What was the class when part 2 was *hēt?
<|assistant|>
SELECT "class" FROM "northwest... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "northwest_germanic" (
"class" text,
"part_1" text,
"part_2" text,
"part_3" text,
"part_4" text
);
Question: What was the class when part 4 was *rādanaz?
<|assistant|>
SELECT "class" FROM "north... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "northwest_germanic" (
"class" text,
"part_1" text,
"part_2" text,
"part_3" text,
"part_4" text
);
Question: What was part 2 when part 4 was *blōtanaz?
<|assistant|>
SELECT "part_2" FROM "northw... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "northwest_germanic" (
"class" text,
"part_1" text,
"part_2" text,
"part_3" text,
"part_4" text
);
Question: What was part 2 when part 4 was *haldanaz?
<|assistant|>
SELECT "part_2" FROM "northw... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "northwest_germanic" (
"class" text,
"part_1" text,
"part_2" text,
"part_3" text,
"part_4" text
);
Question: What was the class when part 3 was *heldun?
<|assistant|>
SELECT "class" FROM "northw... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "royal_league_2005" (
"date" text,
"venue" text,
"opponents" text,
"score" text,
"round" text
);
Question: What is the Round din Ullevaal?
<|assistant|>
SELECT "round" FROM "royal_league_2005" W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "royal_league_2005" (
"date" text,
"venue" text,
"opponents" text,
"score" text,
"round" text
);
Question: What Round is in Ullevaal?
<|assistant|>
SELECT "round" FROM "royal_league_2005" WHERE ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "royal_league_2005" (
"date" text,
"venue" text,
"opponents" text,
"score" text,
"round" text
);
Question: In what Venue was the Score 1-1?
<|assistant|>
SELECT "venue" FROM "royal_league_2005" ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.