text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medals_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: How many bronze medals for West Germany having a total more than 2?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medals_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the amount of silver for rank 11 having less than 0 gold?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medals_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What rank is Bulgaria with less than 3 silver and more than 1 bronze?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification_leadership_by_stage" (
"stage" text,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"intergiro_classification" text... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification_leadership_by_stage" (
"stage" text,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"intergiro_classification" text... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification_leadership_by_stage" (
"stage" text,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"intergiro_classification" text... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification_leadership_by_stage" (
"stage" text,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"intergiro_classification" text... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification_leadership_by_stage" (
"stage" text,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"intergiro_classification" text... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification_leadership_by_stage" (
"stage" text,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"intergiro_classification" text... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "c" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" real,
"water_sqmi" real,
"latitude" real,
"longitude" real,
"geo_id" real,
"ansi_code" real
);
Question: What is the av... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "c" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" real,
"water_sqmi" real,
"latitude" real,
"longitude" real,
"geo_id" real,
"ansi_code" real
);
Question: What GEO ID ha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "c" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" real,
"water_sqmi" real,
"latitude" real,
"longitude" real,
"geo_id" real,
"ansi_code" real
);
Question: What is the hi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_1" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" real
);
Question: What is the average lane for Australia?
<|assistant|>
SELECT AVG("lane") FROM "semifinal_1" WH... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_1" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" real
);
Question: What is the highest rank for Josefin Lillhage?
<|assistant|>
SELECT MAX("rank") FROM "semifina... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fixtures" (
"final" text,
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" real,
"stadium" text
);
Question: What was the attendance for the final quarter (1)?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fixtures" (
"final" text,
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" real,
"stadium" text
);
Question: What stadium had the score 1 - 1 dodd 38'?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
Question: What method was used in the P... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_tallest_buildings" (
"rank" real,
"name" text,
"height" text,
"highest_floor" real,
"city" text,
"primary_use" text
);
Question: What is the Rank of the building that has a Highest fl... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "preliminary" (
"rank" real,
"country" text,
"athlete" text,
"technical" real,
"free" real,
"total" real
);
Question: what is the most free when the total is 81.167 and the rank is higher than... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "floppy_disk_physical_characteristics_cap" (
"size" text,
"density" text,
"tracks" real,
"coercivity" text,
"unformatted_capacity_per_side" text
);
Question: How many tracks have an unformatted ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "floppy_disk_physical_characteristics_cap" (
"size" text,
"density" text,
"tracks" real,
"coercivity" text,
"unformatted_capacity_per_side" text
);
Question: What is the unformatted capacity per... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "floppy_disk_physical_characteristics_cap" (
"size" text,
"density" text,
"tracks" real,
"coercivity" text,
"unformatted_capacity_per_side" text
);
Question: How many tracks have a single densit... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "absentee_cardinals" (
"elector" text,
"place_of_birth" text,
"cardinalatial_title" text,
"elevated" text,
"elevator" text
);
Question: What's listed for Elevatated that has Cardinalatial title ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "absentee_cardinals" (
"elector" text,
"place_of_birth" text,
"cardinalatial_title" text,
"elevated" text,
"elevator" text
);
Question: What Elector has the Place of birth of San Severino?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "absentee_cardinals" (
"elector" text,
"place_of_birth" text,
"cardinalatial_title" text,
"elevated" text,
"elevator" text
);
Question: What's the Cardinalatial Title has the Elevated of Decembe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "absentee_cardinals" (
"elector" text,
"place_of_birth" text,
"cardinalatial_title" text,
"elevated" text,
"elevator" text
);
Question: What's listed for the Elevated with a Cardinalatial title ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "absentee_cardinals" (
"elector" text,
"place_of_birth" text,
"cardinalatial_title" text,
"elevated" text,
"elevator" text
);
Question: What Elector has the Place of Birth listed as Bavaria?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "appearances_and_goals" (
"name" text,
"position" text,
"league_apps" text,
"league_goals" real,
"fa_cup_apps" real,
"fa_cup_goals" real,
"league_cup_apps" text,
"league_cup_goals" real,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "appearances_and_goals" (
"name" text,
"position" text,
"league_apps" text,
"league_goals" real,
"fa_cup_apps" real,
"fa_cup_goals" real,
"league_cup_apps" text,
"league_cup_goals" real,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "appearances_and_goals" (
"name" text,
"position" text,
"league_apps" text,
"league_goals" real,
"fa_cup_apps" real,
"fa_cup_goals" real,
"league_cup_apps" text,
"league_cup_goals" real,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_members" (
"school" text,
"city" text,
"team_name" text,
"county" text,
"year_joined" text,
"year_left" text
);
Question: Which school left in 1968 and has the team name of Panthers?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_members" (
"school" text,
"city" text,
"team_name" text,
"county" text,
"year_joined" text,
"year_left" text
);
Question: What year did a team from North Dearborn leave?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_members" (
"school" text,
"city" text,
"team_name" text,
"county" text,
"year_joined" text,
"year_left" text
);
Question: Which city has a school of North Vernon and a county of 40 Jen... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_members" (
"school" text,
"city" text,
"team_name" text,
"county" text,
"year_joined" text,
"year_left" text
);
Question: What year did a school from Jennings County join?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_members" (
"school" text,
"city" text,
"team_name" text,
"county" text,
"year_joined" text,
"year_left" text
);
Question: Which school are the Red Devils from?
<|assistant|>
SELECT "sc... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_members" (
"school" text,
"city" text,
"team_name" text,
"county" text,
"year_joined" text,
"year_left" text
);
Question: Which school comes from Brookville?
<|assistant|>
SELECT "scho... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_1" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" real
);
Question: What's the lowest rank of Lane 3?
<|assistant|>
SELECT MIN("rank") FROM "semifinal_1" WHERE "l... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_1" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" real
);
Question: What's the highest lane of rank 4 with a time less than 24.72?
<|assistant|>
SELECT MAX("lane"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_1" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" real
);
Question: What's the time of Britta Steffen in a lane less than 4?
<|assistant|>
SELECT SUM("time") FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_1" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" real
);
Question: What's the lowest rank of the United States with a time less than 24.63?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "radio" (
"actor" text,
"character" text,
"soap_opera" text,
"years" text,
"duration" text
);
Question: What's the duration of the Archers with Norman Painting as an actor?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "radio" (
"actor" text,
"character" text,
"soap_opera" text,
"years" text,
"duration" text
);
Question: What's the duration of the Archers with Pauline Seville acting?
<|assistant|>
SELECT "dura... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "radio" (
"actor" text,
"character" text,
"soap_opera" text,
"years" text,
"duration" text
);
Question: Who's the actor for the Archers having a character of Martha Woodford?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "radio" (
"actor" text,
"character" text,
"soap_opera" text,
"years" text,
"duration" text
);
Question: Who's the character when Margot Boyd was acting?
<|assistant|>
SELECT "character" FROM "ra... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heat_4" (
"rank" real,
"rowers" text,
"country" text,
"time" text,
"notes" text
);
Question: What were the notes for the time of 6:34.51?
<|assistant|>
SELECT "notes" FROM "heat_4" WHERE "time"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heat_4" (
"rank" real,
"rowers" text,
"country" text,
"time" text,
"notes" text
);
Question: What is the rank for the rowers with the time of 6:24.35?
<|assistant|>
SELECT "rank" FROM "heat_4" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heat_4" (
"rank" real,
"rowers" text,
"country" text,
"time" text,
"notes" text
);
Question: Which rowers represented portugal and had notes of r?
<|assistant|>
SELECT "rowers" FROM "heat_4" WH... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heat_4" (
"rank" real,
"rowers" text,
"country" text,
"time" text,
"notes" text
);
Question: Which rowers represented the country of portugal?
<|assistant|>
SELECT "rowers" FROM "heat_4" WHERE ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_statistics" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"podiums" real,
"points" text,
"position" text
);
Question: what is the average ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_statistics" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"podiums" real,
"points" text,
"position" text
);
Question: what is the series w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_statistics" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"podiums" real,
"points" text,
"position" text
);
Question: how many times is ra... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"event" text,
"date" text,
"location" text,
"winning_skip" text,
"runner_up_skip" text
);
Question: Who was the runner-up during the Mac Ice Classic?
<|assistant|>
SELECT "runner_up_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"event" text,
"date" text,
"location" text,
"winning_skip" text,
"runner_up_skip" text
);
Question: What's the date when Stu Harris was the Runner-up?
<|assistant|>
SELECT "date" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"event" text,
"date" text,
"location" text,
"winning_skip" text,
"runner_up_skip" text
);
Question: What's the location of the Ramada Perth Masters event?
<|assistant|>
SELECT "locat... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"event" text,
"date" text,
"location" text,
"winning_skip" text,
"runner_up_skip" text
);
Question: What's the location of the National event with Kevin Martin winning?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"event" text,
"date" text,
"location" text,
"winning_skip" text,
"runner_up_skip" text
);
Question: What's the event that happened in Gander, Newfoundland and Labrador with Randy Fer... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"event" text,
"date" text,
"location" text,
"winning_skip" text,
"runner_up_skip" text
);
Question: What's the location of the National event?
<|assistant|>
SELECT "location" FROM "w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text,
"arena" text,
"points" real
);
Question: Which Arena has a Date of october 10?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text,
"arena" text,
"points" real
);
Question: Which Attendance has a Score of 4–3, ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text,
"arena" text,
"points" real
);
Question: Which Attendance has an Arena of arro... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text,
"arena" text,
"points" real
);
Question: How much Attendance has an Arena of a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1960s" (
"country" text,
"1960" real,
"1961" real,
"1962" real,
"1963" real,
"1964" real,
"1965" real,
"1966" real,
"1967" real,
"1968" real,
"1969" real
);
Question: How much 1969 ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1960s" (
"country" text,
"1960" real,
"1961" real,
"1962" real,
"1963" real,
"1964" real,
"1965" real,
"1966" real,
"1967" real,
"1968" real,
"1969" real
);
Question: Which 1964 has... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1960s" (
"country" text,
"1960" real,
"1961" real,
"1962" real,
"1963" real,
"1964" real,
"1965" real,
"1966" real,
"1967" real,
"1968" real,
"1969" real
);
Question: Which 1965 has... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "england" (
"player" text,
"int_l_debut" text,
"year" text,
"cross_code_debut" text,
"date" text
);
Question: What is Bev Risman's Cross Code Debut?
<|assistant|>
SELECT "cross_code_debut" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "england" (
"player" text,
"int_l_debut" text,
"year" text,
"cross_code_debut" text,
"date" text
);
Question: What is the Date of RL Test v Wales Int'l Debut?
<|assistant|>
SELECT "date" FROM "e... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "england" (
"player" text,
"int_l_debut" text,
"year" text,
"cross_code_debut" text,
"date" text
);
Question: What is the Player with a Cross Code Debut of RL Test GB v France?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "england" (
"player" text,
"int_l_debut" text,
"year" text,
"cross_code_debut" text,
"date" text
);
Question: In what Year is Keith Smith's Cross Code Debut RL Test v Wales?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "england" (
"player" text,
"int_l_debut" text,
"year" text,
"cross_code_debut" text,
"date" text
);
Question: What is the Date of the Int'l Debut of 1967?
<|assistant|>
SELECT "date" FROM "engla... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "england" (
"player" text,
"int_l_debut" text,
"year" text,
"cross_code_debut" text,
"date" text
);
Question: What is the Player in the Int'l Debut of 1974?
<|assistant|>
SELECT "player" FROM "e... |
<|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 lane has a time of 24.83 and a heat less than 11?
<|assistant|>
SELECT SUM("lane") FROM "heats"... |
<|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 total number of heat for Chinyere Pigot?
<|assistant|>
SELECT COUNT("heat") FROM "heats"... |
<|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 name for lane 1, from Mauritius?
<|assistant|>
SELECT "name" FROM "heats" WHERE "lane"=1... |
<|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: Who won in 1988 with a total less than 287?
<|assistant|>
SELECT "pla... |
<|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: What country is Larry Mize from?
<|assistant|>
SELECT "country" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the lowest number of bronze medals for a nation with fewer than 1 total... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "single_cylinder_race" (
"rank" text,
"rider" text,
"team" text,
"speed" text,
"time" text
);
Question: What team is Frank Hulbert on?
<|assistant|>
SELECT "team" FROM "single_cylinder_race" WHE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "single_cylinder_race" (
"rank" text,
"rider" text,
"team" text,
"speed" text,
"time" text
);
Question: What was Martin Geiger's rank?
<|assistant|>
SELECT "rank" FROM "single_cylinder_race" WHE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "single_cylinder_race" (
"rank" text,
"rider" text,
"team" text,
"speed" text,
"time" text
);
Question: What was Tom Silver's rank?
<|assistant|>
SELECT "rank" FROM "single_cylinder_race" WHERE ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "academy_graduates_2000_present" (
"player" text,
"current_club" text,
"born" text,
"debut" text,
"manager" text
);
Question: Who was the player with a debut of age 18 v plymouth , 14 august 201... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "academy_graduates_2000_present" (
"player" text,
"current_club" text,
"born" text,
"debut" text,
"manager" text
);
Question: Where was the player whose Current Club Elfsborg born?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "academy_graduates_2000_present" (
"player" text,
"current_club" text,
"born" text,
"debut" text,
"manager" text
);
Question: What is the debut for the person born in Poole?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "academy_graduates_2000_present" (
"player" text,
"current_club" text,
"born" text,
"debut" text,
"manager" text
);
Question: What is the club for Sam Magri?
<|assistant|>
SELECT "current_club" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "academy_graduates_2000_present" (
"player" text,
"current_club" text,
"born" text,
"debut" text,
"manager" text
);
Question: What is the name of the manager of the Atlético Baleares?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "league_champions_and_major_awards" (
"year" real,
"league_champion" text,
"best_blocker" text,
"rookie_of_the_year" text,
"c_a_n_t_s_l_e_e_p_award" text
);
Question: Who was the best blocker fo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "league_champions_and_major_awards" (
"year" real,
"league_champion" text,
"best_blocker" text,
"rookie_of_the_year" text,
"c_a_n_t_s_l_e_e_p_award" text
);
Question: Who was the rookie of the y... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "league_champions_and_major_awards" (
"year" real,
"league_champion" text,
"best_blocker" text,
"rookie_of_the_year" text,
"c_a_n_t_s_l_e_e_p_award" text
);
Question: What was the latest year th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text,
"arena" text,
"points" real
);
Question: Which Arena has Points larger than 28... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text,
"arena" text,
"points" real
);
Question: How many Points have an Arena of bell... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text,
"arena" text,
"points" real
);
Question: How much Attendance has a Loss of div... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heat_1" (
"rank" real,
"name" text,
"1st_run" text,
"2nd_run" text,
"3rd_run" text,
"total" real
);
Question: With a 1st run of 53.300 (7), and greater than 21 total, what is the average rank... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heat_1" (
"rank" real,
"name" text,
"1st_run" text,
"2nd_run" text,
"3rd_run" text,
"total" real
);
Question: What 2nd run has a less than 6 rank, and 3 as the total?
<|assistant|>
SELECT "2n... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heat_1" (
"rank" real,
"name" text,
"1st_run" text,
"2nd_run" text,
"3rd_run" text,
"total" real
);
Question: When the 3rd run is 36.490 (3) what is the 2nd run?
<|assistant|>
SELECT "2nd_run... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_game_of_the_year_awards" (
"year" real,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
);
Question: What is the sum number of year when Call of Duty 4: Modern Warfare ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_game_of_the_year_awards" (
"year" real,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
);
Question: What is the earliest year when action was the genre?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_game_of_the_year_awards" (
"year" real,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
);
Question: What is the smallest year when Ubisoft Montreal was the developer (... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_game_of_the_year_awards" (
"year" real,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
);
Question: What is the latest year when Call of Duty 4: Modern Warfare was the... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "governors_of_missouri" (
"governor" text,
"took_office" text,
"left_office" text,
"party" text,
"lieutenant_governor" text,
"terms" text
);
Question: Who was Lieutenant Governor to the govern... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "governors_of_missouri" (
"governor" text,
"took_office" text,
"left_office" text,
"party" text,
"lieutenant_governor" text,
"terms" text
);
Question: Which governor took office on January 8, ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "governors_of_missouri" (
"governor" text,
"took_office" text,
"left_office" text,
"party" text,
"lieutenant_governor" text,
"terms" text
);
Question: Who was lieutenant governor to the govern... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.