text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "kansas" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
Question: What class is assigned to frequencies larger than 89.3 with... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "march" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: What did st. louis score at home?
<|assistant|>
SELECT "score" FROM "march" WHERE "home"='st. louis';... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
Question: What was the result of the game on week 1?
<|assistant|>
SELECT "result" FROM "schedule" WHE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
Question: What is the result of the game on October 25, 1959 with more than 26,198 fans in attendance?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"time_et" text,
"game_site" text,
"result" text,
"record" text
);
Question: What is the record of the game on week 13?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "crime" (
"crime" text,
"reported_offenses" real,
"killeen_rate" real,
"texas_rate" real,
"u_s_rate" real
);
Question: Texas Rate smaller than 32.9, and a U.S. Rate larger than 5.6 is what highe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "crime" (
"crime" text,
"reported_offenses" real,
"killeen_rate" real,
"texas_rate" real,
"u_s_rate" real
);
Question: Reported Offenses larger than 216, and a U.S. Rate smaller than 3274, and a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "crime" (
"crime" text,
"reported_offenses" real,
"killeen_rate" real,
"texas_rate" real,
"u_s_rate" real
);
Question: Killeen Rate of 511.6, and a Texas Rate smaller than 314.4 is the lowest re... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "common_w3_c_events" (
"category" text,
"type" text,
"attribute" text,
"bubbles" text,
"cancelable" text
);
Question: Tell me the type for category of mouse and attribute of ondblclick
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "common_w3_c_events" (
"category" text,
"type" text,
"attribute" text,
"bubbles" text,
"cancelable" text
);
Question: Name the type with cancelable of no and attribute of ondragend
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "common_w3_c_events" (
"category" text,
"type" text,
"attribute" text,
"bubbles" text,
"cancelable" text
);
Question: Name the cancelable for onmouseover
<|assistant|>
SELECT "cancelable" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "common_w3_c_events" (
"category" text,
"type" text,
"attribute" text,
"bubbles" text,
"cancelable" text
);
Question: Name the bubbles for onscroll
<|assistant|>
SELECT "bubbles" FROM "common_w3... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "common_w3_c_events" (
"category" text,
"type" text,
"attribute" text,
"bubbles" text,
"cancelable" text
);
Question: Name the attribute for mutation and domcharacterdatamodified
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"series" text
);
Question: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"series" text
);
Question: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "oslo" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" real,
"2nd_m" real,
"points" real,
"overall_nt_points" text,
"overall_wc_points_rank" text
);
Question: Which name has a dist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "oslo" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" real,
"2nd_m" real,
"points" real,
"overall_nt_points" text,
"overall_wc_points_rank" text
);
Question: What is the distance ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "oslo" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" real,
"2nd_m" real,
"points" real,
"overall_nt_points" text,
"overall_wc_points_rank" text
);
Question: What are the most poi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "oslo" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" real,
"2nd_m" real,
"points" real,
"overall_nt_points" text,
"overall_wc_points_rank" text
);
Question: What is the sum of th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "oslo" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" real,
"2nd_m" real,
"points" real,
"overall_nt_points" text,
"overall_wc_points_rank" text
);
Question: Who had more than 247... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medals_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the gold medal count that has a silver medal count less than 0?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schools" (
"school_name" text,
"city" text,
"students" real,
"fte_teachers" real,
"pupil_teacher_ratio" real
);
Question: What is the average number of students for schools with a pupil to teac... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schools" (
"school_name" text,
"city" text,
"students" real,
"fte_teachers" real,
"pupil_teacher_ratio" real
);
Question: What is the lowest pupil to teacher ratio for Saratoga schools with sma... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schools" (
"school_name" text,
"city" text,
"students" real,
"fte_teachers" real,
"pupil_teacher_ratio" real
);
Question: What is the highest number of students for schools in Campbell with pup... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wins_per_country" (
"rank" real,
"country" text,
"wins_outdoor" real,
"wins_indoor" real,
"wins_total" real
);
Question: Name the most rank for wins outdoor larger than 1 and wins indoor less t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wins_per_country" (
"rank" real,
"country" text,
"wins_outdoor" real,
"wins_indoor" real,
"wins_total" real
);
Question: Name the most rank for uk and wins more than 5
<|assistant|>
SELECT MAX(... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wins_per_country" (
"rank" real,
"country" text,
"wins_outdoor" real,
"wins_indoor" real,
"wins_total" real
);
Question: Name the average wins outdoor with rank more than 4 and wins less than 3... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wins_per_country" (
"rank" real,
"country" text,
"wins_outdoor" real,
"wins_indoor" real,
"wins_total" real
);
Question: Name the most wins total with wins indoor of 0 and wins outdoor of 1 wit... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "portfolio" (
"print_name" text,
"nickname" text,
"number_of_colors" text,
"framed_size" text,
"date_completed" text
);
Question: What was the frame size in 08/87?
<|assistant|>
SELECT "framed_s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "portfolio" (
"print_name" text,
"nickname" text,
"number_of_colors" text,
"framed_size" text,
"date_completed" text
);
Question: What was the print name in 07/87?
<|assistant|>
SELECT "print_na... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "portfolio" (
"print_name" text,
"nickname" text,
"number_of_colors" text,
"framed_size" text,
"date_completed" text
);
Question: What is the frame size that was nicknamed Grand Central?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "portfolio" (
"print_name" text,
"nickname" text,
"number_of_colors" text,
"framed_size" text,
"date_completed" text
);
Question: When was the Little Tavern completed?
<|assistant|>
SELECT "date... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "relegation" (
"team" text,
"average" real,
"points" real,
"played" real,
"1988_89" text,
"1989_90" text,
"1990_1991" real
);
Question: How much Average has a Team of san lorenzo, and a 1990... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "relegation" (
"team" text,
"average" real,
"points" real,
"played" real,
"1988_89" text,
"1989_90" text,
"1990_1991" real
);
Question: Which Played is the lowest one that has a 1989-90 of 3... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "relegation" (
"team" text,
"average" real,
"points" real,
"played" real,
"1988_89" text,
"1989_90" text,
"1990_1991" real
);
Question: Which 1990-1991 is the average one that has Played of ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
Question: Which College/Junior/Club Team has a Nationality of Canada ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
Question: Which Player has a Hc Cska Moscow (Russia)?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
Question: What is Nationality of daniel goneau?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "motorcycle_grand_prix_results" (
"year" real,
"class" text,
"team" text,
"machine" text,
"points" real,
"rank" text,
"wins" real
);
Question: What points have 500cc as a class, and nsr500 a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "motorcycle_grand_prix_results" (
"year" real,
"class" text,
"team" text,
"machine" text,
"points" real,
"rank" text,
"wins" real
);
Question: How many years have 78 for points?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "motorcycle_grand_prix_results" (
"year" real,
"class" text,
"team" text,
"machine" text,
"points" real,
"rank" text,
"wins" real
);
Question: What class has nsr250 as the machine, with poin... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "motorcycle_grand_prix_results" (
"year" real,
"class" text,
"team" text,
"machine" text,
"points" real,
"rank" text,
"wins" real
);
Question: What is the lowest year that have wins greater ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "motorcycle_grand_prix_results" (
"year" real,
"class" text,
"team" text,
"machine" text,
"points" real,
"rank" text,
"wins" real
);
Question: What are the highest points that have a year le... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text,
"attendance" real
);
Question: What was the lowest attendance at a game against the St... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_civil_parishes_and_unparished_ar" (
"name" text,
"status" text,
"population" real,
"district" text,
"former_local_authority" text
);
Question: What district is the parish Milburn in?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_civil_parishes_and_unparished_ar" (
"name" text,
"status" text,
"population" real,
"district" text,
"former_local_authority" text
);
Question: What is the name of the parish that has a ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_civil_parishes_and_unparished_ar" (
"name" text,
"status" text,
"population" real,
"district" text,
"former_local_authority" text
);
Question: What is the population of the Parish, Plum... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_civil_parishes_and_unparished_ar" (
"name" text,
"status" text,
"population" real,
"district" text,
"former_local_authority" text
);
Question: What is the district for the parish, Broug... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_civil_parishes_and_unparished_ar" (
"name" text,
"status" text,
"population" real,
"district" text,
"former_local_authority" text
);
Question: Who were the former local authority for th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_international_formula_3000_resu" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: What year featured lola motorsport as an entrant with over 0 p... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_international_formula_3000_resu" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: When is the earliest year that there's a judd engine?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_international_formula_3000_resu" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: What chassis is used in 1989 with a cosworth engine?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table_4_early_o_s_n_monopoly_boats" (
"name" text,
"type" text,
"year_built" real,
"where_built" text,
"initial_owners" text
);
Question: Where was something built earlier than 1858?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table_4_early_o_s_n_monopoly_boats" (
"name" text,
"type" text,
"year_built" real,
"where_built" text,
"initial_owners" text
);
Question: What was built in 1857?
<|assistant|>
SELECT "name" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table_4_early_o_s_n_monopoly_boats" (
"name" text,
"type" text,
"year_built" real,
"where_built" text,
"initial_owners" text
);
Question: Who were the initial owners of Wasco in 1858?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table_4_early_o_s_n_monopoly_boats" (
"name" text,
"type" text,
"year_built" real,
"where_built" text,
"initial_owners" text
);
Question: What was the type of boat built in Port Blakeley
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"location" text,
"time_et" text,
"result" text,
"record" text
);
Question: What is the date of the game at Arrowhead Stadium?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"location" text,
"time_et" text,
"result" text,
"record" text
);
Question: Who is the opponent of the game after week 4 on Sun. Nov. 1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "new_mexico_counties_ranked_by_per_capita" (
"county" text,
"per_capita_income" text,
"median_household_income" text,
"median_family_income" text,
"population" real,
"number_of_households" real... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "new_mexico_counties_ranked_by_per_capita" (
"county" text,
"per_capita_income" text,
"median_household_income" text,
"median_family_income" text,
"population" real,
"number_of_households" real... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pga_tour_wins_5" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: What was the winning score when Steve Stricker was runner-up?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pga_tour_wins_5" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: What was the margin of victory when the winning score was β14 ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pga_tour_wins_5" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: Who was the runnerup when the margin of victory was 1 stroke o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pga_tour_wins_5" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: What was the margin of victory when the winning score was β12 ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pga_tour_wins_5" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: What day was the margin of victory 1 stroke when the tournamen... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pga_tour_wins_5" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: What was the winning score for runnerup Greg Norman
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_series" (
"name" text,
"pennant_number" text,
"ordered" real,
"builder" text,
"commissioned" text
);
Question: Which Builder has a Pennant number of Q149?
<|assistant|>
SELECT "builder" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_series" (
"name" text,
"pennant_number" text,
"ordered" real,
"builder" text,
"commissioned" text
);
Question: On what date was the ship with a Pennant number of Q144 commissioned?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_series" (
"name" text,
"pennant_number" text,
"ordered" real,
"builder" text,
"commissioned" text
);
Question: How many ships are named Monge?
<|assistant|>
SELECT COUNT("ordered") FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1960s" (
"spacecraft" text,
"destination" text,
"launched" text,
"closest_approach" text,
"time_elapsed" text
);
Question: What launched has mariner 4 as the spacecraft?
<|assistant|>
SELECT "l... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1960s" (
"spacecraft" text,
"destination" text,
"launched" text,
"closest_approach" text,
"time_elapsed" text
);
Question: What launched has 158 days (5 months, 8 days) as the time elapsed?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"volume_issue" text,
"issue_date_s" text,
"weeks_on_top" real,
"song" text,
"artist" text
);
Question: When was the song by Andy Gibb issued?
<|assistant|>
SELECT "issue_date_s" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "atlanta_falcons_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: Which Round has a College of stanford, and an Overall... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "atlanta_falcons_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: How many Picks have a College of tennessee, and an Ov... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "atlanta_falcons_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: Which Pick # is the lowest one that has a College of ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"wins" real
);
Question: What's the smallest amount of earnings when the wins are less than 72 and the rank is more than ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"wins" real
);
Question: What's the least amount of wins with earnings that are more than $2,556,043, and where Lee Trevi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"wins" real
);
Question: What's the smallest amount of earnings when there are more than 18 wins and the rank is 2?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "great_britain" (
"season" text,
"team" text,
"wins" real,
"losses" real,
"draws" real
);
Question: What is the lowest number of losses for a team with more than 0 wins?
<|assistant|>
SELECT MIN... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "great_britain" (
"season" text,
"team" text,
"wins" real,
"losses" real,
"draws" real
);
Question: What is the average number of losses for teams with fewer than 0 wins?
<|assistant|>
SELECT AV... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "great_britain" (
"season" text,
"team" text,
"wins" real,
"losses" real,
"draws" real
);
Question: What is the average number of wins for Runcorn Highfield with more than 0 draws?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "great_britain" (
"season" text,
"team" text,
"wins" real,
"losses" real,
"draws" real
);
Question: What is the lowest number of losses for Nottingham City with fewer than 0 wins?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "contestants" (
"pos" text,
"player" text,
"team" text,
"height" text,
"weight" real
);
Question: What is the weight of the player from the Philadelphia 76ers?
<|assistant|>
SELECT COUNT("weight... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "contestants" (
"pos" text,
"player" text,
"team" text,
"height" text,
"weight" real
);
Question: What is the height of the player, Larry Hughes?
<|assistant|>
SELECT "height" FROM "contestants"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_team" (
"start_date" text,
"end_date" text,
"pos" text,
"player" text,
"to_club" text
);
Question: What player was moved to Blackpool?
<|assistant|>
SELECT "player" FROM "first_team" WHER... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_team" (
"start_date" text,
"end_date" text,
"pos" text,
"player" text,
"to_club" text
);
Question: A player was moved to celtic had an end of what date?
<|assistant|>
SELECT "end_date" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"february" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: Which Game is the average one that has a February larger than 20, and ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: what country hosted david toms
<|assistant|>
SELECT "country" FROM "third_round" WHERE "play... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"date" real,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
Question: What was the score for game 18?
<|assistant|>
SELECT "s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"kickoff_et" text,
"nfl_recap" text,
"record" text
);
Question: What is the kickoff time for ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"kickoff_et" text,
"nfl_recap" text,
"record" text
);
Question: What is the record for the ga... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"kickoff_et" text,
"nfl_recap" text,
"record" text
);
Question: What is the result of the gam... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "october" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: Who was the visitor that led to a 3-0-2 record?
<|assistant|>
SELECT "visitor" FROM "october" WHERE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "submissions" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"language_s" text,
"result" text
);
Question: What is the original title of the Gypsy Magic fil... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "locomotives" (
"number" real,
"builder" text,
"type" text,
"date" text,
"works_number" real
);
Question: Name the builder for number 3
<|assistant|>
SELECT "builder" FROM "locomotives" WHERE "n... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "locomotives" (
"number" real,
"builder" text,
"type" text,
"date" text,
"works_number" real
);
Question: Name the date with works number less than 1673 and number less than 3
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "locomotives" (
"number" real,
"builder" text,
"type" text,
"date" text,
"works_number" real
);
Question: Name the builder for 4/1906 and works number more than 199
<|assistant|>
SELECT "builder... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
Question: What was the largest number of people in attendance of the game with a W 14-3 result after w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "opinion_polls" (
"source" text,
"date" text,
"de_sus" text,
"zares" text,
"nlpd" text
);
Question: What is the percentage for Zares on May 21β22?
<|assistant|>
SELECT "zares" FROM "opinion_poll... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "opinion_polls" (
"source" text,
"date" text,
"de_sus" text,
"zares" text,
"nlpd" text
);
Question: What is the source for 7% DeSUS?
<|assistant|>
SELECT "source" FROM "opinion_polls" WHERE "de_... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.