text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "belarusian_clubs_in_euporean_cups" (
"round" text,
"team_num1" text,
"agg" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: What is the 2nd leg of the 1st team in the 2007 ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "belarusian_clubs_in_euporean_cups" (
"round" text,
"team_num1" text,
"agg" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: What is the 2nd leg of dinamo minsk team #2?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "belarusian_clubs_in_euporean_cups" (
"round" text,
"team_num1" text,
"agg" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: What is the 2nd leg of the second team in the 20... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "matches" (
"opposing_team" text,
"against" real,
"date" text,
"venue" text,
"status" text
);
Question: What is the status of the 10 against?
<|assistant|>
SELECT "status" FROM "matches" WHERE "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "matches" (
"opposing_team" text,
"against" real,
"date" text,
"venue" text,
"status" text
);
Question: Who was the opposing team in the test match?
<|assistant|>
SELECT "opposing_team" FROM "ma... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "matches" (
"opposing_team" text,
"against" real,
"date" text,
"venue" text,
"status" text
);
Question: Where was the 05/09/1973 venue?
<|assistant|>
SELECT "venue" FROM "matches" WHERE "date"='... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: Which Overall has a Position of te, and a Round large... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: Which Position has a Round larger than 14, and an Ove... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: Which Overall has a Round smaller than 2?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: Which Name has a Round larger than 4, an Overall smal... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men_s_records" (
"event" text,
"score" real,
"name" text,
"nation" text,
"games" text,
"date" text
);
Question: Who has the event of 36 arrow finals?
<|assistant|>
SELECT "name" FROM "men_s_r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men_s_records" (
"event" text,
"score" real,
"name" text,
"nation" text,
"games" text,
"date" text
);
Question: What is the total score for the 36 arrow finals event?
<|assistant|>
SELECT COU... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "out" (
"nat" text,
"name" text,
"moving_to" text,
"type" text,
"transfer_window" text,
"transfer_fee" text
);
Question: Who is moving with the nationality of Tri?
<|assistant|>
SELECT "moving... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "180_nm" (
"model_number" text,
"s_spec_number" text,
"frequency" text,
"l2_cache" text,
"mult" text,
"voltage" text,
"socket" text,
"release_date" text,
"part_number_s" text
);
Question... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "180_nm" (
"model_number" text,
"s_spec_number" text,
"frequency" text,
"l2_cache" text,
"mult" text,
"voltage" text,
"socket" text,
"release_date" text,
"part_number_s" text
);
Question... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "180_nm" (
"model_number" text,
"s_spec_number" text,
"frequency" text,
"l2_cache" text,
"mult" text,
"voltage" text,
"socket" text,
"release_date" text,
"part_number_s" text
);
Question... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "180_nm" (
"model_number" text,
"s_spec_number" text,
"frequency" text,
"l2_cache" text,
"mult" text,
"voltage" text,
"socket" text,
"release_date" text,
"part_number_s" text
);
Question... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "head_coaches" (
"tenure" text,
"coach" text,
"years" text,
"record" text,
"pct" real
);
Question: How many years does coach Jim Berryman have?
<|assistant|>
SELECT "years" FROM "head_coaches" W... |
<|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,
"time" text,
"location" text
);
Question: Which Location has a Method o... |
<|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,
"time" text,
"location" text
);
Question: Which Record has a Time of n/... |
<|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,
"time" text,
"location" text
);
Question: Which Opponent has a Location... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "calendar" (
"date" text,
"race" text,
"circuit" text,
"location" text,
"winner" text
);
Question: what is the location when the circuit is lowood circuit and the race is lowood trophy?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "calendar" (
"date" text,
"race" text,
"circuit" text,
"location" text,
"winner" text
);
Question: what is the race on 23 october?
<|assistant|>
SELECT "race" FROM "calendar" WHERE "date"='23 oc... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "calendar" (
"date" text,
"race" text,
"circuit" text,
"location" text,
"winner" text
);
Question: what is the circuit when the winner is stan jones and the race is phillip island trophy race?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engines" (
"car_model" text,
"displacement_configuration" text,
"max_motive_power_rpm" text,
"max_torque_rpm" text,
"max_speed" text,
"emissions_co2" text
);
Question: What is the displacemen... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engines" (
"car_model" text,
"displacement_configuration" text,
"max_motive_power_rpm" text,
"max_torque_rpm" text,
"max_speed" text,
"emissions_co2" text
);
Question: What is the displacemen... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engines" (
"car_model" text,
"displacement_configuration" text,
"max_motive_power_rpm" text,
"max_torque_rpm" text,
"max_speed" text,
"emissions_co2" text
);
Question: What displacement & con... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engines" (
"car_model" text,
"displacement_configuration" text,
"max_motive_power_rpm" text,
"max_torque_rpm" text,
"max_speed" text,
"emissions_co2" text
);
Question: What is the emissions C... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tour_dates" (
"date" text,
"city" text,
"country" text,
"venue" text,
"tickets_available_since" text,
"attendance" real,
"comment" text
);
Question: How many tickets were available at Halle... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tour_dates" (
"date" text,
"city" text,
"country" text,
"venue" text,
"tickets_available_since" text,
"attendance" real,
"comment" text
);
Question: What city had tickets available since Ma... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: WHAT IS THE PICK FOR JOE DAY, ROUND LARGER THAN 1, AN... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: WHAT IS THE SUM OF PICK WITH AN OVERALL LARGER THAN 2... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "loans_out" (
"name" text,
"country" text,
"loan_club" text,
"started" text,
"ended" text,
"start_source" text
);
Question: What is the loan club with bbc sport as the start source and ended i... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "loans_out" (
"name" text,
"country" text,
"loan_club" text,
"started" text,
"ended" text,
"start_source" text
);
Question: When did the enews start source start?
<|assistant|>
SELECT "started... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "loans_out" (
"name" text,
"country" text,
"loan_club" text,
"started" text,
"ended" text,
"start_source" text
);
Question: What is the start source of the irl country, which ended on 13 April... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "loans_out" (
"name" text,
"country" text,
"loan_club" text,
"started" text,
"ended" text,
"start_source" text
);
Question: What is the country named feeney with a bbc sport start source?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "loans_out" (
"name" text,
"country" text,
"loan_club" text,
"started" text,
"ended" text,
"start_source" text
);
Question: What is the loan club named dennehy?
<|assistant|>
SELECT "loan_club... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" text,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" text,
"position" text
);
Question: What's... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "test_record_partnerships_by_wicket" (
"wicket" text,
"runs" real,
"batting_partners" text,
"batting_team" text,
"fielding_team" text,
"venue" text,
"season" text
);
Question: How many runs ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "test_record_partnerships_by_wicket" (
"wicket" text,
"runs" real,
"batting_partners" text,
"batting_team" text,
"fielding_team" text,
"venue" text,
"season" text
);
Question: What venue did... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "test_record_partnerships_by_wicket" (
"wicket" text,
"runs" real,
"batting_partners" text,
"batting_team" text,
"fielding_team" text,
"venue" text,
"season" text
);
Question: Who were the b... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "other_arab_communities_in_baysan_distric" (
"name" text,
"date" text,
"defending_forces" text,
"brigade" text,
"population" text
);
Question: What is the defending forces when Al-Murassas shows... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "other_arab_communities_in_baysan_distric" (
"name" text,
"date" text,
"defending_forces" text,
"brigade" text,
"population" text
);
Question: What is the brigade Tall Al-Shawk shows for the nam... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "other_arab_communities_in_baysan_distric" (
"name" text,
"date" text,
"defending_forces" text,
"brigade" text,
"population" text
);
Question: What is the brigade when Al-Bira is the name?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "other_arab_communities_in_baysan_distric" (
"name" text,
"date" text,
"defending_forces" text,
"brigade" text,
"population" text
);
Question: What is the brigade when Al-Hamra ('arab al-hamra) ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "other_arab_communities_in_baysan_distric" (
"name" text,
"date" text,
"defending_forces" text,
"brigade" text,
"population" text
);
Question: What is the Defending forces when the population wa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "worldwide" (
"rank" real,
"location" text,
"2008" text,
"2009" text,
"2010" text,
"2011" real,
"2012" real
);
Question: What was the rank of the park that had a value of 5,040,000 in 2010?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" real,
"overall_pick" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
Question: What was the overall pick number of t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" real,
"overall_pick" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
Question: Which College/Junior/Club Team (Leagu... |
<|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 bronze when the rank is 3 and silver is less than 2?
<|assist... |
<|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 total when bronze is 0 and the nation is hungary?
<|assistant|>
SEL... |
<|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 total when the rank is 7 and gold is more than 0?
<|assistant|>
SEL... |
<|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 highest gold when the nation is total and the total is less than 24... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"record" text
);
Question: Looking only at matches occurring after Game 51, who was the opponent for the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"record" text
);
Question: For the game against the Washington Bullets, what was the final score?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"record" text
);
Question: For the game where the opponent is listed as @ Indiana Pacers, what was the en... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"record" text
);
Question: Which game number was played at Chicago Stadium?
<|assistant|>
SELECT "game" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_8" (
"date" text,
"home" text,
"score" text,
"away" text,
"attendance" real
);
Question: What was the attendance of the match with motagua as the home team?
<|assistant|>
SELECT AVG("atte... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_8" (
"date" text,
"home" text,
"score" text,
"away" text,
"attendance" real
);
Question: What is the score of the game where real espana was the home team?
<|assistant|>
SELECT "score" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_8" (
"date" text,
"home" text,
"score" text,
"away" text,
"attendance" real
);
Question: What team was the away team for the game with 916 in attendance?
<|assistant|>
SELECT "away" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_8" (
"date" text,
"home" text,
"score" text,
"away" text,
"attendance" real
);
Question: What was the score of the game wehre the deportes savio were the home team?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wins_7" (
"year" real,
"championship" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: In which championship did the winner have a score of −9 (66-69-73-71=... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wins_7" (
"year" real,
"championship" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: During the championship where the winning score was −9 (66-69-73-71=2... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wins_7" (
"year" real,
"championship" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: What was the winning score in the year 2002?
<|assistant|>
SELECT "wi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_ii" (
"position" real,
"club" text,
"played" real,
"points" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
Que... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_ii" (
"position" real,
"club" text,
"played" real,
"points" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
Que... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_ii" (
"position" real,
"club" text,
"played" real,
"points" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
Que... |
<|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" real,
"works_number" real
);
Question: What date have highest 0-4-4 forney locomotive with number larger than 20 and works numb... |
<|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" real,
"works_number" real
);
Question: What is the sum of number with type 0-4-4 forney locomotive, number smaller than 20 and ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tampa_bay_rays_vs_boston_red_sox" (
"game" real,
"date" text,
"location" text,
"time" text,
"attendance" real
);
Question: What was the lowest attendance for the game that had a time of 3:31 an... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tampa_bay_rays_vs_boston_red_sox" (
"game" real,
"date" text,
"location" text,
"time" text,
"attendance" real
);
Question: What was the sum of attendance for games with a time of 3:23?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: WHat is the lowest amount of bronze medals for teams with 9 silvers and less than 27 points?
<|a... |
<|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 of the New Zealand Player?
<|assistant|>
SELECT "to_par" FROM "second_ro... |
<|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 Player had a Score of 70-71=141?
<|assistant|>
SELECT "player" FROM "second_round" WHE... |
<|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 Ernie Els' Score?
<|assistant|>
SELECT "score" FROM "second_round" WHERE "player"='... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
Question: What was the attendance when Bournemouth was the away team?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
Question: Who was the away team when Lincoln City was the home team?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
Question: What was the score when Walsall was the away team?
<|assistant|>
SELECT "s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "locomotives" (
"builder" text,
"works_no" real,
"built" real,
"wheels" text,
"notes" text
);
Question: Which wheels were built 1920?
<|assistant|>
SELECT "wheels" FROM "locomotives" WHERE "buil... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "locomotives" (
"builder" text,
"works_no" real,
"built" real,
"wheels" text,
"notes" text
);
Question: Which builder has a Built smaller than 1880?
<|assistant|>
SELECT "builder" FROM "locomoti... |
<|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 Place, when Player is "Mike Souchak"?
<|assistant|>
SELECT "place" FROM "second_rou... |
<|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 Country, when Place is "T9", and when Player is "Jay Hebert"?
<|assistant|>
SELECT ... |
<|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 Player, when Place is "T9", and when Score is "73-70=143"?
<|assistant|>
SELECT "pl... |
<|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 Country, when Player is "Dow Finsterwald"?
<|assistant|>
SELECT "country" FROM "sec... |
<|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 Score, when Country is "United States", when Place is "T9", and when Player is "Jay... |
<|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 Score, when To Par is "+1", and when Player is "Mike Souchak"?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "montreal_canadiens_4_chicago_black_hawks" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: What is the Score when the Home team is Chicago Black Hawks and th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "montreal_canadiens_4_chicago_black_hawks" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: Which Visitor has a Score of 0-4?
<|assistant|>
SELECT "visitor" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "montreal_canadiens_4_chicago_black_hawks" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: What is the Record for April 22?
<|assistant|>
SELECT "record" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "montreal_canadiens_4_chicago_black_hawks" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: Which Date has a Record of 3-4?
<|assistant|>
SELECT "date" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "montreal_canadiens_4_chicago_black_hawks" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: Which Date has a Record of 3-4?
<|assistant|>
SELECT "date" FROM "... |
<|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,
"time" text,
"location" text
);
Question: What is the record for oppone... |
<|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,
"time" text,
"location" text
);
Question: What is the record for the Ko... |
<|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,
"time" text,
"location" text
);
Question: What is the time before round... |
<|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,
"time" text,
"location" text
);
Question: What is the average round for... |
<|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,
"time" text,
"location" text
);
Question: Who was the opponent in UFC 1... |
<|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,
"time" text,
"location" text
);
Question: Who was the opponent in UFC 6... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_prix_singles_tournament_timeline" (
"tournament" text,
"1983" text,
"1984" text,
"1985" text,
"1986" text,
"1987" text,
"1988" text,
"1989" text,
"1990" text,
"career_sr" text
);... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_prix_singles_tournament_timeline" (
"tournament" text,
"1983" text,
"1984" text,
"1985" text,
"1986" text,
"1987" text,
"1988" text,
"1989" text,
"1990" text,
"career_sr" text
);... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_prix_singles_tournament_timeline" (
"tournament" text,
"1983" text,
"1984" text,
"1985" text,
"1986" text,
"1987" text,
"1988" text,
"1989" text,
"1990" text,
"career_sr" text
);... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.