text stringlengths 310 1.28k |
|---|
<|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 "assembly_segments" (
"constituency_number" text,
"name" text,
"reserved_for_sc_st_none" text,
"district" text,
"number_of_electorates_2009" real
);
Question: What is the district with more than... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "assembly_segments" (
"constituency_number" text,
"name" text,
"reserved_for_sc_st_none" text,
"district" text,
"number_of_electorates_2009" real
);
Question: What is the total number of elector... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "assembly_segments" (
"constituency_number" text,
"name" text,
"reserved_for_sc_st_none" text,
"district" text,
"number_of_electorates_2009" real
);
Question: What is the reserved for the consti... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results_of_heat_9" (
"draw" real,
"artist" text,
"song" text,
"percentage" text,
"place" real
);
Question: Which Artist has a Percentage of 11.32%?
<|assistant|>
SELECT "artist" FROM "results_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,
"attendance" real
);
Question: What is the week for November 28, 1982?
<|assistant|>
SELECT MIN("week") FROM "schedule" WHE... |
<|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 is the attendance number when the result is l 41-37?
<|assistant|>
SELECT "attendance" ... |
<|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 is the attendance in a week earlier than 4, and result is w 31-20?
<|assistant|>
SELECT... |
<|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 is the opponent in a week larger than 1, with a result of l 21-20?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sports" (
"club" text,
"sport" text,
"founded" real,
"league" text,
"venue" text
);
Question: What sport was played by the team founded in 2010?
<|assistant|>
SELECT "sport" FROM "sports" WHERE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sports" (
"club" text,
"sport" text,
"founded" real,
"league" text,
"venue" text
);
Question: What club team was founded before 2011 and plays at the champion window field?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sports" (
"club" text,
"sport" text,
"founded" real,
"league" text,
"venue" text
);
Question: How many different dates are there for founded teams for the venue of champion window field?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sports" (
"club" text,
"sport" text,
"founded" real,
"league" text,
"venue" text
);
Question: What club team plays at the champion window field?
<|assistant|>
SELECT "club" FROM "sports" WHERE ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "historical_trend" (
"year" real,
"gross_domestic_product" real,
"us_dollar_exchange" text,
"inflation_index_2000_100" real,
"per_capita_income_as_pct_of_usa" real
);
Question: How much Gross Do... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "historical_trend" (
"year" real,
"gross_domestic_product" real,
"us_dollar_exchange" text,
"inflation_index_2000_100" real,
"per_capita_income_as_pct_of_usa" real
);
Question: Which Gross Domes... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "historical_trend" (
"year" real,
"gross_domestic_product" real,
"us_dollar_exchange" text,
"inflation_index_2000_100" real,
"per_capita_income_as_pct_of_usa" real
);
Question: Which Inflation I... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1935" (
"title" text,
"series" text,
"director" text,
"production_num" text,
"release_date" text
);
Question: What release date has 6998 as the production num.?
<|assistant|>
SELECT "release_da... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1935" (
"title" text,
"series" text,
"director" text,
"production_num" text,
"release_date" text
);
Question: What director has lt as the series, with 6982 as the production num.?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1935" (
"title" text,
"series" text,
"director" text,
"production_num" text,
"release_date" text
);
Question: What series has 1935-07-13 as the release date?
<|assistant|>
SELECT "series" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1935" (
"title" text,
"series" text,
"director" text,
"production_num" text,
"release_date" text
);
Question: What title has lt as the series, ben hardaway as the director, with 6612 as the pro... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "albums_as" (
"year" real,
"title" text,
"type" text,
"label" text,
"label_nr" text
);
Question: What is the song title from 1963 on the Pacific Jazz label, and a Label-Nr of st-81?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "albums_as" (
"year" real,
"title" text,
"type" text,
"label" text,
"label_nr" text
);
Question: What is the earliest year with a label-Nr of st-43?
<|assistant|>
SELECT MIN("year") FROM "albums... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "albums_as" (
"year" real,
"title" text,
"type" text,
"label" text,
"label_nr" text
);
Question: What is the song title on the Pacific Jazz label, and a Label-Nr of st-20124?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "albums_as" (
"year" real,
"title" text,
"type" text,
"label" text,
"label_nr" text
);
Question: What is the type earlier than 1968, and a Title of stretchin' out?
<|assistant|>
SELECT "type" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "supplemental_first_round_selections" (
"pick" real,
"player" text,
"team" text,
"position" text,
"school" text
);
Question: what is the team that is pick 31?
<|assistant|>
SELECT "team" FROM "s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "supplemental_first_round_selections" (
"pick" real,
"player" text,
"team" text,
"position" text,
"school" text
);
Question: what is the position when the pick is higher than 32 and the team is ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "supplemental_first_round_selections" (
"pick" real,
"player" text,
"team" text,
"position" text,
"school" text
);
Question: what is the position when the pick is higher than 33 and the school i... |
<|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 is the Attendance of the game in Week 12?
<|assistant|>
SELECT MAX("attendance") FROM "... |
<|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 is the Opponent on December 3, 1979?
<|assistant|>
SELECT "opponent" FROM "schedule" WH... |
<|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 is the Result of the game against Philadelphia Eagles?
<|assistant|>
SELECT "result" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"series" text
);
Question: What is the score March 27?
<|assistant|>
SELECT "score" FROM "play... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"series" text
);
Question: What is the score for the game larger than 4 in series 3-2?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"series" text
);
Question: What is the game number for series 4-2?
<|assistant|>
SELECT COUNT(... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"series" text
);
Question: What date has a game smaller than 4, and a score of 116-114?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"series" text
);
Question: What is the game number on April 7?
<|assistant|>
SELECT COUNT("gam... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "matches" (
"opposing_team" text,
"against" real,
"date" text,
"venue" text,
"status" text
);
Question: Which Opposing Team has an Against smaller than 19, and a Date of 20/05/1979?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1958" (
"title" text,
"series" text,
"director" text,
"production_number" real,
"release_date" text
);
Question: What was the production number of the episode titel of pre-hysterical hare?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1958" (
"title" text,
"series" text,
"director" text,
"production_number" real,
"release_date" text
);
Question: What director had a production number of 1490?
<|assistant|>
SELECT "director" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1958" (
"title" text,
"series" text,
"director" text,
"production_number" real,
"release_date" text
);
Question: Which title was directed by chuck jones and released on 1958-04-12?
<|assistant|... |
<|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: Which Name has a Time larger than 53.06, and a Lane smaller than 8, and a Rank larger than 2, ... |
<|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: How many lanes have a Time of 53.61, and a Rank larger than 3?
<|assistant|>
SELECT SUM("lane"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "may_bumps" (
"year" real,
"finish_position" text,
"1st_day" text,
"2nd_day" text,
"3rd_day" text,
"4th_day" text
);
Question: What is the 3rd day result when the 2nd day was rowed-over in 201... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "may_bumps" (
"year" real,
"finish_position" text,
"1st_day" text,
"2nd_day" text,
"3rd_day" text,
"4th_day" text
);
Question: What is the 3rd day result when the 4th day was bumped Fitzwillia... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "may_bumps" (
"year" real,
"finish_position" text,
"1st_day" text,
"2nd_day" text,
"3rd_day" text,
"4th_day" text
);
Question: What is the finish position in the year prior to 2009?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "may_bumps" (
"year" real,
"finish_position" text,
"1st_day" text,
"2nd_day" text,
"3rd_day" text,
"4th_day" text
);
Question: What is the result for the first day in a year prior to 2011 when... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "membership" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"num_county" text
);
Question: Which #/ County has a Location of ossian?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "membership" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"num_county" text
);
Question: How much Enrollment has an IHSAA Class of aaaaa, and a Masco... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "membership" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"num_county" text
);
Question: How much Enrollment has a School of fort wayne homestead?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "membership" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"num_county" text
);
Question: Which IHSAA Class has a Location of columbia city?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
Question: Who was the opponent at the game with a score of 111-106?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
Question: What was the location of the game with a score of 113-106?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_round" (
"pick" real,
"team" text,
"player" text,
"position" text,
"college" text
);
Question: What is the highest pick number for a pick drafted by the denver broncos?
<|assistant|>
SELE... |
<|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 opponent has l 27-7 as the result?
<|assistant|>
SELECT "opponent" FROM "schedule" WHER... |
<|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: How many weeks has 54,187 as the attendance?
<|assistant|>
SELECT COUNT("week") FROM "schedu... |
<|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: How many weeks have an attendance greater than 55,121, and l 27-7 as the result?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_15_10_5" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: What tournament had Alberta Brianti as an opponent with a score o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_15_10_5" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: When was the score 3-6 4-6?
<|assistant|>
SELECT "date" FROM "sin... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
Question: What is the Rank of the Swimmer with a Time of 2:25.65 in a Lane larger than 3?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
Question: What is the Rank of Qi Hui?
<|assistant|>
SELECT COUNT("rank") FROM "semifinal_2" WHERE "name"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2012_ladder" (
"millewa" text,
"wins" real,
"forfeits" real,
"losses" real,
"draws" real,
"against" real
);
Question: How many Forfeits have Wins smaller than 8, and Losses larger than 16?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2012_ladder" (
"millewa" text,
"wins" real,
"forfeits" real,
"losses" real,
"draws" real,
"against" real
);
Question: How many Losses have a Millewa of nangiloc?
<|assistant|>
SELECT COUNT("l... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2012_ladder" (
"millewa" text,
"wins" real,
"forfeits" real,
"losses" real,
"draws" real,
"against" real
);
Question: How many Losses have Draws larger than 0?
<|assistant|>
SELECT MAX("losse... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "volleyball_at_the_2008_summer_olympics_w" (
"name" text,
"height" text,
"weight" text,
"spike" text,
"2008_club" text
);
Question: What is the spike for the club of d.c. in 2008?
<|assistant|>
... |
<|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" text
);
Question: What is the average rank of Elise Matthysen in lanes under 8?
<|assistant|>
SELECT AVG("rank")... |
<|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" text
);
Question: What is the time of Yuliya Yefimova?
<|assistant|>
SELECT "time" FROM "semifinal_1" WHERE "nam... |
<|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" text
);
Question: Who was from Great Britain in lanes under number 3?
<|assistant|>
SELECT "name" FROM "semifina... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "4_6_2" (
"class" text,
"wheel_arrangement" text,
"fleet_number_s" text,
"manufacturer" text,
"serial_numbers" text,
"year_made" text,
"quantity_made" text,
"quantity_preserved" text,
"ye... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "4_6_2" (
"class" text,
"wheel_arrangement" text,
"fleet_number_s" text,
"manufacturer" text,
"serial_numbers" text,
"year_made" text,
"quantity_made" text,
"quantity_preserved" text,
"ye... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_titles" (
"date" text,
"tournament" text,
"surface" text,
"partnering" text,
"opponents_in_the_final" text,
"score" text
);
Question: Which Surface has a score of 7-5, 5-7, 6-3?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_titles" (
"date" text,
"tournament" text,
"surface" text,
"partnering" text,
"opponents_in_the_final" text,
"score" text
);
Question: Which tournament has a Score of 6-4, 6-4?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_titles" (
"date" text,
"tournament" text,
"surface" text,
"partnering" text,
"opponents_in_the_final" text,
"score" text
);
Question: What was the Surface on during 10 November 2006?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_titles" (
"date" text,
"tournament" text,
"surface" text,
"partnering" text,
"opponents_in_the_final" text,
"score" text
);
Question: What was the Score on 25 May 2007?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_titles" (
"date" text,
"tournament" text,
"surface" text,
"partnering" text,
"opponents_in_the_final" text,
"score" text
);
Question: What was the score on 10 November 2006?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_titles" (
"date" text,
"tournament" text,
"surface" text,
"partnering" text,
"opponents_in_the_final" text,
"score" text
);
Question: Which Partnering has a Score of 6-3, 4-6, 6-4?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heat_2" (
"rank" real,
"athletes" text,
"country" text,
"time" text,
"notes" text
);
Question: What is the rank for the man from China with notes of QS?
<|assistant|>
SELECT MAX("rank") FROM "h... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heat_2" (
"rank" real,
"athletes" text,
"country" text,
"time" text,
"notes" text
);
Question: What is the rank for the competitor from Bulgaria?
<|assistant|>
SELECT MIN("rank") FROM "heat_2" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heat_2" (
"rank" real,
"athletes" text,
"country" text,
"time" text,
"notes" text
);
Question: Which athlete is ranked below 5 and is from China?
<|assistant|>
SELECT "athletes" FROM "heat_2" W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "kotaku" (
"year" real,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
);
Question: Which game was a Platformer?
<|assistant|>
SELECT "game" FROM "kotaku" WHERE "genre"='platfo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "kotaku" (
"year" real,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
);
Question: Who was the developer of XCom: Enemy Unknown?
<|assistant|>
SELECT "developer_s" FROM "kotak... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "kotaku" (
"year" real,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
);
Question: Which platform was Red Dead Redemption for?
<|assistant|>
SELECT "platform_s" FROM "kotaku" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_scorers" (
"name" text,
"egyptian_premier_league" real,
"egypt_cup" real,
"caf_champions_league" real,
"total" real
);
Question: What is the highest total for players with under 2 Egyptian ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_scorers" (
"name" text,
"egyptian_premier_league" real,
"egypt_cup" real,
"caf_champions_league" real,
"total" real
);
Question: What is the aveage Egypt Cup value for players with 0 CAF Ch... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_count_by_country" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: how many times is gold more than 0 and the rank less than 2?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_count_by_country" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: what is the highest total when the nation is france and silver is mo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_count_by_country" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: what is the least silver for germany when gold is more than 4?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_count_by_country" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: How many times is the total less than 15, rank less than 5, bronze i... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What venue did the game on september 5, 1998 take place at?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What venue did the 2000 tiger cup take place at on November 10, 2000?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What date had a game with a score of 5-4?
<|assistant|>
SELECT "date" FROM "intern... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "administrative_districts" (
"district" text,
"s_barangay" real,
"population_2010_census" real,
"area_has" real,
"pop_density_per_km2" real
);
Question: What is the total of Barangay with an are... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "administrative_districts" (
"district" text,
"s_barangay" real,
"population_2010_census" real,
"area_has" real,
"pop_density_per_km2" real
);
Question: What is the lowest population density for... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "administrative_districts" (
"district" text,
"s_barangay" real,
"population_2010_census" real,
"area_has" real,
"pop_density_per_km2" real
);
Question: What is the highest population density th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "administrative_districts" (
"district" text,
"s_barangay" real,
"population_2010_census" real,
"area_has" real,
"pop_density_per_km2" real
);
Question: What is the total population with a popul... |
<|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 average number of golds for teams in rank 17 with more than 4 silve... |
<|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 average total for teams with under 34 bronzes, 0 silver, and under ... |
<|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 golds for teams with 0 silver?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "world_championships_and_world_cups" (
"sport" text,
"body" text,
"year" text,
"event_type" text,
"location" text,
"nations" text
);
Question: What nations participated in 2007?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "world_championships_and_world_cups" (
"sport" text,
"body" text,
"year" text,
"event_type" text,
"location" text,
"nations" text
);
Question: What event type had BODY CMAS in 1980 and underwa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "world_championships_and_world_cups" (
"sport" text,
"body" text,
"year" text,
"event_type" text,
"location" text,
"nations" text
);
Question: What body is at the World Championship for Underw... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "world_championships_and_world_cups" (
"sport" text,
"body" text,
"year" text,
"event_type" text,
"location" text,
"nations" text
);
Question: What body participated in 1973?
<|assistant|>
SEL... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.