text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_school" ( "school" text, "years_of_participation" text, "occ_championships" real, "last_occ_championship" text, "last_outright_occ_championship" text ); Question: How many times have Central...
<|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, "round" real ); Question: How many rounds is the fight against Michael Chavez? <|assistant|> SELECT AVG("...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "runners_up" ( "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: What date was the match where Daniel Gimeno-Traver's partner was pere...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "reserves_academy" ( "exit_date" text, "pos" text, "player" text, "to_club" text, "transfer_fee" text ); Question: Ashley Grimes had what to club? <|assistant|> SELECT "to_club" FROM "reserves_a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "reserves_academy" ( "exit_date" text, "pos" text, "player" text, "to_club" text, "transfer_fee" text ); Question: Who had a transfer fee of released and played the position of DF? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "reserves_academy" ( "exit_date" text, "pos" text, "player" text, "to_club" text, "transfer_fee" text ); Question: When was the exit date KiatPrawut Saiwaeo who had a transfer fee of released? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "reserves_academy" ( "exit_date" text, "pos" text, "player" text, "to_club" text, "transfer_fee" text ); Question: What was the date that a player went to the club Doncaster Rovers? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "reserves_academy" ( "exit_date" text, "pos" text, "player" text, "to_club" text, "transfer_fee" text ); Question: Teerasil Dangda who had a to club of released plays what position? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real ); Question: What was the average points for someone who has played more than 10? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "250_nm" ( "model_number" text, "frequency" text, "l2_cache" text, "mult" text, "voltage" text, "socket" text ); Question: What is L2 Cache, when Model Number is Pentium II 350? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "250_nm" ( "model_number" text, "frequency" text, "l2_cache" text, "mult" text, "voltage" text, "socket" text ); Question: What is Mult, when Model Number is Pentium II 450? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "250_nm" ( "model_number" text, "frequency" text, "l2_cache" text, "mult" text, "voltage" text, "socket" text ); Question: What is Frequency, when Model Number is Pentium II 400? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "250_nm" ( "model_number" text, "frequency" text, "l2_cache" text, "mult" text, "voltage" text, "socket" text ); Question: What is Socket, when Voltage is 2.0V, and when Model Number is Pentiu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "250_nm" ( "model_number" text, "frequency" text, "l2_cache" text, "mult" text, "voltage" text, "socket" text ); Question: What is Model Number, when Voltage is 2.0V, and when Frequency is 350...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_schedule" ( "date" text, "opponent" text, "score" text, "leading_scorer" text, "attendance" real, "record" text ); Question: How many attended during the game with a score of 80-94? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles" ( "year" real, "u_s" text, "u_s_r_b" text, "u_s_rap" text, "album" text ); Question: What is the U.S. rap ranking in 2000 of the U.S. 105 single? <|assistant|> SELECT "u_s_rap" FROM "s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles" ( "year" real, "u_s" text, "u_s_r_b" text, "u_s_rap" text, "album" text ); Question: What is the U.S. rap rank for the song with a U.S. R&B 23 rank? <|assistant|> SELECT "u_s_rap" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles" ( "year" real, "u_s" text, "u_s_r_b" text, "u_s_rap" text, "album" text ); Question: What is the U.S. R&B rank in 2003? <|assistant|> SELECT "u_s_r_b" FROM "singles" WHERE "year"=2003;...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "opponent" text, "result" text, "score" text, "record" text, "location" text, "attendance" real ); Question: For the game ending with a score of 28-43, what is the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "opponent" text, "result" text, "score" text, "record" text, "location" text, "attendance" real ); Question: For the game showing a final record of 0-5, what was th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "opponent" text, "result" text, "score" text, "record" text, "location" text, "attendance" real ); Question: For the game where the opponent is listed as At Los Ang...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "opponent" text, "result" text, "score" text, "record" text, "location" text, "attendance" real ); Question: For the game played on August 25, with attendance at mo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "opponent" text, "result" text, "score" text, "record" text, "location" text, "attendance" real ); Question: What was the result for the game with final record list...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "name" text, "country" text, "total" text, "60m_h" real, "800m" real ); Question: What is the 60mH that has a Country of russia, and a 800m of 883? <|assistant|> SELECT "60m_h" FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "name" text, "country" text, "total" text, "60m_h" real, "800m" real ); Question: What is the Total that has a 60mH of 1073? <|assistant|> SELECT "total" FROM "summary" WHERE "60m_h"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "name" text, "country" text, "total" text, "60m_h" real, "800m" real ); Question: What is the Name that has a 60mH littler than 1002, and a 800m littler than 985, and a Country of li...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2012_13_season_standings" ( "team" text, "sets" real, "sets" real, "points" real, "points" real ); Question: What is the Sets- for Team ushuaïa ibiza voley when the Points- were less than 1418 ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2012_13_season_standings" ( "team" text, "sets" real, "sets" real, "points" real, "points" real ); Question: What is the Sets+ for Team unicaja almería where the Sets- were less than 21 and the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2012_13_season_standings" ( "team" text, "sets" real, "sets" real, "points" real, "points" real ); Question: What is the total number of Sets+ where the Points- are 1435 and the Points+ are les...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); Question: Which player has fewer than 3 rounds and the position of (g)...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); Question: How many rounds does Colby Robak have with a position of (d)...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); Question: Which College/Junior/Club Team (league) does Matthew Bartkow...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_schedule" ( "date" text, "opponent" text, "score" text, "result" text, "record" text ); Question: What date was the game when the liberty had a record of 12-9? <|assistant|> SELECT "date...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_schedule" ( "date" text, "opponent" text, "score" text, "result" text, "record" text ); Question: What was the record for the game that had a score of 105-72? <|assistant|> SELECT "recor...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_schedule" ( "date" text, "opponent" text, "score" text, "result" text, "record" text ); Question: What was the date of the game where the record was 4-4? <|assistant|> SELECT "date" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: Who was the away team when Manchester United played at home on 10 February 1951? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: Which tie did Huddersfield Town play as an away team? <|assistant|> SELECT "tie_n...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); Question: What Player had a Score of 75-73-68-65=281 and more than 19,009 in Money? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); Question: What is the Country of T6 Place Player Ben Crenshaw? <|assistant|> SELECT "c...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); Question: What is the Money of the Player with a To par of +3 and Score of 76-69-69-69...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "game" real, "january" real, "opponent" text, "score" text, "record" text ); Question: What is the score of the game before January 22 with a 30-7-7 record? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "game" real, "january" real, "opponent" text, "score" text, "record" text ); Question: What is the sum of the games before January 19 with a 27-6-6 record? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "models" ( "model_number" text, "frequency" text, "l1_cache" text, "mult" real, "voltage" text ); Question: What is the Frequency, when the Voltage is 3.3 V? <|assistant|> SELECT "frequency" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "models" ( "model_number" text, "frequency" text, "l1_cache" text, "mult" real, "voltage" text ); Question: What is the L1 Cache, when the Model Number is X5-133 ADY? <|assistant|> SELECT "l1_ca...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "models" ( "model_number" text, "frequency" text, "l1_cache" text, "mult" real, "voltage" text ); Question: What is the Model Number, when the Voltage is 3.45 V, and when the Frequency is 133 MH...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary_of_raiding_history" ( "date" text, "ship" text, "nationality" text, "tonnage" real, "fate" text ); Question: What is the Nationality of the Aracataca Ship? <|assistant|> SELECT "nationa...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "comparative_table_showing_corresponding_" ( "months_in_malayalam_era" text, "in_malayalam" text, "gregorian_calendar" text, "tamil_calendar" text, "saka_era" text, "sign_of_zodiac" text ); Qu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "comparative_table_showing_corresponding_" ( "months_in_malayalam_era" text, "in_malayalam" text, "gregorian_calendar" text, "tamil_calendar" text, "saka_era" text, "sign_of_zodiac" text ); Qu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "comparative_table_showing_corresponding_" ( "months_in_malayalam_era" text, "in_malayalam" text, "gregorian_calendar" text, "tamil_calendar" text, "saka_era" text, "sign_of_zodiac" text ); Qu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "comparative_table_showing_corresponding_" ( "months_in_malayalam_era" text, "in_malayalam" text, "gregorian_calendar" text, "tamil_calendar" text, "saka_era" text, "sign_of_zodiac" text ); Qu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "comparative_table_showing_corresponding_" ( "months_in_malayalam_era" text, "in_malayalam" text, "gregorian_calendar" text, "tamil_calendar" text, "saka_era" text, "sign_of_zodiac" text ); Qu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); Question: What is the airport when the iata is tbj? <|assistant|> SELECT "airport" FROM "destinations" W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); Question: what is the iata for malta international airport? <|assistant|> SELECT "iata" FROM "destinatio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); Question: what is the airport for the country tunisia with the icao dtaa? <|assistant|> SELECT "airport"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); Question: what is the city when the country is libya and the iata is ben? <|assistant|> SELECT "city" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); Question: what is the country when the city is gafsa? <|assistant|> SELECT "country" FROM "destinations"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); Question: what is the iata when the city is tripoli? <|assistant|> SELECT "iata" FROM "destinations" WHE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_of_16" ( "team_1" text, "score" text, "team_2" text, "1st_round" text, "2nd_round" text ); Question: Who is the 2nd round opponent when Team 2 is Red Star (D1)? <|assistant|> SELECT "2nd_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_of_16" ( "team_1" text, "score" text, "team_2" text, "1st_round" text, "2nd_round" text ); Question: When Team 2 was USL Dunkerque (D2), what was the score <|assistant|> SELECT "score" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_of_16" ( "team_1" text, "score" text, "team_2" text, "1st_round" text, "2nd_round" text ); Question: What was the team 1 when Red Star (D1) was team 2? <|assistant|> SELECT "team_1" FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sixth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); Question: Which team has home game with tie of 4? <|assistant|> SELECT "home_team" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sixth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); Question: what is score of a team with tie of 4? <|assistant|> SELECT "score" FROM "s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sixth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); Question: What is the score of the game with 39,592 attendance? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sixth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); Question: How many attended the game when the score was tie at 4? <|assistant|> SELEC...
<|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 player was defensive back after round 3? <|assistant|> SELECT "player" FROM "n...
<|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 was the pick for Bill Gramatica after round 2? <|assistant|> SELECT "pick" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Qu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Qu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Qu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Qu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Qu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Qu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Qu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Qu...
<|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, "location" text ); Question: Which round has a record of 5-3 (1)? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "svenska_cupen_2004" ( "date" text, "venue" text, "opponents" text, "score" text, "comp" text, "djurg_rden_scorers" text, "attendance" text ); Question: Who were the Djurgarden scorers when ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_sponsorship" ( "year" real, "series" text, "make" text, "driver" text, "team" text, "schedule" text, "role" text ); Question: what is the series when the team is gunbroker racing? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_sponsorship" ( "year" real, "series" text, "make" text, "driver" text, "team" text, "schedule" text, "role" text ); Question: what is the team when the make is dodge and the year is ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_sponsorship" ( "year" real, "series" text, "make" text, "driver" text, "team" text, "schedule" text, "role" text ); Question: what is the make for the year 2008? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_sponsorship" ( "year" real, "series" text, "make" text, "driver" text, "team" text, "schedule" text, "role" text ); Question: what is the year when the driver was kevin lepage? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_sponsorship" ( "year" real, "series" text, "make" text, "driver" text, "team" text, "schedule" text, "role" text ); Question: what is the team when the schedule is limited, year is e...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "points" ( "rank" real, "name" text, "team" text, "games" real, "points" real ); Question: Which rank is the lowest with 37 games and more than 613 points? <|assistant|> SELECT MIN("rank") FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "points" ( "rank" real, "name" text, "team" text, "games" real, "points" real ); Question: What is Grupo Capitol Valladolid's highest rank with more than 34 games? <|assistant|> SELECT MAX("rank...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "points" ( "rank" real, "name" text, "team" text, "games" real, "points" real ); Question: How many points are there for rank 5 with more than 34 games? <|assistant|> SELECT COUNT("points") FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "completed_cable_stayed_bridges" ( "name" text, "location" text, "country" text, "longest_span" text, "comp" real, "pylons" text ); Question: Where is the kap shui mun bridge? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2008" text, "2010" text, "2011" text, "2012" text, "2013" text ); Question: What tournament shows 2013 as 2r, and a 2010 as 1r? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2008" text, "2010" text, "2011" text, "2012" text, "2013" text ); Question: What shows for 2013 when the 2008 is 1r? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2008" text, "2010" text, "2011" text, "2012" text, "2013" text ); Question: What shows for 2011 when 2012 is q1, and a 2010 is 4r? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2008" text, "2010" text, "2011" text, "2012" text, "2013" text ); Question: What tournament has a 2010 of 1r, and a 2008 of 1r? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2008" text, "2010" text, "2011" text, "2012" text, "2013" text ); Question: What shows for 2011 at the French open? <|assistant|> SELECT "2...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2008" text, "2010" text, "2011" text, "2012" text, "2013" text ); Question: What shows for 2013 when 2012 is 2r? <|assistant|> SELECT "2013...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "population" ( "province" text, "south_asians_2001" real, "pct_2001" text, "south_asians_2011" real, "pct_2011" text ); Question: How many South Asians were there in 2011 in Quebec when there we...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "population" ( "province" text, "south_asians_2001" real, "pct_2001" text, "south_asians_2011" real, "pct_2011" text ); Question: Which province had fewer than 190 South Asians in 2001 and 115 S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "population" ( "province" text, "south_asians_2001" real, "pct_2001" text, "south_asians_2011" real, "pct_2011" text ); Question: What % of South Asians were in Nova Scotia in 2001 with 115 and ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "population" ( "province" text, "south_asians_2001" real, "pct_2001" text, "south_asians_2011" real, "pct_2011" text ); Question: How many South Asians on average were in Alberta in 2001 and in ...
<|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, "extra" text ); Question: What is Result, when Extra is "Heptathlon", and when Venue is "Götzis , Austria"? <|assist...
<|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, "extra" text ); Question: What is the total number of Year(s), when Tournament is "World Championships"? <|assistant...
<|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, "extra" text ); Question: What is Venue, when Year is 2005, and when Result is 8th? <|assistant|> SELECT "venue" FRO...
<|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, "extra" text ); Question: What is Tournament, when Result is 18th? <|assistant|> SELECT "tournament" FROM "achieveme...
<|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, "extra" text ); Question: What is Venue, when Year is after 2003, and when Tournament is "Hypo-Meeting"? <|assistant...