text stringlengths 310 1.28k |
|---|
<|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: Name the team for co-drivers of david brabha... |
<|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: Name the highest year with points more than 0
<|assistant|>
SE... |
<|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: Name the highest points when year is more than 1953
<|assistan... |
<|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: Name the engine when points are 0 and chassis is kuzma indy ro... |
<|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: Name the least points with chassis of kurtis kraft 3000 and ye... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "population" (
"year" real,
"total_region" real,
"mackay" real,
"pioneer" real,
"mirani" real,
"sarina" real
);
Question: What is the total region population with a Mirani population of 5,220 ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "population" (
"year" real,
"total_region" real,
"mackay" real,
"pioneer" real,
"mirani" real,
"sarina" real
);
Question: What is the Pioneer population with a Sarina population less than 3,26... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "population" (
"year" real,
"total_region" real,
"mackay" real,
"pioneer" real,
"mirani" real,
"sarina" real
);
Question: What is the Mirani population with a total region population less than... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "population" (
"year" real,
"total_region" real,
"mackay" real,
"pioneer" real,
"mirani" real,
"sarina" real
);
Question: What is the lowest Pioneer population in 1966 with a Sarina population... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "population" (
"year" real,
"total_region" real,
"mackay" real,
"pioneer" real,
"mirani" real,
"sarina" real
);
Question: What is the lowest Pioneer population with a Sarina population less th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tv_series" (
"year" text,
"title" text,
"title_in_english" text,
"director" text,
"character" text
);
Question: What is the year of the TV series directed by Soroush Sehat?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tv_series" (
"year" text,
"title" text,
"title_in_english" text,
"director" text,
"character" text
);
Question: What is the title of the TV series with a character of Sheyda/Ashraf?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tv_series" (
"year" text,
"title" text,
"title_in_english" text,
"director" text,
"character" text
);
Question: What is the year of the TV series that has a character of Leiloon Bala Barareh?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tv_series" (
"year" text,
"title" text,
"title_in_english" text,
"director" text,
"character" text
);
Question: What is the title of the TV series in 2012?
<|assistant|>
SELECT "title" FROM "tv... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cry_engine" (
"title" text,
"year" text,
"developer" text,
"publisher" text,
"platform" text
);
Question: Who published Star Citizen in 2014?
<|assistant|>
SELECT "publisher" FROM "cry_engine" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cry_engine" (
"title" text,
"year" text,
"developer" text,
"publisher" text,
"platform" text
);
Question: Which title was developed by Battlecry Studios?
<|assistant|>
SELECT "title" FROM "cry_... |
<|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: How many people were at the match on July 13/
<|assistant|>
SELECT "attendan... |
<|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: Who was the opponent on July 27?
<|assistant|>
SELECT "opponent" FROM "game_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_2010_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 "2009_2010_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 "2009_2010_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 "2009_2010_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 "2009_2010_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 "2009_2010_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 "online_episodes" (
"episode_num" real,
"title" text,
"part_1" text,
"part_2" text,
"part_3" text,
"part_4" text,
"part_5" text,
"part_6" text
);
Question: When is Part 6, when Part 4 is o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "online_episodes" (
"episode_num" real,
"title" text,
"part_1" text,
"part_2" text,
"part_3" text,
"part_4" text,
"part_5" text,
"part_6" text
);
Question: What is the Title, when the Epis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "online_episodes" (
"episode_num" real,
"title" text,
"part_1" text,
"part_2" text,
"part_3" text,
"part_4" text,
"part_5" text,
"part_6" text
);
Question: When is Part 2, when Part 4 is o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "online_episodes" (
"episode_num" real,
"title" text,
"part_1" text,
"part_2" text,
"part_3" text,
"part_4" text,
"part_5" text,
"part_6" text
);
Question: When is Part 1, when Part 4 is o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "online_episodes" (
"episode_num" real,
"title" text,
"part_1" text,
"part_2" text,
"part_3" text,
"part_4" text,
"part_5" text,
"part_6" text
);
Question: When is Part 2, when Part 5 is o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_5" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: Who was the finals opponent on the hard surface tournament?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_5" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: Which surface was played during Curitiba tournament?
<|assistant|>
SELECT "s... |
<|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,
"location" text
);
Question: What is the highest round for UFC 109?
<|ass... |
<|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,
"location" text
);
Question: What round was the opponent Manny Gamburyan?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
Question: What was the earliest week that had an attendance of less than 16,375, for a game pla... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
Question: What was the week of the game played December 6, 1964?
<|assistant|>
SELECT SUM("week... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_ladder" (
"bellarine_fl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
Question: What is the fewest losses that had an against score of 2190 and more tha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_ladder" (
"bellarine_fl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
Question: What is the fewest number of draws for teams with more than 0 byes?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_ladder" (
"bellarine_fl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
Question: What is the sum of losses for Geelong Amateur, with 0 byes?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_ladder" (
"bellarine_fl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
Question: What is the sum of the number of wins for teams with more than 0 draws?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_season" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
);
Question: What is the Stadium that hosts the team Jacksonville Jaguars?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_season" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
);
Question: What stadium was used on November 13?
<|assistant|>
SELECT "stadium" FROM "20... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_season" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
);
Question: What is the host team with the stadium Lincoln Financial Field?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_season" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
);
Question: What team visited the Cleveland Browns Stadium?
<|assistant|>
SELECT "visitin... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_season" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
);
Question: What stadium did the Denver Broncos visit?
<|assistant|>
SELECT "stadium" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_season" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
);
Question: What team visited the Jacksonville Municipal Stadium?
<|assistant|>
SELECT "v... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list" (
"rank" real,
"station" text,
"city" text,
"state" text,
"boardings_and_deboardings" real
);
Question: How many people boarded and de-boarded the Amtrak in Linthicum?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list" (
"rank" real,
"station" text,
"city" text,
"state" text,
"boardings_and_deboardings" real
);
Question: In California what was the total rank at Irvine station when the number of boarding... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list" (
"rank" real,
"station" text,
"city" text,
"state" text,
"boardings_and_deboardings" real
);
Question: At south station what was the total rank when boarding and deboardings were smaller... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list" (
"rank" real,
"station" text,
"city" text,
"state" text,
"boardings_and_deboardings" real
);
Question: Which is the highest rank that has 8,995,551 boardings and deboardings?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_appearances" (
"name" text,
"years" text,
"league" text,
"fa_cup" text,
"league_cup" text,
"europe" text,
"other_c" text,
"total" text
);
Question: The Europe listing of 00 0 0 (0) a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_appearances" (
"name" text,
"years" text,
"league" text,
"fa_cup" text,
"league_cup" text,
"europe" text,
"other_c" text,
"total" text
);
Question: The league of 400 (21) has what ye... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_appearances" (
"name" text,
"years" text,
"league" text,
"fa_cup" text,
"league_cup" text,
"europe" text,
"other_c" text,
"total" text
);
Question: With a FA Cup of 0 44 0 (0), the o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_appearances" (
"name" text,
"years" text,
"league" text,
"fa_cup" text,
"league_cup" text,
"europe" text,
"other_c" text,
"total" text
);
Question: The Europe listing of 117 0 (8) be... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_appearances" (
"name" text,
"years" text,
"league" text,
"fa_cup" text,
"league_cup" text,
"europe" text,
"other_c" text,
"total" text
);
Question: The League Cup of 0 40 0 (6) also ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_appearances" (
"name" text,
"years" text,
"league" text,
"fa_cup" text,
"league_cup" text,
"europe" text,
"other_c" text,
"total" text
);
Question: The other [C] of 0 12 0 (0) belong... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summer" (
"year" text,
"edition" text,
"host_city" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the lowest VIII Edition Gold with a Silver of 4?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summer" (
"year" text,
"edition" text,
"host_city" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the highest Edition I Bronze with a Gold higher than 9 ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summer" (
"year" text,
"edition" text,
"host_city" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What's the Total for a Mexico City game with a Gold of less tha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summer" (
"year" text,
"edition" text,
"host_city" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Which Host City has more than 6 Silver and a Total of 22?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "disc_four" (
"track" real,
"recorded" text,
"catalogue" text,
"release_date" text,
"song_title" text,
"writer_s" text,
"time" text
);
Question: What was the time for tracks before 19 on 8/2... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "long_course_50_meter_pool" (
"event" text,
"time" text,
"venue" text,
"date" text,
"notes" text
);
Question: Which venue has a note of AM?
<|assistant|>
SELECT "venue" FROM "long_course_50_mete... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "long_course_50_meter_pool" (
"event" text,
"time" text,
"venue" text,
"date" text,
"notes" text
);
Question: What is the time associated with August 16, 2008?
<|assistant|>
SELECT "time" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "long_course_50_meter_pool" (
"event" text,
"time" text,
"venue" text,
"date" text,
"notes" text
);
Question: Which event was held in Beijing?
<|assistant|>
SELECT "event" FROM "long_course_50_m... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "long_course_50_meter_pool" (
"event" text,
"time" text,
"venue" text,
"date" text,
"notes" text
);
Question: For a venue of Rome on July 30, 2009, what are the notes?
<|assistant|>
SELECT "note... |
<|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,
"series" text
);
Question: Name the score for october 9
<|assistant|>
SELECT "score" FROM "game_log" WH... |
<|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,
"series" text
);
Question: Name the loss for series 2-2
<|assistant|>
SELECT "loss" FROM "game_log" WHE... |
<|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,
"series" text
);
Question: Name the total number of attendance for october 8
<|assistant|>
SELECT COUNT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: Which engine did Élie Bayol use when they earned 0 points?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "record_as_j_league_member" (
"season" real,
"div" text,
"tms" real,
"pos" real,
"attendance_g" real,
"j_league_cup" text,
"emperor_s_cup" text
);
Question: What season had the highest atten... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"pts" real
);
Question: What year had 13 points?
<|assistant|>
SELECT "year" FROM "complete_formula_o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"pts" real
);
Question: Which chassis has a year later than 1964, a Ford engine, and 13 points?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"pts" real
);
Question: Which entrant has fewer than 12 points, a Climax engine, and a Lotus 24 chass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"pts" real
);
Question: In 1972, what was the highest number of points with a Ford engine and an entr... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"pts" real
);
Question: What year had a Ford engine and 13 points?
<|assistant|>
SELECT "year" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "main_transmitters" (
"region_served" text,
"city" text,
"channels_analog_digital" text,
"first_air_date" text,
"erp_analog_digital" text,
"haat_analog_digital_1" text,
"transmitter_location"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "main_transmitters" (
"region_served" text,
"city" text,
"channels_analog_digital" text,
"first_air_date" text,
"erp_analog_digital" text,
"haat_analog_digital_1" text,
"transmitter_location"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "main_transmitters" (
"region_served" text,
"city" text,
"channels_analog_digital" text,
"first_air_date" text,
"erp_analog_digital" text,
"haat_analog_digital_1" text,
"transmitter_location"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "main_transmitters" (
"region_served" text,
"city" text,
"channels_analog_digital" text,
"first_air_date" text,
"erp_analog_digital" text,
"haat_analog_digital_1" text,
"transmitter_location"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "language" (
"language" text,
"number" text,
"percentage_pct" text,
"males" text,
"females" text
);
Question: Which number has 11 males?
<|assistant|>
SELECT "number" FROM "language" WHERE "male... |
<|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 time for a lane less than 6, and a heat less than 4 for Joanne Malar?
<|a... |
<|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 largest heat with a time of 4:57.90, and a Rank larger than 22?
<|assista... |
<|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 time for Adi Bichman?
<|assistant|>
SELECT "time" FROM "heats" WHERE "nam... |
<|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: What is the total attendance at games against the New York Mets with a recor... |
<|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: What is the total attendance at games with a score of 4-2?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1987" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
);
Question: On what date did the New York Giants host a game?
<|assistant|>
SELECT "date" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1987" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
);
Question: Who was the host team for the game on December 27?
<|assistant|>
SELECT "host_team" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1987" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
);
Question: What was the final score of the game at Texas Stadium?
<|assistant|>
SELECT "final_s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1987" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
);
Question: Who was the visiting team who played at the hubert h. humphrey metrodome stadium?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1987" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
);
Question: When did the New England Patriots play as the visiting team?
<|assistant|>
SELECT "d... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1987" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
);
Question: At which stadium did the Los Angeles Raiders play as the visiting team?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fiba_euro_basket_2007_squads" (
"player" text,
"height" real,
"position" text,
"year_born" real,
"current_club" text
);
Question: Who is 1.92 m tall and a current club member of Montepaschi Sie... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_finals_2_titles_4_runner_ups" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: Which date has a Tournament of la quinta?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_finals_2_titles_4_runner_ups" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: Which date has a Surface of carpet (i)?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_finals_2_titles_4_runner_ups" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: Which tournament has a Date of april 20, 198... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_finals_2_titles_4_runner_ups" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: Which Opponent has a Surface of hardcourt, a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_finals_2_titles_4_runner_ups" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: Which Tournament has a Score of 6–4, 6–4?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_finals_2_titles_4_runner_ups" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: Which score has a Surface of hardcourt, and ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "principle" (
"group" real,
"half_life_s" real,
"decay_constant_s_1" real,
"yield_neutrons_per_fission" real,
"fraction" real
);
Question: What is the lowest group number that has a Fraction les... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "principle" (
"group" real,
"half_life_s" real,
"decay_constant_s_1" real,
"yield_neutrons_per_fission" real,
"fraction" real
);
Question: What is the lowest Half-Life with a Yield, Neutrons per... |
<|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: What was the date of the game with a loss of Wakefield (5-2)?
<|assistant|>
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.