text stringlengths 310 1.28k |
|---|
<|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,
"tv_time" text,
"attendance" text
);
Question: WHAT WEEK HAS A TV TIME OF BYE?
<|assistant|>
SELECT "week" FROM "schedule... |
<|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,
"tv_time" text,
"attendance" text
);
Question: WHAT WAS THE ATTENDANCE FOR WEEK 15?
<|assistant|>
SELECT "attendance" FRO... |
<|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,
"tv_time" text,
"attendance" text
);
Question: WHAT WAS THE RESULT FOR NOVEMBER 29, 2001?
<|assistant|>
SELECT "result" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"name" text,
"built" text,
"listed" text,
"location" text,
"county" text
);
Question: In what year was the bridge in Clarkdale built?
<|assistant|>
SELECT "built" FROM "references... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"name" text,
"built" text,
"listed" text,
"location" text,
"county" text
);
Question: In what year was the Gila Bend Overpass built?
<|assistant|>
SELECT "built" FROM "references"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"name" text,
"built" text,
"listed" text,
"location" text,
"county" text
);
Question: In what county is the Canyon Padre Bridge?
<|assistant|>
SELECT "county" FROM "references" WH... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results_by_teams" (
"teams" text,
"finals_appearances" real,
"championships" real,
"runners_up" real,
"years_won" text,
"years_runners_up" text
);
Question: Who won the ABA Championship in 19... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"position" real,
"name" text,
"played" real,
"drawn" real,
"lost" real,
"points" real
);
Question: What was the average amount of losses for teams with played less than 14?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"position" real,
"name" text,
"played" real,
"drawn" real,
"lost" real,
"points" real
);
Question: What was the total number of games played by se freising when their points we... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"position" real,
"name" text,
"played" real,
"drawn" real,
"lost" real,
"points" real
);
Question: What was the average losses for team with points larger than 3 and played lar... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"position" real,
"name" text,
"played" real,
"drawn" real,
"lost" real,
"points" real
);
Question: How many losses did ev bruckberg have when the drawn was more than 1?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "opinion_polling_for_the_united_states_se" (
"poll_source" text,
"dates_administered" text,
"democrat_vivian_davis_figures" text,
"republican_jeff_sessions" text,
"lead_margin" real
);
Question:... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "opinion_polling_for_the_united_states_se" (
"poll_source" text,
"dates_administered" text,
"democrat_vivian_davis_figures" text,
"republican_jeff_sessions" text,
"lead_margin" real
);
Question:... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "opinion_polling_for_the_united_states_se" (
"poll_source" text,
"dates_administered" text,
"democrat_vivian_davis_figures" text,
"republican_jeff_sessions" text,
"lead_margin" real
);
Question:... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "opinion_polling_for_the_united_states_se" (
"poll_source" text,
"dates_administered" text,
"democrat_vivian_davis_figures" text,
"republican_jeff_sessions" text,
"lead_margin" real
);
Question:... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "opinion_polling_for_the_united_states_se" (
"poll_source" text,
"dates_administered" text,
"democrat_vivian_davis_figures" text,
"republican_jeff_sessions" text,
"lead_margin" real
);
Question:... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "detroit_red_wings_4_chicago_black_hawks_" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: What is the Score of the Chicago Black Hawks Home game on March 28... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "detroit_red_wings_4_chicago_black_hawks_" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: What is the Visitor of the game on April 2?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "detroit_red_wings_4_chicago_black_hawks_" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: What is the Home team on April 4?
<|assistant|>
SELECT "home" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "detroit_red_wings_4_chicago_black_hawks_" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: What is the Visitor on March 31?
<|assistant|>
SELECT "visitor" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "detroit_red_wings_4_chicago_black_hawks_" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: What is the Home team on April 2?
<|assistant|>
SELECT "home" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "detroit_red_wings_4_chicago_black_hawks_" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: What is the Date of the game with a Record of 2-3?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_year" (
"year" text,
"designated_grand_prix" text,
"track" text,
"250_cc" text,
"350_cc" text,
"500_cc" text,
"report" text
);
Question: What year did Freddie Frith win the 350cc and Enr... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_year" (
"year" text,
"designated_grand_prix" text,
"track" text,
"250_cc" text,
"350_cc" text,
"500_cc" text,
"report" text
);
Question: What track was used in 1926?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_year" (
"year" text,
"designated_grand_prix" text,
"track" text,
"250_cc" text,
"350_cc" text,
"500_cc" text,
"report" text
);
Question: Who won the 250cc in 1927?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_year" (
"year" text,
"designated_grand_prix" text,
"track" text,
"250_cc" text,
"350_cc" text,
"500_cc" text,
"report" text
);
Question: What grand prix was held at Granollers?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_year" (
"year" text,
"designated_grand_prix" text,
"track" text,
"250_cc" text,
"350_cc" text,
"500_cc" text,
"report" text
);
Question: Who won the 350cc at Sachsenring?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "class_l_2_8_2" (
"class" text,
"wheel_arrangement" text,
"fleet_number_s" text,
"manufacturer" text,
"year_made" text,
"quantity_made" text,
"quantity_preserved" text
);
Question: Which fle... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "class_l_2_8_2" (
"class" text,
"wheel_arrangement" text,
"fleet_number_s" text,
"manufacturer" text,
"year_made" text,
"quantity_made" text,
"quantity_preserved" text
);
Question: Which whe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "class_l_2_8_2" (
"class" text,
"wheel_arrangement" text,
"fleet_number_s" text,
"manufacturer" text,
"year_made" text,
"quantity_made" text,
"quantity_preserved" text
);
Question: Which fle... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_11_6_5" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: what is the score when the partner is florencia... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_11_6_5" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: who is the opponents when the surface is clay a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_11_6_5" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: what is the tournament when the outcome is winn... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_11_6_5" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: what is the score when the partner is alexandra... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_11_6_5" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: what is the surface when the opponents are loui... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_11_6_5" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: what is the score when the surface is clay and ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "moto_gp_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time" text,
"grid" real
);
Question: If the manufacturer is Yamaha, and the laps driven were under 32, what's the aver... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "moto_gp_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time" text,
"grid" real
);
Question: What's the smallest amount of laps that suzuki ran with a grid value of 8?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "march" (
"date" text,
"h_a_n" text,
"opponent" text,
"score" text,
"record" text
);
Question: Who were the opponents when the score of the game was 101-105 and the H/A/N was H?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "march" (
"date" text,
"h_a_n" text,
"opponent" text,
"score" text,
"record" text
);
Question: What was the date of the game against the Baltimore Bullets when the H/A/N was H?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "march" (
"date" text,
"h_a_n" text,
"opponent" text,
"score" text,
"record" text
);
Question: What is the score of the game against the baltimore bullets on March 14?
<|assistant|>
SELECT "scor... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "march" (
"date" text,
"h_a_n" text,
"opponent" text,
"score" text,
"record" text
);
Question: Who were the opponents when the score was 122-135 and the H/A/N was H?
<|assistant|>
SELECT "oppone... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "march" (
"date" text,
"h_a_n" text,
"opponent" text,
"score" text,
"record" text
);
Question: What is the score of the game where the record was 22-55?
<|assistant|>
SELECT "score" FROM "march"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"position" real,
"name" text,
"played" real,
"drawn" real,
"lost" real,
"points" real
);
Question: What is the average games that were drawn with ERSC Amberg as name and less t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"position" real,
"name" text,
"played" real,
"drawn" real,
"lost" real,
"points" real
);
Question: What is the total position with a drawn of 0 and greater than 22 points and a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "notes" (
"volume_issue" text,
"issue_date_s" text,
"weeks_at_number_one" real,
"song" text,
"artist_s" text
);
Question: Which Issue date(s) has a Weeks at number one of 5, and a Volume:Issue o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "notes" (
"volume_issue" text,
"issue_date_s" text,
"weeks_at_number_one" real,
"song" text,
"artist_s" text
);
Question: Which Song has a Weeks at number one larger than 2, and an Issue date(s)... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "notes" (
"volume_issue" text,
"issue_date_s" text,
"weeks_at_number_one" real,
"song" text,
"artist_s" text
);
Question: Which Weeks at number one has a Volume:Issue of 61:22-23?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "notes" (
"volume_issue" text,
"issue_date_s" text,
"weeks_at_number_one" real,
"song" text,
"artist_s" text
);
Question: Which Song has an Issue date(s) of 29 may - 26 june?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text,
"box_score" text,
"report" text
);
Question: what is the report when the home team is new zealand bre... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text,
"box_score" text,
"report" text
);
Question: what is the score when the home team is cairns taipans?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text,
"box_score" text,
"report" text
);
Question: Who is the away team when the venue is cairns convention... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text,
"box_score" text,
"report" text
);
Question: who is the away team when the home team is sydney spirit... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text,
"box_score" text,
"report" text
);
Question: what is the box score when the home team is melbourne ti... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text,
"box_score" text,
"report" text
);
Question: who is the away team on 21 september?
<|assistant|>
SELE... |
<|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: When Ernie Els placed t2, what was his To par?
<|assistant|>
SELECT "to_par" FROM "third_rou... |
<|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: Where did Jay Haas place?
<|assistant|>
SELECT "place" FROM "third_round" WHERE "player"='ja... |
<|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: Where did Jim Furyk place?
<|assistant|>
SELECT "place" FROM "third_round" WHERE "player"='j... |
<|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 was Jim Furyk's score?
<|assistant|>
SELECT "score" FROM "third_round" WHERE "player"='... |
<|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 was the score for the To par of +1?
<|assistant|>
SELECT "score" FROM "third_round" WHE... |
<|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: Who placed in t5 and scored 73-69-68=210?
<|assistant|>
SELECT "player" FROM "third_round" 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" text,
"location" text
);
Question: Who was the opponent when the record was 11-... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fourth_round" (
"tie_no" real,
"home_team" text,
"score" text,
"away_team" text,
"attendance" real
);
Question: What is the home team of the match with an attendance greater than 202?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fourth_round" (
"tie_no" real,
"home_team" text,
"score" text,
"away_team" text,
"attendance" real
);
Question: What is the average attendance of the match with arlesey town as the home team?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_calendar" (
"race" real,
"race_title" text,
"circuit" text,
"city_state" text,
"date" text,
"winner" text,
"team" text
);
Question: When was the Lakeside race where Paul Morris won?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "november" (
"date" text,
"h_a_n" text,
"opponent" text,
"score" text,
"record" text
);
Question: What was the score of the game against the phoenix suns?
<|assistant|>
SELECT "score" FROM "nove... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "november" (
"date" text,
"h_a_n" text,
"opponent" text,
"score" text,
"record" text
);
Question: What was the opponent of the game when the reocrd was 0-12?
<|assistant|>
SELECT "opponent" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"location" text,
"year" real,
"champion" text,
"runner_up" text,
"score" text
);
Question: How many years had a location at Forest Hills and a score of 6β3, 6β3 for John McEnroe?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"location" text,
"year" real,
"champion" text,
"runner_up" text,
"score" text
);
Question: Who is the champion with a score of 7β6, 6β0?
<|assistant|>
SELECT "champion" FROM "singles... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"location" text,
"year" real,
"champion" text,
"runner_up" text,
"score" text
);
Question: Who is the runner-up in 1990?
<|assistant|>
SELECT "runner_up" FROM "singles" WHERE "year"=... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"location" text,
"year" real,
"champion" text,
"runner_up" text,
"score" text
);
Question: When was the earliest year that Guillermo Vilas was the runner-up?
<|assistant|>
SELECT MIN... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2013" (
"date" text,
"place" text,
"race_winners" text,
"gp_winner" text,
"source" text
);
Question: What source has a race winner of ben adriaenssen / ben van den bogaart, and the gp winner of... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2013" (
"date" text,
"place" text,
"race_winners" text,
"gp_winner" text,
"source" text
);
Question: What is the GP winner for the Race winners valentin giraud / nicolas musset, and a place gen... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2013" (
"date" text,
"place" text,
"race_winners" text,
"gp_winner" text,
"source" text
);
Question: What is the date for a source of result and a place of iffendic?
<|assistant|>
SELECT "date"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2013" (
"date" text,
"place" text,
"race_winners" text,
"gp_winner" text,
"source" text
);
Question: What date has a place of chernivtsi, and a race winners of etienne bax / kaspars stupelis? W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2013" (
"date" text,
"place" text,
"race_winners" text,
"gp_winner" text,
"source" text
);
Question: What is the GP winner with a place of genk, with race winners ben adriaenssen / ben van den ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2013" (
"date" text,
"place" text,
"race_winners" text,
"gp_winner" text,
"source" text
);
Question: What is the race winners for the date of 23 june?
<|assistant|>
SELECT "race_winners" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wins_5" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: What date was the opponent in the final Barbara Paulus?
<|assistant|>
SELECT "d... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wins_5" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: What was the surface that Laura Golarsa and her opponent played on in the final... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wins_5" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: What was the score for the opponent against Katerina Maleeva in the final?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "squad_changes" (
"nat" text,
"name" text,
"moving_to" text,
"type" text,
"transfer_window" text,
"transfer_fee" text,
"source" text
);
Question: What's the name that had a moving to Anortho... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "squad_changes" (
"nat" text,
"name" text,
"moving_to" text,
"type" text,
"transfer_window" text,
"transfer_fee" text,
"source" text
);
Question: What is the Nat with a mutual consent loan r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "squad_changes" (
"nat" text,
"name" text,
"moving_to" text,
"type" text,
"transfer_window" text,
"transfer_fee" text,
"source" text
);
Question: What is the type of POR?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "squad_changes" (
"nat" text,
"name" text,
"moving_to" text,
"type" text,
"transfer_window" text,
"transfer_fee" text,
"source" text
);
Question: What's the name of MKD?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"attendance" real,
"record" text,
"points" real
);
Question: What is the sum of the attendance on November 24?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "october" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"competition" text,
"man_of_the_match" text
);
Question: What team did the Flames play against when ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "october" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"competition" text,
"man_of_the_match" text
);
Question: Rick Plant was the man of the match in what... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "october" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"competition" text,
"man_of_the_match" text
);
Question: Who did the Flames play against when Stephe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "october" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"competition" text,
"man_of_the_match" text
);
Question: How many people attended the game when the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "october" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"competition" text,
"man_of_the_match" text
);
Question: For what competition was the venue away the... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2005_list" (
"rank" real,
"company" text,
"country" text,
"industry" text,
"sales_billion" real,
"profits_billion" real,
"assets_billion" real,
"market_value_billion" real
);
Question: Wh... |
<|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,
"game_site" text,
"record" text,
"attendance" real
);
Question: What was the record of the Denver Broncos when they pla... |
<|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,
"game_site" text,
"record" text,
"attendance" real
);
Question: What was the final game result that was played on Decem... |
<|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,
"game_site" text,
"record" text,
"attendance" real
);
Question: What week was the game played at Rich Stadium?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_division" (
"scorer" text,
"club" text,
"league_goals" text,
"fa_cup_goals" real,
"league_cup_goals" text,
"total" real
);
Question: What is the sum of FA Cup goals when there are 19 le... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_division" (
"scorer" text,
"club" text,
"league_goals" text,
"fa_cup_goals" real,
"league_cup_goals" text,
"total" real
);
Question: Which club has 16 league goals for a total of 20?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_division" (
"scorer" text,
"club" text,
"league_goals" text,
"fa_cup_goals" real,
"league_cup_goals" text,
"total" real
);
Question: How many League Cup goals correspond to 3 FA Cup Goa... |
<|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,
"record" text,
"game_site" text
);
Question: What was the result of the april 6, 2002 game against the greensboro p... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "projects_as_of_march_2013" (
"building" text,
"location" text,
"height" text,
"floors" real,
"status" text
);
Question: Which Location has Floors smaller than 27, and a Building of 150 elgin?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "projects_as_of_march_2013" (
"building" text,
"location" text,
"height" text,
"floors" real,
"status" text
);
Question: Which Status has a Building of the rhombus?
<|assistant|>
SELECT "status"... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.