text stringlengths 310 1.28k |
|---|
<|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 number of silver for the country with more than 0 gold, rank of 14, and... |
<|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 number of gold for the country ranked 19?
<|assistant|>
SELECT SUM(... |
<|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 least amount of silver when there is less than 0 bronze?
<|assistan... |
<|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 most bronze when the total is 14, and there are more than 6 gold?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "records" (
"world_record" text,
"snatch" text,
"andrei_rybakou_blr" text,
"187kg" text,
"chiang_mai_thailand" text
);
Question: Which world record has a 187kg of 392kg?
<|assistant|>
SELECT "wo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "records" (
"world_record" text,
"snatch" text,
"andrei_rybakou_blr" text,
"187kg" text,
"chiang_mai_thailand" text
);
Question: Who has 187kg and a Snatch of Clean & Jerk?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "records" (
"world_record" text,
"snatch" text,
"andrei_rybakou_blr" text,
"187kg" text,
"chiang_mai_thailand" text
);
Question: What is the world record for a 187kg of 392kg?
<|assistant|>
SELE... |
<|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 (SC / ST /... |
<|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 number of electorates (... |
<|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 when the reser... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "usage_share_of_desktop_browsers_for_june" (
"source" text,
"chrome" text,
"internet_explorer" text,
"firefox" text,
"safari" text,
"opera" text,
"other" text
);
Question: What percentage of... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "usage_share_of_desktop_browsers_for_june" (
"source" text,
"chrome" text,
"internet_explorer" text,
"firefox" text,
"safari" text,
"opera" text,
"other" text
);
Question: According to W3Cou... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "usage_share_of_desktop_browsers_for_june" (
"source" text,
"chrome" text,
"internet_explorer" text,
"firefox" text,
"safari" text,
"opera" text,
"other" text
);
Question: What percentage of... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "usage_share_of_desktop_browsers_for_june" (
"source" text,
"chrome" text,
"internet_explorer" text,
"firefox" text,
"safari" text,
"opera" text,
"other" text
);
Question: Which source repor... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "usage_share_of_desktop_browsers_for_june" (
"source" text,
"chrome" text,
"internet_explorer" text,
"firefox" text,
"safari" text,
"opera" text,
"other" text
);
Question: What percentage of... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "usage_share_of_desktop_browsers_for_june" (
"source" text,
"chrome" text,
"internet_explorer" text,
"firefox" text,
"safari" text,
"opera" text,
"other" text
);
Question: What percentage of... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_prix_career_statistics" (
"year" real,
"class" text,
"team" text,
"machine" text,
"points" real,
"wins" real
);
Question: How many points did team Rothmans Honda have in 1992?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_prix_career_statistics" (
"year" real,
"class" text,
"team" text,
"machine" text,
"points" real,
"wins" real
);
Question: What class before 1990 has points of 33?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_prix_career_statistics" (
"year" real,
"class" text,
"team" text,
"machine" text,
"points" real,
"wins" real
);
Question: How many total points were in 1992?
<|assistant|>
SELECT COUNT(... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_prix_career_statistics" (
"year" real,
"class" text,
"team" text,
"machine" text,
"points" real,
"wins" real
);
Question: In 1992, what class has higher wins than 0?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_prix_career_statistics" (
"year" real,
"class" text,
"team" text,
"machine" text,
"points" real,
"wins" real
);
Question: What was the class that team Honda Britain was in with points h... |
<|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" text,
"fa_cup_goals" real,
"league_cup_apps" real,
"league_cup_goals" real,
... |
<|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" text,
"fa_cup_goals" real,
"league_cup_apps" real,
"league_cup_goals" real,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam_women_s_singles_performance_t" (
"tournament" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
);
Question: What's the 2009 of the Australian Open having a 1R ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam_women_s_singles_performance_t" (
"tournament" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
);
Question: What's the 2008 of the Australian Open when the 201... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam_women_s_singles_performance_t" (
"tournament" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
);
Question: What's the 2008 of the US Open when 2010 was 2R and... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_line_series" (
"airing_date" text,
"english_title_chinese_title" text,
"number_of_episodes" real,
"genre" text,
"official_website" text
);
Question: What is the lowest number of episodes ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles" (
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponent_in_the_final" text,
"score" text
);
Question: What tournament has petra mandula patricia wartusch as the o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles" (
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponent_in_the_final" text,
"score" text
);
Question: What date has kimberly po nathalie tauziat as the opponent i... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles" (
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponent_in_the_final" text,
"score" text
);
Question: What score has February 12, 2006 as the date?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles" (
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponent_in_the_final" text,
"score" text
);
Question: What opponent in the final has October 9, 2005 as the date?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What is the to par for Bo Bae Song?
<|assistant|>
SELECT "to_par" FROM "second_round" WHERE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What is the to par for Jiyai Shin when the place is t1?
<|assistant|>
SELECT "to_par" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What is the to par for Jiyai Shin in place t1?
<|assistant|>
SELECT "to_par" FROM "second_r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What was Laura Diaz's score for place t9?
<|assistant|>
SELECT "score" FROM "second_round" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What country does Bo Bae Song play for?
<|assistant|>
SELECT "country" FROM "second_round" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table_by_country" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: How many gold medals did Brazil win with a total of more than 55 med... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table_by_country" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: How many teams won more than 2 silver medals and fewer than 2 Bronze... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table_by_country" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the fewest gold medals won by Greece?
<|assistant|>
SELECT M... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table_by_country" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the lowest rank of the United States, with fewer than 4 bron... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table_by_country" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the highest number of gold medals won by a team that won few... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"athlete" text,
"country" text,
"time" real,
"react" real
);
Question: Which React has a Lane smaller than 4, and a Rank larger than 4, and a Time lar... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_ladder" (
"hampden_fl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
Question: What shows for against when draws are 0, and losses are 16?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_ladder" (
"hampden_fl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
Question: What is the highest number of wins when draws are larger than 1, and byes ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performance_in_uefa_super_cup_by_club" (
"team" text,
"winners" real,
"runners_up" real,
"years_won" text,
"years_runners_up" text
);
Question: Which team were runners-up in 2007 and had 1 unde... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performance_in_uefa_super_cup_by_club" (
"team" text,
"winners" real,
"runners_up" real,
"years_won" text,
"years_runners_up" text
);
Question: What is the sum of winners when 1983 is the years... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "single_game" (
"rank" real,
"player" text,
"county" text,
"tally" text,
"total" real,
"opposition" text
);
Question: Which Rank has a Total of 12?
<|assistant|>
SELECT AVG("rank") FROM "singl... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "single_game" (
"rank" real,
"player" text,
"county" text,
"tally" text,
"total" real,
"opposition" text
);
Question: Which Rank has an Opposition of limerick?
<|assistant|>
SELECT "rank" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "single_game" (
"rank" real,
"player" text,
"county" text,
"tally" text,
"total" real,
"opposition" text
);
Question: How much Rank has a Tally of 0-10, and an Opposition of cork?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "single_game" (
"rank" real,
"player" text,
"county" text,
"tally" text,
"total" real,
"opposition" text
);
Question: Which Total has a Rank smaller than 3, and a County of cork?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "single_game" (
"rank" real,
"player" text,
"county" text,
"tally" text,
"total" real,
"opposition" text
);
Question: Which Rank has a Tally of 4-0?
<|assistant|>
SELECT AVG("rank") FROM "sing... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heat_5" (
"rank" real,
"lane" real,
"athlete" text,
"nationality" text,
"time" real,
"react" real
);
Question: Which Lane has a Rank larger than 3, and a Time larger than 45.63, and a Reactio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heat_5" (
"rank" real,
"lane" real,
"athlete" text,
"nationality" text,
"time" real,
"react" real
);
Question: How many reactions have an Athlete of alleyne francique, and a Lane larger than ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "previous_championship_encounters" (
"year" real,
"venue" text,
"competition" text,
"kilkenny_score" text,
"waterford_score" text
);
Question: What yeae has 6-08 (24) as a waterford score?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "previous_championship_encounters" (
"year" real,
"venue" text,
"competition" text,
"kilkenny_score" text,
"waterford_score" text
);
Question: What is the lowest year that has all-ireland hurlin... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "previous_championship_encounters" (
"year" real,
"venue" text,
"competition" text,
"kilkenny_score" text,
"waterford_score" text
);
Question: What is the waterford score that has a year prior t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "entry_list" (
"team" text,
"car_spec" text,
"drivers" text,
"class" text,
"rounds" text
);
Question: What rounds did RML Racing Silverline and James Nash compete?
<|assistant|>
SELECT "rounds" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "entry_list" (
"team" text,
"car_spec" text,
"drivers" text,
"class" text,
"rounds" text
);
Question: What class is Rob Collard in?
<|assistant|>
SELECT "class" FROM "entry_list" WHERE "drivers"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "entry_list" (
"team" text,
"car_spec" text,
"drivers" text,
"class" text,
"rounds" text
);
Question: What is the car specs for team Airwaves BMW's driver Rob Collard?
<|assistant|>
SELECT "car_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "channel_listing" (
"name" text,
"language" text,
"owner" text,
"group" text,
"type" text
);
Question: What is the language of TV3?
<|assistant|>
SELECT "language" FROM "channel_listing" WHERE "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "channel_listing" (
"name" text,
"language" text,
"owner" text,
"group" text,
"type" text
);
Question: What is the group of ESPN International Sports?
<|assistant|>
SELECT "group" FROM "channel_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "channel_listing" (
"name" text,
"language" text,
"owner" text,
"group" text,
"type" text
);
Question: What is the type of station for ESPN International Sports?
<|assistant|>
SELECT "type" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "channel_listing" (
"name" text,
"language" text,
"owner" text,
"group" text,
"type" text
);
Question: What is the type of station that is in the movies group?
<|assistant|>
SELECT "type" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heat_2" (
"rank" real,
"name" text,
"1st_run" text,
"2nd_run" text,
"3rd_run" text,
"total" real
);
Question: What is the total sum ranked less than 5 with a 37.076 (2) 3rd run?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heat_2" (
"rank" real,
"name" text,
"1st_run" text,
"2nd_run" text,
"3rd_run" text,
"total" real
);
Question: What is the name of the person with a total of 22?
<|assistant|>
SELECT "name" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heat_2" (
"rank" real,
"name" text,
"1st_run" text,
"2nd_run" text,
"3rd_run" text,
"total" real
);
Question: What is the total with a rank less than 8 and a 40.143 (4) 2nd run?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "records_1951_1976" (
"time" text,
"athlete" text,
"nationality" text,
"location_of_race" text,
"date" text
);
Question: What's the nationality of Henry Carr having a time of 20.3y?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "records_1951_1976" (
"time" text,
"athlete" text,
"nationality" text,
"location_of_race" text,
"date" text
);
Question: What's the nationality of Livio Berruti?
<|assistant|>
SELECT "nationalit... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "records_1951_1976" (
"time" text,
"athlete" text,
"nationality" text,
"location_of_race" text,
"date" text
);
Question: What's the nationality of Ray norton with a time of 20.6?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_european_ultra_prominent_peaks" (
"peak" text,
"country" text,
"elevation_m" real,
"prominence_m" real,
"col_m" real
);
Question: What is the sum of the prominence in m of slovakia?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_european_ultra_prominent_peaks" (
"peak" text,
"country" text,
"elevation_m" real,
"prominence_m" real,
"col_m" real
);
Question: What is the prominence in m of a col in m greater than ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_european_ultra_prominent_peaks" (
"peak" text,
"country" text,
"elevation_m" real,
"prominence_m" real,
"col_m" real
);
Question: Whta is the lowest col in m of gerlachovský štít peak, ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_european_ultra_prominent_peaks" (
"peak" text,
"country" text,
"elevation_m" real,
"prominence_m" real,
"col_m" real
);
Question: What is the lowest elevation in m of moldoveanu peak, w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_european_ultra_prominent_peaks" (
"peak" text,
"country" text,
"elevation_m" real,
"prominence_m" real,
"col_m" real
);
Question: What is the average prominence in m of pietrosul rodnei... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "world_record_progression" (
"score" text,
"shooter" text,
"date" text,
"comp" text,
"place" text
);
Question: What is the Score of the Shooter with a Comp of OG?
<|assistant|>
SELECT "score" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualified_competitors" (
"position" text,
"gymnast" text,
"a_score" real,
"b_score" real,
"total" real
);
Question: What is the B Score when the total is more than 16.125, and position is 3rd?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualified_competitors" (
"position" text,
"gymnast" text,
"a_score" real,
"b_score" real,
"total" real
);
Question: What is the lowest A Score when the B Score is 9.15, and total is 16.05?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heat_3" (
"rank" real,
"athlete" text,
"country" text,
"time" text,
"notes" text
);
Question: Who had a time of 7:14.64?
<|assistant|>
SELECT "athlete" FROM "heat_3" WHERE "time"='7:14.64';<|en... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heat_3" (
"rank" real,
"athlete" text,
"country" text,
"time" text,
"notes" text
);
Question: What rank was Lassi Karonen?
<|assistant|>
SELECT COUNT("rank") FROM "heat_3" WHERE "athlete"='lass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heat_3" (
"rank" real,
"athlete" text,
"country" text,
"time" text,
"notes" text
);
Question: What was the rank when then time was 7:52.53?
<|assistant|>
SELECT MIN("rank") FROM "heat_3" WHERE ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heat_3" (
"rank" real,
"athlete" text,
"country" text,
"time" text,
"notes" text
);
Question: Who was the athlete from Germany with notes of Q?
<|assistant|>
SELECT "athlete" FROM "heat_3" WHER... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heat_3" (
"rank" real,
"athlete" text,
"country" text,
"time" text,
"notes" text
);
Question: What rank is Germany?
<|assistant|>
SELECT "rank" FROM "heat_3" WHERE "country"='germany';<|endofte... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heat_3" (
"rank" real,
"athlete" text,
"country" text,
"time" text,
"notes" text
);
Question: Who was the athlete from Hong Kong?
<|assistant|>
SELECT "athlete" FROM "heat_3" WHERE "country"='h... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_members" (
"school" text,
"location" text,
"mascot" text,
"enrollment_08_09" real,
"ihsaa_class_football_class" text,
"county" text,
"year_joined" real,
"previous_conference" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_members" (
"school" text,
"location" text,
"mascot" text,
"enrollment_08_09" real,
"ihsaa_class_football_class" text,
"county" text,
"year_joined" real,
"previous_conference" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "amateur_draft" (
"round" real,
"pick" real,
"player" text,
"nationality" text,
"college_junior_club_team" text
);
Question: Which player was selected in rounds under 3?
<|assistant|>
SELECT "pl... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "f" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" real,
"water_sqmi" real,
"latitude" real,
"longitude" real,
"geo_id" real,
"ansi_code" real
);
Question: Which Water (s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "f" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" real,
"water_sqmi" real,
"latitude" real,
"longitude" real,
"geo_id" real,
"ansi_code" real
);
Question: Which Land (sq... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "f" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" real,
"water_sqmi" real,
"latitude" real,
"longitude" real,
"geo_id" real,
"ansi_code" real
);
Question: How much Latit... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "f" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" real,
"water_sqmi" real,
"latitude" real,
"longitude" real,
"geo_id" real,
"ansi_code" real
);
Question: Which ANSI cod... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "radio" (
"frequency" text,
"call_sign" text,
"branding" text,
"format" text,
"owner" text
);
Question: What is the Owner of Frequency 00 99.3?
<|assistant|>
SELECT "owner" FROM "radio" WHERE "f... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "radio" (
"frequency" text,
"call_sign" text,
"branding" text,
"format" text,
"owner" text
);
Question: What is the Branding of Frequency 00 94.5?
<|assistant|>
SELECT "branding" FROM "radio" WH... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "radio" (
"frequency" text,
"call_sign" text,
"branding" text,
"format" text,
"owner" text
);
Question: What is the Call Sign of the Frequency by Owner CKUA Radio Foundation?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "radio" (
"frequency" text,
"call_sign" text,
"branding" text,
"format" text,
"owner" text
);
Question: What is the Owner of the Frequency with a Format of First Nations Community Radio?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "membership" (
"school" text,
"location" text,
"mascot" text,
"size" real,
"ihsaa_class" text,
"county" text,
"year_joined" real,
"previous_conference" text
);
Question: Which School has a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "membership" (
"school" text,
"location" text,
"mascot" text,
"size" real,
"ihsaa_class" text,
"county" text,
"year_joined" real,
"previous_conference" text
);
Question: Which Location has... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "membership" (
"school" text,
"location" text,
"mascot" text,
"size" real,
"ihsaa_class" text,
"county" text,
"year_joined" real,
"previous_conference" text
);
Question: Which Year Joined ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "membership" (
"school" text,
"location" text,
"mascot" text,
"size" real,
"ihsaa_class" text,
"county" text,
"year_joined" real,
"previous_conference" text
);
Question: How many years Joi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1950s" (
"country" text,
"1951" real,
"1952" real,
"1953" real,
"1954" real,
"1955" real,
"1956" real,
"1957" real,
"1958" real,
"1959" real
);
Question: What is the 1957 number when ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1950s" (
"country" text,
"1951" real,
"1952" real,
"1953" real,
"1954" real,
"1955" real,
"1956" real,
"1957" real,
"1958" real,
"1959" real
);
Question: What is the 1952 rate when th... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.