text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "standings" (
"nation" text,
"skip" text,
"ends_won" real,
"ends_lost" real,
"blank_ends" real,
"stolen_ends" real,
"shot_pct" text
);
Question: What is the Blank Ends when there are less than 39 ends won and, more than 35 ends lost, and 4 stolen ends.
<|assistant|>
SELECT "blank_ends" FROM "standings" WHERE "ends_won"<39 AND "ends_lost">35 AND "stolen_ends"=4;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1995" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"interview_subject" text,
"20_questions" text
);
Question: Who was the 20 Questions section aimed at when the Interview Subject was Camille Paglia?
<|assistant|>
SELECT "20_questions" FROM "1995" WHERE "interview_subject"='camille paglia';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1995" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"interview_subject" text,
"20_questions" text
);
Question: Who was the Centerfold Model on 5-95?
<|assistant|>
SELECT "centerfold_model" FROM "1995" WHERE "date"='5-95';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1995" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"interview_subject" text,
"20_questions" text
);
Question: Who was the 20 Questions section aimed at when Cover Model was Kimberley Conrad Hefner?
<|assistant|>
SELECT "20_questions" FROM "1995" WHERE "cover_model"='kimberley conrad hefner';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1995" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"interview_subject" text,
"20_questions" text
);
Question: Who was the Centerfold Model when the Cover Model was Julie Lynn Cialini?
<|assistant|>
SELECT "centerfold_model" FROM "1995" WHERE "cover_model"='julie lynn cialini';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1995" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"interview_subject" text,
"20_questions" text
);
Question: Who was the Interview Subject when the Centerfold Model was Melissa Deanne Holliday?
<|assistant|>
SELECT "interview_subject" FROM "1995" WHERE "centerfold_model"='melissa deanne holliday';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1995" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"interview_subject" text,
"20_questions" text
);
Question: Who was the 20 Questions section aimed at when Centerfold Model was Rachel Jeán Marteen?
<|assistant|>
SELECT "20_questions" FROM "1995" WHERE "centerfold_model"='rachel jeán marteen';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_united_states_national_ice_hocke" (
"position" text,
"jersey_num" real,
"name" text,
"height_cm" real,
"weight_kg" real,
"birthdate" text,
"birthplace" text,
"previous_club_team" text
);
Question: What was the average Jersey # of Steve Griffith, when his Weight (kg) was less than 84?
<|assistant|>
SELECT AVG("jersey_num") FROM "list_of_united_states_national_ice_hocke" WHERE "name"='steve griffith' AND "weight_kg"<84;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_united_states_national_ice_hocke" (
"position" text,
"jersey_num" real,
"name" text,
"height_cm" real,
"weight_kg" real,
"birthdate" text,
"birthplace" text,
"previous_club_team" text
);
Question: What was the lowest Weight (kg) for a player that had Jersey #10?
<|assistant|>
SELECT MIN("weight_kg") FROM "list_of_united_states_national_ice_hocke" WHERE "jersey_num"=10;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_united_states_national_ice_hocke" (
"position" text,
"jersey_num" real,
"name" text,
"height_cm" real,
"weight_kg" real,
"birthdate" text,
"birthplace" text,
"previous_club_team" text
);
Question: How many different Heights (cm) did Mark Fusco have, when his Jersey # was less than 16?
<|assistant|>
SELECT COUNT("height_cm") FROM "list_of_united_states_national_ice_hocke" WHERE "jersey_num"<16 AND "name"='mark fusco';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_4" (
"episode" real,
"title" text,
"story" text,
"adapted_by" text,
"director" text,
"airdate" text,
"exists" text
);
Question: What was the title of the episode that martin worth wrote the story for?
<|assistant|>
SELECT "title" FROM "series_4" WHERE "story"='martin worth';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_13_9_titles_4_runners_up" (
"outcome" text,
"year" text,
"championship" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: In what year was Xavier Malisse the runner-up with scores of 4–6, 6–4, [8–10]?
<|assistant|>
SELECT "year" FROM "doubles_13_9_titles_4_runners_up" WHERE "outcome"='runner-up' AND "score"='4–6, 6–4, [8–10]';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_13_9_titles_4_runners_up" (
"outcome" text,
"year" text,
"championship" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: On what surface was the game played that had a score of 4–6, 6–4, [8–10]?
<|assistant|>
SELECT "surface" FROM "doubles_13_9_titles_4_runners_up" WHERE "score"='4–6, 6–4, [8–10]';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "players" (
"player" text,
"position" text,
"date_of_birth_age" text,
"caps" text,
"province_club" text
);
Question: What is Caps, when Province / Club is Example, when Position is Prop, and when Player is Sam Walters?
<|assistant|>
SELECT "caps" FROM "players" WHERE "province_club"='example' AND "position"='prop' AND "player"='sam walters';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "players" (
"player" text,
"position" text,
"date_of_birth_age" text,
"caps" text,
"province_club" text
);
Question: What is Postition, when Date of Birth (Age) is Example, and when Player is Mark Spencer?
<|assistant|>
SELECT "position" FROM "players" WHERE "date_of_birth_age"='example' AND "player"='mark spencer';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "players" (
"player" text,
"position" text,
"date_of_birth_age" text,
"caps" text,
"province_club" text
);
Question: What is Player, when Caps is Example, and when Position is Center?
<|assistant|>
SELECT "player" FROM "players" WHERE "caps"='example' AND "position"='center';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "players" (
"player" text,
"position" text,
"date_of_birth_age" text,
"caps" text,
"province_club" text
);
Question: What is Caps, when Province / Club is DRFC, and when Position is Center?
<|assistant|>
SELECT "caps" FROM "players" WHERE "province_club"='drfc' AND "position"='center';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "players" (
"player" text,
"position" text,
"date_of_birth_age" text,
"caps" text,
"province_club" text
);
Question: What is Position, when Caps is Example, and When Player is Shane Kelly?
<|assistant|>
SELECT "position" FROM "players" WHERE "caps"='example' AND "player"='shane kelly';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "players" (
"player" text,
"position" text,
"date_of_birth_age" text,
"caps" text,
"province_club" text
);
Question: What is Position, when Province / Club is Example, when Date of Birth (Age) is Example, and when Player is Michael Elumeze?
<|assistant|>
SELECT "position" FROM "players" WHERE "province_club"='example' AND "date_of_birth_age"='example' AND "player"='michael elumeze';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
Question: What is the average number played of the team with 1 drawn and 24 against?
<|assistant|>
SELECT AVG("played") FROM "campeonato_paulista" WHERE "drawn"=1 AND "against"=24;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
Question: What is the highest lost number of the team with less than 14 points and less than 18 played?
<|assistant|>
SELECT MAX("lost") FROM "campeonato_paulista" WHERE "points"<14 AND "played"<18;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
Question: Which team had 1 position?
<|assistant|>
SELECT "team" FROM "campeonato_paulista" WHERE "position"=1;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
Question: What is the lowest number of played of the team with 18 points and a position greater than 5?
<|assistant|>
SELECT MIN("played") FROM "campeonato_paulista" WHERE "points"=18 AND "position">5;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
Question: What is the total number of points of the team with less than 4 drawn and an against of 34?
<|assistant|>
SELECT COUNT("points") FROM "campeonato_paulista" WHERE "drawn"<4 AND "against"=34;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
Question: What is the average number of drawn with a difference of 17 and 22 points?
<|assistant|>
SELECT AVG("drawn") FROM "campeonato_paulista" WHERE "difference"='17' AND "points"=22;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s" (
"player" text,
"nationality" text,
"position" text,
"years_in_orlando" text,
"school_club_team" text
);
Question: What is the team that has forward-center as a position?
<|assistant|>
SELECT "school_club_team" FROM "s" WHERE "position"='forward-center';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s" (
"player" text,
"nationality" text,
"position" text,
"years_in_orlando" text,
"school_club_team" text
);
Question: What team does Kenny Smith play for?
<|assistant|>
SELECT "school_club_team" FROM "s" WHERE "player"='kenny smith';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s" (
"player" text,
"nationality" text,
"position" text,
"years_in_orlando" text,
"school_club_team" text
);
Question: What years was Lebanon the nationality?
<|assistant|>
SELECT "years_in_orlando" FROM "s" WHERE "nationality"='lebanon';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "lpga_of_japan_tour_5" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: Which margin of victory has cyber agent ladies as the tournament?
<|assistant|>
SELECT "margin_of_victory" FROM "lpga_of_japan_tour_5" WHERE "tournament"='cyber agent ladies';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "lpga_of_japan_tour_5" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: What date has yani tseng as the runner (s)-up?
<|assistant|>
SELECT "date" FROM "lpga_of_japan_tour_5" WHERE "runner_s_up"='yani tseng';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "lpga_of_japan_tour_5" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: What is the margin of victory that has masters gc ladies as the tournament?
<|assistant|>
SELECT "margin_of_victory" FROM "lpga_of_japan_tour_5" WHERE "tournament"='masters gc ladies';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "lpga_of_japan_tour_5" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: What is the date that has yani tseng as the runner (s)-up?
<|assistant|>
SELECT "date" FROM "lpga_of_japan_tour_5" WHERE "runner_s_up"='yani tseng';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "lpga_of_japan_tour_5" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: What is the winning score that has victory of 2 strokes for the margin, and cyber agent ladies for the tournament?
<|assistant|>
SELECT "winning_score" FROM "lpga_of_japan_tour_5" WHERE "margin_of_victory"='2 strokes' AND "tournament"='cyber agent ladies';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_results" (
"season" text,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"fast_laps" real,
"points" real,
"pos" text
);
Question: What is the highest Poles with a win that is smaller than 0?
<|assistant|>
SELECT MAX("poles") FROM "career_results" WHERE "wins"<0;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "past_production" (
"headphone_model" text,
"headphone_class" text,
"sensitivity_d_b" text,
"impedance_ohms" real,
"driver_matched_d_b" text,
"construction" text,
"earpads" text,
"termination" text,
"succeeded_by" text
);
Question: What is the headphone model with a plastic construction and a prestige headphone class?
<|assistant|>
SELECT "headphone_model" FROM "past_production" WHERE "construction"='plastic' AND "headphone_class"='prestige';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "past_production" (
"headphone_model" text,
"headphone_class" text,
"sensitivity_d_b" text,
"impedance_ohms" real,
"driver_matched_d_b" text,
"construction" text,
"earpads" text,
"termination" text,
"succeeded_by" text
);
Question: What earpads does the headphone with plastic contruction and was succeeded by igrado have?
<|assistant|>
SELECT "earpads" FROM "past_production" WHERE "construction"='plastic' AND "succeeded_by"='igrado';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "past_production" (
"headphone_model" text,
"headphone_class" text,
"sensitivity_d_b" text,
"impedance_ohms" real,
"driver_matched_d_b" text,
"construction" text,
"earpads" text,
"termination" text,
"succeeded_by" text
);
Question: What are the earpads of the headphone with a plastic construction, an unknown sensitivity, and was succeeded by sr325?
<|assistant|>
SELECT "earpads" FROM "past_production" WHERE "construction"='plastic' AND "sensitivity_d_b"='unknown' AND "succeeded_by"='sr325';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "past_production" (
"headphone_model" text,
"headphone_class" text,
"sensitivity_d_b" text,
"impedance_ohms" real,
"driver_matched_d_b" text,
"construction" text,
"earpads" text,
"termination" text,
"succeeded_by" text
);
Question: What is the headphone model which was succeeded by sr325?
<|assistant|>
SELECT "headphone_model" FROM "past_production" WHERE "succeeded_by"='sr325';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"year" real,
"circuit" text,
"winning_drivers" text,
"winning_constructor" text,
"regulations" text,
"report" text
);
Question: What regulations have hudson as the winning constructor?
<|assistant|>
SELECT "regulations" FROM "results" WHERE "winning_constructor"='hudson';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"year" real,
"circuit" text,
"winning_drivers" text,
"winning_constructor" text,
"regulations" text,
"report" text
);
Question: What regulations have carlos arzani as the winning driver?
<|assistant|>
SELECT "regulations" FROM "results" WHERE "winning_drivers"='carlos arzani';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"year" real,
"circuit" text,
"winning_drivers" text,
"winning_constructor" text,
"regulations" text,
"report" text
);
Question: What is the latest year that has ferrari 166 fl as the winning constructor?
<|assistant|>
SELECT MAX("year") FROM "results" WHERE "winning_constructor"='ferrari 166 fl';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s_rebroadcaster_of_cbcs_fm" (
"city_of_license" text,
"identifier" text,
"frequency" text,
"power" text,
"class" text,
"rec_net" text
);
Question: What is the city of license that has lp as the class?
<|assistant|>
SELECT "city_of_license" FROM "s_rebroadcaster_of_cbcs_fm" WHERE "class"='lp';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s_rebroadcaster_of_cbcs_fm" (
"city_of_license" text,
"identifier" text,
"frequency" text,
"power" text,
"class" text,
"rec_net" text
);
Question: What is the identifier that has 50,000 watts of power?
<|assistant|>
SELECT "identifier" FROM "s_rebroadcaster_of_cbcs_fm" WHERE "power"='50,000 watts';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s_rebroadcaster_of_cbcs_fm" (
"city_of_license" text,
"identifier" text,
"frequency" text,
"power" text,
"class" text,
"rec_net" text
);
Question: What RECNet has 40 watts of power and temagami as the city of license?
<|assistant|>
SELECT "rec_net" FROM "s_rebroadcaster_of_cbcs_fm" WHERE "power"='40 watts' AND "city_of_license"='temagami';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s_rebroadcaster_of_cbcs_fm" (
"city_of_license" text,
"identifier" text,
"frequency" text,
"power" text,
"class" text,
"rec_net" text
);
Question: What city of license has A as a class, and cbec-fm as the identifier?
<|assistant|>
SELECT "city_of_license" FROM "s_rebroadcaster_of_cbcs_fm" WHERE "class"='a' AND "identifier"='cbec-fm';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s_rebroadcaster_of_cbcs_fm" (
"city_of_license" text,
"identifier" text,
"frequency" text,
"power" text,
"class" text,
"rec_net" text
);
Question: What RECNet has elk lake as the city of license?
<|assistant|>
SELECT "rec_net" FROM "s_rebroadcaster_of_cbcs_fm" WHERE "city_of_license"='elk lake';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s_rebroadcaster_of_cbcs_fm" (
"city_of_license" text,
"identifier" text,
"frequency" text,
"power" text,
"class" text,
"rec_net" text
);
Question: What frequency has temagami as the city of license?
<|assistant|>
SELECT "frequency" FROM "s_rebroadcaster_of_cbcs_fm" WHERE "city_of_license"='temagami';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "smaller_branches" (
"branch" text,
"address" text,
"neighborhood" text,
"first_branch_opened" real,
"current_branch_opened" real
);
Question: What is the highest Current Branch Opened, when Neighborhood is W. Portland Park?
<|assistant|>
SELECT MAX("current_branch_opened") FROM "smaller_branches" WHERE "neighborhood"='w. portland park';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "smaller_branches" (
"branch" text,
"address" text,
"neighborhood" text,
"first_branch_opened" real,
"current_branch_opened" real
);
Question: What is the First Branch Opened, when Branch is Belmont Library?
<|assistant|>
SELECT "first_branch_opened" FROM "smaller_branches" WHERE "branch"='belmont library';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "smaller_branches" (
"branch" text,
"address" text,
"neighborhood" text,
"first_branch_opened" real,
"current_branch_opened" real
);
Question: What is Neighborhood, when Branch is Hollywood Library?
<|assistant|>
SELECT "neighborhood" FROM "smaller_branches" WHERE "branch"='hollywood library';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "smaller_branches" (
"branch" text,
"address" text,
"neighborhood" text,
"first_branch_opened" real,
"current_branch_opened" real
);
Question: What is Current Branch Opened, when Branch is Midland Library?
<|assistant|>
SELECT "current_branch_opened" FROM "smaller_branches" WHERE "branch"='midland library';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "assists" (
"rank" real,
"name" text,
"team" text,
"games" real,
"assists" real
);
Question: Which player has the fewest assists and played 2 games or fewer?
<|assistant|>
SELECT MIN("assists") FROM "assists" WHERE "games"<2;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "monthly_mobile_subscriber_additions" (
"year" real,
"january" real,
"february" real,
"march" real,
"april" real,
"june" real,
"july" real,
"august" real,
"september" real,
"october" real,
"november" real,
"december" real,
"annual_additions_in_millions" real,
"average_monthly_additions_in_millions" real
);
Question: What was the total number for March with less than 8.77 in January, more than 1.69 in December, an average monthly addition less than 5.35, and before 2004?
<|assistant|>
SELECT COUNT("march") FROM "monthly_mobile_subscriber_additions" WHERE "january"<8.77 AND "december">1.69 AND "average_monthly_additions_in_millions"<5.35 AND "year"<2004;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "monthly_mobile_subscriber_additions" (
"year" real,
"january" real,
"february" real,
"march" real,
"april" real,
"june" real,
"july" real,
"august" real,
"september" real,
"october" real,
"november" real,
"december" real,
"annual_additions_in_millions" real,
"average_monthly_additions_in_millions" real
);
Question: What is the total number for November, larger than 8.53 in February, 20.21 in March, and less than 7.9 in September?
<|assistant|>
SELECT COUNT("november") FROM "monthly_mobile_subscriber_additions" WHERE "february">8.53 AND "march"=20.21 AND "september"<7.9;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "monthly_mobile_subscriber_additions" (
"year" real,
"january" real,
"february" real,
"march" real,
"april" real,
"june" real,
"july" real,
"august" real,
"september" real,
"october" real,
"november" real,
"december" real,
"annual_additions_in_millions" real,
"average_monthly_additions_in_millions" real
);
Question: What is the sum for December that has 0.36 in July, and lager than 0.35000000000000003 in February?
<|assistant|>
SELECT SUM("december") FROM "monthly_mobile_subscriber_additions" WHERE "july"=0.36 AND "february">0.35000000000000003;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "monthly_mobile_subscriber_additions" (
"year" real,
"january" real,
"february" real,
"march" real,
"april" real,
"june" real,
"july" real,
"august" real,
"september" real,
"october" real,
"november" real,
"december" real,
"annual_additions_in_millions" real,
"average_monthly_additions_in_millions" real
);
Question: What is the total number for July with less than 8.05 in October, more than 4.46 in December, and more than 6.79 in November?
<|assistant|>
SELECT COUNT("july") FROM "monthly_mobile_subscriber_additions" WHERE "october"<8.05 AND "december">4.46 AND "november">6.79;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "monthly_mobile_subscriber_additions" (
"year" real,
"january" real,
"february" real,
"march" real,
"april" real,
"june" real,
"july" real,
"august" real,
"september" real,
"october" real,
"november" real,
"december" real,
"annual_additions_in_millions" real,
"average_monthly_additions_in_millions" real
);
Question: What is the total number in October with less than 2.48 in September, after 2002, more than 1.42 in June, and smaller than 7.44 in February?
<|assistant|>
SELECT COUNT("october") FROM "monthly_mobile_subscriber_additions" WHERE "september"<2.48 AND "year">2002 AND "june">1.42 AND "february"<7.44;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
Question: What is the Catalog with a Region that is europe?
<|assistant|>
SELECT "catalog" FROM "release_history" WHERE "region"='europe';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "specific_fuel_consumption_sfc_specific_i" (
"engine_type" text,
"scenario" text,
"sfc_in_lb_lbf_h" real,
"sfc_in_g_k_n_s" real,
"specific_impulse_s" real,
"effective_exhaust_velocity_m_s" real
);
Question: What is the highest SFC in g/(kN*s) for Rolls-Royce/Snecma Olympus 593 engines and SFCs under 1.195 lb/(lbf*h)?
<|assistant|>
SELECT MAX("sfc_in_g_k_n_s") FROM "specific_fuel_consumption_sfc_specific_i" WHERE "engine_type"='rolls-royce/snecma olympus 593' AND "sfc_in_lb_lbf_h"<1.195;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "may" (
"week_of" text,
"tier" text,
"winner" text,
"runner_up" text,
"semi_finalists" text
);
Question: What is Winner, when Week is 8 May, when Semi Finalists is Helena Suková Mary Pierce, and when Runner-Up is Conchita Martínez Patricia Tarabini?
<|assistant|>
SELECT "winner" FROM "may" WHERE "week_of"='8 may' AND "semi_finalists"='helena suková mary pierce' AND "runner_up"='conchita martínez patricia tarabini';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "may" (
"week_of" text,
"tier" text,
"winner" text,
"runner_up" text,
"semi_finalists" text
);
Question: What is Week, when Semi Finalists is Sandrine Testud Yone Kamio?
<|assistant|>
SELECT "week_of" FROM "may" WHERE "semi_finalists"='sandrine testud yone kamio';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_wickets_in_a_season" (
"rank" text,
"s_wicket" text,
"player" text,
"matches" text,
"season" text
);
Question: In what Season was Colin Miller (TAS) the Player?
<|assistant|>
SELECT "season" FROM "most_wickets_in_a_season" WHERE "player"='colin miller (tas)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_wickets_in_a_season" (
"rank" text,
"s_wicket" text,
"player" text,
"matches" text,
"season" text
);
Question: What Rank has a 65 s Wicket?
<|assistant|>
SELECT "rank" FROM "most_wickets_in_a_season" WHERE "s_wicket"='65';<|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,
"game_site" text,
"record" text,
"tv_time" text,
"attendance" text
);
Question: Which result featured the Indianapolis Colts as opponents?
<|assistant|>
SELECT "result" FROM "schedule" WHERE "opponent"='indianapolis colts';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_special_cities_now_core_or_design" (
"name" text,
"japanese" text,
"date_of_designation" text,
"date_of_reclassification" text,
"region" text,
"prefecture" text
);
Question: Whose Name has a Date of reclassification of 2003-04-01 (merge into shizuoka )?
<|assistant|>
SELECT "name" FROM "former_special_cities_now_core_or_design" WHERE "date_of_reclassification"='2003-04-01 (merge into shizuoka )';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_special_cities_now_core_or_design" (
"name" text,
"japanese" text,
"date_of_designation" text,
"date_of_reclassification" text,
"region" text,
"prefecture" text
);
Question: WHich Japanese has a Prefecture of iwate?
<|assistant|>
SELECT "japanese" FROM "former_special_cities_now_core_or_design" WHERE "prefecture"='iwate';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_special_cities_now_core_or_design" (
"name" text,
"japanese" text,
"date_of_designation" text,
"date_of_reclassification" text,
"region" text,
"prefecture" text
);
Question: Which Date of designation has a Name of kurume?
<|assistant|>
SELECT "date_of_designation" FROM "former_special_cities_now_core_or_design" WHERE "name"='kurume';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_special_cities_now_core_or_design" (
"name" text,
"japanese" text,
"date_of_designation" text,
"date_of_reclassification" text,
"region" text,
"prefecture" text
);
Question: What kind of Japanese has a Region of tōhoku?
<|assistant|>
SELECT "japanese" FROM "former_special_cities_now_core_or_design" WHERE "region"='tōhoku';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_special_cities_now_core_or_design" (
"name" text,
"japanese" text,
"date_of_designation" text,
"date_of_reclassification" text,
"region" text,
"prefecture" text
);
Question: WHose Name has a Region of kansai on 2012-04-01 ( core city )?
<|assistant|>
SELECT "name" FROM "former_special_cities_now_core_or_design" WHERE "region"='kansai' AND "date_of_reclassification"='2012-04-01 ( core city )';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_united_states_national_ice_hocke" (
"position" text,
"name" text,
"height_cm" real,
"weight_kg" real,
"birthdate" text,
"birthplace" text,
"1998_1999_team" text
);
Question: What is the Position with a Birthdate that is august 17, 1980?
<|assistant|>
SELECT "position" FROM "list_of_united_states_national_ice_hocke" WHERE "birthdate"='august 17, 1980';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"residence_hall" text,
"established" real,
"rector" text,
"campus" text,
"capacity" real,
"colors" text,
"mascot" text
);
Question: Which capacity has a purple and white colors?
<|assistant|>
SELECT "capacity" FROM "references" WHERE "colors"='purple and white';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "virginia_counties_and_cities_ranked_by_p" (
"county_or_city" text,
"per_capita_income" text,
"median_household_income" text,
"median_family_income" text,
"population" real,
"number_of_households" real
);
Question: How many households have a median family income of $60,400?
<|assistant|>
SELECT "number_of_households" FROM "virginia_counties_and_cities_ranked_by_p" WHERE "median_family_income"='$60,400';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "virginia_counties_and_cities_ranked_by_p" (
"county_or_city" text,
"per_capita_income" text,
"median_household_income" text,
"median_family_income" text,
"population" real,
"number_of_households" real
);
Question: What county of city has more than 9,505 households with a median household income greater than $94,880?
<|assistant|>
SELECT "county_or_city" FROM "virginia_counties_and_cities_ranked_by_p" WHERE "number_of_households">'9,505' AND "median_household_income"='$94,880';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_united_states_national_ice_hocke" (
"position" text,
"jersey_number" real,
"name_v_t_e" text,
"height_cm" real,
"weight_kg" real,
"birthplace" text,
"2008_09_team" text,
"nhl_rights_if_any" text
);
Question: What is the average weight of the player with a height of 180 cm and plays the d position?
<|assistant|>
SELECT AVG("weight_kg") FROM "list_of_united_states_national_ice_hocke" WHERE "height_cm"=180 AND "position"='d';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_united_states_national_ice_hocke" (
"position" text,
"jersey_number" real,
"name_v_t_e" text,
"height_cm" real,
"weight_kg" real,
"birthplace" text,
"2008_09_team" text,
"nhl_rights_if_any" text
);
Question: What is the birthplace of the player with Calgary Flames NHL rights, plays the f position, and has a height taller than 175 cm?
<|assistant|>
SELECT "birthplace" FROM "list_of_united_states_national_ice_hocke" WHERE "position"='f' AND "height_cm">175 AND "nhl_rights_if_any"='calgary flames';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_united_states_national_ice_hocke" (
"position" text,
"jersey_number" real,
"name_v_t_e" text,
"height_cm" real,
"weight_kg" real,
"birthplace" text,
"2008_09_team" text,
"nhl_rights_if_any" text
);
Question: What is the 2008-09 team of the player who plays the f position and has NHL rights with the New Jersey Devils?
<|assistant|>
SELECT "2008_09_team" FROM "list_of_united_states_national_ice_hocke" WHERE "position"='f' AND "nhl_rights_if_any"='new jersey devils';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "comparison_of_action_potentials_a_ps_fro" (
"animal" text,
"cell_type" text,
"resting_potential_m_v" text,
"ap_increase_m_v" text,
"ap_duration_ms" text,
"conduction_speed_m_s" text
);
Question: What was the resting potential with an AP duration of 1.0 and a median giant fiber cell type?
<|assistant|>
SELECT "resting_potential_m_v" FROM "comparison_of_action_potentials_a_ps_fro" WHERE "ap_duration_ms"='1.0' AND "cell_type"='median giant fiber';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "comparison_of_action_potentials_a_ps_fro" (
"animal" text,
"cell_type" text,
"resting_potential_m_v" text,
"ap_increase_m_v" text,
"ap_duration_ms" text,
"conduction_speed_m_s" text
);
Question: Which animal has a resting potential of −60?
<|assistant|>
SELECT "animal" FROM "comparison_of_action_potentials_a_ps_fro" WHERE "resting_potential_m_v"='−60';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "comparison_of_action_potentials_a_ps_fro" (
"animal" text,
"cell_type" text,
"resting_potential_m_v" text,
"ap_increase_m_v" text,
"ap_duration_ms" text,
"conduction_speed_m_s" text
);
Question: Which animal has an AP duration of 1.0 and a conduction speed of 7–30?
<|assistant|>
SELECT "animal" FROM "comparison_of_action_potentials_a_ps_fro" WHERE "ap_duration_ms"='1.0' AND "conduction_speed_m_s"='7–30';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "comparison_of_action_potentials_a_ps_fro" (
"animal" text,
"cell_type" text,
"resting_potential_m_v" text,
"ap_increase_m_v" text,
"ap_duration_ms" text,
"conduction_speed_m_s" text
);
Question: What AP increase has an AP duration of 0.75?
<|assistant|>
SELECT "ap_increase_m_v" FROM "comparison_of_action_potentials_a_ps_fro" WHERE "ap_duration_ms"='0.75';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "comparison_of_action_potentials_a_ps_fro" (
"animal" text,
"cell_type" text,
"resting_potential_m_v" text,
"ap_increase_m_v" text,
"ap_duration_ms" text,
"conduction_speed_m_s" text
);
Question: Which cell type has a conduction speed of 35?
<|assistant|>
SELECT "cell_type" FROM "comparison_of_action_potentials_a_ps_fro" WHERE "conduction_speed_m_s"='35';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "england" (
"rank" real,
"name" text,
"years" text,
"matches" real,
"goals" real
);
Question: What was the total matches that ranked above 10?
<|assistant|>
SELECT SUM("matches") FROM "england" WHERE "rank">10;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "england" (
"rank" real,
"name" text,
"years" text,
"matches" real,
"goals" real
);
Question: What was the total amount of matches for Alan Shearer?
<|assistant|>
SELECT COUNT("matches") FROM "england" WHERE "name"='alan shearer';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "england" (
"rank" real,
"name" text,
"years" text,
"matches" real,
"goals" real
);
Question: What is the average goals for Jimmy Greaves, and matches more than 516?
<|assistant|>
SELECT AVG("goals") FROM "england" WHERE "name"='jimmy greaves' AND "matches">516;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "england" (
"rank" real,
"name" text,
"years" text,
"matches" real,
"goals" real
);
Question: What was the total number of matches for Nat Lofthouse, ranking higher than 7?
<|assistant|>
SELECT COUNT("matches") FROM "england" WHERE "name"='nat lofthouse' AND "rank">7;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "england" (
"rank" real,
"name" text,
"years" text,
"matches" real,
"goals" real
);
Question: What is the highest rank for Nat Lofthouse, and goals more than 255?
<|assistant|>
SELECT MAX("rank") FROM "england" WHERE "name"='nat lofthouse' AND "goals">255;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "calendar" (
"round" text,
"circuit" text,
"location_state" text,
"date" text,
"winner" text
);
Question: What is the location/state that has adelaide international raceway as the circuit?
<|assistant|>
SELECT "location_state" FROM "calendar" WHERE "circuit"='adelaide international raceway';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "episodes" (
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: What is the name of the director for the episode titled "homewrecker for the holidays"?
<|assistant|>
SELECT "directed_by" FROM "episodes" WHERE "title"='\"homewrecker for the holidays\"';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "episodes" (
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: What is the Original air date for the episode with a Production code of 07-00-107?
<|assistant|>
SELECT "original_air_date" FROM "episodes" WHERE "production_code"='07-00-107';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "episodes" (
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: What is the name of the director of the episode written by robin schwartz & robert tarlow?
<|assistant|>
SELECT "directed_by" FROM "episodes" WHERE "written_by"='robin schwartz & robert tarlow';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "episodes" (
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: What is the Original air date for the episode directed by lev l. spiro, with a Production code of 07-00-109?
<|assistant|>
SELECT "original_air_date" FROM "episodes" WHERE "directed_by"='lev l. spiro' AND "production_code"='07-00-109';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "episodes" (
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: What is the name of the writer for the episode with an Original air date of october 9, 2000?
<|assistant|>
SELECT "written_by" FROM "episodes" WHERE "original_air_date"='october 9, 2000';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "episodes" (
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: What is the Title written by Terri Hughes & Ron Milbauer, and an Original air date of march 6, 2001?
<|assistant|>
SELECT "title" FROM "episodes" WHERE "written_by"='terri hughes & ron milbauer' AND "original_air_date"='march 6, 2001';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What time or retired does Scott Dixon have?
<|assistant|>
SELECT "time_retired" FROM "race" WHERE "driver"='scott dixon';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: Which driver has a grid bigger than 3 and a time of +62.6 secs?
<|assistant|>
SELECT "driver" FROM "race" WHERE "grid">3 AND "time_retired"='+62.6 secs';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: Who drives for Newman-Haas Racing with a time of 1:51:47.260?
<|assistant|>
SELECT "driver" FROM "race" WHERE "team"='newman-haas racing' AND "time_retired"='1:51:47.260';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: Which driver had less than 65 laps for Sigma Autosport?
<|assistant|>
SELECT "driver" FROM "race" WHERE "laps"<65 AND "team"='sigma autosport';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "i_que_game_boy_advance" (
"chinese_title" text,
"pinyin" text,
"released_date" real,
"genre" text,
"game_modes" text
);
Question: Which game modes have Pinyin of chāojí mǎlìōu shìjiè?
<|assistant|>
SELECT "game_modes" FROM "i_que_game_boy_advance" WHERE "pinyin"='chāojí mǎlìōu shìjiè';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sovereign_states" (
"name" text,
"subdivisions" text,
"area_km" real,
"population_1_july_2005_est" real,
"population_density_per_km" real,
"capital" text
);
Question: What is the sum of Population (1 July 2005 est.), when Area (km²) is less than 5,131, when Population density (per km²) is less than 180, when Subdivisions is Parishes, and when Capital is Roseau?
<|assistant|>
SELECT SUM("population_1_july_2005_est") FROM "sovereign_states" WHERE "area_km"<'5,131' AND "population_density_per_km"<180 AND "subdivisions"='parishes' AND "capital"='roseau';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sovereign_states" (
"name" text,
"subdivisions" text,
"area_km" real,
"population_1_july_2005_est" real,
"population_density_per_km" real,
"capital" text
);
Question: What is the lowest Population (1 July 2005 est.), when Population density (per km²) is 0?
<|assistant|>
SELECT MIN("population_1_july_2005_est") FROM "sovereign_states" WHERE "population_density_per_km"=0;<|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.