text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "itf_singles_finals_18_12_6" (
"outcome" text,
"date" text,
"championship" text,
"surface" text,
"opponent" text,
"score" text
);
Question: What is Score, when Outcome is Winner, and when Oppo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "itf_singles_finals_18_12_6" (
"outcome" text,
"date" text,
"championship" text,
"surface" text,
"opponent" text,
"score" text
);
Question: What is Date, when Championship is Mackay?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "itf_singles_finals_18_12_6" (
"outcome" text,
"date" text,
"championship" text,
"surface" text,
"opponent" text,
"score" text
);
Question: What is Opponent, when Championship is Pétange?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "itf_singles_finals_18_12_6" (
"outcome" text,
"date" text,
"championship" text,
"surface" text,
"opponent" text,
"score" text
);
Question: What is Outcome, when Score is 1-6, 3-6?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "itf_singles_finals_18_12_6" (
"outcome" text,
"date" text,
"championship" text,
"surface" text,
"opponent" text,
"score" text
);
Question: What is Date, when Score is 6-3, 4-6, 0-6?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "itf_singles_finals_18_12_6" (
"outcome" text,
"date" text,
"championship" text,
"surface" text,
"opponent" text,
"score" text
);
Question: What is Score, when Opponent is Natalia Rizhonkova?
... |
<|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,
"result" text,
"nuggets_points" real,
"opponents" real,
"record" text,
"streak" text
);
Question: Which Game has a Nugget points of ... |
<|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,
"result" text,
"nuggets_points" real,
"opponents" real,
"record" text,
"streak" text
);
Question: Which Record has a Result of win, ... |
<|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,
"result" text,
"nuggets_points" real,
"opponents" real,
"record" text,
"streak" text
);
Question: How many Opponents have a Result o... |
<|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,
"result" text,
"nuggets_points" real,
"opponents" real,
"record" text,
"streak" text
);
Question: How many Opponents have a Result o... |
<|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,
"result" text,
"nuggets_points" real,
"opponents" real,
"record" text,
"streak" text
);
Question: Which Result has a Game smaller th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men" (
"event" text,
"date" text,
"round" text,
"name" text,
"nationality" text,
"time" text,
"record" text
);
Question: What round has a name of vladimir morozov?
<|assistant|>
SELECT "rou... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men" (
"event" text,
"date" text,
"round" text,
"name" text,
"nationality" text,
"time" text,
"record" text
);
Question: What is the record for the date of 12 december?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men" (
"event" text,
"date" text,
"round" text,
"name" text,
"nationality" text,
"time" text,
"record" text
);
Question: What is the date for the name ryan lochte?
<|assistant|>
SELECT "dat... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men" (
"event" text,
"date" text,
"round" text,
"name" text,
"nationality" text,
"time" text,
"record" text
);
Question: What is the record for the date 15 december, and a round of final?
<... |
<|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 lowest attendance for week 11?
<|assistant|>
SELECT MIN("attendance") FROM "sche... |
<|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 total number of spectators on week 4?
<|assistant|>
SELECT COUNT("attendance") F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "connecticut" (
"poll_source" text,
"sample_size" real,
"margin_of_error" real,
"date" text,
"democrat" text,
"republican" text
);
Question: What was the sample size for polling on May 2-7, 20... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "connecticut" (
"poll_source" text,
"sample_size" real,
"margin_of_error" real,
"date" text,
"democrat" text,
"republican" text
);
Question: Who was the republican when hillary clinton was the... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "connecticut" (
"poll_source" text,
"sample_size" real,
"margin_of_error" real,
"date" text,
"democrat" text,
"republican" text
);
Question: Where is the poll source when Hillary clinton was t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "connecticut" (
"poll_source" text,
"sample_size" real,
"margin_of_error" real,
"date" text,
"democrat" text,
"republican" text
);
Question: What si the total sample size at rasmussen reports ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "connecticut" (
"poll_source" text,
"sample_size" real,
"margin_of_error" real,
"date" text,
"democrat" text,
"republican" text
);
Question: What is the date that the polls were going on at qu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" text
);
Question: What is To Par, when Player is Greg Norman?
<|assistant|>
SELECT "to_par" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" text
);
Question: What is Score, when Money ( $ ) is 32,200, and when Player is Chip Beck?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" text
);
Question: What is Money ( $ ), when Player is Greg Norman?
<|assistant|>
SELECT "money... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" text
);
Question: What is Player, when Country is United States, and when Score is 73-76-72-66... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" text
);
Question: What is To Par, when Money ( $ ) is Playoff, and when Score is 68-73-77-65=2... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What country was Ernie Els from?
<|assistant|>
SELECT "country" FROM "second_round" WHERE "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What was the par for the t5 place player Steve Jones?
<|assistant|>
SELECT "to_par" FROM "s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "vassal_states" (
"state" text,
"type" text,
"name" text,
"title" text,
"royal_house" text,
"from" text
);
Question: What is the title for Hui that ruled from 864 BC?
<|assistant|>
SELECT "tit... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "vassal_states" (
"state" text,
"type" text,
"name" text,
"title" text,
"royal_house" text,
"from" text
);
Question: What type is You from the state of Chen?
<|assistant|>
SELECT "type" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "vassal_states" (
"state" text,
"type" text,
"name" text,
"title" text,
"royal_house" text,
"from" text
);
Question: Xiong Yan the Younger of the house of Mi ruled from what year?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinals" (
"heat" real,
"lane" real,
"name" text,
"country" text,
"mark" text
);
Question: What country had the runner abubaker kaki khamis in lane 5?
<|assistant|>
SELECT "country" FROM "se... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinals" (
"heat" real,
"lane" real,
"name" text,
"country" text,
"mark" text
);
Question: What is the highest heat for a lane past 1 and mark of 1:48.61?
<|assistant|>
SELECT MAX("heat") FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "goals" (
"rank" real,
"name" text,
"years" text,
"league" real,
"total" real
);
Question: What is average for Benito Lorenzi league when total is smaller than 143?
<|assistant|>
SELECT AVG("lea... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "goals" (
"rank" real,
"name" text,
"years" text,
"league" real,
"total" real
);
Question: Which league has total smaller than 284, with Sandro Mazzola league?
<|assistant|>
SELECT MIN("league")... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "parliamentary_elections" (
"election" real,
"number_of_pnc_votes" text,
"share_of_votes" text,
"seats" text,
"outcome_of_election" text
);
Question: What is the earliest election with 2 seats a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "parliamentary_elections" (
"election" real,
"number_of_pnc_votes" text,
"share_of_votes" text,
"seats" text,
"outcome_of_election" text
);
Question: How many seats does the election with the ou... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "parliamentary_elections" (
"election" real,
"number_of_pnc_votes" text,
"share_of_votes" text,
"seats" text,
"outcome_of_election" text
);
Question: How many seats did the election before 2004 ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "parliamentary_elections" (
"election" real,
"number_of_pnc_votes" text,
"share_of_votes" text,
"seats" text,
"outcome_of_election" text
);
Question: How many PNC votes did the election before 1... |
<|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: How many times is the postion S?
<|assistant|>
SELECT... |
<|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: how many times is the name Derek Smith when the round... |
<|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 lowest overall when the pick is 20?
<|ass... |
<|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 highest round when the overall is less th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_35_20_15" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score" text
);
Question: What is Partner, when Opponents ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_35_20_15" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score" text
);
Question: What is Opponents In The Final, ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_35_20_15" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score" text
);
Question: What is Date, when Opponents In ... |
<|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: Where was the Fury FC 4: High... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "in" (
"nat" text,
"name" text,
"moving_from" text,
"type" text,
"transfer_window" text,
"ends" text
);
Question: What's the nat that ends in 2009?
<|assistant|>
SELECT "nat" FROM "in" WHERE "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "in" (
"nat" text,
"name" text,
"moving_from" text,
"type" text,
"transfer_window" text,
"ends" text
);
Question: What is the type when they move from Gimnàstic?
<|assistant|>
SELECT "type" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "in" (
"nat" text,
"name" text,
"moving_from" text,
"type" text,
"transfer_window" text,
"ends" text
);
Question: What's the transfer window that ends in 2012?
<|assistant|>
SELECT "transfer_w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "in" (
"nat" text,
"name" text,
"moving_from" text,
"type" text,
"transfer_window" text,
"ends" text
);
Question: What's the type that ends in 2009?
<|assistant|>
SELECT "type" FROM "in" WHERE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "in" (
"nat" text,
"name" text,
"moving_from" text,
"type" text,
"transfer_window" text,
"ends" text
);
Question: What's the moving of the Esp with a transfer and named De La Red?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "in" (
"nat" text,
"name" text,
"moving_from" text,
"type" text,
"transfer_window" text,
"ends" text
);
Question: What type is González?
<|assistant|>
SELECT "type" FROM "in" WHERE "name"='gon... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"pos" real,
"artist" text,
"single" text,
"year" real,
"sales" real,
"peak" real
);
Question: How many sales took place with a peak of 1 for Boris?
<|assistant|>
SELECT COUNT("sale... |
<|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_attendance" text,
"record" text
);
Question: What was the record in the game where the opponent was the cincinna... |
<|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_attendance" text,
"record" text
);
Question: What was the attendance of game 25 when the played the San Francisc... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "250cc_classification" (
"rider" text,
"manufacturer" text,
"laps" text,
"time_retired" text,
"grid" text
);
Question: Which manufacturer has a grid of 6?
<|assistant|>
SELECT "manufacturer" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "250cc_classification" (
"rider" text,
"manufacturer" text,
"laps" text,
"time_retired" text,
"grid" text
);
Question: Who is the rider for Honda with a grid of 25?
<|assistant|>
SELECT "rider" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "250cc_classification" (
"rider" text,
"manufacturer" text,
"laps" text,
"time_retired" text,
"grid" text
);
Question: How many laps has a grid of 5?
<|assistant|>
SELECT "laps" FROM "250cc_clas... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "250cc_classification" (
"rider" text,
"manufacturer" text,
"laps" text,
"time_retired" text,
"grid" text
);
Question: Who is the rider whose time/retired is accident?
<|assistant|>
SELECT "ride... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "250cc_classification" (
"rider" text,
"manufacturer" text,
"laps" text,
"time_retired" text,
"grid" text
);
Question: How many laps have a time/retired of +23.080?
<|assistant|>
SELECT "laps" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "250cc_classification" (
"rider" text,
"manufacturer" text,
"laps" text,
"time_retired" text,
"grid" text
);
Question: Who is the manufacturer for Henk Vd Lagemaat?
<|assistant|>
SELECT "manufac... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performance_values_for_genome_sequencing" (
"technology" text,
"analysis_time" text,
"average_read_length" text,
"throughput_including_analysis" text,
"gel_pouring" text
);
Question: what is th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performance_values_for_genome_sequencing" (
"technology" text,
"analysis_time" text,
"average_read_length" text,
"throughput_including_analysis" text,
"gel_pouring" text
);
Question: what is th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_of_64" (
"date" text,
"time" text,
"home" text,
"geust" text,
"result" text
);
Question: What is Geust, when Result is 0:9?
<|assistant|>
SELECT "geust" FROM "round_of_64" WHERE "result"=... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_of_64" (
"date" text,
"time" text,
"home" text,
"geust" text,
"result" text
);
Question: What is Home, when Time is 18:00, and when Geust is Servette FC (CHL)?
<|assistant|>
SELECT "home"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_of_64" (
"date" text,
"time" text,
"home" text,
"geust" text,
"result" text
);
Question: What is Time, when Geust is AC Bellinzona (CHL)?
<|assistant|>
SELECT "time" FROM "round_of_64" WH... |
<|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 was the transfer fee when winter was th... |
<|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 transfer fee has both winter as the tra... |
<|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 was the moving that has a free transfer... |
<|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: Who is moving to Metalurh Donetsk?
<|assista... |
<|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: The player moving to Villa Rio has what tran... |
<|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: Emerson has what transfer window?
<|assistan... |
<|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: Where was the fight located t... |
<|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,
"attendance" real,
"record" text,
"points" real
);
Question: What is the total number of Game, when A... |
<|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,
"attendance" real,
"record" text,
"points" real
);
Question: What is the sum of Game, when Attendance... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "leading_copper_producing_mines" (
"rank" real,
"mine" text,
"county_and_state" text,
"operator" text,
"source_of_copper" text,
"capacity_thousands_of_metric_tons" real
);
Question: In Silver ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "leading_copper_producing_mines" (
"rank" real,
"mine" text,
"county_and_state" text,
"operator" text,
"source_of_copper" text,
"capacity_thousands_of_metric_tons" real
);
Question: In Pinal C... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "quarterfinals_standing" (
"rank" real,
"team" text,
"loss" real,
"sets_won" real,
"sets_lost" real,
"percentage" text
);
Question: How many sets lost have a loss smaller than 3 and a rank lar... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "record_by_conference" (
"conference" text,
"bids" real,
"record" text,
"win_pct" real,
"quarterfinals" text,
"semifinals" text,
"final" text,
"champions" text
);
Question: What is Bids, w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"tournament" text,
"surface" text,
"week" text,
"winner_and_score" text,
"finalist" text,
"semifinalists" text
);
Question: Which finalist played in the week of October 21?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"tournament" text,
"surface" text,
"week" text,
"winner_and_score" text,
"finalist" text,
"semifinalists" text
);
Question: On what surface did they play the match in the week of O... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"tournament" text,
"surface" text,
"week" text,
"winner_and_score" text,
"finalist" text,
"semifinalists" text
);
Question: Who was the finalist in the Monte Carlo Tournament?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the Rank of the Nation with more than 1 Gold and a more than 4 Total me... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the Gold for the Nation in Rank 4 with less than 1 Silver?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "in" (
"nat" text,
"name" text,
"moving_from" text,
"type" text,
"transfer_window" text,
"transfer_fee" text
);
Question: What is the transfer window for Steven Thompson?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "in" (
"nat" text,
"name" text,
"moving_from" text,
"type" text,
"transfer_window" text,
"transfer_fee" text
);
Question: What type is Kevin Muscat?
<|assistant|>
SELECT "type" FROM "in" WHERE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heats" (
"rank" text,
"heat" real,
"country" text,
"backstroke_leg" text,
"breaststroke_leg" text,
"butterfly_leg" text,
"freestyle_leg" text
);
Question: What is the freestyle leg for the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "composition_of_common_crystalloid_soluti" (
"solution" text,
"other_name" text,
"na_mmol_l" real,
"cl_mmol_l" real,
"glucose_mmol_l" real,
"glucose_mg_dl" real
);
Question: How much is the lo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "composition_of_common_crystalloid_soluti" (
"solution" text,
"other_name" text,
"na_mmol_l" real,
"cl_mmol_l" real,
"glucose_mmol_l" real,
"glucose_mg_dl" real
);
Question: What is the highes... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "composition_of_common_crystalloid_soluti" (
"solution" text,
"other_name" text,
"na_mmol_l" real,
"cl_mmol_l" real,
"glucose_mmol_l" real,
"glucose_mg_dl" real
);
Question: What is the larges... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "single_track_listings" (
"name" text,
"location" text,
"format" text,
"record_label" text,
"release_date" text
);
Question: What is the release date when the location is Europe?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "single_track_listings" (
"name" text,
"location" text,
"format" text,
"record_label" text,
"release_date" text
);
Question: What is the location when the name is "I feel free" b/w "n.s.u.", wit... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "single_track_listings" (
"name" text,
"location" text,
"format" text,
"record_label" text,
"release_date" text
);
Question: What is the release in Germany?
<|assistant|>
SELECT "release_date" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "single_track_listings" (
"name" text,
"location" text,
"format" text,
"record_label" text,
"release_date" text
);
Question: What is the name with a release date of December 1966, and a Location... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "single_track_listings" (
"name" text,
"location" text,
"format" text,
"record_label" text,
"release_date" text
);
Question: What is the US release date?
<|assistant|>
SELECT "release_date" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "single_track_listings" (
"name" text,
"location" text,
"format" text,
"record_label" text,
"release_date" text
);
Question: What is the name in the UK, with a release date of December 1966?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_14" (
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text,
"box_score" text,
"report" text
);
Question: What away team scored 107-104?
<|assistant|>
SELECT "aw... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_14" (
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text,
"box_score" text,
"report" text
);
Question: What was the away team for the New Zealand breakers?
<|... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.