text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"draw" real,
"language" text,
"artist" text,
"song" text,
"english_translation" text,
"place" real,
"points" real
);
Question: How many Points were awarded to Sabahudin Kurt with... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "great_eastern_section" (
"number" text,
"previous_number_s" real,
"previous_class" text,
"converted" real,
"withdrawn" real,
"disposal" text
);
Question: How much Converted has a Number of 35... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "great_eastern_section" (
"number" text,
"previous_number_s" real,
"previous_class" text,
"converted" real,
"withdrawn" real,
"disposal" text
);
Question: How much Withdrawn has a Number of 42... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "great_eastern_section" (
"number" text,
"previous_number_s" real,
"previous_class" text,
"converted" real,
"withdrawn" real,
"disposal" text
);
Question: Which Withdrawn has a Previous Class ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "r" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" real,
"water_sqmi" real,
"latitude" real,
"longitude" real,
"geo_id" real,
"ansi_code" real
);
Question: What is the av... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "r" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" real,
"water_sqmi" real,
"latitude" real,
"longitude" real,
"geo_id" real,
"ansi_code" real
);
Question: What is the hi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "r" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" real,
"water_sqmi" real,
"latitude" real,
"longitude" real,
"geo_id" real,
"ansi_code" real
);
Question: What is the nu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s_rebroadcaster_of_cbf_fm" (
"city_of_license" text,
"identifier" text,
"frequency" text,
"power" text,
"class" text,
"rec_net" text
);
Question: What's the class when the identifier is cbf-f... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s_rebroadcaster_of_cbf_fm" (
"city_of_license" text,
"identifier" text,
"frequency" text,
"power" text,
"class" text,
"rec_net" text
);
Question: What's the frequency when the identifier is c... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s_rebroadcaster_of_cbf_fm" (
"city_of_license" text,
"identifier" text,
"frequency" text,
"power" text,
"class" text,
"rec_net" text
);
Question: What's the RECNet when the identifier is cbf-... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s_rebroadcaster_of_cbf_fm" (
"city_of_license" text,
"identifier" text,
"frequency" text,
"power" text,
"class" text,
"rec_net" text
);
Question: What's the RECNet when the power is 199 watts... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s_rebroadcaster_of_cbf_fm" (
"city_of_license" text,
"identifier" text,
"frequency" text,
"power" text,
"class" text,
"rec_net" text
);
Question: What's the frequency when the identifier is c... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "digital_television" (
"transmitter" text,
"bbca" real,
"bbcb" text,
"d3_4" text,
"arqa" text,
"arqb" text,
"pol" text,
"a_g" text
);
Question: What is the A.G. value associated with D3&4 ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "digital_television" (
"transmitter" text,
"bbca" real,
"bbcb" text,
"d3_4" text,
"arqa" text,
"arqb" text,
"pol" text,
"a_g" text
);
Question: What is the AG value associated with a D3&4 ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"year" real,
"title" text,
"billboard_hot_100" text,
"uk_singles_chart" text,
"album" text
);
Question: What was the billboard hot 100 with an album bust a nut, and the title of "nee... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"year" real,
"title" text,
"billboard_hot_100" text,
"uk_singles_chart" text,
"album" text
);
Question: What is the UK singles chart for the album psychotic supper, in the year 1992,... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "guest_appearances" (
"artist" text,
"album" text,
"track_s" text,
"date" text,
"label" text
);
Question: which Label is in 15 december 1992?
<|assistant|>
SELECT "label" FROM "guest_appearances... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "guest_appearances" (
"artist" text,
"album" text,
"track_s" text,
"date" text,
"label" text
);
Question: Which Album has an Artist of various artists (compilation), and a Label of laface?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "guest_appearances" (
"artist" text,
"album" text,
"track_s" text,
"date" text,
"label" text
);
Question: When has an Album of l'un n'empêche pas l'autre?
<|assistant|>
SELECT "date" FROM "guest... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "guest_appearances" (
"artist" text,
"album" text,
"track_s" text,
"date" text,
"label" text
);
Question: Which Track(s) is on 18 november 1985?
<|assistant|>
SELECT "track_s" FROM "guest_appear... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "guest_appearances" (
"artist" text,
"album" text,
"track_s" text,
"date" text,
"label" text
);
Question: Which Artist has a Track(s) of " evilmainya "?
<|assistant|>
SELECT "artist" FROM "guest... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "guest_appearances" (
"artist" text,
"album" text,
"track_s" text,
"date" text,
"label" text
);
Question: Which Label that has an Album of so red the rose?
<|assistant|>
SELECT "label" FROM "gue... |
<|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 least lane number that Natalie Coughlin was in when she was ranked greater than 1?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_a_b_1" (
"rank" real,
"athlete" text,
"country" text,
"time" text,
"notes" text
);
Question: Who is the Athlete with a rowing Time of 6:36.05?
<|assistant|>
SELECT "athlete" FROM "sem... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "main_setlist" (
"year" real,
"song" text,
"artist" text,
"genre" text,
"band_tour_venue" text,
"exportable" text
);
Question: What song was made by the sex pistols?
<|assistant|>
SELECT "song... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "main_setlist" (
"year" real,
"song" text,
"artist" text,
"genre" text,
"band_tour_venue" text,
"exportable" text
);
Question: What song has the band tour vnue of 6. tool (usa) encore?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualified_competitors" (
"position" real,
"gymnast" text,
"a_score" real,
"b_score" real,
"total" real
);
Question: What is the total when the A score was less than 6.6, and the B score was 8.9... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualified_competitors" (
"position" real,
"gymnast" text,
"a_score" real,
"b_score" real,
"total" real
);
Question: What total has a position smaller than 4, a B score higher than 9.125, and an... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: What is the score when watford was the away team?
<|assistant|>
SELECT "score" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: What is the score when york city was the home team?
<|assistant|>
SELECT "score"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Qu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Qu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Qu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Qu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Qu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ivy_bridge_quad_core_22_nm" (
"model_number" text,
"s_spec_number" text,
"cores" text,
"frequency" text,
"turbo" text,
"l2_cache" text,
"l3_cache" text,
"gpu_model" text,
"gpu_frequency"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ivy_bridge_quad_core_22_nm" (
"model_number" text,
"s_spec_number" text,
"cores" text,
"frequency" text,
"turbo" text,
"l2_cache" text,
"l3_cache" text,
"gpu_model" text,
"gpu_frequency"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ivy_bridge_quad_core_22_nm" (
"model_number" text,
"s_spec_number" text,
"cores" text,
"frequency" text,
"turbo" text,
"l2_cache" text,
"l3_cache" text,
"gpu_model" text,
"gpu_frequency"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_densely_populated_islands_over_1_00" (
"island" text,
"country" text,
"population" text,
"area_km" text,
"density_per_km" text
);
Question: What is Japan's Area km²?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_densely_populated_islands_over_1_00" (
"island" text,
"country" text,
"population" text,
"area_km" text,
"density_per_km" text
);
Question: Which island has a density (per km²) of 1,368?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_densely_populated_islands_over_1_00" (
"island" text,
"country" text,
"population" text,
"area_km" text,
"density_per_km" text
);
Question: Which country has a density (per km²) of 6,814?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_densely_populated_islands_over_1_00" (
"island" text,
"country" text,
"population" text,
"area_km" text,
"density_per_km" text
);
Question: Which island has a population of 9,520 (2000)?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_densely_populated_islands_over_1_00" (
"island" text,
"country" text,
"population" text,
"area_km" text,
"density_per_km" text
);
Question: What is the area km² for a population of 99,685 ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_densely_populated_islands_over_1_00" (
"island" text,
"country" text,
"population" text,
"area_km" text,
"density_per_km" text
);
Question: Which island is in the United Kingdom?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pitchers" (
"season" text,
"pitcher" text,
"decision" text,
"opponent" text,
"location" text
);
Question: Who is the pitcher from the 1983 season in location Kingdome?
<|assistant|>
SELECT "pit... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pitchers" (
"season" text,
"pitcher" text,
"decision" text,
"opponent" text,
"location" text
);
Question: Who is the pitcher from the 1994 season that had the Cleveland Indians as an opponent?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pitchers" (
"season" text,
"pitcher" text,
"decision" text,
"opponent" text,
"location" text
);
Question: Who is the opponent for the 2011 season with a decision of W?
<|assistant|>
SELECT "opp... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pitchers" (
"season" text,
"pitcher" text,
"decision" text,
"opponent" text,
"location" text
);
Question: What season was played at Safeco Field, against the Boston Red Sox, with a decision of ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pitchers" (
"season" text,
"pitcher" text,
"decision" text,
"opponent" text,
"location" text
);
Question: What was the decision for the 1983 season for the game played against the New York Yank... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "common_floppy_disk_formats_logical_chara" (
"platform" text,
"size" text,
"density" text,
"bytes_sector" real,
"sectors_track" text,
"tracks_side" text,
"sides" real,
"capacity" text,
"e... |
<|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 highest bronze for less than 2 total trophies?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_won" real,
"total" real,
"to_par" text,
"finish" text
);
Question: Which Total has a Finish of t64, and a Year won larger than 2006?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_won" real,
"total" real,
"to_par" text,
"finish" text
);
Question: Which year won has a Finish of t24, and a Country of england?
<|assista... |
<|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: What is the smallest bronze value for countries with totals over 2, golds of 0... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "membership" (
"school" text,
"location" text,
"mascot" text,
"county" real,
"enrollment" text,
"ihsaa_class" text,
"year_joined" real,
"previous_conference" text
);
Question: Which school... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "membership" (
"school" text,
"location" text,
"mascot" text,
"county" real,
"enrollment" text,
"ihsaa_class" text,
"year_joined" real,
"previous_conference" text
);
Question: What is the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "membership" (
"school" text,
"location" text,
"mascot" text,
"county" real,
"enrollment" text,
"ihsaa_class" text,
"year_joined" real,
"previous_conference" text
);
Question: What is the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engineering" (
"engine" text,
"production" text,
"transmission" text,
"power" text,
"torque" text,
"acceleration_0_100km_h_0_62mph" text,
"top_speed" text
);
Question: What is the engine wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engineering" (
"engine" text,
"production" text,
"transmission" text,
"power" text,
"torque" text,
"acceleration_0_100km_h_0_62mph" text,
"top_speed" text
);
Question: What is the Power whe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engineering" (
"engine" text,
"production" text,
"transmission" text,
"power" text,
"torque" text,
"acceleration_0_100km_h_0_62mph" text,
"top_speed" text
);
Question: What is the transmiss... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engineering" (
"engine" text,
"production" text,
"transmission" text,
"power" text,
"torque" text,
"acceleration_0_100km_h_0_62mph" text,
"top_speed" text
);
Question: What is the productio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engineering" (
"engine" text,
"production" text,
"transmission" text,
"power" text,
"torque" text,
"acceleration_0_100km_h_0_62mph" text,
"top_speed" text
);
Question: What is the transmiss... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engineering" (
"engine" text,
"production" text,
"transmission" text,
"power" text,
"torque" text,
"acceleration_0_100km_h_0_62mph" text,
"top_speed" text
);
Question: What is the accelerat... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "giant_bomb" (
"year" real,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
);
Question: What is the highest year for the Bethesda Game Studios Developer?
<|assistant|>
SELECT M... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "giant_bomb" (
"year" real,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
);
Question: What is the lowest year for the game called The Elder Scrolls v: Skyrim?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "giant_bomb" (
"year" real,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
);
Question: What game was developed by Naughty Dog?
<|assistant|>
SELECT "genre" FROM "giant_bomb" W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_medical_schools_in_the_caribbean" (
"country_territory" text,
"established" real,
"degree" text,
"regional_offshore" text,
"imed_avicenna_listed" text
);
Question: What is the imed/avic... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_medical_schools_in_the_caribbean" (
"country_territory" text,
"established" real,
"degree" text,
"regional_offshore" text,
"imed_avicenna_listed" text
);
Question: What country has a me... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_medical_schools_in_the_caribbean" (
"country_territory" text,
"established" real,
"degree" text,
"regional_offshore" text,
"imed_avicenna_listed" text
);
Question: What is the average y... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_ladder" (
"sunrayia_fl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
Question: What are the most wins with byes more than 0 and 1637 against?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_ladder" (
"sunrayia_fl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
Question: What are the total byes for the Red Cliffs with more than 4 losses and mo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_ladder" (
"sunrayia_fl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
Question: What's the total wins for Wentworth with less than 0 byes?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fa_premier_league" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
);
Question: Which venue had an opponent of Sunderland and a result of a 1-1 draw?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fa_premier_league" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
);
Question: What is the number of attendance values for ties having an opponent of Middlesbrou... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fa_premier_league" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
);
Question: Which venue ended in a 3-0 result?
<|assistant|>
SELECT "venue" FROM "fa_premier_l... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "football_league_first_division" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
);
Question: Where was a 0-5 game played?
<|assistant|>
SELECT "venue" FROM "footb... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season" (
"rank" real,
"player" text,
"county" text,
"tally" text,
"total" real,
"matches" real,
"average" real
);
Question: What is the average rank of a player with fewer than 3 matches?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" text,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
Question: Who was the opponent on April 21?
<|assistant|>
SELECT "opponent" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" text,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
Question: What's the record on April 12 when the location was The Omni?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" text,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
Question: What date was the score "score"?
<|assistant|>
SELECT "date" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" text,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
Question: What was the score on April 12?
<|assistant|>
SELECT "score" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" text,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
Question: What's the score of game 77?
<|assistant|>
SELECT "score" FROM "gam... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" text,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
Question: What date had a record of 43-34?
<|assistant|>
SELECT "date" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results_of_heat_2" (
"draw" real,
"artist" text,
"song" text,
"percentage" text,
"place" real
);
Question: What Artist had a Percentage of 17.14%?
<|assistant|>
SELECT "artist" FROM "results_of... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results_of_heat_2" (
"draw" real,
"artist" text,
"song" text,
"percentage" text,
"place" real
);
Question: What Percentage has a Place of 5?
<|assistant|>
SELECT "percentage" FROM "results_of_h... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"hr_number" real,
"name" text,
"lms_number" real,
"br_number" text,
"withdrawn" text
);
Question: Which BR number has an LMS number over 14768?
<|assistant|>
SELECT "br_number" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s_rebroadcaster_of_cjbc" (
"city_of_license" text,
"identifier" text,
"frequency" text,
"power" text,
"class" text,
"rec_net" text
);
Question: what is the frequency when the city of license ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s_rebroadcaster_of_cjbc" (
"city_of_license" text,
"identifier" text,
"frequency" text,
"power" text,
"class" text,
"rec_net" text
);
Question: what is the class when the power is 22500 watts... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s_rebroadcaster_of_cjbc" (
"city_of_license" text,
"identifier" text,
"frequency" text,
"power" text,
"class" text,
"rec_net" text
);
Question: what is the class when the identifier is cjbc-1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s_rebroadcaster_of_cjbc" (
"city_of_license" text,
"identifier" text,
"frequency" text,
"power" text,
"class" text,
"rec_net" text
);
Question: what is the recnet when the city of license is ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s_rebroadcaster_of_cjbc" (
"city_of_license" text,
"identifier" text,
"frequency" text,
"power" text,
"class" text,
"rec_net" text
);
Question: what is the power when the city of license is b... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s_rebroadcaster_of_cjbc" (
"city_of_license" text,
"identifier" text,
"frequency" text,
"power" text,
"class" text,
"rec_net" text
);
Question: what is the identifier when the power is 22500 ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"dolphins_points" real,
"opponents" real,
"record" text,
"attendance" real
);
Question: What is the Opponents in the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "all_time_records" (
"name" text,
"games" text,
"a_league" text,
"finals" text,
"goals" real,
"assists" real,
"years" text
);
Question: How many games does leandro love have?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "all_time_records" (
"name" text,
"games" text,
"a_league" text,
"finals" text,
"goals" real,
"assists" real,
"years" text
);
Question: What is the lowest number of goals joe keenan, who has... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "all_time_records" (
"name" text,
"games" text,
"a_league" text,
"finals" text,
"goals" real,
"assists" real,
"years" text
);
Question: What is the lowest number of goals of the player with ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "all_time_records" (
"name" text,
"games" text,
"a_league" text,
"finals" text,
"goals" real,
"assists" real,
"years" text
);
Question: How many finals had more than 0 goals and 8 assists?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heats" (
"rank" real,
"heat" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
Question: When the nationality is united states, and the time is 58.06, and the heat is larger ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heats" (
"rank" real,
"heat" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
Question: What is the highest rank when the lane is larger than 6, and the heat is 3, and the n... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heats" (
"rank" real,
"heat" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
Question: What is the total lane for a heat larger than 7?
<|assistant|>
SELECT COUNT("lane") F... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.