text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "senior_pga_tour_wins_10" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What races were Chi-Chi Rodriguez the runner-up in? <|assistant|> SELECT "tournament" FROM "senior_pga_tour_wins_10" WHERE "runner_s_up"='chi-chi rodriguez';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "senior_pga_tour_wins_10" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What was the margin of victory for Isao Aoki when he was a runner-up? <|assistant|> SELECT "margin_of_victory" FROM "senior_pga_tour_wins_10" WHERE "runner_s_up"='isao aoki';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "senior_pga_tour_wins_10" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What was the winning score in the mazda senior tournament players championship? <|assistant|> SELECT "winning_score" FROM "senior_pga_tour_wins_10" WHERE "tournament"='mazda senior tournament players championship';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "senior_pga_tour_wins_10" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: Which tournament ended with a winning score of –27 (65-68-64-64=261)? <|assistant|> SELECT "tournament" FROM "senior_pga_tour_wins_10" WHERE "winning_score"='–27 (65-68-64-64=261)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "senior_pga_tour_wins_10" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: Who was the runner(s)-up for the Feb 18, 1996 tournament? <|assistant|> SELECT "runner_s_up" FROM "senior_pga_tour_wins_10" WHERE "date"='feb 18, 1996';<|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, "points" real ); Question: What is Oriol Servia's average Grid on races with more than 43 laps? <|assistant|> SELECT AVG("grid") FROM "race" WHERE "laps">43 AND "driver"='oriol servia';<|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, "points" real ); Question: How many laps were there in the race that netted the winner 19 points? <|assistant|> SELECT "laps" FROM "race" WHERE "points"=19;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "domestic_goals_summary" ( "date" text, "season" text, "playing_for" text, "opponent" text, "final_score" text ); Question: In what Season is Necaxa an Opponent? <|assistant|> SELECT "season" FROM "domestic_goals_summary" WHERE "opponent"='necaxa';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "domestic_goals_summary" ( "date" text, "season" text, "playing_for" text, "opponent" text, "final_score" text ); Question: In what season is Victoria the Opponent? <|assistant|> SELECT "season" FROM "domestic_goals_summary" WHERE "opponent"='victoria';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tararua_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); Question: Name the authority when the decile is 6 for pongaroa school <|assistant|> SELECT "authority" FROM "tararua_district" WHERE "decile"=6 AND "name"='pongaroa school';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tararua_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); Question: Name the years for dannevirke south school <|assistant|> SELECT "years" FROM "tararua_district" WHERE "name"='dannevirke south school';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tararua_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); Question: Name the least decile for state authority and area of eketahuna with roll more than 44 <|assistant|> SELECT MIN("decile") FROM "tararua_district" WHERE "authority"='state' AND "area"='eketahuna' AND "roll">44;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tararua_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); Question: Tell me the name with area of eketahuna <|assistant|> SELECT "name" FROM "tararua_district" WHERE "area"='eketahuna';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "e_class" ( "ship" text, "pennant_number" text, "laid_down" text, "launched" text, "completed" text ); Question: Name what was completed on 12 april 1934 <|assistant|> SELECT "completed" FROM "e_class" WHERE "launched"='12 april 1934';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "e_class" ( "ship" text, "pennant_number" text, "laid_down" text, "launched" text, "completed" text ); Question: Name the launched for 13 september 1934 completion <|assistant|> SELECT "launched" FROM "e_class" WHERE "completed"='13 september 1934';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "e_class" ( "ship" text, "pennant_number" text, "laid_down" text, "launched" text, "completed" text ); Question: Name the ship launched 29 may 1934 <|assistant|> SELECT "ship" FROM "e_class" WHERE "launched"='29 may 1934';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "e_class" ( "ship" text, "pennant_number" text, "laid_down" text, "launched" text, "completed" text ); Question: Name the laid down for launched being 16 february 1934 <|assistant|> SELECT "laid_down" FROM "e_class" WHERE "launched"='16 february 1934';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "e_class" ( "ship" text, "pennant_number" text, "laid_down" text, "launched" text, "completed" text ); Question: Name the pennant number for completion of 30 october 1934 and launched 29 march 1934 <|assistant|> SELECT "pennant_number" FROM "e_class" WHERE "launched"='29 march 1934' AND "completed"='30 october 1934';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "e_class" ( "ship" text, "pennant_number" text, "laid_down" text, "launched" text, "completed" text ); Question: Name the laid down for completed of 22 october 1934 <|assistant|> SELECT "laid_down" FROM "e_class" WHERE "completed"='22 october 1934';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "36_seats" ( "riding" text, "candidate_s_name" text, "gender" text, "residence" text, "occupation" text, "votes" real, "rank" text ); Question: what is the candidates name who is ranked 8th? <|assistant|> SELECT "candidate_s_name" FROM "36_seats" WHERE "rank"='8th';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "36_seats" ( "riding" text, "candidate_s_name" text, "gender" text, "residence" text, "occupation" text, "votes" real, "rank" text ); Question: where is harold j. ludwig riding when the votes are more than 484? <|assistant|> SELECT "riding" FROM "36_seats" WHERE "votes">484 AND "candidate_s_name"='harold j. ludwig';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "36_seats" ( "riding" text, "candidate_s_name" text, "gender" text, "residence" text, "occupation" text, "votes" real, "rank" text ); Question: what is the gender of Ron Gray, ranked 5th? <|assistant|> SELECT "gender" FROM "36_seats" WHERE "rank"='5th' AND "candidate_s_name"='ron gray';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "36_seats" ( "riding" text, "candidate_s_name" text, "gender" text, "residence" text, "occupation" text, "votes" real, "rank" text ); Question: what is the lowest votes of the candidate ranked 5th and riding in victoria? <|assistant|> SELECT MIN("votes") FROM "36_seats" WHERE "rank"='5th' AND "riding"='victoria';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "england_in_australia" ( "date" text, "home_captain" text, "away_captain" text, "venue" text, "result" text ); Question: Which home captian has aus by 295 runs as the result? <|assistant|> SELECT "home_captain" FROM "england_in_australia" WHERE "result"='aus by 295 runs';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "england_in_australia" ( "date" text, "home_captain" text, "away_captain" text, "venue" text, "result" text ); Question: Which result has adelaide oval as the venue? <|assistant|> SELECT "result" FROM "england_in_australia" WHERE "venue"='adelaide oval';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fiba_euro_basket_2007_squads" ( "player" text, "height" real, "position" text, "year_born" real, "current_club" text ); Question: Born in 1982, this guard has what listed as a height? <|assistant|> SELECT "height" FROM "fiba_euro_basket_2007_squads" WHERE "position"='guard' AND "year_born"=1982;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "jersey_progress_chart" ( "stage_winner" text, "general_classification_yellow_jersey" text, "mountains_classification_green_jersey" text, "points_classification_navy_blue_jersey" text, "intermediate_sprints_classification_red_jersey" text, "team_classification" text ); Question: Which Points Classification Navy Blue Jersey that has a Jersey of Graeme Brown <|assistant|> SELECT "points_classification_navy_blue_jersey" FROM "jersey_progress_chart" WHERE "general_classification_yellow_jersey"='graeme brown';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "jersey_progress_chart" ( "stage_winner" text, "general_classification_yellow_jersey" text, "mountains_classification_green_jersey" text, "points_classification_navy_blue_jersey" text, "intermediate_sprints_classification_red_jersey" text, "team_classification" text ); Question: What is the Intermediate Sprints Classification Red Jersey that has a Green Jersey of Murilo Antonio Fischer, and Jose Joaquin Rojas Gil? <|assistant|> SELECT "intermediate_sprints_classification_red_jersey" FROM "jersey_progress_chart" WHERE "mountains_classification_green_jersey"='murilo antonio fischer' AND "points_classification_navy_blue_jersey"='jose joaquin rojas gil';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "jersey_progress_chart" ( "stage_winner" text, "general_classification_yellow_jersey" text, "mountains_classification_green_jersey" text, "points_classification_navy_blue_jersey" text, "intermediate_sprints_classification_red_jersey" text, "team_classification" text ); Question: What is General Classification Yellow Jersey that has a Murilo Antonio Fischer, and Lampre-Fondital? <|assistant|> SELECT "general_classification_yellow_jersey" FROM "jersey_progress_chart" WHERE "mountains_classification_green_jersey"='murilo antonio fischer' AND "team_classification"='lampre-fondital';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "jersey_progress_chart" ( "stage_winner" text, "general_classification_yellow_jersey" text, "mountains_classification_green_jersey" text, "points_classification_navy_blue_jersey" text, "intermediate_sprints_classification_red_jersey" text, "team_classification" text ); Question: What is the Points Classification Navy Blue Jersey that has Yoann le Boulanger, and Gerolsteiner? <|assistant|> SELECT "points_classification_navy_blue_jersey" FROM "jersey_progress_chart" WHERE "mountains_classification_green_jersey"='yoann le boulanger' AND "team_classification"='gerolsteiner';<|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: What was the attendance on April 7? <|assistant|> SELECT SUM("attendance") FROM "game_log" WHERE "date"='april 7';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_recent_northumberland_cup_winner" ( "season" text, "northumberland_senior_cup" text, "northumberland_senior_benevolent_bowl" text, "northumberland_minor_cup" text, "northumberland_women_s_cup" text ); Question: Who wins the Northumberland Senior Cup, when the Northumberland Women's Cup is won by Whitley Bay Women, and when the Northumberland Senior Benevolent Bowl is won by Alnwick Town? <|assistant|> SELECT "northumberland_senior_cup" FROM "list_of_recent_northumberland_cup_winner" WHERE "northumberland_women_s_cup"='whitley bay women' AND "northumberland_senior_benevolent_bowl"='alnwick town';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_recent_northumberland_cup_winner" ( "season" text, "northumberland_senior_cup" text, "northumberland_senior_benevolent_bowl" text, "northumberland_minor_cup" text, "northumberland_women_s_cup" text ); Question: Who won the Northumberland Senior Benevolent Bowl, when the Northumberland Minor Cup was won by Whitley Bay 'a'? <|assistant|> SELECT "northumberland_senior_benevolent_bowl" FROM "list_of_recent_northumberland_cup_winner" WHERE "northumberland_minor_cup"='whitley bay ''a''';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_recent_northumberland_cup_winner" ( "season" text, "northumberland_senior_cup" text, "northumberland_senior_benevolent_bowl" text, "northumberland_minor_cup" text, "northumberland_women_s_cup" text ); Question: Who won the Northumberland Senior Benevolent Bowl, when the Northumberland Women's Cup was won by Blyth Spartans Ladies? <|assistant|> SELECT "northumberland_senior_benevolent_bowl" FROM "list_of_recent_northumberland_cup_winner" WHERE "northumberland_women_s_cup"='blyth spartans ladies';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_recent_northumberland_cup_winner" ( "season" text, "northumberland_senior_cup" text, "northumberland_senior_benevolent_bowl" text, "northumberland_minor_cup" text, "northumberland_women_s_cup" text ); Question: Who won the Northumberland Women's Cup when the Northumberland Senior Benevolent Bowl was won by Percy Main Amateurs? <|assistant|> SELECT "northumberland_women_s_cup" FROM "list_of_recent_northumberland_cup_winner" WHERE "northumberland_senior_benevolent_bowl"='percy main amateurs';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "country" text, "film_title_used_in_nomination" text, "language" text, "original_title" text, "director" text ); Question: What was the film nomination in the Netherlands? <|assistant|> SELECT "film_title_used_in_nomination" FROM "references" WHERE "country"='netherlands';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "country" text, "film_title_used_in_nomination" text, "language" text, "original_title" text, "director" text ); Question: Who directed Turks Fruit? <|assistant|> SELECT "director" FROM "references" WHERE "original_title"='turks fruit';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "country" text, "film_title_used_in_nomination" text, "language" text, "original_title" text, "director" text ); Question: What director is from Poland? <|assistant|> SELECT "director" FROM "references" WHERE "country"='poland';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "country" text, "film_title_used_in_nomination" text, "language" text, "original_title" text, "director" text ); Question: Who directed the Romanian film? <|assistant|> SELECT "director" FROM "references" WHERE "language"='romanian';<|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 placement gets more than $400? <|assistant|> SELECT "place" FROM "final_leaderboard" WHERE "money">400;<|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's the average payout of toney penna with a +2 par? <|assistant|> SELECT AVG("money") FROM "final_leaderboard" WHERE "to_par"='+2' AND "player"='toney penna';<|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: What is the attendance number of the game on April 16? <|assistant|> SELECT COUNT("attendance") FROM "game_log" WHERE "date"='april 16';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1981_kansas_city_chiefs_season" ( "round" real, "pick" real, "name" text, "position" text, "college" text ); Question: What was the average pick of northwestern state college under round 3? <|assistant|> SELECT AVG("pick") FROM "1981_kansas_city_chiefs_season" WHERE "round"<3 AND "college"='northwestern state';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1981_kansas_city_chiefs_season" ( "round" real, "pick" real, "name" text, "position" text, "college" text ); Question: Rutgers college holds what position? <|assistant|> SELECT "position" FROM "1981_kansas_city_chiefs_season" WHERE "college"='rutgers';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1981_kansas_city_chiefs_season" ( "round" real, "pick" real, "name" text, "position" text, "college" text ); Question: In what round smaller than 10, was the center les studdard picked in? <|assistant|> SELECT MIN("pick") FROM "1981_kansas_city_chiefs_season" WHERE "position"='center' AND "name"='les studdard' AND "round"<10;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1981_kansas_city_chiefs_season" ( "round" real, "pick" real, "name" text, "position" text, "college" text ); Question: Which college had rounds smaller than 2? <|assistant|> SELECT "college" FROM "1981_kansas_city_chiefs_season" WHERE "round"<2;<|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, "attendance" real, "record" text ); Question: What record was reached with a score of 7 - 2? <|assistant|> SELECT "record" FROM "game_log" WHERE "score"='7 - 2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_games_for_each_club" ( "rank" text, "games" text, "player" text, "club" text, "career_span" text ); Question: What is the name of the club with a rank of 5? <|assistant|> SELECT "club" FROM "most_games_for_each_club" WHERE "rank"='5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_games_for_each_club" ( "rank" text, "games" text, "player" text, "club" text, "career_span" text ); Question: What is the rank that shows 276 games? <|assistant|> SELECT "rank" FROM "most_games_for_each_club" WHERE "games"='276';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_games_for_each_club" ( "rank" text, "games" text, "player" text, "club" text, "career_span" text ); Question: What is the rank that shows 426 games? <|assistant|> SELECT "rank" FROM "most_games_for_each_club" WHERE "games"='426';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_games_for_each_club" ( "rank" text, "games" text, "player" text, "club" text, "career_span" text ); Question: What is the number of games for Roger Merrett? <|assistant|> SELECT "games" FROM "most_games_for_each_club" WHERE "player"='roger merrett';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indianapolis_500" ( "year" real, "chassis" text, "engine" text, "start" text, "finish" text, "entrant" text ); Question: What Engine had a Finish of 27? <|assistant|> SELECT "engine" FROM "indianapolis_500" WHERE "finish"='27';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indianapolis_500" ( "year" real, "chassis" text, "engine" text, "start" text, "finish" text, "entrant" text ); Question: What Engine had a chassis of March 85c? <|assistant|> SELECT "engine" FROM "indianapolis_500" WHERE "chassis"='march 85c';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indianapolis_500" ( "year" real, "chassis" text, "engine" text, "start" text, "finish" text, "entrant" text ); Question: What Engine has a Finish of 21? <|assistant|> SELECT "engine" FROM "indianapolis_500" WHERE "finish"='21';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cry_engine_2" ( "title" text, "year" text, "developer" text, "publisher" text, "platform" text ); Question: On what platform does Mindark publish? <|assistant|> SELECT "platform" FROM "cry_engine_2" WHERE "publisher"='mindark';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cry_engine_2" ( "title" text, "year" text, "developer" text, "publisher" text, "platform" text ); Question: What year did Avatar Reality release a game? <|assistant|> SELECT "year" FROM "cry_engine_2" WHERE "developer"='avatar reality';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cry_engine_2" ( "title" text, "year" text, "developer" text, "publisher" text, "platform" text ); Question: What publisher created Crysis Warhead? <|assistant|> SELECT "publisher" FROM "cry_engine_2" WHERE "title"='crysis warhead';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cry_engine_2" ( "title" text, "year" text, "developer" text, "publisher" text, "platform" text ); Question: For what platform does Mindark publish? <|assistant|> SELECT "platform" FROM "cry_engine_2" WHERE "publisher"='mindark';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cry_engine_2" ( "title" text, "year" text, "developer" text, "publisher" text, "platform" text ); Question: What publisher does Paleo Entertainment develop for? <|assistant|> SELECT "publisher" FROM "cry_engine_2" WHERE "developer"='paleo entertainment';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cry_engine_2" ( "title" text, "year" text, "developer" text, "publisher" text, "platform" text ); Question: Who was the developer for Vigilance? <|assistant|> SELECT "developer" FROM "cry_engine_2" WHERE "title"='vigilance';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2013_2014_roster" ( "number" text, "player" text, "position" text, "height" text, "weight" text, "home_town" text ); Question: Which player's home town is Swift Current, AB? <|assistant|> SELECT "player" FROM "2013_2014_roster" WHERE "home_town"='swift current, ab';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2013_2014_roster" ( "number" text, "player" text, "position" text, "height" text, "weight" text, "home_town" text ); Question: Which position does number 23 play? <|assistant|> SELECT "position" FROM "2013_2014_roster" WHERE "number"='23';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2013_2014_roster" ( "number" text, "player" text, "position" text, "height" text, "weight" text, "home_town" text ); Question: Which number plays the skaters position? <|assistant|> SELECT "number" FROM "2013_2014_roster" WHERE "position"='skaters';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2013_2014_roster" ( "number" text, "player" text, "position" text, "height" text, "weight" text, "home_town" text ); Question: How much does number 26 weigh? <|assistant|> SELECT "weight" FROM "2013_2014_roster" WHERE "number"='26';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cetacea" ( "name" text, "species_authority" text, "order" text, "family" text, "red_list" real ); Question: Which family has a Name of humpback whale? <|assistant|> SELECT "family" FROM "cetacea" WHERE "name"='humpback whale';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cetacea" ( "name" text, "species_authority" text, "order" text, "family" text, "red_list" real ); Question: Which name has a Red List larger than 0, and a Species/Authority of balaenoptera acutorostrata lacépède, 1804? <|assistant|> SELECT "name" FROM "cetacea" WHERE "red_list">0 AND "species_authority"='balaenoptera acutorostrata lacépède, 1804';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cetacea" ( "name" text, "species_authority" text, "order" text, "family" text, "red_list" real ); Question: Which Species/Authority has a Name of true's beaked whale? <|assistant|> SELECT "species_authority" FROM "cetacea" WHERE "name"='true''s beaked whale';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_world_championship_formula_one_" ( "year" real, "chassis" text, "engine_s" text, "tyres" text, "points" text ); Question: What engine has 2 points? <|assistant|> SELECT "engine_s" FROM "complete_world_championship_formula_one_" WHERE "points"='2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_world_championship_formula_one_" ( "year" real, "chassis" text, "engine_s" text, "tyres" text, "points" text ); Question: What tyres are associated with a year after 1974 and 5 points? <|assistant|> SELECT "tyres" FROM "complete_world_championship_formula_one_" WHERE "year">1974 AND "points"='5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_world_championship_formula_one_" ( "year" real, "chassis" text, "engine_s" text, "tyres" text, "points" text ); Question: What is the engine(s) on the car before 1978 with ensign n177 chassis? <|assistant|> SELECT "engine_s" FROM "complete_world_championship_formula_one_" WHERE "chassis"='ensign n177' AND "year"<1978;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_world_championship_formula_one_" ( "year" real, "chassis" text, "engine_s" text, "tyres" text, "points" text ); Question: What tyres have 1 point and an ensign n177 chassis? <|assistant|> SELECT "tyres" FROM "complete_world_championship_formula_one_" WHERE "points"='1' AND "chassis"='ensign n177';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "pts" real ); Question: Before 1987, what is the Entrant with bmw straight-4 (t/c) as Engine and a great than 2 Pts? <|assistant|> SELECT "entrant" FROM "complete_formula_one_results" WHERE "year"<1987 AND "engine"='bmw straight-4 (t/c)' AND "pts">2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: What did Ku Hyo-Jin rank? <|assistant|> SELECT COUNT("rank") FROM "semifinal_1" WHERE "name"='ku hyo-jin';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: What was the rank of the person who swam in Lane 7 with a time of 2:25.86? <|assistant|> SELECT SUM("rank") FROM "semifinal_1" WHERE "time"='2:25.86' AND "lane"<7;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "f_class" ( "ship" text, "pennant_number" text, "laid_down" text, "launched" text, "commissioned" text ); Question: Which Laid down has a Ship of fearless? <|assistant|> SELECT "laid_down" FROM "f_class" WHERE "ship"='fearless';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "f_class" ( "ship" text, "pennant_number" text, "laid_down" text, "launched" text, "commissioned" text ); Question: Which ship has a Pennant number of h.69? <|assistant|> SELECT "ship" FROM "f_class" WHERE "pennant_number"='h.69';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "f_class" ( "ship" text, "pennant_number" text, "laid_down" text, "launched" text, "commissioned" text ); Question: Which Launched has Commissioned 6 june 1935? <|assistant|> SELECT "launched" FROM "f_class" WHERE "commissioned"='6 june 1935';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "f_class" ( "ship" text, "pennant_number" text, "laid_down" text, "launched" text, "commissioned" text ); Question: What launch has a Ship of fearless? <|assistant|> SELECT "launched" FROM "f_class" WHERE "ship"='fearless';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "f_class" ( "ship" text, "pennant_number" text, "laid_down" text, "launched" text, "commissioned" text ); Question: Which commission was launched 28 june 1934, and has a Pennant number of h.78? <|assistant|> SELECT "commissioned" FROM "f_class" WHERE "launched"='28 june 1934' AND "pennant_number"='h.78';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_scores_for_each_quarter" ( "quarter" text, "score" text, "club" text, "opponent" text, "year" text, "round" text, "venue" text ); Question: Which year has a Round of 17? <|assistant|> SELECT "year" FROM "highest_scores_for_each_quarter" WHERE "round"='17';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_scores_for_each_quarter" ( "quarter" text, "score" text, "club" text, "opponent" text, "year" text, "round" text, "venue" text ); Question: Which opponent has a Club of essendon, and a Score of 13.4.82? <|assistant|> SELECT "opponent" FROM "highest_scores_for_each_quarter" WHERE "club"='essendon' AND "score"='13.4.82';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_scores_for_each_quarter" ( "quarter" text, "score" text, "club" text, "opponent" text, "year" text, "round" text, "venue" text ); Question: Which opponent has a Score of 15.4.94? <|assistant|> SELECT "opponent" FROM "highest_scores_for_each_quarter" WHERE "score"='15.4.94';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_scores_for_each_quarter" ( "quarter" text, "score" text, "club" text, "opponent" text, "year" text, "round" text, "venue" text ); Question: Which opponent has a Round of 12? <|assistant|> SELECT "opponent" FROM "highest_scores_for_each_quarter" WHERE "round"='12';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_scores_for_each_quarter" ( "quarter" text, "score" text, "club" text, "opponent" text, "year" text, "round" text, "venue" text ); Question: Which Quarter has a Round of 17? <|assistant|> SELECT "quarter" FROM "highest_scores_for_each_quarter" WHERE "round"='17';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "br_no" real, "name" text, "builder" text, "whenbuilt" text, "withdrawn" text ); Question: When was moray firth built? <|assistant|> SELECT "whenbuilt" FROM "references" WHERE "name"='moray firth';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "br_no" real, "name" text, "builder" text, "whenbuilt" text, "withdrawn" text ); Question: Name the withdrawn for charles dickens <|assistant|> SELECT "withdrawn" FROM "references" WHERE "name"='charles dickens';<|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 loss has an Attendance larger than 20,841, and a Date of july 9? <|assistant|> SELECT "loss" FROM "game_log" WHERE "attendance">'20,841' AND "date"='july 9';<|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 Date of july 27? <|assistant|> SELECT "opponent" FROM "game_log" WHERE "date"='july 27';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "event" text ); Question: What Venue held the World Race Walking Cup tourney before 2008? <|assistant|> SELECT "venue" FROM "achievements" WHERE "year"<2008 AND "tournament"='world race walking cup';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "event" text ); Question: What tournement was held in Helsinki, Finland in 2005? <|assistant|> SELECT "event" FROM "achievements" WHERE "venue"='helsinki, finland';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "event" text ); Question: What Venue held the Olympic games in 2012? <|assistant|> SELECT "venue" FROM "achievements" WHERE "tournament"='olympic games' AND "year"=2012;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "asia" ( "name" text, "est" real, "city" text, "country" text, "website" text ); Question: What's the website for the yamagata international documentary film festival? <|assistant|> SELECT "website" FROM "asia" WHERE "name"='yamagata international documentary film festival';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real ); Question: How did Johnnie Parsons finish when his qualifying time was 135.328? <|assistant|> SELECT "rank" FROM "indy_500_results" WHERE "qual"='135.328';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real ); Question: What was Johnnie Parsons rank when he completed over 200 laps? <|assistant|> SELECT "rank" FROM "indy_500_results" WHERE "laps">200;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "wins" text, "podiums" text, "position" text ); Question: What is the value for Podiums when the value for Wins is 2, and when the Season is 2008? <|assistant|> SELECT "podiums" FROM "career_summary" WHERE "wins"='2' AND "season"=2008;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "wins" text, "podiums" text, "position" text ); Question: What is the value for Position, when the Series is the Macau Grand Prix, and when the Season is before 2007? <|assistant|> SELECT "position" FROM "career_summary" WHERE "series"='macau grand prix' AND "season"<2007;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "wins" text, "podiums" text, "position" text ); Question: What is the value for Wins when the Position is 7th? <|assistant|> SELECT "wins" FROM "career_summary" WHERE "position"='7th';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "wins" text, "podiums" text, "position" text ); Question: What is the Series, when the Season is after 2008, when the value for Podiums is 3, and when the Position is 8th? <|assistant|> SELECT "series" FROM "career_summary" WHERE "season">2008 AND "podiums"='3' AND "position"='8th';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "wins" text, "podiums" text, "position" text ); Question: What is the value for Podiums, when the Season is after 2008, and when the Series is GP2 Asia Series? <|assistant|> SELECT "podiums" FROM "career_summary" WHERE "season">2008 AND "series"='gp2 asia series';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "wins" text, "podiums" text, "position" text ); Question: What is the value for Wins, when the Series is GP2 Series, and when the Season is before 2009? <|assistant|> SELECT "wins" FROM "career_summary" WHERE "series"='gp2 series' AND "season"<2009;<|endoftext|>