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" real,
"pick" real,
"player" text,
"position" text,
"school_club_team" text
);
Question: Which Round is the highest one that has a Position of running back?
<|assistant|>
SELECT MAX("round") FROM "nfl_draft" WHERE "position"='running back';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school_club_team" text
);
Question: Which Position has a Pick smaller than 29, and a School/Club Team of arizona?
<|assistant|>
SELECT "position" FROM "nfl_draft" WHERE "pick"<29 AND "school_club_team"='arizona';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school_club_team" text
);
Question: Which Round is the lowest one that has a School/Club Team of alabama, and a Pick larger than 43?
<|assistant|>
SELECT MIN("round") FROM "nfl_draft" WHERE "school_club_team"='alabama' AND "pick">43;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams_and_venues" (
"team" text,
"location" text,
"venue" text,
"capacity" real,
"position_in_2001" text
);
Question: what is the venue of belshina
<|assistant|>
SELECT "venue" FROM "teams_and_venues" WHERE "team"='belshina';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams_and_venues" (
"team" text,
"location" text,
"venue" text,
"capacity" real,
"position_in_2001" text
);
Question: what is the venue of neman
<|assistant|>
SELECT "venue" FROM "teams_and_venues" WHERE "team"='neman';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams_and_venues" (
"team" text,
"location" text,
"venue" text,
"capacity" real,
"position_in_2001" text
);
Question: what is the venue of neman
<|assistant|>
SELECT "venue" FROM "teams_and_venues" WHERE "team"='neman';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "atlanta_falcons_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: Name the total number of pick with round less than 6 and overall of 102
<|assistant|>
SELECT COUNT("pick_num") FROM "atlanta_falcons_draft_history" WHERE "round"<6 AND "overall"=102;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_5_2_3" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: Which Outcome has a Score of 4–6 3–6?
<|assistant|>
SELECT "outcome" FROM "singles_5_2_3" WHERE "score"='4–6 3–6';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_5_2_3" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: Which Tournament has a Score of 3–6 6–4 4–6?
<|assistant|>
SELECT "tournament" FROM "singles_5_2_3" WHERE "score"='3–6 6–4 4–6';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_5_2_3" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: Which Date has a Score of 6–1 7–6 (8–6)?
<|assistant|>
SELECT "date" FROM "singles_5_2_3" WHERE "score"='6–1 7–6 (8–6)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_5_2_3" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: Which Score has a Date of 26 september 2004?
<|assistant|>
SELECT "score" FROM "singles_5_2_3" WHERE "date"='26 september 2004';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_5_2_3" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: Which Outcome has a Score of 3–6 2–6?
<|assistant|>
SELECT "outcome" FROM "singles_5_2_3" WHERE "score"='3–6 2–6';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_5_2_3" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: Which Surface has an Opponent in the final of daniella dominikovic?
<|assistant|>
SELECT "surface" FROM "singles_5_2_3" WHERE "opponent_in_the_final"='daniella dominikovic';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performance" (
"m_v_ft_s" real,
"shell_lb" real,
"time_to_ft_m_at_25_seconds" text,
"time_to_ft_m_at_40_seconds" real,
"time_to_ft_m_at_55_seconds" real,
"max_height_ft" real
);
Question: What is the amount of time (sum) at 40° that it takes a 16 lb shell to reach a maximum of no more than 22,000 ft?
<|assistant|>
SELECT COUNT("time_to_ft_m_at_40_seconds") FROM "performance" WHERE "shell_lb"=16 AND "max_height_ft"<'22,000';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performance" (
"m_v_ft_s" real,
"shell_lb" real,
"time_to_ft_m_at_25_seconds" text,
"time_to_ft_m_at_40_seconds" real,
"time_to_ft_m_at_55_seconds" real,
"max_height_ft" real
);
Question: What is the average maximum height of a shell that travels for more than 16.3 seconds at 55° and has a maximum velocity of 2200 ft/s?
<|assistant|>
SELECT AVG("max_height_ft") FROM "performance" WHERE "time_to_ft_m_at_55_seconds">16.3 AND "m_v_ft_s"=2200;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performance" (
"m_v_ft_s" real,
"shell_lb" real,
"time_to_ft_m_at_25_seconds" text,
"time_to_ft_m_at_40_seconds" real,
"time_to_ft_m_at_55_seconds" real,
"max_height_ft" real
);
Question: What is the maximum amount of time a shell travels at 55° when it traveled less than 9.6 seconds at 40°?
<|assistant|>
SELECT MAX("time_to_ft_m_at_55_seconds") FROM "performance" WHERE "time_to_ft_m_at_40_seconds"<9.6;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performance" (
"m_v_ft_s" real,
"shell_lb" real,
"time_to_ft_m_at_25_seconds" text,
"time_to_ft_m_at_40_seconds" real,
"time_to_ft_m_at_55_seconds" real,
"max_height_ft" real
);
Question: What is the weight of the shell that reached its maximum height at 40° in 12.6 seconds?
<|assistant|>
SELECT "shell_lb" FROM "performance" WHERE "time_to_ft_m_at_40_seconds"=12.6;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performance" (
"m_v_ft_s" real,
"shell_lb" real,
"time_to_ft_m_at_25_seconds" text,
"time_to_ft_m_at_40_seconds" real,
"time_to_ft_m_at_55_seconds" real,
"max_height_ft" real
);
Question: What is the average maximum height of the shell smaller than 12.5 lb that reached its maximum height at 25° in 10.1 seconds?
<|assistant|>
SELECT AVG("max_height_ft") FROM "performance" WHERE "time_to_ft_m_at_25_seconds"='10.1' AND "shell_lb"<12.5;<|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,
"attendance" real
);
Question: What is the highest attendance for the game that was before week 6 on October 22, 1967?
<|assistant|>
SELECT MAX("attendance") FROM "schedule" WHERE "date"='october 22, 1967' AND "week"<6;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "delegates" (
"state" text,
"name" text,
"hometown" text,
"age_1" real,
"talent" text
);
Question: What is the state having a contestant with a talent of classical piano and a hometown from Lancaster, NY?
<|assistant|>
SELECT "state" FROM "delegates" WHERE "talent"='classical piano' AND "hometown"='lancaster, ny';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "delegates" (
"state" text,
"name" text,
"hometown" text,
"age_1" real,
"talent" text
);
Question: Whose talent was ballet en pointe?
<|assistant|>
SELECT "name" FROM "delegates" WHERE "talent"='ballet en pointe';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "delegates" (
"state" text,
"name" text,
"hometown" text,
"age_1" real,
"talent" text
);
Question: What is the state represented by the contestant from Mesa, AZ?
<|assistant|>
SELECT "state" FROM "delegates" WHERE "hometown"='mesa, az';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "delegates" (
"state" text,
"name" text,
"hometown" text,
"age_1" real,
"talent" text
);
Question: What is the talent of the contestant from Lexington, SC?
<|assistant|>
SELECT "talent" FROM "delegates" WHERE "hometown"='lexington, sc';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "delegates" (
"state" text,
"name" text,
"hometown" text,
"age_1" real,
"talent" text
);
Question: What is the age of the contestant from Reno, NV?
<|assistant|>
SELECT "age_1" FROM "delegates" WHERE "hometown"='reno, nv';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_18_1954" (
"episode" text,
"title" text,
"writer_s" text,
"preservation" text,
"original_airdate" text
);
Question: Which writer wrote episode 18-09 (652)?
<|assistant|>
SELECT "writer_s" FROM "season_18_1954" WHERE "episode"='18-09 (652)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_18_1954" (
"episode" text,
"title" text,
"writer_s" text,
"preservation" text,
"original_airdate" text
);
Question: What episode was written by jonathan lewis?
<|assistant|>
SELECT "episode" FROM "season_18_1954" WHERE "writer_s"='jonathan lewis';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school_club_team" text
);
Question: What position does Maryland have a player for Round 3?
<|assistant|>
SELECT "position" FROM "nfl_draft" WHERE "school_club_team"='maryland' AND "round"=3;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school_club_team" text
);
Question: How many picks are there for defensive back for rounds larger than 11?
<|assistant|>
SELECT COUNT("pick") FROM "nfl_draft" WHERE "position"='defensive back' AND "round">11;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"series" text
);
Question: What is the highest game that has april 21 as the date?
<|assistant|>
SELECT MAX("game") FROM "playoffs" WHERE "date"='april 21';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"series" text
);
Question: What score has a game less than 4, and april 19 as the date?
<|assistant|>
SELECT "score" FROM "playoffs" WHERE "game"<4 AND "date"='april 19';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"series" text
);
Question: What opponent has a game less than 6, and april 17 as the date?
<|assistant|>
SELECT "opponent" FROM "playoffs" WHERE "game"<6 AND "date"='april 17';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fifth_round" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
Question: What is the home team that played Derby County as the away team?
<|assistant|>
SELECT "home_team" FROM "fifth_round" WHERE "away_team"='derby county';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fifth_round" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
Question: Which home team is ranked no. 7 by tie no.?
<|assistant|>
SELECT "home_team" FROM "fifth_round" WHERE "tie_no"='7';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fifth_round" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
Question: What is the score for the game in which Manchester United was the home team?
<|assistant|>
SELECT "score" FROM "fifth_round" WHERE "home_team"='manchester united';<|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: How many golds does the nation having a rank of 8, fewer than 5 bronzes and more than 1 silver have?
<|assistant|>
SELECT COUNT("gold") FROM "medal_table" WHERE "bronze"<5 AND "silver">1 AND "rank">8;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "award_winners" (
"year" real,
"name" text,
"country" text,
"language_s" text,
"literary_tradition" text
);
Question: What nation was the film from that was in english and had a Literary tradition of canadian literature?
<|assistant|>
SELECT "country" FROM "award_winners" WHERE "language_s"='english' AND "literary_tradition"='canadian literature';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "award_winners" (
"year" real,
"name" text,
"country" text,
"language_s" text,
"literary_tradition" text
);
Question: What is the literary traidtion for the film in english in 2011?
<|assistant|>
SELECT "literary_tradition" FROM "award_winners" WHERE "language_s"='english' AND "year"=2011;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "award_winners" (
"year" real,
"name" text,
"country" text,
"language_s" text,
"literary_tradition" text
);
Question: What country was the film made in that was made after 2011?
<|assistant|>
SELECT "country" FROM "award_winners" WHERE "year">2011;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rebounds" (
"rank" real,
"name" text,
"team" text,
"games" real,
"rebounds" real
);
Question: Which team has 48 rebounds?
<|assistant|>
SELECT "team" FROM "rebounds" WHERE "rebounds"=48;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rebounds" (
"rank" real,
"name" text,
"team" text,
"games" real,
"rebounds" real
);
Question: What's the lowest amount of 12 games and less than 48 rebounds?
<|assistant|>
SELECT MIN("rank") FROM "rebounds" WHERE "games"=12 AND "rebounds"<48;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rebounds" (
"rank" real,
"name" text,
"team" text,
"games" real,
"rebounds" real
);
Question: How many rebounds does Fedor likholitov have with a rank greater than 8?
<|assistant|>
SELECT SUM("rebounds") FROM "rebounds" WHERE "name"='fedor likholitov' AND "rank">8;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rebounds" (
"rank" real,
"name" text,
"team" text,
"games" real,
"rebounds" real
);
Question: Which game has more than 112 rebounds and a rank greater than 3?
<|assistant|>
SELECT MAX("games") FROM "rebounds" WHERE "rank">3 AND "rebounds"=112;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"nation" text,
"score" text,
"to_par" text,
"money" real
);
Question: What was the score in a place of t5 in the United States?
<|assistant|>
SELECT "score" FROM "final_leaderboard" WHERE "place"='t5' AND "nation"='united states';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"nation" text,
"score" text,
"to_par" text,
"money" real
);
Question: What is the to par that has more than $122,591 in Sweden and had Annika Sörenstam play?
<|assistant|>
SELECT "to_par" FROM "final_leaderboard" WHERE "money">'122,591' AND "nation"='sweden' AND "player"='annika sörenstam';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"nation" text,
"score" text,
"to_par" text,
"money" real
);
Question: What was the score for a match where Sophie Gustafson played?
<|assistant|>
SELECT "score" FROM "final_leaderboard" WHERE "player"='sophie gustafson';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rebounds" (
"rank" real,
"name" text,
"team" text,
"games" real,
"rebounds" real
);
Question: with games more than 22 what is the rebound total?
<|assistant|>
SELECT SUM("rebounds") FROM "rebounds" WHERE "games">22;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"winner" text,
"score" text,
"1st_prize" text
);
Question: What is the location of the b.c. open?
<|assistant|>
SELECT "location" FROM "tournament_results" WHERE "tournament"='b.c. open';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"winner" text,
"score" text,
"1st_prize" text
);
Question: What is the location of the tallahassee open, with a Score of 269 (–19)?
<|assistant|>
SELECT "location" FROM "tournament_results" WHERE "score"='269 (–19)' AND "tournament"='tallahassee open';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"winner" text,
"score" text,
"1st_prize" text
);
Question: What date did Lanny Wadkins (6) win?
<|assistant|>
SELECT "date" FROM "tournament_results" WHERE "winner"='lanny wadkins (6)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"winner" text,
"score" text,
"1st_prize" text
);
Question: What is the Location for the buick-goodwrench open?
<|assistant|>
SELECT "location" FROM "tournament_results" WHERE "tournament"='buick-goodwrench open';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_6_2005_2006" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_a" text,
"segment_b" text,
"segment_c" text,
"segment_d" text
);
Question: What is the Netflix episode that has a series episode of 6-02?
<|assistant|>
SELECT "netflix" FROM "season_6_2005_2006" WHERE "series_ep"='6-02';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_6_2005_2006" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_a" text,
"segment_b" text,
"segment_c" text,
"segment_d" text
);
Question: Which segment A item that has a Segment D of wigs?
<|assistant|>
SELECT "segment_a" FROM "season_6_2005_2006" WHERE "segment_d"='wigs';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_6_2005_2006" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_a" text,
"segment_b" text,
"segment_c" text,
"segment_d" text
);
Question: Which series episode has a Netflix episode of S03E16?
<|assistant|>
SELECT "series_ep" FROM "season_6_2005_2006" WHERE "netflix"='s03e16';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_6_2005_2006" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_a" text,
"segment_b" text,
"segment_c" text,
"segment_d" text
);
Question: Which Netflix episode has an overall episode number under 69 and a Segment D of S Trombone?
<|assistant|>
SELECT "netflix" FROM "season_6_2005_2006" WHERE "episode"<69 AND "segment_d"='s trombone';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "inter_molecular_interactions_micro_rna_u" (
"name" text,
"species_specific" text,
"intra_molecular_structure" text,
"comparative" text,
"link" text
);
Question: Which Species Specific has a Comparative of no, and an Intra-molecular structure of no, and a Link of sourcecode?
<|assistant|>
SELECT "species_specific" FROM "inter_molecular_interactions_micro_rna_u" WHERE "comparative"='no' AND "intra_molecular_structure"='no' AND "link"='sourcecode';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "inter_molecular_interactions_micro_rna_u" (
"name" text,
"species_specific" text,
"intra_molecular_structure" text,
"comparative" text,
"link" text
);
Question: Which Intra-molecular structure has a Comparative of no, and a Name of mitarget?
<|assistant|>
SELECT "intra_molecular_structure" FROM "inter_molecular_interactions_micro_rna_u" WHERE "comparative"='no' AND "name"='mitarget';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "inter_molecular_interactions_micro_rna_u" (
"name" text,
"species_specific" text,
"intra_molecular_structure" text,
"comparative" text,
"link" text
);
Question: Which Comparative has a Name of pictar?
<|assistant|>
SELECT "comparative" FROM "inter_molecular_interactions_micro_rna_u" WHERE "name"='pictar';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "inter_molecular_interactions_micro_rna_u" (
"name" text,
"species_specific" text,
"intra_molecular_structure" text,
"comparative" text,
"link" text
);
Question: Which Name has an Intra-molecular structure of no, and a Link of webserver, and a Comparative of no?
<|assistant|>
SELECT "name" FROM "inter_molecular_interactions_micro_rna_u" WHERE "intra_molecular_structure"='no' AND "link"='webserver' AND "comparative"='no';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "inter_molecular_interactions_micro_rna_u" (
"name" text,
"species_specific" text,
"intra_molecular_structure" text,
"comparative" text,
"link" text
);
Question: Which Comparative has a Link of sourcecode webserver?
<|assistant|>
SELECT "comparative" FROM "inter_molecular_interactions_micro_rna_u" WHERE "link"='sourcecode webserver';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "inter_molecular_interactions_micro_rna_u" (
"name" text,
"species_specific" text,
"intra_molecular_structure" text,
"comparative" text,
"link" text
);
Question: Which Species Specific has a Link of server/sourcecode?
<|assistant|>
SELECT "species_specific" FROM "inter_molecular_interactions_micro_rna_u" WHERE "link"='server/sourcecode';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "losers_knockout" (
"home_1st_leg" text,
"home_2nd_leg" text,
"1st_leg" text,
"2nd_leg" text,
"aggregate" text
);
Question: What is the 1st leg for Instituto?
<|assistant|>
SELECT "1st_leg" FROM "losers_knockout" WHERE "home_2nd_leg"='instituto';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "losers_knockout" (
"home_1st_leg" text,
"home_2nd_leg" text,
"1st_leg" text,
"2nd_leg" text,
"aggregate" text
);
Question: What Aggregate has a 2-1 1st leg, and is from Belgrano?
<|assistant|>
SELECT "aggregate" FROM "losers_knockout" WHERE "1st_leg"='2-1' AND "home_1st_leg"='belgrano';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "losers_knockout" (
"home_1st_leg" text,
"home_2nd_leg" text,
"1st_leg" text,
"2nd_leg" text,
"aggregate" text
);
Question: What Aggregate has a 0-0 1st leg, and a 0-1 second leg?
<|assistant|>
SELECT "aggregate" FROM "losers_knockout" WHERE "1st_leg"='0-0' AND "2nd_leg"='0-1';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "losers_knockout" (
"home_1st_leg" text,
"home_2nd_leg" text,
"1st_leg" text,
"2nd_leg" text,
"aggregate" text
);
Question: What aggregate has a 0-0 1st leg, and is from Instituto?
<|assistant|>
SELECT "aggregate" FROM "losers_knockout" WHERE "1st_leg"='0-0' AND "home_2nd_leg"='instituto';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "losers_knockout" (
"home_1st_leg" text,
"home_2nd_leg" text,
"1st_leg" text,
"2nd_leg" text,
"aggregate" text
);
Question: What is the home of aggregate's 3-4?
<|assistant|>
SELECT "home_2nd_leg" FROM "losers_knockout" WHERE "aggregate"='3-4';<|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 round did the fight against Sofia Bagherdai go to?
<|assistant|>
SELECT "round" FROM "mixed_martial_arts_record" WHERE "opponent"='sofia bagherdai';<|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 was the method of fight completion for the Mars: Attack 1 event?
<|assistant|>
SELECT "method" FROM "mixed_martial_arts_record" WHERE "event"='mars: attack 1';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" real
);
Question: what had a score of 70-71-68-72=281?
<|assistant|>
SELECT "country" FROM "final_leaderboard" WHERE "score"='70-71-68-72=281';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" real
);
Question: what had a score like roberto devicenzo
<|assistant|>
SELECT "score" FROM "final_leaderboard" WHERE "player"='roberto devicenzo';<|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,
"attendance" real
);
Question: What was the total number who attended during week 11?
<|assistant|>
SELECT COUNT("attendance") FROM "schedule" WHERE "week"=11;<|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,
"attendance" real
);
Question: What was the total number of weeks with a result of l 31-21?
<|assistant|>
SELECT COUNT("week") FROM "schedule" WHERE "result"='l 31-21';<|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,
"attendance" real
);
Question: What was the average week of a game attended by 12,985 with a result of W 38-14?
<|assistant|>
SELECT AVG("week") FROM "schedule" WHERE "attendance">'12,985' AND "result"='w 38-14';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam_men_s_doubles_performance_tim" (
"tournament" text,
"1998" text,
"1999" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"career_sr" text,
"career_win_loss" text
);
Question: Which 2003 has a 2012 of 1–4?
<|assistant|>
SELECT "2003" FROM "grand_slam_men_s_doubles_performance_tim" WHERE "2012"='1–4';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam_men_s_doubles_performance_tim" (
"tournament" text,
"1998" text,
"1999" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"career_sr" text,
"career_win_loss" text
);
Question: Which 2007 has a 2008 of 0 / 4?
<|assistant|>
SELECT "2007" FROM "grand_slam_men_s_doubles_performance_tim" WHERE "2008"='0 / 4';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam_men_s_doubles_performance_tim" (
"tournament" text,
"1998" text,
"1999" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"career_sr" text,
"career_win_loss" text
);
Question: Which 2007 has a 2003 of 2r, and a 2004 of 1r?
<|assistant|>
SELECT "2007" FROM "grand_slam_men_s_doubles_performance_tim" WHERE "2003"='2r' AND "2004"='1r';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam_men_s_doubles_performance_tim" (
"tournament" text,
"1998" text,
"1999" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"career_sr" text,
"career_win_loss" text
);
Question: Which 2010 has a 2009 of 0 / 4?
<|assistant|>
SELECT "2010" FROM "grand_slam_men_s_doubles_performance_tim" WHERE "2009"='0 / 4';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam_men_s_doubles_performance_tim" (
"tournament" text,
"1998" text,
"1999" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"career_sr" text,
"career_win_loss" text
);
Question: Which 2011 has a 1999 of A, and a 2004 of 2r, and a Career SR of 0 / 10?
<|assistant|>
SELECT "2011" FROM "grand_slam_men_s_doubles_performance_tim" WHERE "1999"='a' AND "2004"='2r' AND "career_sr"='0 / 10';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam_men_s_doubles_performance_tim" (
"tournament" text,
"1998" text,
"1999" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"career_sr" text,
"career_win_loss" text
);
Question: Which 2005 has a 1999 of 0–0?
<|assistant|>
SELECT "2005" FROM "grand_slam_men_s_doubles_performance_tim" WHERE "1999"='0–0';<|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" text
);
Question: what is the date of week 7
<|assistant|>
SELECT "date" FROM "schedule" WHERE "week"=7;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "march" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: Who was the visitor in the game that led to a 39-20-6 record?
<|assistant|>
SELECT "visitor" FROM "march" WHERE "record"='39-20-6';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "march" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: What was the date of the game that led to a 48-21-6 record?
<|assistant|>
SELECT "date" FROM "march" WHERE "record"='48-21-6';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"series" text
);
Question: Name the average attendance from june 11
<|assistant|>
SELECT AVG("attendance") FROM "playoffs" WHERE "date"='june 11';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners_and_honorees" (
"year" real,
"player" text,
"country" text,
"score" text,
"margin_of_victory" text,
"winner_s_share" real
);
Question: What is south africa's margin of victory?
<|assistant|>
SELECT "margin_of_victory" FROM "winners_and_honorees" WHERE "country"='south africa';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners_and_honorees" (
"year" real,
"player" text,
"country" text,
"score" text,
"margin_of_victory" text,
"winner_s_share" real
);
Question: Which Score has a Year larger than 1980, and a Margin of victory of 2 strokes, and a Country of united states, and a Player of jim furyk?
<|assistant|>
SELECT "score" FROM "winners_and_honorees" WHERE "year">1980 AND "margin_of_victory"='2 strokes' AND "country"='united states' AND "player"='jim furyk';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners_and_honorees" (
"year" real,
"player" text,
"country" text,
"score" text,
"margin_of_victory" text,
"winner_s_share" real
);
Question: Which average Winner's share ($) has a Score of 281 (−7), and a Player of hale irwin, and a Year smaller than 1983?
<|assistant|>
SELECT AVG("winner_s_share") FROM "winners_and_honorees" WHERE "score"='281 (−7)' AND "player"='hale irwin' AND "year"<1983;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "champions" (
"season" real,
"champion" text,
"second" text,
"third" text,
"team_champion" text
);
Question: What was the highest season with Barwa International Campos Team as champion?
<|assistant|>
SELECT MAX("season") FROM "champions" WHERE "team_champion"='barwa international campos team';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "champions" (
"season" real,
"champion" text,
"second" text,
"third" text,
"team_champion" text
);
Question: Who was third in Barwa International Campos Team?
<|assistant|>
SELECT "third" FROM "champions" WHERE "team_champion"='barwa international campos team';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "clubs" (
"club" text,
"founded" real,
"homeground" text,
"suburb" text,
"seniors" text,
"juniors" text
);
Question: What year was the Beaudesert suburb club founded
<|assistant|>
SELECT "founded" FROM "clubs" WHERE "suburb"='beaudesert';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "clubs" (
"club" text,
"founded" real,
"homeground" text,
"suburb" text,
"seniors" text,
"juniors" text
);
Question: What year did the Nerang Suburb get founded?
<|assistant|>
SELECT COUNT("founded") FROM "clubs" WHERE "suburb"='nerang';<|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,
"save" text,
"attendance" real,
"record" text
);
Question: Who was the opponent when the Phillies played on April 28?
<|assistant|>
SELECT "opponent" FROM "game_log" WHERE "date"='april 28';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "highest_team_totals_in_tests" (
"rank" real,
"score" text,
"overs" real,
"run_rate" real,
"innings" real,
"date" text,
"test_no" real,
"report" text
);
Question: What is the run rate for rank 4?
<|assistant|>
SELECT MAX("run_rate") FROM "highest_team_totals_in_tests" WHERE "rank"=4;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "studio_albums" (
"albumnum" text,
"english_title" text,
"chinese_title" text,
"released" text,
"label" text
);
Question: Chinese title of 反正 卓文萱 had what released?
<|assistant|>
SELECT "released" FROM "studio_albums" WHERE "chinese_title"='反正 卓文萱';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "studio_albums" (
"albumnum" text,
"english_title" text,
"chinese_title" text,
"released" text,
"label" text
);
Question: Album # of 5th is what chinese title?
<|assistant|>
SELECT "chinese_title" FROM "studio_albums" WHERE "albumnum"='5th';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "studio_albums" (
"albumnum" text,
"english_title" text,
"chinese_title" text,
"released" text,
"label" text
);
Question: Album # of 1st was released on what date?
<|assistant|>
SELECT "released" FROM "studio_albums" WHERE "albumnum"='1st';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "studio_albums" (
"albumnum" text,
"english_title" text,
"chinese_title" text,
"released" text,
"label" text
);
Question: Album # of 3rd is what chinese title?
<|assistant|>
SELECT "chinese_title" FROM "studio_albums" WHERE "albumnum"='3rd';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "studio_albums" (
"albumnum" text,
"english_title" text,
"chinese_title" text,
"released" text,
"label" text
);
Question: English title of oxygenie of happiness has what release date?
<|assistant|>
SELECT "released" FROM "studio_albums" WHERE "english_title"='oxygenie of happiness';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "trades" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: Which Score has a Home of quebec nordiques on april 16?
<|assistant|>
SELECT "score" FROM "trades" WHERE "home"='quebec nordiques' AND "date"='april 16';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "trades" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: WHich Record has a Visitor of quebec nordiques with a Score of 7–5?
<|assistant|>
SELECT "record" FROM "trades" WHERE "visitor"='quebec nordiques' AND "score"='7–5';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "trades" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: Who is the Visitor on april 8?
<|assistant|>
SELECT "visitor" FROM "trades" WHERE "date"='april 8';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "trades" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: When has Score of 4–5 and quebec nordiques as Visitor?
<|assistant|>
SELECT "date" FROM "trades" WHERE "score"='4–5' AND "visitor"='quebec nordiques';<|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.