text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states" (
"name" text,
"gnis_feature_id" real,
"state" text,
"county" text,
"type" text,
"usgs_7_5_map" text
);
Question: Which state has a GNIS Feature ID larger than 624634, and a US... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states" (
"name" text,
"gnis_feature_id" real,
"state" text,
"county" text,
"type" text,
"usgs_7_5_map" text
);
Question: Which state has a Name of diamond lake, and a GNIS Feature ID ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_1_1997" (
"episode_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_airdate" text
);
Question: Who directed the episode written cyrus nowrasteh?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "8000_meters" (
"world_rank" real,
"rank_pakistan" real,
"name" text,
"height_m" real,
"location" text
);
Question: What is the Rank (Pakistan) of the mountain that has a World Rank smaller than... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "major_tournament_singles_performance_tim" (
"tournament" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "major_tournament_singles_performance_tim" (
"tournament" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "major_tournament_singles_performance_tim" (
"tournament" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "major_tournament_singles_performance_tim" (
"tournament" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_17" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What did home team score at glenferrie o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "deficit_spending" (
"end_of_fiscal_year" real,
"gross_debt_in_billions_undeflated_treas" real,
"as_pct_of_gdp_low_high" text,
"debt_held_by_public_billions" real,
"as_pct_of_gdp_treas_mw_omb_or_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "deficit_spending" (
"end_of_fiscal_year" real,
"gross_debt_in_billions_undeflated_treas" real,
"as_pct_of_gdp_low_high" text,
"debt_held_by_public_billions" real,
"as_pct_of_gdp_treas_mw_omb_or_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "deficit_spending" (
"end_of_fiscal_year" real,
"gross_debt_in_billions_undeflated_treas" real,
"as_pct_of_gdp_low_high" text,
"debt_held_by_public_billions" real,
"as_pct_of_gdp_treas_mw_omb_or_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "deficit_spending" (
"end_of_fiscal_year" real,
"gross_debt_in_billions_undeflated_treas" real,
"as_pct_of_gdp_low_high" text,
"debt_held_by_public_billions" real,
"as_pct_of_gdp_treas_mw_omb_or_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team_league" text
);
Question: What player was selected in Round 6?
<|assistant|>
SELECT "p... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team_league" text
);
Question: What is the nationality of the player who played for the Pet... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team_league" text
);
Question: Which round was Mike Peca (C) of Canada selected in?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What is the smallest grid for Ayrton Senna?
<|assistant|>
SELECT MIN("grid") FROM "race" WH... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What is the Time/Retired for laps higher than 52 on a grid larger than 21?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What is the sum of laps for grid 20?
<|assistant|>
SELECT SUM("laps") FROM "race" WHERE "gr... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What is the most laps for Ayrton Senna?
<|assistant|>
SELECT MAX("laps") FROM "race" WHERE ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final" (
"gymnast" text,
"floor_exercise" real,
"pommel_horse" real,
"rings" real,
"vault" real,
"parallel_bars" real,
"horizontal_bar" real,
"total" real
);
Question: what was the score ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final" (
"gymnast" text,
"floor_exercise" real,
"pommel_horse" real,
"rings" real,
"vault" real,
"parallel_bars" real,
"horizontal_bar" real,
"total" real
);
Question: what was the floor ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
);
Question: Which tournament had A in 2008, a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
);
Question: What was the position for 2008, w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"goal" real,
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: Which venue has a Goal of 3?
<|assistant|>
SELECT "venue" FROM "int... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"goal" real,
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: Which venue was used on 10 september 2010?
<|assistant|>
SELECT "ve... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "running_backs" (
"player" text,
"car" real,
"yards" real,
"avg" real,
"td_s" real,
"long" real
);
Question: How many carries for the player with under 6 yards and an average of over 5?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "running_backs" (
"player" text,
"car" real,
"yards" real,
"avg" real,
"td_s" real,
"long" real
);
Question: What was the longest carry for kevin clemens with under 31 yards total?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "running_backs" (
"player" text,
"car" real,
"yards" real,
"avg" real,
"td_s" real,
"long" real
);
Question: How many TDs for the player with a long of less than 4 and under 8 yards?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "running_backs" (
"player" text,
"car" real,
"yards" real,
"avg" real,
"td_s" real,
"long" real
);
Question: What is the average for the player with 1 TD, over 4 as a long, and under 1 carry?
... |
<|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 attendance at Brunswick Stre... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2005" (
"date_of_issue" text,
"denomination" text,
"design" text,
"paper_type" text,
"first_day_cover_cancellation" text
);
Question: What's listed as the First Day Cover Cancellation with a Da... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2005" (
"date_of_issue" text,
"denomination" text,
"design" text,
"paper_type" text,
"first_day_cover_cancellation" text
);
Question: What's the First Day Cover Cancellation with Denomination o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2005" (
"date_of_issue" text,
"denomination" text,
"design" text,
"paper_type" text,
"first_day_cover_cancellation" text
);
Question: What's the Denomination listed for the Date of Issue 12 Apr... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2005" (
"date_of_issue" text,
"denomination" text,
"design" text,
"paper_type" text,
"first_day_cover_cancellation" text
);
Question: Which Paper Type has a Denomination of $0.50 and Date of Is... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2005" (
"date_of_issue" text,
"denomination" text,
"design" text,
"paper_type" text,
"first_day_cover_cancellation" text
);
Question: What's the Date of Issue for Design of Katalin Kovats?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wide_receivers" (
"player" text,
"rec" real,
"yards" real,
"avg" real,
"td_s" real,
"long" real
);
Question: What was the average for the player that scored 116 yards and had TD's less than 1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wide_receivers" (
"player" text,
"rec" real,
"yards" real,
"avg" real,
"td_s" real,
"long" real
);
Question: What was the lowest recorded record for a player with an average larger than 13?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wide_receivers" (
"player" text,
"rec" real,
"yards" real,
"avg" real,
"td_s" real,
"long" real
);
Question: How many yards did Hank Edwards make when he had TD's of 1 and an average higher t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wide_receivers" (
"player" text,
"rec" real,
"yards" real,
"avg" real,
"td_s" real,
"long" real
);
Question: How many yards were averaged by the player that had a higher than 13 average with ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wide_receivers" (
"player" text,
"rec" real,
"yards" real,
"avg" real,
"td_s" real,
"long" real
);
Question: What is the highest number of yards recorded for a player that had more than 4 TD'... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_scheduled_passengers_carried_millions" (
"rank" real,
"airline_holding" text,
"passenger_fleet" real,
"current_destinations" real,
"alliance_association" text
);
Question: For an airline of ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_scheduled_passengers_carried_millions" (
"rank" real,
"airline_holding" text,
"passenger_fleet" real,
"current_destinations" real,
"alliance_association" text
);
Question: Which alliance has... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_scheduled_passengers_carried_millions" (
"rank" real,
"airline_holding" text,
"passenger_fleet" real,
"current_destinations" real,
"alliance_association" text
);
Question: For airlines named... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_selections" (
"year" real,
"pick" text,
"player_name" text,
"position" text,
"college" text
);
Question: In which year was a linebacker pick 17?
<|assistant|>
SELECT "year" FROM "player_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_selections" (
"year" real,
"pick" text,
"player_name" text,
"position" text,
"college" text
);
Question: What is the name of the cornerback from 1997?
<|assistant|>
SELECT "player_name" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_selections" (
"year" real,
"pick" text,
"player_name" text,
"position" text,
"college" text
);
Question: What is the name of the player from after 1989 from Washington State?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_record" (
"race" text,
"dist_f" real,
"course" text,
"class" text,
"prize_k" real,
"odds" text,
"runners" real,
"placing" real,
"margin" text,
"time" text,
"jockey" text,
"tra... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_record" (
"race" text,
"dist_f" real,
"course" text,
"class" text,
"prize_k" real,
"odds" text,
"runners" real,
"placing" real,
"margin" text,
"time" text,
"jockey" text,
"tra... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_record" (
"race" text,
"dist_f" real,
"course" text,
"class" text,
"prize_k" real,
"odds" text,
"runners" real,
"placing" real,
"margin" text,
"time" text,
"jockey" text,
"tra... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_record" (
"race" text,
"dist_f" real,
"course" text,
"class" text,
"prize_k" real,
"odds" text,
"runners" real,
"placing" real,
"margin" text,
"time" text,
"jockey" text,
"tra... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_4" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: How many people attended the game that re... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "provincial_flowers" (
"year" real,
"artist" text,
"composition" text,
"mintage" real,
"issue_price" text
);
Question: What was the mintage having an issue price of $1,099.99, artist being Pamel... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "provincial_flowers" (
"year" real,
"artist" text,
"composition" text,
"mintage" real,
"issue_price" text
);
Question: What was the year that had an issue price of $1,295.95?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "provincial_flowers" (
"year" real,
"artist" text,
"composition" text,
"mintage" real,
"issue_price" text
);
Question: What is the composition with an artist of Henry Purdy, a year smaller than ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "provincial_flowers" (
"year" real,
"artist" text,
"composition" text,
"mintage" real,
"issue_price" text
);
Question: What was the average mintage for that of artist Celia Godkin, before the ye... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_13" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Where is the Venue that has an away team... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_9" (
"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 team score at Windy Hil... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_9" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Who was the home team at Lake Oval?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_9" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is the number of the crowd when the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_9" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: On what date was the crowd over 19,298 wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_9" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: On what date was the home team score 10.1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_8" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: On what date was the venue VFL Park?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_8" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which team was the home team at Glenferri... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_37_19_18" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score_in_the_final" text
);
Question: What was the date when Steffi Graf was... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_37_19_18" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score_in_the_final" text
);
Question: What was the surface where the outcome... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_37_19_18" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score_in_the_final" text
);
Question: What was the outcome of the Tournament... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_37_19_18" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score_in_the_final" text
);
Question: What is the outcome of the match again... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "c" (
"player" text,
"no_s" text,
"height_in_ft" text,
"position" text,
"years_for_rockets" text,
"school_club_team_country" text
);
Question: What player had numbers of 20
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "c" (
"player" text,
"no_s" text,
"height_in_ft" text,
"position" text,
"years_for_rockets" text,
"school_club_team_country" text
);
Question: Tell me the height in ft for 1999-2004
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "c" (
"player" text,
"no_s" text,
"height_in_ft" text,
"position" text,
"years_for_rockets" text,
"school_club_team_country" text
);
Question: Tell me the number for height in ft of 6-7
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "c" (
"player" text,
"no_s" text,
"height_in_ft" text,
"position" text,
"years_for_rockets" text,
"school_club_team_country" text
);
Question: What player had a school of missouri
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_three" (
"pick_num" real,
"player" text,
"nationality" text,
"position" text,
"team_from" text,
"league_from" text
);
Question: What pick # has a team from Rimouski Océanic?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_three" (
"pick_num" real,
"player" text,
"nationality" text,
"position" text,
"team_from" text,
"league_from" text
);
Question: Who is the player from Hotchkiss School with a position o... |
<|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,
"type" text,
"winner" text
);
Question: What type is the sorrento to sapri course with a distance of km (mi)?
<|assistant|>
SELECT ... |
<|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,
"type" text,
"winner" text
);
Question: What type is the misurina to bassano del grappa course?
<|assistant|>
SELECT "type" FROM "s... |
<|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,
"type" text,
"winner" text
);
Question: What's the distance for the chieti to macerata course?
<|assistant|>
SELECT "distance" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_results" (
"driver" text,
"car_num" real,
"make" text,
"points" real,
"laps" real,
"winnings" text
);
Question: Which is the lowest points value that had a Chevrolet car, whose driver wa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_results" (
"driver" text,
"car_num" real,
"make" text,
"points" real,
"laps" real,
"winnings" text
);
Question: Which is the lowest point value that had not only a Chevrolet car, but als... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "kickboxing_record" (
"date" text,
"result" text,
"opponent" text,
"location" text,
"method" text
);
Question: What is the location for the win against Johan Mparmpagiannis?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "kickboxing_record" (
"date" text,
"result" text,
"opponent" text,
"location" text,
"method" text
);
Question: What is the method against Björn Bregy?
<|assistant|>
SELECT "method" FROM "kickbox... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "kickboxing_record" (
"date" text,
"result" text,
"opponent" text,
"location" text,
"method" text
);
Question: What is the method against Paula Mataele?
<|assistant|>
SELECT "method" FROM "kickb... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "kickboxing_record" (
"date" text,
"result" text,
"opponent" text,
"location" text,
"method" text
);
Question: What is the date of the match in Vilnius, Lithuania?
<|assistant|>
SELECT "date" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "kickboxing_record" (
"date" text,
"result" text,
"opponent" text,
"location" text,
"method" text
);
Question: What is the result against Errol Zimmerman on 2007-04-07?
<|assistant|>
SELECT "res... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "kickboxing_record" (
"date" text,
"result" text,
"opponent" text,
"location" text,
"method" text
);
Question: What is the location of the match against Martinis Knyzelis?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_16" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What day is st kilda the home side?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_16" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is melbourne's away score?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_16" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is the highest crowd listed when th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_16" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What venue features an away team score o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_3" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the home team's score when Geelo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_3" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the average crowd size at a game... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "composition" (
"late_1941" text,
"late_1942" real,
"sept_1943" real,
"late_1943" real,
"late_1944" real,
"1978_veteran_membership" real
);
Question: What is the total number of the 1978 Veter... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "composition" (
"late_1941" text,
"late_1942" real,
"sept_1943" real,
"late_1943" real,
"late_1944" real,
"1978_veteran_membership" real
);
Question: What is the highest late 1943 number with ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "composition" (
"late_1941" text,
"late_1942" real,
"sept_1943" real,
"late_1943" real,
"late_1944" real,
"1978_veteran_membership" real
);
Question: What is the 1978 Veteran membership with a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "composition" (
"late_1941" text,
"late_1942" real,
"sept_1943" real,
"late_1943" real,
"late_1944" real,
"1978_veteran_membership" real
);
Question: What is the lowest 1978 Veteran membership... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "composition" (
"late_1941" text,
"late_1942" real,
"sept_1943" real,
"late_1943" real,
"late_1944" real,
"1978_veteran_membership" real
);
Question: What is the highest late 1943 with a late ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "uefa_club_competitions_record" (
"season" text,
"competition" text,
"round" text,
"opponent" text,
"result" text,
"venue" text
);
Question: Which opponent has a Season of 2011/12?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "uefa_club_competitions_record" (
"season" text,
"competition" text,
"round" text,
"opponent" text,
"result" text,
"venue" text
);
Question: Which opponent has a Season of 2010/11?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "uefa_club_competitions_record" (
"season" text,
"competition" text,
"round" text,
"opponent" text,
"result" text,
"venue" text
);
Question: Which competition has a Season of 2010/11?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "uefa_club_competitions_record" (
"season" text,
"competition" text,
"round" text,
"opponent" text,
"result" text,
"venue" text
);
Question: What Opponent has a Result of –?
<|assistant|>
SELE... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.