text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "division_ii" (
"year" real,
"champion" text,
"score" text,
"runner_up" text,
"location" text,
"semi_finalist_num1" text,
"semi_finalist_num2" text
);
Question: Which champion was from the l... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "division_ii" (
"year" real,
"champion" text,
"score" text,
"runner_up" text,
"location" text,
"semi_finalist_num1" text,
"semi_finalist_num2" text
);
Question: Which champion got a score of... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "division_ii" (
"year" real,
"champion" text,
"score" text,
"runner_up" text,
"location" text,
"semi_finalist_num1" text,
"semi_finalist_num2" text
);
Question: Who was champion in 2005 wher... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "division_ii" (
"year" real,
"champion" text,
"score" text,
"runner_up" text,
"location" text,
"semi_finalist_num1" text,
"semi_finalist_num2" text
);
Question: Which runner-up placed in a y... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fairbanks_morse" (
"prr_class" text,
"builder_s_model" text,
"build_date" text,
"total_produced" real,
"wheel_arrangement" text,
"service" text,
"power_output" text
);
Question: What is the... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fairbanks_morse" (
"prr_class" text,
"builder_s_model" text,
"build_date" text,
"total_produced" real,
"wheel_arrangement" text,
"service" text,
"power_output" text
);
Question: What is the... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fairbanks_morse" (
"prr_class" text,
"builder_s_model" text,
"build_date" text,
"total_produced" real,
"wheel_arrangement" text,
"service" text,
"power_output" text
);
Question: When was th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fairbanks_morse" (
"prr_class" text,
"builder_s_model" text,
"build_date" text,
"total_produced" real,
"wheel_arrangement" text,
"service" text,
"power_output" text
);
Question: When was th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "team_representatives" (
"player" text,
"w_l_total" text,
"w_l_singles" text,
"w_l_doubles" text,
"ties" real,
"debut" real,
"years_played" real
);
Question: what is the debut when the play ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "outdoor_sports" (
"league" text,
"sport" text,
"season" text,
"num_of_teams" real,
"games" real,
"total_attendance" text,
"average_attendance" real
);
Question: What was the average attenda... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "outdoor_sports" (
"league" text,
"sport" text,
"season" text,
"num_of_teams" real,
"games" real,
"total_attendance" text,
"average_attendance" real
);
Question: What was the total number of... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "outdoor_sports" (
"league" text,
"sport" text,
"season" text,
"num_of_teams" real,
"games" real,
"total_attendance" text,
"average_attendance" real
);
Question: When was the season that had... |
<|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_num" text
);
Question: What is the label for the album with a catalog number of 83061-2?
<|assistant|>
SELEC... |
<|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_num" text
);
Question: What is the catalog number of the album whose region is the United Kingdom?
<|assista... |
<|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_num" text
);
Question: What is the region for the album with a catalog number of 7567-83061-2?
<|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_num" text
);
Question: What is the label for the album with a catalog number of 83061-4?
<|assistant|>
SELEC... |
<|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_num" text
);
Question: What is the catalog number of the album whose label is Atlantic Records and region is... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "a" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: What school/club team did the center Rafael Araújo play for?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "a" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: What is the nationality of the guard who played for Florida International?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "a" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: What player had the position guard/forward?
<|assistant|>
SELECT "player" FR... |
<|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: Who is the driver for laps of 45
<|assistant|>
SELECT "driver" FROM "race" WHERE "laps"=45;... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "december" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
);
Question: Who was the visiting team on December 17?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "december" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
);
Question: How many people were at Washington's home game again... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "december" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
);
Question: Who was the home team that played against the visiti... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
Question: What was total attendance on the day they went 17-7?
<|assistant|>
SELECT CO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
Question: What was the score on April 22?
<|assistant|>
SELECT "score" FROM "game_log"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wushu" (
"athlete" text,
"event" text,
"round_of_16" text,
"quarterfinal" text,
"semifinal" text,
"final" text
);
Question: What event had zhamash l 1–2 in the quarterfinal?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wushu" (
"athlete" text,
"event" text,
"round_of_16" text,
"quarterfinal" text,
"semifinal" text,
"final" text
);
Question: Hossein Ojaghi participated in what semifinal.
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wushu" (
"athlete" text,
"event" text,
"round_of_16" text,
"quarterfinal" text,
"semifinal" text,
"final" text
);
Question: Alireza Rouzbahani did not advance to the quarterfinal in what even... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"season" text,
"games" real,
"lost" real,
"tied" real,
"points" real,
"goals_for" real,
"goals_against" real,
"standing" text
);
Question: How many games have more than ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"season" text,
"games" real,
"lost" real,
"tied" real,
"points" real,
"goals_for" real,
"goals_against" real,
"standing" text
);
Question: What is the lowest tie with le... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"nationality" text,
"team" text,
"college" text
);
Question: What is the team with position G?
<|assistant|>
SELECT "team... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"nationality" text,
"team" text,
"college" text
);
Question: What is the player from Illinois?
<|assistant|>
SELECT "play... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fire_station_locations_and_apparatus" (
"station" text,
"engine_company" text,
"ambulance" text,
"address" text,
"phone" text
);
Question: What is the phone number of the station located at 53 ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fire_station_locations_and_apparatus" (
"station" text,
"engine_company" text,
"ambulance" text,
"address" text,
"phone" text
);
Question: What is the name of the engine company that is located... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "november" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
);
Question: What was the Record of the game in which the Trail B... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What was the date of the friendly match, ending in a result of 1-1?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What was the result of the game held at the As-Salt venue?
<|assistant|>
SELECT "r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
Question: What was the team's record on May 17?
<|assistant|>
SELECT "record" FROM "ga... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fed_cup_doubles_performances_10" (
"edition" real,
"zone" text,
"round" text,
"date" text,
"against" text,
"surface" text,
"partner" text,
"opponents" text,
"result" text
);
Question: W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fed_cup_doubles_performances_10" (
"edition" real,
"zone" text,
"round" text,
"date" text,
"against" text,
"surface" text,
"partner" text,
"opponents" text,
"result" text
);
Question: W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fed_cup_doubles_performances_10" (
"edition" real,
"zone" text,
"round" text,
"date" text,
"against" text,
"surface" text,
"partner" text,
"opponents" text,
"result" text
);
Question: W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fed_cup_doubles_performances_10" (
"edition" real,
"zone" text,
"round" text,
"date" text,
"against" text,
"surface" text,
"partner" text,
"opponents" text,
"result" text
);
Question: W... |
<|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: On... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_wickets_in_the_tournament" (
"player" text,
"overs" text,
"runs" text,
"wkts" text,
"mdns" text,
"econ" text
);
Question: Tell me the player with econ of 4.23
<|assistant|>
SELECT "playe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_wickets_in_the_tournament" (
"player" text,
"overs" text,
"runs" text,
"wkts" text,
"mdns" text,
"econ" text
);
Question: Tell me the runs for b lee
<|assistant|>
SELECT "runs" FROM "mos... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_wickets_in_the_tournament" (
"player" text,
"overs" text,
"runs" text,
"wkts" text,
"mdns" text,
"econ" text
);
Question: Tell me the player with overs of 87.4
<|assistant|>
SELECT "play... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_wickets_in_the_tournament" (
"player" text,
"overs" text,
"runs" text,
"wkts" text,
"mdns" text,
"econ" text
);
Question: Tell me the runs for econ of 3.63
<|assistant|>
SELECT "runs" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_wickets_in_the_tournament" (
"player" text,
"overs" text,
"runs" text,
"wkts" text,
"mdns" text,
"econ" text
);
Question: Tell me the wkts for econ of 4.23
<|assistant|>
SELECT "wkts" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_wickets_in_the_tournament" (
"player" text,
"overs" text,
"runs" text,
"wkts" text,
"mdns" text,
"econ" text
);
Question: Tell me the overs for mdns of 4
<|assistant|>
SELECT "overs" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: If collingwood is playing away, who playe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the away teams score when they p... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What's the highest turnout when carlton w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which home team scored 15.11 (101)?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What away team played when the crowd was ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which away team scored 23.11 (149)?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "house_of_rohan_chabot" (
"name" text,
"birth" text,
"marriage" text,
"became_duke" text,
"ceased_to_be_duke" text,
"death" text,
"spouse" text
);
Question: On waht date did Antoinette Jeann... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_6" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is the Crowd number for the team tha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_6" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is the largest Crowd number for the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_6" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is the total Crowd number for the te... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_10" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What home team did South Melbourne play ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_10" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What did the home team score against the... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_10" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: In the Western Oval venue, what is the a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_10" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: When Richmond is the away team, what is ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1986_nfl_draft" (
"round" real,
"pick" real,
"name" text,
"position" text,
"school" text
);
Question: Who is the person from round 8?
<|assistant|>
SELECT "name" FROM "1986_nfl_draft" WHERE "ro... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1986_nfl_draft" (
"round" real,
"pick" real,
"name" text,
"position" text,
"school" text
);
Question: What is the round for Arizona with a pick over 100?
<|assistant|>
SELECT AVG("round") FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1986_nfl_draft" (
"round" real,
"pick" real,
"name" text,
"position" text,
"school" text
);
Question: What pick had a wide receiver named johnny holloway?
<|assistant|>
SELECT "pick" FROM "1986... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season_schedule" (
"date" text,
"home_team" text,
"score" text,
"visiting_team" text,
"stadium" text
);
Question: Which score has a Home Team of saskatoon accelerators?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season_schedule" (
"date" text,
"home_team" text,
"score" text,
"visiting_team" text,
"stadium" text
);
Question: Which Visiting Team has a Stadium of servus centre on march 7?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season_schedule" (
"date" text,
"home_team" text,
"score" text,
"visiting_team" text,
"stadium" text
);
Question: Which Visiting Team has a Stadium of servus centre?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "the_blitz_estimated_luftwaffe_sorties" (
"month_year" text,
"day_sorties_losses" text,
"night_sorties_losses" text,
"luftflotte_2_sorties" real,
"luftflotte_3_sorties" real,
"major_attacks" te... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What is the time/retired for grid 19?
<|assistant|>
SELECT "time_retired" FROM "c... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What is the grid total for bruce mclaren with over 73 laps?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "filmography" (
"year" real,
"film" text,
"director" text,
"producer" text,
"cinematographer" text
);
Question: What film was released in 1971?
<|assistant|>
SELECT "film" FROM "filmography" WHE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ippt_standards" (
"grade" text,
"points" real,
"sit_up_reps" text,
"standing_broad_jump_cm" text,
"chin_up_reps" text,
"shuttle_run_sec" text,
"2_4km_run_min_sec" text
);
Question: What gra... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ippt_standards" (
"grade" text,
"points" real,
"sit_up_reps" text,
"standing_broad_jump_cm" text,
"chin_up_reps" text,
"shuttle_run_sec" text,
"2_4km_run_min_sec" text
);
Question: What shu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"pick" real,
"round" text,
"player" text,
"position" text,
"school" text
);
Question: When was steve bartalo picked?
<|assistant|>
SELECT MAX("pick") FROM "nfl_draft" WHERE "player... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"pick" real,
"round" text,
"player" text,
"position" text,
"school" text
);
Question: What player is a cornerback?
<|assistant|>
SELECT "player" FROM "nfl_draft" WHERE "position"='... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_6" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the highest crowd turnout when t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_6" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which venue did the home team score 22.23... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_6" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Windy hill is the home to what team?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"date" text,
"opponents" text,
"score" text,
"competition" text,
"match_report" text
);
Question: What is the name of the competition with a score of 1-5?
<|assistant|>
SELECT "compe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"date" text,
"opponents" text,
"score" text,
"competition" text,
"match_report" text
);
Question: What is the name of the competition with opponents of Sv Werder Bremen and a score o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year" (
"year" text,
"league" text,
"reg_season" text,
"playoffs" text,
"avg_attendance" real
);
Question: What regular season result had an average attendance less than 942?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year" (
"year" text,
"league" text,
"reg_season" text,
"playoffs" text,
"avg_attendance" real
);
Question: Which league had a playoffs result of a lost semifinal?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year" (
"year" text,
"league" text,
"reg_season" text,
"playoffs" text,
"avg_attendance" real
);
Question: What regular season result had an average attendance bigger than 3,170?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "connecting_links" (
"county" text,
"name" text,
"length_miles" real,
"west_or_south_terminus" text,
"east_or_north_terminus" text
);
Question: what is the length (miles) when the east or north ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "connecting_links" (
"county" text,
"name" text,
"length_miles" real,
"west_or_south_terminus" text,
"east_or_north_terminus" text
);
Question: what is the length (miles) when the name is l-56g?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "connecting_links" (
"county" text,
"name" text,
"length_miles" real,
"west_or_south_terminus" text,
"east_or_north_terminus" text
);
Question: what is the name when the west or south terminus i... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" text,
"time_retired" text,
"grid" text
);
Question: What is the Time/Retired value for Driver Johnny Herbert with Constructor Benetton - Renaul... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" text,
"time_retired" text,
"grid" text
);
Question: What is the Time/Retired value for constructor Jordan - Peugeot with 66 laps and grid value... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" text,
"time_retired" text,
"grid" text
);
Question: What is the Time/Retired value of driver Pedro Diniz?
<|assistant|>
SELECT "time_retired" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" text,
"time_retired" text,
"grid" text
);
Question: Which driver has grid value of 18?
<|assistant|>
SELECT "driver" FROM "race" WHERE "grid"='... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" text,
"time_retired" text,
"grid" text
);
Question: What is the constructor with grid value 5?
<|assistant|>
SELECT "constructor" FROM "race" W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" text,
"time_retired" text,
"grid" text
);
Question: What is the grid value which has Time/Retired value of accident?
<|assistant|>
SELECT "grid... |
<|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" real,
"record" text
);
Question: Who was the leading scorer that was a visitor of the ... |
<|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" real,
"record" text
);
Question: Who is the leading scorer when they were at home of t... |
<|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" real,
"record" text
);
Question: Who was the visitor on January 19, 2008?
<|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" real,
"record" text
);
Question: What was the score when there was a visitor of Magic ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.