text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"round" text,
"pick" text,
"player" text,
"position" text,
"college" text
);
Question: Which college's pick was 14?
<|assistant|>
SELECT "college" FROM "nfl_draft" WHERE "pick"='14';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "michigan_single_game_reception_yardage" (
"player" text,
"rec" real,
"yards" real,
"average" real,
"s_touchdown" real,
"year" real,
"opponent" text
);
Question: Which Rec has an Average smaller than 32, and a Touchdown smaller than 3, and an Opponent of oregon state?
<|assistant|>
SELECT SUM("rec") FROM "michigan_single_game_reception_yardage" WHERE "average"<32 AND "s_touchdown"<3 AND "opponent"='oregon state';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "michigan_single_game_reception_yardage" (
"player" text,
"rec" real,
"yards" real,
"average" real,
"s_touchdown" real,
"year" real,
"opponent" text
);
Question: Which rec has Yards of 192, and a Touchdown smaller than 1?
<|assistant|>
SELECT AVG("rec") FROM "michigan_single_game_reception_yardage" WHERE "yards"=192 AND "s_touchdown"<1;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "michigan_single_game_reception_yardage" (
"player" text,
"rec" real,
"yards" real,
"average" real,
"s_touchdown" real,
"year" real,
"opponent" text
);
Question: Which Opponent has Yards smaller than 197, and an Average smaller than 32, and a Year of 1966?
<|assistant|>
SELECT "opponent" FROM "michigan_single_game_reception_yardage" WHERE "yards"<197 AND "average"<32 AND "year"=1966;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "michigan_single_game_reception_yardage" (
"player" text,
"rec" real,
"yards" real,
"average" real,
"s_touchdown" real,
"year" real,
"opponent" text
);
Question: How many Touchdowns have a rec of 10, and an Opponent of oregon state, and an Average smaller than 19.7?
<|assistant|>
SELECT COUNT("s_touchdown") FROM "michigan_single_game_reception_yardage" WHERE "rec"=10 AND "opponent"='oregon state' AND "average"<19.7;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: Which Points have an Opponent of @ atlanta thrashers, and a Game smaller than 28?
<|assistant|>
SELECT SUM("points") FROM "regular_season" WHERE "opponent"='@ atlanta thrashers' AND "game"<28;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: How many Points have a Game smaller than 37, and a Score of 2–3, and a December of 13?
<|assistant|>
SELECT COUNT("points") FROM "regular_season" WHERE "game"<37 AND "score"='2–3' AND "december"=13;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: Which Game is the highest one that has a Score of 3–2?
<|assistant|>
SELECT MAX("game") FROM "regular_season" WHERE "score"='3–2';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"name" text,
"county" text,
"location" text,
"built" text,
"length_ft" real,
"spans" text
);
Question: What spans were built in 1896?
<|assistant|>
SELECT "spans" FROM "references" WHERE "built"='1896';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"name" text,
"county" text,
"location" text,
"built" text,
"length_ft" real,
"spans" text
);
Question: Who has a length of 71 ft?
<|assistant|>
SELECT "name" FROM "references" WHERE "length_ft"=71;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"name" text,
"county" text,
"location" text,
"built" text,
"length_ft" real,
"spans" text
);
Question: Where was the county of rockingham?
<|assistant|>
SELECT "location" FROM "references" WHERE "county"='rockingham';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "comparison" (
"name" text,
"year" real,
"propulsion" text,
"launched_by" text,
"country" text
);
Question: What is the propulsion for the RB 04 earlier than 1962?
<|assistant|>
SELECT "propulsion" FROM "comparison" WHERE "year"<1962 AND "name"='rb 04';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "comparison" (
"name" text,
"year" real,
"propulsion" text,
"launched_by" text,
"country" text
);
Question: What is the name of the anti-ship missile that had a turbojet propulsion that was launched by a surface, sub after 1985?
<|assistant|>
SELECT "name" FROM "comparison" WHERE "propulsion"='turbojet' AND "year">1985 AND "launched_by"='surface, sub';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "comparison" (
"name" text,
"year" real,
"propulsion" text,
"launched_by" text,
"country" text
);
Question: What country had an anti-ship missile that had a solid rocket propulsion?
<|assistant|>
SELECT "country" FROM "comparison" WHERE "propulsion"='solid rocket';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_fleet" (
"length_feet" text,
"year" text,
"make_and_model" text,
"floor_type" text,
"number_of_seats" real,
"bicycle_capacity" real,
"fuel_propulsion" text,
"quantity" real
);
Question: How many seats in 2001 with a quantity greater than 4?
<|assistant|>
SELECT COUNT("number_of_seats") FROM "current_fleet" WHERE "year"='2001' AND "quantity">4;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_fleet" (
"length_feet" text,
"year" text,
"make_and_model" text,
"floor_type" text,
"number_of_seats" real,
"bicycle_capacity" real,
"fuel_propulsion" text,
"quantity" real
);
Question: What make and model of the diesel vehicle with a high floor type, bike capacity less than 3, and a quantity of 4?
<|assistant|>
SELECT "make_and_model" FROM "current_fleet" WHERE "fuel_propulsion"='diesel' AND "floor_type"='high' AND "bicycle_capacity"<3 AND "quantity"=4;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: What score has nashville predators as the opponent?
<|assistant|>
SELECT "score" FROM "regular_season" WHERE "opponent"='nashville predators';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: What are the average points that have december 27?
<|assistant|>
SELECT AVG("points") FROM "regular_season" WHERE "december"=27;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: What record has points greater than 39, with 38 as the game?
<|assistant|>
SELECT "record" FROM "regular_season" WHERE "points">39 AND "game"=38;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "writing" (
"gzip" text,
"bzip2" text,
"lha_lzh" text,
"stuff_it" text,
"stuff_it_x" text,
"iso_cd_image" text
);
Question: What is the Stuffit ability that has a gzip of yes, ISO/CD images of no and LHA/LZH of no?
<|assistant|>
SELECT "stuff_it" FROM "writing" WHERE "gzip"='yes' AND "iso_cd_image"='no' AND "lha_lzh"='no';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "writing" (
"gzip" text,
"bzip2" text,
"lha_lzh" text,
"stuff_it" text,
"stuff_it_x" text,
"iso_cd_image" text
);
Question: What is the gzip value associated with a stuffit of no, bzip2 of no, and LHA.LZH of no?
<|assistant|>
SELECT "gzip" FROM "writing" WHERE "stuff_it"='no' AND "bzip2"='no' AND "lha_lzh"='no';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "writing" (
"gzip" text,
"bzip2" text,
"lha_lzh" text,
"stuff_it" text,
"stuff_it_x" text,
"iso_cd_image" text
);
Question: What is the bzip2 value associated with a gzip of yes, StuffitX of unknown, and ISO/CD image of unknown?
<|assistant|>
SELECT "bzip2" FROM "writing" WHERE "gzip"='yes' AND "stuff_it_x"='unknown' AND "iso_cd_image"='unknown';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "writing" (
"gzip" text,
"bzip2" text,
"lha_lzh" text,
"stuff_it" text,
"stuff_it_x" text,
"iso_cd_image" text
);
Question: What is the StuffitX value that has a Stuffit of unknown, LHA/LZH of yes, and unknown ISO/CD image?
<|assistant|>
SELECT "stuff_it_x" FROM "writing" WHERE "stuff_it"='unknown' AND "lha_lzh"='yes' AND "iso_cd_image"='unknown';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "writing" (
"gzip" text,
"bzip2" text,
"lha_lzh" text,
"stuff_it" text,
"stuff_it_x" text,
"iso_cd_image" text
);
Question: What is the stuffit that has bzip and LHA/LZH of no?
<|assistant|>
SELECT "stuff_it" FROM "writing" WHERE "bzip2"='no' AND "lha_lzh"='no';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "writing" (
"gzip" text,
"bzip2" text,
"lha_lzh" text,
"stuff_it" text,
"stuff_it_x" text,
"iso_cd_image" text
);
Question: What is the ISO/CD image value associated with StuffitX of no, gzip of yes, and LHA/LZH of yes?
<|assistant|>
SELECT "iso_cd_image" FROM "writing" WHERE "stuff_it_x"='no' AND "gzip"='yes' AND "lha_lzh"='yes';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nhl_entry_draft" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team" text
);
Question: Which round was Robert Deciantis taken in?
<|assistant|>
SELECT "round" FROM "nhl_entry_draft" WHERE "player"='robert deciantis';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nhl_entry_draft" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team" text
);
Question: Which round was Brian Elder taken in?
<|assistant|>
SELECT MIN("round") FROM "nhl_entry_draft" WHERE "player"='brian elder';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_5_11" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: what is the date of the tournament in michalovce
<|assistant|>
SELECT "date" FROM "singles_5_11" WHERE "tournament"='michalovce';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pga_tour_wins_12" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: What was the winning score of the Valero Texas Open?
<|assistant|>
SELECT "winning_score" FROM "pga_tour_wins_12" WHERE "tournament"='valero texas open';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pga_tour_wins_12" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: When was the winning score –12 (69-66-72-65=272)?
<|assistant|>
SELECT "date" FROM "pga_tour_wins_12" WHERE "winning_score"='–12 (69-66-72-65=272)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pga_tour_wins_12" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: Who was the runner-up when the winning score was –28 (66-67-68-64-67=332)?
<|assistant|>
SELECT "runner_s_up" FROM "pga_tour_wins_12" WHERE "winning_score"='–28 (66-67-68-64-67=332)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "california" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text
);
Question: Which party had a Retired Democratic hold?
<|assistant|>
SELECT "party" FROM "california" WHERE "result"='retired democratic hold';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "california" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text
);
Question: What's the average year Charles N. Felton was re-elected?
<|assistant|>
SELECT AVG("first_elected") FROM "california" WHERE "result"='re-elected' AND "incumbent"='charles n. felton';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "california" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text
);
Question: What year was Barclay Henley first elected?
<|assistant|>
SELECT COUNT("first_elected") FROM "california" WHERE "incumbent"='barclay henley';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "drivers_and_constructors" (
"team" text,
"chassis" text,
"engine" text,
"tires" text,
"drivers" text,
"sponsor" text
);
Question: what is the sponsor of motorola
<|assistant|>
SELECT "team" FROM "drivers_and_constructors" WHERE "sponsor"='motorola';<|endoftext|> |
<|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 the Event of Sengoku 1?
<|assistant|>
SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "event"='sengoku 1';<|endoftext|> |
<|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 Record has an Event of Pride Shockwave 2004?
<|assistant|>
SELECT "record" FROM "mixed_martial_arts_record" WHERE "event"='pride shockwave 2004';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "percentage_starts_from_front_row" (
"driver" text,
"front_row_starts" real,
"pole_positions" real,
"entries" real,
"percentage" text
);
Question: What's the average pole position for the driver that has a percentage of 44.81%?
<|assistant|>
SELECT AVG("pole_positions") FROM "percentage_starts_from_front_row" WHERE "percentage"='44.81%';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "percentage_starts_from_front_row" (
"driver" text,
"front_row_starts" real,
"pole_positions" real,
"entries" real,
"percentage" text
);
Question: What's the average front row starts for drivers with less than 68 pole positions and entries lower than 52?
<|assistant|>
SELECT AVG("front_row_starts") FROM "percentage_starts_from_front_row" WHERE "pole_positions"<68 AND "entries"<52;<|endoftext|> |
<|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,
"venue" text,
"attendance" real
);
Question: Attendance larger than 53,769, and a Opponent of at philadelphia eagles had what result?
<|assistant|>
SELECT "result" FROM "schedule" WHERE "attendance">'53,769' AND "opponent"='at philadelphia eagles';<|endoftext|> |
<|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,
"venue" text,
"attendance" real
);
Question: Attendance of 60,671 had what average week?
<|assistant|>
SELECT AVG("week") FROM "schedule" WHERE "attendance"='60,671';<|endoftext|> |
<|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,
"venue" text,
"attendance" real
);
Question: Week of 7 had what average attendance?
<|assistant|>
SELECT AVG("attendance") FROM "schedule" WHERE "week"=7;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women_s_statistics" (
"player" text,
"played" real,
"sets_won" real,
"sets_lost" real,
"legs_won" real,
"legs_lost" real,
"100" real,
"140" real,
"180s" real,
"high_checkout" real,
"3_dart_average" real
);
Question: How many legs were won when 6 legs were lost, the 180s was 0, and the 3-dart average was less than 69.72?
<|assistant|>
SELECT COUNT("legs_won") FROM "women_s_statistics" WHERE "legs_lost"=6 AND "180s"=0 AND "3_dart_average"<69.72;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women_s_statistics" (
"player" text,
"played" real,
"sets_won" real,
"sets_lost" real,
"legs_won" real,
"legs_lost" real,
"100" real,
"140" real,
"180s" real,
"high_checkout" real,
"3_dart_average" real
);
Question: What is the sum of all played when less than 4 sets were won and 3-dart average was 53.19?
<|assistant|>
SELECT SUM("played") FROM "women_s_statistics" WHERE "sets_won"<4 AND "3_dart_average"=53.19;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women_s_statistics" (
"player" text,
"played" real,
"sets_won" real,
"sets_lost" real,
"legs_won" real,
"legs_lost" real,
"100" real,
"140" real,
"180s" real,
"high_checkout" real,
"3_dart_average" real
);
Question: How many values for 100+ for Trina Gulliver with a 3-dart Average smaller than 75.02?
<|assistant|>
SELECT COUNT("100") FROM "women_s_statistics" WHERE "player"='trina gulliver' AND "3_dart_average"<75.02;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women_s_statistics" (
"player" text,
"played" real,
"sets_won" real,
"sets_lost" real,
"legs_won" real,
"legs_lost" real,
"100" real,
"140" real,
"180s" real,
"high_checkout" real,
"3_dart_average" real
);
Question: How many legs were lost for Trina Gulliver with more than 3 played?
<|assistant|>
SELECT COUNT("legs_lost") FROM "women_s_statistics" WHERE "player"='trina gulliver' AND "played">3;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women_s_statistics" (
"player" text,
"played" real,
"sets_won" real,
"sets_lost" real,
"legs_won" real,
"legs_lost" real,
"100" real,
"140" real,
"180s" real,
"high_checkout" real,
"3_dart_average" real
);
Question: What is the most sets won with less than 1 legs won?
<|assistant|>
SELECT MAX("sets_won") FROM "women_s_statistics" WHERE "legs_won"<1;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women_s_statistics" (
"player" text,
"played" real,
"sets_won" real,
"sets_lost" real,
"legs_won" real,
"legs_lost" real,
"100" real,
"140" real,
"180s" real,
"high_checkout" real,
"3_dart_average" real
);
Question: What is the largest value for 100+ when less than 1 set was won and more than 2 legs were won?
<|assistant|>
SELECT MAX("100") FROM "women_s_statistics" WHERE "sets_won"<1 AND "legs_won">2;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_known_fair_catch_kick_attempts_i" (
"date" text,
"kicker" text,
"kicking_team" text,
"opponent" text,
"yards" real,
"result" text,
"game_time" text
);
Question: Yards of 45, and a Date of november 8, 1971 is what kicker?
<|assistant|>
SELECT "kicker" FROM "list_of_known_fair_catch_kick_attempts_i" WHERE "yards"=45 AND "date"='november 8, 1971';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_known_fair_catch_kick_attempts_i" (
"date" text,
"kicker" text,
"kicking_team" text,
"opponent" text,
"yards" real,
"result" text,
"game_time" text
);
Question: Game time of 2nd quarter (0:00), and a Date of november 8, 1971 has how many average yards?
<|assistant|>
SELECT AVG("yards") FROM "list_of_known_fair_catch_kick_attempts_i" WHERE "game_time"='2nd quarter (0:00)' AND "date"='november 8, 1971';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_known_fair_catch_kick_attempts_i" (
"date" text,
"kicker" text,
"kicking_team" text,
"opponent" text,
"yards" real,
"result" text,
"game_time" text
);
Question: Opponent of new york giants, and a Yards smaller than 68 is what kicker?
<|assistant|>
SELECT "kicker" FROM "list_of_known_fair_catch_kick_attempts_i" WHERE "opponent"='new york giants' AND "yards"<68;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_known_fair_catch_kick_attempts_i" (
"date" text,
"kicker" text,
"kicking_team" text,
"opponent" text,
"yards" real,
"result" text,
"game_time" text
);
Question: Yards larger than 52, and a Opponent of san francisco 49ers is what kicker?
<|assistant|>
SELECT "kicker" FROM "list_of_known_fair_catch_kick_attempts_i" WHERE "yards">52 AND "opponent"='san francisco 49ers';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_known_fair_catch_kick_attempts_i" (
"date" text,
"kicker" text,
"kicking_team" text,
"opponent" text,
"yards" real,
"result" text,
"game_time" text
);
Question: Result of missed*, and a Game time of 2nd quarter (0:00), and a Kicker of mason crosby involves what date?
<|assistant|>
SELECT "date" FROM "list_of_known_fair_catch_kick_attempts_i" WHERE "result"='missed*' AND "game_time"='2nd quarter (0:00)' AND "kicker"='mason crosby';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_known_fair_catch_kick_attempts_i" (
"date" text,
"kicker" text,
"kicking_team" text,
"opponent" text,
"yards" real,
"result" text,
"game_time" text
);
Question: Opponent of houston texans had what result?
<|assistant|>
SELECT "result" FROM "list_of_known_fair_catch_kick_attempts_i" WHERE "opponent"='houston texans';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
Question: Which Nationality of the person has a Position on left wing?
<|assistant|>
SELECT "nationality" FROM "draft_picks" WHERE "position"='left wing';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
Question: Which College/Junior/Club Team (League) are from sweden?
<|assistant|>
SELECT "college_junior_club_team_league" FROM "draft_picks" WHERE "nationality"='sweden';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
Question: WHich Position is from russia?
<|assistant|>
SELECT "position" FROM "draft_picks" WHERE "nationality"='russia';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women_outdoor" (
"pos" real,
"mark" text,
"athlete" text,
"nationality" text,
"venue" text,
"date" text
);
Question: Which venue is with Ukraine?
<|assistant|>
SELECT "venue" FROM "women_outdoor" WHERE "nationality"='ukraine';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women_outdoor" (
"pos" real,
"mark" text,
"athlete" text,
"nationality" text,
"venue" text,
"date" text
);
Question: Which venue had a nationality of Belgium?
<|assistant|>
SELECT "venue" FROM "women_outdoor" WHERE "nationality"='belgium';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "major_award_winners" (
"year" text,
"best_film" text,
"best_director" text,
"best_actor" text,
"best_actress" text,
"best_supporting_actress" text
);
Question: Which Best Actor has a Best Film of mystery?
<|assistant|>
SELECT "best_actor" FROM "major_award_winners" WHERE "best_film"='mystery';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "major_award_winners" (
"year" text,
"best_film" text,
"best_director" text,
"best_actor" text,
"best_actress" text,
"best_supporting_actress" text
);
Question: Which Year has a Best Film of mystery?
<|assistant|>
SELECT "year" FROM "major_award_winners" WHERE "best_film"='mystery';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "major_award_winners" (
"year" text,
"best_film" text,
"best_director" text,
"best_actor" text,
"best_actress" text,
"best_supporting_actress" text
);
Question: Which Best Actress has a Year of 2012 6th?
<|assistant|>
SELECT "best_actress" FROM "major_award_winners" WHERE "year"='2012 6th';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "major_award_winners" (
"year" text,
"best_film" text,
"best_director" text,
"best_actor" text,
"best_actress" text,
"best_supporting_actress" text
);
Question: Which Best Actor has a Best Director of takeshi kitano for outrage beyond?
<|assistant|>
SELECT "best_actor" FROM "major_award_winners" WHERE "best_director"='takeshi kitano for outrage beyond';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "major_award_winners" (
"year" text,
"best_film" text,
"best_director" text,
"best_actor" text,
"best_actress" text,
"best_supporting_actress" text
);
Question: Which Best Film has a Best Supporting Actress of shamaine buencamino for niño?
<|assistant|>
SELECT "best_film" FROM "major_award_winners" WHERE "best_supporting_actress"='shamaine buencamino for niño';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1960s" (
"date" text,
"result" text,
"score" text,
"venue" text,
"competition" text
);
Question: Score of 0–0, and a Date of 02-jan-64 had what result?
<|assistant|>
SELECT "result" FROM "1960s" WHERE "score"='0–0' AND "date"='02-jan-64';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1960s" (
"date" text,
"result" text,
"score" text,
"venue" text,
"competition" text
);
Question: Result of l, and a Competition of 1966 asian games, and a Score of 0–1 had what date?
<|assistant|>
SELECT "date" FROM "1960s" WHERE "result"='l' AND "competition"='1966 asian games' AND "score"='0–1';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1960s" (
"date" text,
"result" text,
"score" text,
"venue" text,
"competition" text
);
Question: Competition of friendly, and a Date of 03-jun-62 had what score?
<|assistant|>
SELECT "score" FROM "1960s" WHERE "competition"='friendly' AND "date"='03-jun-62';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1960s" (
"date" text,
"result" text,
"score" text,
"venue" text,
"competition" text
);
Question: Result of w, and a Competition of 1968 asian cup happened on what date?
<|assistant|>
SELECT "date" FROM "1960s" WHERE "result"='w' AND "competition"='1968 asian cup';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1960s" (
"date" text,
"result" text,
"score" text,
"venue" text,
"competition" text
);
Question: Result of l, and a Date of 15-oct-64 had what score?
<|assistant|>
SELECT "score" FROM "1960s" WHERE "result"='l' AND "date"='15-oct-64';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "california" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text
);
Question: What incumbent was re-elected in the district in california 3?
<|assistant|>
SELECT "incumbent" FROM "california" WHERE "result"='re-elected' AND "district"='california 3';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "california" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text
);
Question: What is the district of the incumbent Thomas Larkin Thompson?
<|assistant|>
SELECT "district" FROM "california" WHERE "incumbent"='thomas larkin thompson';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "california" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text
);
Question: What incumbent has a re-elected result and first elected larger than 1884?
<|assistant|>
SELECT "incumbent" FROM "california" WHERE "result"='re-elected' AND "first_elected">1884;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "names_in_modern_languages" (
"sanskrit" text,
"tamil" text,
"telugu" text,
"kannada" text,
"malayalam" text,
"mongolian" text
);
Question: Which Telugu తెలుగు has a Kannada ಕನ್ನಡ of chitra ಚಿತ್ತ?
<|assistant|>
SELECT "telugu" FROM "names_in_modern_languages" WHERE "kannada"='chitra ಚಿತ್ತ';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "names_in_modern_languages" (
"sanskrit" text,
"tamil" text,
"telugu" text,
"kannada" text,
"malayalam" text,
"mongolian" text
);
Question: Which Telugu తెలుగు has a Tamil தமிழ் of pūrāṭam பூராடம்?
<|assistant|>
SELECT "telugu" FROM "names_in_modern_languages" WHERE "tamil"='pūrāṭam பூராடம்';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "names_in_modern_languages" (
"sanskrit" text,
"tamil" text,
"telugu" text,
"kannada" text,
"malayalam" text,
"mongolian" text
);
Question: Which Telugu తెలుగు has a Tamil தமிழ் of pūsam பூசம்?
<|assistant|>
SELECT "telugu" FROM "names_in_modern_languages" WHERE "tamil"='pūsam பூசம்';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "names_in_modern_languages" (
"sanskrit" text,
"tamil" text,
"telugu" text,
"kannada" text,
"malayalam" text,
"mongolian" text
);
Question: Which Mongolian has a Tamil தமிழ் of pūrāṭam பூராடம்?
<|assistant|>
SELECT "mongolian" FROM "names_in_modern_languages" WHERE "tamil"='pūrāṭam பூராடம்';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "names_in_modern_languages" (
"sanskrit" text,
"tamil" text,
"telugu" text,
"kannada" text,
"malayalam" text,
"mongolian" text
);
Question: What kind of Sanskrit संस्कृतम् has a Kannada ಕನ್ನಡ of uttara ಉತ್ತರಾ?
<|assistant|>
SELECT "sanskrit" FROM "names_in_modern_languages" WHERE "kannada"='uttara ಉತ್ತರಾ';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "names_in_modern_languages" (
"sanskrit" text,
"tamil" text,
"telugu" text,
"kannada" text,
"malayalam" text,
"mongolian" text
);
Question: What kind of Sanskrit संस्कृतम् has a Tamil தமிழ் of rōkiṇi ரோகிணி?
<|assistant|>
SELECT "sanskrit" FROM "names_in_modern_languages" WHERE "tamil"='rōkiṇi ரோகிணி';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "defunct_callsigns" (
"callsign" text,
"area_served" text,
"frequency" text,
"band" text,
"freq_currently" text,
"purpose" text
);
Question: What is the frequency for katherine?
<|assistant|>
SELECT "frequency" FROM "defunct_callsigns" WHERE "area_served"='katherine';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "defunct_callsigns" (
"callsign" text,
"area_served" text,
"frequency" text,
"band" text,
"freq_currently" text,
"purpose" text
);
Question: Which band has a current freq of 8tab (hpon)?
<|assistant|>
SELECT "band" FROM "defunct_callsigns" WHERE "freq_currently"='8tab (hpon)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "defunct_callsigns" (
"callsign" text,
"area_served" text,
"frequency" text,
"band" text,
"freq_currently" text,
"purpose" text
);
Question: Which freq currently has 0 657?
<|assistant|>
SELECT "freq_currently" FROM "defunct_callsigns" WHERE "frequency"='0 657';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "defunct_callsigns" (
"callsign" text,
"area_served" text,
"frequency" text,
"band" text,
"freq_currently" text,
"purpose" text
);
Question: What is the purpose for the katherine freq of 8rn?
<|assistant|>
SELECT "purpose" FROM "defunct_callsigns" WHERE "freq_currently"='8rn' AND "area_served"='katherine';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "defunct_callsigns" (
"callsign" text,
"area_served" text,
"frequency" text,
"band" text,
"freq_currently" text,
"purpose" text
);
Question: Which freq currently has 0 684?
<|assistant|>
SELECT "freq_currently" FROM "defunct_callsigns" WHERE "frequency"='0 684';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "defunct_callsigns" (
"callsign" text,
"area_served" text,
"frequency" text,
"band" text,
"freq_currently" text,
"purpose" text
);
Question: Which band serves darwin for commercial purpose?
<|assistant|>
SELECT "band" FROM "defunct_callsigns" WHERE "area_served"='darwin' AND "purpose"='commercial';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "world_championship_group_c_france" (
"games" real,
"drawn" real,
"lost" real,
"points_difference" text,
"points" real
);
Question: What is the points difference for a loss less than 6, and points less than 11?
<|assistant|>
SELECT "points_difference" FROM "world_championship_group_c_france" WHERE "lost"<6 AND "points"<11;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
Question: Which Opponent has a Loss of báez (5-5)?
<|assistant|>
SELECT "opponent" FROM "game_log" WHERE "loss"='báez (5-5)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
Question: Which Score has an Opponent of @ rockies, and a Record of 33-35?
<|assistant|>
SELECT "score" FROM "game_log" WHERE "opponent"='@ rockies' AND "record"='33-35';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
Question: Which Attendance has an Opponent of phillies, and a Record of 30-33?
<|assistant|>
SELECT SUM("attendance") FROM "game_log" WHERE "opponent"='phillies' AND "record"='30-33';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
Question: Which Attendance is the highest one that has a Loss of batista (4-5)?
<|assistant|>
SELECT MAX("attendance") FROM "game_log" WHERE "loss"='batista (4-5)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "broadcast_translators_of_kanz" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
Question: What is the frequency MHz of the ERP W's greater than 250?
<|assistant|>
SELECT AVG("frequency_m_hz") FROM "broadcast_translators_of_kanz" WHERE "erp_w">250;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "broadcast_translators_of_kanz" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
Question: What is the call sign of the MHz Frequency less than 94.9 and an ERP W of 170?
<|assistant|>
SELECT "call_sign" FROM "broadcast_translators_of_kanz" WHERE "frequency_m_hz"<94.9 AND "erp_w"=170;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "broadcast_translators_of_kanz" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
Question: What is the FCC info for the city of Tribune, Kansas?
<|assistant|>
SELECT "fcc_info" FROM "broadcast_translators_of_kanz" WHERE "city_of_license"='tribune, kansas';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "broadcast_translators_of_kanz" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
Question: What is the city of license with an ERP W less than 170?
<|assistant|>
SELECT "city_of_license" FROM "broadcast_translators_of_kanz" WHERE "erp_w"<170;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "broadcast_translators_of_kanz" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
Question: What is the smallest ERP W with a frequency MHz of 94.9?
<|assistant|>
SELECT MIN("erp_w") FROM "broadcast_translators_of_kanz" WHERE "frequency_m_hz"=94.9;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "broadcast_translators_of_kanz" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
Question: What is the ERP W of a Frequency MHz greater than 89.5 in the city of Washburn, Texas?
<|assistant|>
SELECT "erp_w" FROM "broadcast_translators_of_kanz" WHERE "frequency_m_hz">89.5 AND "city_of_license"='washburn, texas';<|endoftext|> |
<|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 total number of bronze medals the U.S. Virgin Islands, which has less than 0 golds, has?
<|assistant|>
SELECT COUNT("bronze") FROM "medal_table" WHERE "nation"='u.s. virgin islands' AND "gold"<0;<|endoftext|> |
<|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 team with 11 total medals and more than 4 silver medals has?
<|assistant|>
SELECT SUM("rank") FROM "medal_table" WHERE "total"=11 AND "silver">4;<|endoftext|> |
<|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 lowest total medals the team with more than 0 bronze, 6 silver, and a rank higher than 3 has?
<|assistant|>
SELECT MIN("total") FROM "medal_table" WHERE "bronze">0 AND "silver"=6 AND "rank"<3;<|endoftext|> |
<|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 highest rank of Venezuela, which has more than 9 bronze medals?
<|assistant|>
SELECT MIN("rank") FROM "medal_table" WHERE "nation"='venezuela' AND "bronze">9;<|endoftext|> |
<|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 lowest rank of the team with 0 bronze, 1 silver, and more than 0 gold?
<|assistant|>
SELECT MIN("rank") FROM "medal_table" WHERE "bronze"=0 AND "silver"=1 AND "gold">0;<|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.