text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_table" (
"position" real,
"club" text,
"played" real,
"points" text,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_table" (
"position" real,
"club" text,
"played" real,
"points" text,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_table" (
"position" real,
"club" text,
"played" real,
"points" text,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_table" (
"position" real,
"club" text,
"played" real,
"points" text,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_winners" (
"year" real,
"fighter" text,
"nation_represented" text,
"sport" text,
"sanctioning_body_or_league" text,
"weight_class_represented_or_contested" text
);
Question: When did ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_winners" (
"year" real,
"fighter" text,
"nation_represented" text,
"sport" text,
"sanctioning_body_or_league" text,
"weight_class_represented_or_contested" text
);
Question: Which spo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_winners" (
"year" real,
"fighter" text,
"nation_represented" text,
"sport" text,
"sanctioning_body_or_league" text,
"weight_class_represented_or_contested" text
);
Question: What is t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_winners" (
"year" real,
"fighter" text,
"nation_represented" text,
"sport" text,
"sanctioning_body_or_league" text,
"weight_class_represented_or_contested" text
);
Question: Which nat... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"party" text,
"party_list_votes" real,
"vote_percentage" text,
"total_seats" text,
"seat_percentage" text
);
Question: What is the total number of seats of the Christian Democratic U... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"party" text,
"party_list_votes" real,
"vote_percentage" text,
"total_seats" text,
"seat_percentage" text
);
Question: What seat has a vote percentage of 100.0%
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list" (
"name" text,
"population_2011" real,
"population_2006" real,
"change_pct" real,
"area_km" real,
"population_density" real
);
Question: What was the area in Glenella with a population ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list" (
"name" text,
"population_2011" real,
"population_2006" real,
"change_pct" real,
"area_km" real,
"population_density" real
);
Question: What is the population density of Siglunes when ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners_of_the_virginia_derby_since_1998" (
"year" real,
"winner" text,
"jockey" text,
"trainer" text,
"owner" text,
"distance_miles" text,
"time" text
);
Question: Who was the trainer when... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners_of_the_virginia_derby_since_1998" (
"year" real,
"winner" text,
"jockey" text,
"trainer" text,
"owner" text,
"distance_miles" text,
"time" text
);
Question: What was the race time o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners_of_the_virginia_derby_since_1998" (
"year" real,
"winner" text,
"jockey" text,
"trainer" text,
"owner" text,
"distance_miles" text,
"time" text
);
Question: What jockey rode for Mic... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "contestants" (
"name" text,
"from" text,
"discipline" text,
"events_won_uk_series" real,
"events_won_us_series" real
);
Question: How many UK events won for the contestant that won under 1 US e... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "contestants" (
"name" text,
"from" text,
"discipline" text,
"events_won_uk_series" real,
"events_won_us_series" real
);
Question: How many US events did jason bennett win?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_standings" (
"season" real,
"overall" text,
"slalom" text,
"giant_slalom" text,
"super_g" text,
"downhill" text,
"combined" text
);
Question: Which downhill has 7 overalls?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_standings" (
"season" real,
"overall" text,
"slalom" text,
"giant_slalom" text,
"super_g" text,
"downhill" text,
"combined" text
);
Question: What super g was before 1998, had 2 gian... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_standings" (
"season" real,
"overall" text,
"slalom" text,
"giant_slalom" text,
"super_g" text,
"downhill" text,
"combined" text
);
Question: What is the combined of 2 overalls and 5... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_standings" (
"season" real,
"overall" text,
"slalom" text,
"giant_slalom" text,
"super_g" text,
"downhill" text,
"combined" text
);
Question: How many overalls has 1 combined and 24 ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "stage_results" (
"date" text,
"course" text,
"distance" text,
"winner" text,
"race_leader" text
);
Question: What Distance had a Race Leader in Km (mi)?
<|assistant|>
SELECT "distance" FROM "st... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_by_season_record" (
"season" text,
"games" real,
"lost" real,
"tied" text,
"points" real,
"goals_for" real,
"goals_against" real,
"standing" text
);
Question: What is the highest n... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rugby_wales_internationals_1987" (
"first_game" real,
"played" real,
"drawn" real,
"lost" real,
"percentage" text
);
Question: What is the average of games played with a percentage of 3.33% and... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rugby_wales_internationals_1987" (
"first_game" real,
"played" real,
"drawn" real,
"lost" real,
"percentage" text
);
Question: What is the total number of games played that correlates with a fi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rugby_wales_internationals_1987" (
"first_game" real,
"played" real,
"drawn" real,
"lost" real,
"percentage" text
);
Question: What is the highest number of draws that correlates with a percent... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
);
Question: What is the start value for rank 11?
<|assistant|>
SELECT "start" FROM "indy_5... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
);
Question: Which year has 200 laps?
<|assistant|>
SELECT "year" FROM "indy_500_results" W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
);
Question: What is the finish value for a start of 19?
<|assistant|>
SELECT "finish" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000s" (
"year" real,
"english_title" text,
"original_title" text,
"country" text,
"director" text
);
Question: What country is the film directed by Alfonso Cuarón from?
<|assistant|>
SELECT "c... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000s" (
"year" real,
"english_title" text,
"original_title" text,
"country" text,
"director" text
);
Question: What is the original title of the film directed by Cristian Mungiu?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000s" (
"year" real,
"english_title" text,
"original_title" text,
"country" text,
"director" text
);
Question: What country is the film directed by Michael Haneke from?
<|assistant|>
SELECT "c... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000s" (
"year" real,
"english_title" text,
"original_title" text,
"country" text,
"director" text
);
Question: What is the English title of the film from after 2003 directed by Michael Haneke?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams" (
"team" text,
"city" text,
"stadium" text,
"manager" text,
"past_season" text
);
Question: where is the naghsh jahan stadium?
<|assistant|>
SELECT "city" FROM "teams" WHERE "stadium"='n... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams" (
"team" text,
"city" text,
"stadium" text,
"manager" text,
"past_season" text
);
Question: what city has a past season of n/a?
<|assistant|>
SELECT "city" FROM "teams" WHERE "past_seaso... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams" (
"team" text,
"city" text,
"stadium" text,
"manager" text,
"past_season" text
);
Question: where is the pegah team located?
<|assistant|>
SELECT "city" FROM "teams" WHERE "team"='pegah'... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams" (
"team" text,
"city" text,
"stadium" text,
"manager" text,
"past_season" text
);
Question: what stadium has a prior record of 7th?
<|assistant|>
SELECT "stadium" FROM "teams" WHERE "pas... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heats" (
"heat" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
Question: What is the Nationality on the swimmer in Lane 4 with a Time of 1:11.58?
<|assistant|>
SELECT "natio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heats" (
"heat" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
Question: What is the lowest numbered Lane with a Time of 1:10.57 and Heat larger than 2?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heats" (
"heat" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
Question: What is the Heat for Smiljana Marinović?
<|assistant|>
SELECT COUNT("heat") FROM "heats" WHERE "name... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heats" (
"heat" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
Question: In heat 4, what is Byun Hye-young's Nationality?
<|assistant|>
SELECT "nationality" FROM "heats" WHE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "songs" (
"number" real,
"name_of_the_song" text,
"singer" text,
"drama" text,
"kind_of_the_song" text
);
Question: Which type of song did miriam yeung sing?
<|assistant|>
SELECT "kind_of_the_so... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "songs" (
"number" real,
"name_of_the_song" text,
"singer" text,
"drama" text,
"kind_of_the_song" text
);
Question: What type of song is larger than 8 and named 實情?
<|assistant|>
SELECT "kind_of... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "songs" (
"number" real,
"name_of_the_song" text,
"singer" text,
"drama" text,
"kind_of_the_song" text
);
Question: Which song has a ending theme, and is sung by miriam yeung?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "songs" (
"number" real,
"name_of_the_song" text,
"singer" text,
"drama" text,
"kind_of_the_song" text
);
Question: What is the number of the song named 實情?
<|assistant|>
SELECT "number" FROM "s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "daytona_500_results" (
"year" real,
"manufacturer" text,
"start" real,
"finish" real,
"team" text
);
Question: Name the total number of start when finish is less than 4
<|assistant|>
SELECT COU... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "daytona_500_results" (
"year" real,
"manufacturer" text,
"start" real,
"finish" real,
"team" text
);
Question: Name the sum of year when start is less than 30
<|assistant|>
SELECT SUM("year") F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "daytona_500_results" (
"year" real,
"manufacturer" text,
"start" real,
"finish" real,
"team" text
);
Question: Name the most year with start more than 2
<|assistant|>
SELECT MAX("year") FROM "d... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "daytona_500_results" (
"year" real,
"manufacturer" text,
"start" real,
"finish" real,
"team" text
);
Question: Name the most year with start less than 2
<|assistant|>
SELECT MAX("year") FROM "d... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "daytona_500_results" (
"year" real,
"manufacturer" text,
"start" real,
"finish" real,
"team" text
);
Question: Name the year when start was 32
<|assistant|>
SELECT "year" FROM "daytona_500_resu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "daytona_500_results" (
"year" real,
"manufacturer" text,
"start" real,
"finish" real,
"team" text
);
Question: Name the most finish for 2006
<|assistant|>
SELECT MAX("finish") FROM "daytona_500... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
Question: What was the total attendance at games when Detroit was th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "minister_for_community_safety_and_legal_" (
"name" text,
"entered_office" text,
"left_office" text,
"party" text,
"first_minister" text
);
Question: When did first minister Henry Mcleish enter ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "minister_for_community_safety_and_legal_" (
"name" text,
"entered_office" text,
"left_office" text,
"party" text,
"first_minister" text
);
Question: What is the name of the minister that left o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "minister_for_community_safety_and_legal_" (
"name" text,
"entered_office" text,
"left_office" text,
"party" text,
"first_minister" text
);
Question: What is the name of the minister from the pa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "minister_for_community_safety_and_legal_" (
"name" text,
"entered_office" text,
"left_office" text,
"party" text,
"first_minister" text
);
Question: What is the name of the minister who has an ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "minister_for_community_safety_and_legal_" (
"name" text,
"entered_office" text,
"left_office" text,
"party" text,
"first_minister" text
);
Question: What is the party of the minister who left o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "minister_for_community_safety_and_legal_" (
"name" text,
"entered_office" text,
"left_office" text,
"party" text,
"first_minister" text
);
Question: What is the party of Richard Simpson?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "turkish_national_team" (
"date" text,
"time_cest" real,
"team_num1" text,
"res" text,
"team_num2" text,
"round" text,
"spectators" real
);
Question: Name the sum of spectators for time more... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "turkish_national_team" (
"date" text,
"time_cest" real,
"team_num1" text,
"res" text,
"team_num2" text,
"round" text,
"spectators" real
);
Question: Name the spectators for 11 november 2011... |
<|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,
"record" text
);
Question: Which loss has a Record of 54-39?
<|assistant|>
SELECT "loss" FROM "game_log" WHERE "record"='54-... |
<|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,
"record" text
);
Question: Which opponent has a Record of 54-38?
<|assistant|>
SELECT "opponent" FROM "game_log" WHERE "reco... |
<|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,
"record" text
);
Question: Which opponent has a date of July 7?
<|assistant|>
SELECT "opponent" FROM "game_log" WHERE "date"... |
<|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,
"record" text
);
Question: Which record has a Loss of eichhorn (8-5)?
<|assistant|>
SELECT "record" FROM "game_log" WHERE "l... |
<|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,
"decision" text,
"attendance" real
);
Question: What is the average attendance San Jose home games?
<|assistant|>
SELECT AV... |
<|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,
"decision" text,
"attendance" real
);
Question: Who was the attendance at the game attended by 18,118 with a visiting team ... |
<|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,
"record" text
);
Question: What was the record at the game that had a loss of Spillner (1-8)?
<|assistant|>
SELECT "record" ... |
<|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,
"record" text
);
Question: What was the score of the game that had a loss of Williams (1-1)?
<|assistant|>
SELECT "score" FR... |
<|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,
"record" text
);
Question: What was the loss of the game that had a record of 63-52?
<|assistant|>
SELECT "loss" FROM "game_... |
<|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 when the Washington Nationals had a record of 11-10?
<|as... |
<|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: Who was the opponent when the Washington Nationals had a record of 8-4?
<|as... |
<|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: How many people were in attendance when the Washington Nationals had a score... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying_results" (
"name" text,
"team" text,
"qual_1" text,
"qual_2" text,
"best" text
);
Question: Name the Qual 2 which has the name of katherine legge
<|assistant|>
SELECT "qual_2" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying_results" (
"name" text,
"team" text,
"qual_1" text,
"qual_2" text,
"best" text
);
Question: Name the team with best of 58.846
<|assistant|>
SELECT "team" FROM "qualifying_results" WH... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying_results" (
"name" text,
"team" text,
"qual_1" text,
"qual_2" text,
"best" text
);
Question: Tell me the name with best of 58.403
<|assistant|>
SELECT "name" FROM "qualifying_results"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying_results" (
"name" text,
"team" text,
"qual_1" text,
"qual_2" text,
"best" text
);
Question: Tell me the qual 1 for jan heylen
<|assistant|>
SELECT "qual_1" FROM "qualifying_results" ... |
<|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: When the attendance was 24,406 who lost?
<|assistant|>
SELECT "loss" FROM "g... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
Question: Which of the opponents has a record of 17-25?
<|assistant|>
SELECT "opponent... |
<|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: Who was the opponent that played on may 12?
<|assistant|>
SELECT "opponent" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "premier_league" (
"date" text,
"opponents" text,
"result_f_a" text,
"attendance" real,
"league_position" text
);
Question: When in the 1st league position, how many people watch as they faced W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "premier_league" (
"date" text,
"opponents" text,
"result_f_a" text,
"attendance" real,
"league_position" text
);
Question: What was the result with West Ham United with more than 67,577 in atte... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medals_table" (
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the average bronze medals of Uganda's swimmers when they earned over 2 medals?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medals_table" (
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the highest number of silver medals that Ireland earned when they scored less than 3 ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "total" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What's the highest silver and 1 gold that the nation of djibouti received with a tota... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "total" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What's the total number that had a rank larger than 17 and a gold greater than 0?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
Question: Which opponent was faced before week 2?
<|assistant|>
SELECT "opponent" FROM "schedule" WHER... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" text,
"finish" text
);
Question: Name the least total for 1978 years won
<|assistant|>
SELECT MIN("tot... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" text,
"finish" text
);
Question: Name the total with finish of t22
<|assistant|>
SELECT "total" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" text,
"finish" text
);
Question: Name the average total for years won of 1975
<|assistant|>
SELECT AVG... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" text,
"finish" text
);
Question: Name the finish with player lou graham
<|assistant|>
SELECT "finish" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" text,
"finish" text
);
Question: Name the total number of total with finish of t45
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" text,
"position" text,
"league" text,
"fa_cup" text,
"malaysia_cup" text
);
Question: What year was the League the malaysian super league, and a Malaysia Cup of group sta... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" text,
"position" text,
"league" text,
"fa_cup" text,
"malaysia_cup" text
);
Question: What is the position when the League is the malaysian super league, and a Year of 20... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" text,
"position" text,
"league" text,
"fa_cup" text,
"malaysia_cup" text
);
Question: What year was the position 6/13?
<|assistant|>
SELECT "year" FROM "achievements" WHE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" text,
"position" text,
"league" text,
"fa_cup" text,
"malaysia_cup" text
);
Question: What year was the League of malaysian super league, and the Position was 10/14?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "south_wairarapa_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
Question: tell me the average roll for the featherston are... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "south_wairarapa_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
Question: tell me the authority that has a decile less tha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "south_wairarapa_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
Question: tell me the average roll for pirinoa school.
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "south_wairarapa_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
Question: tell me the total number of decile with a roll s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "external_links" (
"year" real,
"champion" text,
"score" text,
"defeated" text,
"location" text
);
Question: What is the score for 2004?
<|assistant|>
SELECT "score" FROM "external_links" WHERE ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.