text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "kaikoura_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
Question: Name the Years of schools with a Roll Larger than 23 an... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "kaikoura_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
Question: What is the total number of Rolls of State schools in H... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "senate_composition_before_the_elections" (
"d_48" text,
"d_47" text,
"d_46" text,
"d_45" text,
"d_44" text,
"d_43" text,
"d_42" text,
"d_41" text
);
Question: What is the D45 associated w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "senate_composition_before_the_elections" (
"d_48" text,
"d_47" text,
"d_46" text,
"d_45" text,
"d_44" text,
"d_43" text,
"d_42" text,
"d_41" text
);
Question: What is the D43 associated w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "senate_composition_before_the_elections" (
"d_48" text,
"d_47" text,
"d_46" text,
"d_45" text,
"d_44" text,
"d_43" text,
"d_42" text,
"d_41" text
);
Question: What is the D42 associated w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "senate_composition_before_the_elections" (
"d_48" text,
"d_47" text,
"d_46" text,
"d_45" text,
"d_44" text,
"d_43" text,
"d_42" text,
"d_41" text
);
Question: What is the D43 associated w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
);
Question: What is the record for the game when the loss was hargan (14β13)?
<|assistant|>
SELECT "record" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
);
Question: What is the record for the game with a score of 7β5?
<|assistant|>
SELECT "record" FROM "game_log... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
);
Question: What date was the game with loss of Aker (3β8)?
<|assistant|>
SELECT "date" FROM "game_log" WHER... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
);
Question: What team was the opponent when the score was 7β1?
<|assistant|>
SELECT "opponent" FROM "game_log... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
);
Question: What was the score when the opponent was the Orioles and the loss shows morehead (5β4)?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
Question: Name the opponent with a record of 60-61
<|assistant|>
SELECT "opponent" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_results_2007_fai_world_grand_prix" (
"rank" real,
"name" text,
"nationality" text,
"score" text,
"perfection" text
);
Question: Who had a perfection percentage of 77.96%?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_results_2007_fai_world_grand_prix" (
"rank" real,
"name" text,
"nationality" text,
"score" text,
"perfection" text
);
Question: What was the rank of Svetlana Fedorenko?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_results_2007_fai_world_grand_prix" (
"rank" real,
"name" text,
"nationality" text,
"score" text,
"perfection" text
);
Question: Who had a perfection percentage of 73.24%?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
);
Question: What was the score of the game on June 1?
<|assistant|>
SELECT "score" FROM "game_log" WHERE "dat... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "futures_and_challengers_singles_titles" (
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: What was the score against andrei pavel?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "futures_and_challengers_singles_titles" (
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: When was the tournament of bologna?
<|assistant|>
SELECT "da... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "futures_and_challengers_singles_titles" (
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: Who played on clay and had a score of 6β1, 7β6?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "futures_and_challengers_singles_titles" (
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: Who played on clay on 3 march 2012?
<|assistant|>
SELECT "op... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "futures_and_challengers_singles_titles" (
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: What was the score against fabrice martin?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "futures_and_challengers_singles_titles" (
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: What was the surface of the score of 7β5, 3β6, 7β6?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cardinal_electors" (
"elector" text,
"order" text,
"title" text,
"elevated" text,
"elevator" text
);
Question: What's the Order with an Elector of Marino Bulcani?
<|assistant|>
SELECT "order" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cardinal_electors" (
"elector" text,
"order" text,
"title" text,
"elevated" text,
"elevator" text
);
Question: What's the Elevator that has Elevated: 1378, September 18, an Order of Cardinal-Pr... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cardinal_electors" (
"elector" text,
"order" text,
"title" text,
"elevated" text,
"elevator" text
);
Question: What is listed as the Elector with the Title of Deacon of S. Maria in Domnica?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cardinal_electors" (
"elector" text,
"order" text,
"title" text,
"elevated" text,
"elevator" text
);
Question: What's listed for the Elevated category that has an Order of Cardinal-Bishop?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2006_regular_season_football_standings" (
"school" text,
"team" text,
"division_record" text,
"overall_record" text,
"season_outcome" text
);
Question: The Milford School has what Division Reco... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2006_regular_season_football_standings" (
"school" text,
"team" text,
"division_record" text,
"overall_record" text,
"season_outcome" text
);
Question: What is the name of the School of the Sus... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money_us" real
);
Question: What was Arnold Palmer's score in the tournamnet?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"member" text,
"party" text,
"electorate" text,
"state" text,
"term_in_office" text
);
Question: What the name of Peter White's party?
<|assistant|>
SELECT "party" FROM "see_also" W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"member" text,
"party" text,
"electorate" text,
"state" text,
"term_in_office" text
);
Question: What term did an Electorate of indi have in office?
<|assistant|>
SELECT "term_in_of... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"member" text,
"party" text,
"electorate" text,
"state" text,
"term_in_office" text
);
Question: What term did hon ralph hunt serve in office?
<|assistant|>
SELECT "term_in_office" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"member" text,
"party" text,
"electorate" text,
"state" text,
"term_in_office" text
);
Question: What party is Peter Fisher from Vic serve in office?
<|assistant|>
SELECT "party" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "24_hours_of_le_mans_results" (
"year" real,
"team" text,
"co_drivers" text,
"class" text,
"laps" real,
"pos" text,
"class_pos" text
);
Question: How many laps were done in 2012?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_6_6" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: On what day was the score of 1β6 6β1 3β6 achieved?
<|assistant|>
SELE... |
<|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: Name the average gold for czech republic and bronze less than 1 when total is l... |
<|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: Name the highest rank when silver is 4 and bronze is less than 3
<|assistant|>
... |
<|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: Name the total number of total for bronze of 4 and silver more than 6
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_19_5_14" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score_in_the_final" text
);
Question: When the Surface was... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "eurolaul_26_january_2002" (
"draw" real,
"artist" text,
"song" text,
"votes" real,
"place" real
);
Question: What is the draw number of the song with a place lower than 6 and more than 38 votes... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "eurolaul_26_january_2002" (
"draw" real,
"artist" text,
"song" text,
"votes" real,
"place" real
);
Question: What is the total number of votes Sahlene with a place below 1 has?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "eurolaul_26_january_2002" (
"draw" real,
"artist" text,
"song" text,
"votes" real,
"place" real
);
Question: What is the highest place of the song with 38 votes and a draw great than 3?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "eurolaul_26_january_2002" (
"draw" real,
"artist" text,
"song" text,
"votes" real,
"place" real
);
Question: How many votes did Yvetta Kadakas & Ivo Linna, who had less than 4 draws, have?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indianapolis_500" (
"year" real,
"chassis" text,
"engine" text,
"start" text,
"finish" text,
"team" text
);
Question: What year was there a finish of 3?
<|assistant|>
SELECT "year" FROM "indi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indianapolis_500" (
"year" real,
"chassis" text,
"engine" text,
"start" text,
"finish" text,
"team" text
);
Question: What year was the start 33?
<|assistant|>
SELECT SUM("year") FROM "indian... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indianapolis_500" (
"year" real,
"chassis" text,
"engine" text,
"start" text,
"finish" text,
"team" text
);
Question: When was there a team of Simon and the start was 3?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "completed" (
"rank" real,
"city" text,
"roof_m" real,
"spire_m" text,
"floors" real,
"built" real
);
Question: What's the name of the 1985 city with a Spire (m) of 105, and a Roof (m) smaller... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "completed" (
"rank" real,
"city" text,
"roof_m" real,
"spire_m" text,
"floors" real,
"built" real
);
Question: What's the average number of floors that were built in 2004, and have a roof (m)... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "completed" (
"rank" real,
"city" text,
"roof_m" real,
"spire_m" text,
"floors" real,
"built" real
);
Question: What's the total number of floors built after 2006, and have a rank of 12?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "league_cup" (
"date" text,
"round" text,
"opponents" text,
"h_a" text,
"result_f_a" text,
"attendance" real
);
Question: What is the sum of attendance for H/A values of "n"?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"outcome" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: Name the score which has opponent of stefano galvani
<|assistant|>
SELECT "score" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"outcome" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: Name the score with opponent of javier genaro-martinez
<|assistant|>
SELECT "score" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"outcome" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: Name the outcome for dunlop world challenge
<|assistant|>
SELECT "outcome" FROM "singles... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1998" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
);
Question: Who was the visiting team on December 6?
<|assistant|>
SELECT "visiting_team" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1998" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
);
Question: Who was the host team on October 4?
<|assistant|>
SELECT "host_team" FROM "1998" WHE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_subsidiaries" (
"date" text,
"company" text,
"business" text,
"country" text,
"value_usd" text
);
Question: In New Zealand, what's the value that has an unknown date and is an energy bu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_subsidiaries" (
"date" text,
"company" text,
"business" text,
"country" text,
"value_usd" text
);
Question: What company has an unknown date and is an energy business?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_subsidiaries" (
"date" text,
"company" text,
"business" text,
"country" text,
"value_usd" text
);
Question: In the United Kingdom, what company has an unknown date and is an energy busi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_subsidiaries" (
"date" text,
"company" text,
"business" text,
"country" text,
"value_usd" text
);
Question: For the United Kingdom, what's the date?
<|assistant|>
SELECT "date" FROM "li... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_subsidiaries" (
"date" text,
"company" text,
"business" text,
"country" text,
"value_usd" text
);
Question: For the Enernoc Australia Pty Ltd, what's the country with an unknown date?
<... |
<|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 date is associated with a venue of Luxembourg?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: What is the year with a Kurtis Kraft 500a chassis, and less th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: What is the year with a kurtis kraft 500a chassis?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indianapolis_colts_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: What is the lowest Pick # of Saint Vincent College... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indianapolis_colts_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: What is the Overall for Pick # less than 5 Jack Ha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "eurostat_data_for_2009" (
"rank" text,
"region" text,
"total_gdp_bn" text,
"pct_growth" text,
"per_capita" text
);
Question: Which rank has a Total GDP (β¬ bn) of β¬11.243??
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "eurostat_data_for_2009" (
"rank" text,
"region" text,
"total_gdp_bn" text,
"pct_growth" text,
"per_capita" text
);
Question: What is the Region that has a Total GDP (β¬ bn ) of β¬11,745.353?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "eurostat_data_for_2009" (
"rank" text,
"region" text,
"total_gdp_bn" text,
"pct_growth" text,
"per_capita" text
);
Question: Which Region that has a growth of β3.6%?
<|assistant|>
SELECT "regio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "eurostat_data_for_2009" (
"rank" text,
"region" text,
"total_gdp_bn" text,
"pct_growth" text,
"per_capita" text
);
Question: What is the per capita of Greece?
<|assistant|>
SELECT "per_capita" ... |
<|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 is the fewest number of silver medals received by a nation who received 40... |
<|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 is the lowest number of silver medals received by Austria when they receiv... |
<|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 average number of silver medals with more than 6 gold meals and les... |
<|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: How many ranks are for Switzerland with more than 2 total medals?
<|assistant|>... |
<|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 is the event of the matc... |
<|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 is the method of the mat... |
<|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 is the highest round of ... |
<|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 is the highest round of ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2011_2012_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2011_2012_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2011_2012_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2011_2012_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2011_2012_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "24_hours_of_le_mans_results" (
"year" real,
"team" text,
"co_drivers" text,
"class" text,
"laps" real,
"pos" text,
"class_pos" text
);
Question: Who were the co-drivers in 2008?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "24_hours_of_le_mans_results" (
"year" real,
"team" text,
"co_drivers" text,
"class" text,
"laps" real,
"pos" text,
"class_pos" text
);
Question: What was the position in 2006?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "24_hours_of_le_mans_results" (
"year" real,
"team" text,
"co_drivers" text,
"class" text,
"laps" real,
"pos" text,
"class_pos" text
);
Question: What was the class when there were 325 laps?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "24_hours_of_le_mans_results" (
"year" real,
"team" text,
"co_drivers" text,
"class" text,
"laps" real,
"pos" text,
"class_pos" text
);
Question: What was the position in a year after 2005 w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000s" (
"year" real,
"english_title" text,
"original_title" text,
"country" text,
"director_s" text
);
Question: What is the English title of the film from 2001?
<|assistant|>
SELECT "english_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000s" (
"year" real,
"english_title" text,
"original_title" text,
"country" text,
"director_s" text
);
Question: What is the original title of the film from Japan/Taiwan before 2003?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000s" (
"year" real,
"english_title" text,
"original_title" text,
"country" text,
"director_s" text
);
Question: What is the English title of the film directed by Fernando Meirelles?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000s" (
"year" real,
"english_title" text,
"original_title" text,
"country" text,
"director_s" text
);
Question: What is the country of the original title Cidade de deus?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000s" (
"year" real,
"english_title" text,
"original_title" text,
"country" text,
"director_s" text
);
Question: What is the earliest year of a film from Mexico?
<|assistant|>
SELECT MIN("year... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000s" (
"year" real,
"english_title" text,
"original_title" text,
"country" text,
"director_s" text
);
Question: What is the average year of the film from France/Hong Kong?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: Name the country for t3 place
<|assistant|>
SELECT "country" FROM "second_round" WHERE "pla... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: Name the country with +2 to par
<|assistant|>
SELECT "country" FROM "second_round" WHERE "t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: Name the to par for colin montgomerie
<|assistant|>
SELECT "to_par" FROM "second_round" WHE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: Name the score for scotland
<|assistant|>
SELECT "score" FROM "second_round" WHERE "country... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "main_list" (
"island" text,
"location" text,
"area_ha" real,
"population" real,
"height_m" real
);
Question: What island has a population over 76, a height over 210, and an area larger than 120... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "main_list" (
"island" text,
"location" text,
"area_ha" real,
"population" real,
"height_m" real
);
Question: What is the highest population of Trondra Island in the Scalloway Islands?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rugby_spain_internationals_1989" (
"first_game" real,
"played" real,
"drawn" real,
"lost" real,
"percentage" text
);
Question: How many matches were drawn associated with a percentage of 7.14% ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rugby_spain_internationals_1989" (
"first_game" real,
"played" real,
"drawn" real,
"lost" real,
"percentage" text
);
Question: Which percentage has a first game before 1997, fewer than 2 losses... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.