text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "preliminary_round" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: What is the first leg score when the second leg score is 0-4?
<|assistant|>
SELECT "1s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "newly_named_birds" (
"name" text,
"status" text,
"authors" text,
"unit" text,
"location" text
);
Question: What is the Status with a Name that is anas cheuen?
<|assistant|>
SELECT "status" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "newly_named_birds" (
"name" text,
"status" text,
"authors" text,
"unit" text,
"location" text
);
Question: What is the Unit with a Name that is anas cheuen?
<|assistant|>
SELECT "unit" FROM "ne... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"result" text,
"score" text,
"record" text,
"attendance" real
);
Question: What team was the Opponent when the Score was 31-6?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"result" text,
"score" text,
"record" text,
"attendance" real
);
Question: What is the Score when the record was 9-3-0?
<|assistant|>
SELECT "score" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"result" text,
"score" text,
"record" text,
"attendance" real
);
Question: What is the Record with an attendance of more than 54,761, and a Result of... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text,
"attendance" text
);
Question: What is the away team where the home team is Coventry City?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text,
"attendance" text
);
Question: What is the score where the away team is Exeter City?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text,
"attendance" text
);
Question: How many ties does Walsall have?
<|assistant|>
SELECT "tie_n... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text,
"attendance" text
);
Question: Where Bolton Wanderers is the home team, who is the away tea... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text,
"attendance" text
);
Question: How many ties are there where attendance is 11,997?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text,
"attendance" text
);
Question: Where the away team is Bradford City, who is the home team?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "t" (
"name" text,
"position" text,
"number" real,
"school_club_team" text,
"season" text,
"acquisition_via" text
);
Question: For which school/club team did the player in the position of Guar... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "t" (
"name" text,
"position" text,
"number" real,
"school_club_team" text,
"season" text,
"acquisition_via" text
);
Question: How was the player in the position of Center acquired?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "t" (
"name" text,
"position" text,
"number" real,
"school_club_team" text,
"season" text,
"acquisition_via" text
);
Question: In what season did Omar Thomas play, with a jersey number larger ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "t" (
"name" text,
"position" text,
"number" real,
"school_club_team" text,
"season" text,
"acquisition_via" text
);
Question: How many total players came from the school/club team of De La Sa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "t" (
"name" text,
"position" text,
"number" real,
"school_club_team" text,
"season" text,
"acquisition_via" text
);
Question: Which player is in the position of Guard/Forward?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
Question: What is the most wins associated with under 4 events with... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
Question: What is the average number of events having 1 top-10, few... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
Question: What is the average number of wins for events larger than... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
Question: What is the sum of top-25s for events with more than 1 to... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2003" (
"date" text,
"title" text,
"director" text,
"producer" text,
"production_cost" text,
"singapore_gross" text
);
Question: Who is the producer of city sharks?
<|assistant|>
SELECT "prod... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2003" (
"date" text,
"title" text,
"director" text,
"producer" text,
"production_cost" text,
"singapore_gross" text
);
Question: What is the title of the film when the producer was 2003?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2003" (
"date" text,
"title" text,
"director" text,
"producer" text,
"production_cost" text,
"singapore_gross" text
);
Question: Who is the director when the title is 2003?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2003" (
"date" text,
"title" text,
"director" text,
"producer" text,
"production_cost" text,
"singapore_gross" text
);
Question: What is the production cost when the producer is raintree pict... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
Question: What was the lowest attendance at a week 15 game?
<|assistant|>
SELECT MIN("attendance") FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"location" text,
"score" text,
"loss" text,
"record" text
);
Question: What is the Score for the game with a record of 38-18?
<|assistant|>
SELECT "s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"location" text,
"score" text,
"loss" text,
"record" text
);
Question: What team was the opponent when the score was 8-2?
<|assistant|>
SELECT "oppon... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"location" text,
"score" text,
"loss" text,
"record" text
);
Question: What is the Location when the opponent shows vs. ole miss, and a Loss of mckea... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"location" text,
"score" text,
"loss" text,
"record" text
);
Question: What is the name of the Opponent when there is a Record of 39-19?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"location" text,
"score" text,
"loss" text,
"record" text
);
Question: What is the Record on may 24, with a Loss of hayes (2-1)?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"location" text,
"score" text,
"loss" text,
"record" text
);
Question: What is the Location when the Opponent shows vs. #23 south carolina?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_united_states_national_ice_hocke" (
"position" text,
"jersey_num" real,
"name" text,
"height_cm" real,
"weight_kg" real,
"birthdate" text,
"birthplace" text,
"2002_2003_team" text,... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_united_states_national_ice_hocke" (
"position" text,
"jersey_num" real,
"name" text,
"height_cm" real,
"weight_kg" real,
"birthdate" text,
"birthplace" text,
"2002_2003_team" text,... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_united_states_national_ice_hocke" (
"position" text,
"jersey_num" real,
"name" text,
"height_cm" real,
"weight_kg" real,
"birthdate" text,
"birthplace" text,
"2002_2003_team" text,... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sftpa2_m_rna_transcript_variants" (
"variant_id" text,
"5_utr_splice" text,
"coding" text,
"3_utr_sequence" text,
"gen_bank_id" text
);
Question: Which coding's variant id is abd'1a 3?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sftpa2_m_rna_transcript_variants" (
"variant_id" text,
"5_utr_splice" text,
"coding" text,
"3_utr_sequence" text,
"gen_bank_id" text
);
Question: Which 5'utr splice's coding is 1a 2, when the V... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sftpa2_m_rna_transcript_variants" (
"variant_id" text,
"5_utr_splice" text,
"coding" text,
"3_utr_sequence" text,
"gen_bank_id" text
);
Question: Which variant id's coding is 1a 5 when the 5'ut... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sftpa2_m_rna_transcript_variants" (
"variant_id" text,
"5_utr_splice" text,
"coding" text,
"3_utr_sequence" text,
"gen_bank_id" text
);
Question: Which genbank id's variant is abd1a?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sftpa2_m_rna_transcript_variants" (
"variant_id" text,
"5_utr_splice" text,
"coding" text,
"3_utr_sequence" text,
"gen_bank_id" text
);
Question: Which coding entry has a 3'utr sequence of 1a 0... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sftpa2_m_rna_transcript_variants" (
"variant_id" text,
"5_utr_splice" text,
"coding" text,
"3_utr_sequence" text,
"gen_bank_id" text
);
Question: Which genbank id has a 5'utr splice of abd and ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "g" (
"player" text,
"nationality" text,
"position" text,
"years_in_orlando" text,
"school_club_team" text
);
Question: What year did Orlando have a School/Club team in Clemson?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "g" (
"player" text,
"nationality" text,
"position" text,
"years_in_orlando" text,
"school_club_team" text
);
Question: What years did the player in Orlando play that is from the United States, ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "g" (
"player" text,
"nationality" text,
"position" text,
"years_in_orlando" text,
"school_club_team" text
);
Question: Who is the player for the School/Club team in Georgia?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "g" (
"player" text,
"nationality" text,
"position" text,
"years_in_orlando" text,
"school_club_team" text
);
Question: What was the nationality of the player Pat Garrity?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "g" (
"player" text,
"nationality" text,
"position" text,
"years_in_orlando" text,
"school_club_team" text
);
Question: What is the nationality of the School/Club team of Louisville?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wins" (
"driver" text,
"wins" real,
"starts" real,
"sprint" real,
"feature" real
);
Question: How many features did Adam Carroll win 6 times when the start was larger than 32?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wins" (
"driver" text,
"wins" real,
"starts" real,
"sprint" real,
"feature" real
);
Question: What is the lowest feature with 2 wins and 2 sprints?
<|assistant|>
SELECT MIN("feature") FROM "win... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wins" (
"driver" text,
"wins" real,
"starts" real,
"sprint" real,
"feature" real
);
Question: How many sprints on average had 10 wins and less than 5 features?
<|assistant|>
SELECT AVG("sprint"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final" (
"lane" real,
"name" text,
"country" text,
"mark" text,
"react" real
);
Question: Which country has a lane greater than 6 and a mark of 6.63?
<|assistant|>
SELECT "country" FROM "final"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final" (
"lane" real,
"name" text,
"country" text,
"mark" text,
"react" real
);
Question: What is the lowest lane for Nigeria, with a react less than 0.133?
<|assistant|>
SELECT MIN("lane") FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final" (
"lane" real,
"name" text,
"country" text,
"mark" text,
"react" real
);
Question: What is the mark for Kim Collins?
<|assistant|>
SELECT "mark" FROM "final" WHERE "name"='kim collins';<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Which country had 1 Bronze, 1 Silver, with a total of 3 medals?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Which country had more than 2 silvers and less than 4 golds?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What's the average bronze with a total number of medals being 1, with more than... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" text,
"series" text,
"team_name" text,
"races" real,
"poles" real,
"wins" real,
"points" text,
"final_placing" text
);
Question: In the 2005 season, how many ra... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" text,
"series" text,
"team_name" text,
"races" real,
"poles" real,
"wins" real,
"points" text,
"final_placing" text
);
Question: Which team completed 10 races?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"pick" real,
"player" text,
"country_of_origin" text,
"pba_team" text,
"college" text
);
Question: What is the PBA team with a Pick that is 4?
<|assistant|>
SELECT "pba_team" FROM "r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"pick" real,
"player" text,
"country_of_origin" text,
"pba_team" text,
"college" text
);
Question: What is the Player with a Pick that is 6?
<|assistant|>
SELECT "player" FROM "round... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medals_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: How many totals have 1 gold and a rank smaller than 2?
<|assistant|>
SELECT CO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medals_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: How much gold did South Korea get?
<|assistant|>
SELECT SUM("gold") FROM "meda... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_kingdom" (
"built" real,
"number" real,
"type" text,
"slm_number" real,
"wheel_arrangement" text,
"location" text,
"notes" text
);
Question: What locomotive built after 1895 has the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_kingdom" (
"built" real,
"number" real,
"type" text,
"slm_number" real,
"wheel_arrangement" text,
"location" text,
"notes" text
);
Question: Which type of locomotive was built in 192... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_kingdom" (
"built" real,
"number" real,
"type" text,
"slm_number" real,
"wheel_arrangement" text,
"location" text,
"notes" text
);
Question: What is the first locomotive that has a S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1972_isle_of_man_lightweight_tt_250cc_fi" (
"place" real,
"rider" text,
"country" text,
"machine" text,
"speed" text,
"time" text,
"points" real
);
Question: When the United Kingdom had a t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1972_isle_of_man_lightweight_tt_250cc_fi" (
"place" real,
"rider" text,
"country" text,
"machine" text,
"speed" text,
"time" text,
"points" real
);
Question: What County scored with a speed... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results_pool_e" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"set_4" text,
"set_5" text,
"total" text
);
Question: What is Set 4, when Date is Jun 27, and when S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results_pool_e" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"set_4" text,
"set_5" text,
"total" text
);
Question: What is Score, when Set 3 is 17-25?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results_pool_e" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"set_4" text,
"set_5" text,
"total" text
);
Question: What is Set 5, when Date is Jun 26, and when S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results_pool_e" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"set_4" text,
"set_5" text,
"total" text
);
Question: What is Set 1, when Set 3 is 22-25?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results_pool_e" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"set_4" text,
"set_5" text,
"total" text
);
Question: What is Set 1, when Date is Jun 26, and when S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results_pool_e" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"set_4" text,
"set_5" text,
"total" text
);
Question: What is Set 4, when Set 5 is NA, and when Set ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" real,
"country" text,
"team" text,
"individual" text,
"location" text
);
Question: What is the Team when the match was in buenos aires , argentina?
<|assistant|>
SELECT "team"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" real,
"country" text,
"team" text,
"individual" text,
"location" text
);
Question: What is the Location when the team was seve ballesteros & manuel piñero?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" real,
"country" text,
"team" text,
"individual" text,
"location" text
);
Question: What is the Location when the individual was josé maria cañizares?
<|assistant|>
SELECT "loc... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" real,
"country" text,
"team" text,
"individual" text,
"location" text
);
Question: What is the highest Year when the team was seve ballesteros & manuel piñero?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "closed_landfills" (
"landfill" text,
"location" text,
"acres" real,
"opened" real,
"capacity" text,
"status" text,
"rehab_period" text
);
Question: What is the total number of acres at Sai ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_top_association_football_goal_sc" (
"rank" real,
"name" text,
"years" text,
"matches" real,
"goals" real
);
Question: Which Rank has a Goals smaller than 76, and a Matches larger than 2... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_top_association_football_goal_sc" (
"rank" real,
"name" text,
"years" text,
"matches" real,
"goals" real
);
Question: Which Matches have a Rank smaller than 5, a Years of 1995–2003, and... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_top_association_football_goal_sc" (
"rank" real,
"name" text,
"years" text,
"matches" real,
"goals" real
);
Question: Which Goals have a Name of lee dong-gook?
<|assistant|>
SELECT MAX(... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_top_association_football_goal_sc" (
"rank" real,
"name" text,
"years" text,
"matches" real,
"goals" real
);
Question: Which Rank has a Years of 1998–present?
<|assistant|>
SELECT AVG("r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_top_association_football_goal_sc" (
"rank" real,
"name" text,
"years" text,
"matches" real,
"goals" real
);
Question: Which Matches have a Rank of 2?
<|assistant|>
SELECT COUNT("matches... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text,
"notes" text
);
Question: What Position was achieved in the World Championships Competition in To... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text,
"notes" text
);
Question: Which Competition was 1st Position with 57.03 in Notes?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text,
"notes" text
);
Question: What is the earliest Year for 400m h Event with 54.86 in Notes?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_goal_scorers" (
"place" real,
"scorer" text,
"goals" real,
"appearances" real,
"team" text
);
Question: What is the total number of appearances for players from Chaux-de-Fonds with places o... |
<|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,
"record" text,
"location" text,
"attendance" text
);
Question: What is the highest week of the game on November 9, 1997... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "numerals" (
"number" text,
"proto_austronesian" text,
"proto_malayo_polynesian" text,
"proto_oceanic" text,
"proto_polynesian" text
);
Question: Which Proto-Austronesian has a Proto-Oceanic of ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "numerals" (
"number" text,
"proto_austronesian" text,
"proto_malayo_polynesian" text,
"proto_oceanic" text,
"proto_polynesian" text
);
Question: Which Proto-Oceanic has a Proto-Polynesian of *l... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "numerals" (
"number" text,
"proto_austronesian" text,
"proto_malayo_polynesian" text,
"proto_oceanic" text,
"proto_polynesian" text
);
Question: Which Number has a Proto-Polynesian of *taha?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "numerals" (
"number" text,
"proto_austronesian" text,
"proto_malayo_polynesian" text,
"proto_oceanic" text,
"proto_polynesian" text
);
Question: WHich Proto-Polynesian has a Number of five?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "numerals" (
"number" text,
"proto_austronesian" text,
"proto_malayo_polynesian" text,
"proto_oceanic" text,
"proto_polynesian" text
);
Question: Which Proto-Polynesian has a Proto-Malayo-Polyne... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "numerals" (
"number" text,
"proto_austronesian" text,
"proto_malayo_polynesian" text,
"proto_oceanic" text,
"proto_polynesian" text
);
Question: Which Proto-Oceanic has a Proto-Polynesian of *... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "number_of_participants_per_year_and_coun" (
"country" text,
"1997" real,
"1998" real,
"1999" real,
"2000" real,
"2001" real,
"2002" real,
"2003" real,
"2004" real,
"2005" real,
"2006... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "number_of_participants_per_year_and_coun" (
"country" text,
"1997" real,
"1998" real,
"1999" real,
"2000" real,
"2001" real,
"2002" real,
"2003" real,
"2004" real,
"2005" real,
"2006... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "number_of_participants_per_year_and_coun" (
"country" text,
"1997" real,
"1998" real,
"1999" real,
"2000" real,
"2001" real,
"2002" real,
"2003" real,
"2004" real,
"2005" real,
"2006... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "number_of_participants_per_year_and_coun" (
"country" text,
"1997" real,
"1998" real,
"1999" real,
"2000" real,
"2001" real,
"2002" real,
"2003" real,
"2004" real,
"2005" real,
"2006... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "recent_government_budget_balances" (
"year" real,
"income" real,
"expenditure" real,
"surplus_deficit" text,
"pct_gdp" text
);
Question: Which % GDP has an Expenditure larger than 50.9, and a Y... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "recent_government_budget_balances" (
"year" real,
"income" real,
"expenditure" real,
"surplus_deficit" text,
"pct_gdp" text
);
Question: Which Year has an Expenditure smaller than 41.3, and a %... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "recent_government_budget_balances" (
"year" real,
"income" real,
"expenditure" real,
"surplus_deficit" text,
"pct_gdp" text
);
Question: Which Surplus(Deficit) has an Expenditure larger than 45... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.