text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_clubs" ( "team" text, "matches" real, "wins" real, "wins_pct" text, "draws" real, "draws_pct" text, "losses" real, "losses_pct" text, "against" real, "for_against_ratio" text ); Qu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_clubs" ( "team" text, "matches" real, "wins" real, "wins_pct" text, "draws" real, "draws_pct" text, "losses" real, "losses_pct" text, "against" real, "for_against_ratio" text ); Qu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "date_outgoing" text, "reason_of_departure" text, "replaced_by" text, "date_of_replacement" text ); Question: Why did the manager w...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "date_outgoing" text, "reason_of_departure" text, "replaced_by" text, "date_of_replacement" text ); Question: On what date did the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "date_outgoing" text, "reason_of_departure" text, "replaced_by" text, "date_of_replacement" text ); Question: Why did the manager w...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "date_outgoing" text, "reason_of_departure" text, "replaced_by" text, "date_of_replacement" text ); Question: When did Peter Butler...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "date_outgoing" text, "reason_of_departure" text, "replaced_by" text, "date_of_replacement" text ); Question: When did the manager ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "competition_record" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text ); Question: In which competition(s) did Iljuštšenko jump 1.90 m? <|assistant|> SELECT "compet...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "competition_record" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text ); Question: In which position did Iljuštšenko finish in the European Championships held prior...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "competition_record" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text ); Question: In what year did Iljuštšenko compete in Barcelona, Spain? <|assistant|> SELECT "y...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "assembly_segments" ( "constituency_number" text, "name" text, "reserved_for_sc_st_none" text, "district" text, "number_of_electorates_2009" real ); Question: What's the number of electorates fo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "assembly_segments" ( "constituency_number" text, "name" text, "reserved_for_sc_st_none" text, "district" text, "number_of_electorates_2009" real ); Question: What's the constituency number for ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "squad" ( "name" text, "tests" real, "club" text, "career_caps" real, "tour_apps" real, "position" text ); Question: What is the tour Apps when the career caps show 15? <|assistant|> SELECT "t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "squad" ( "name" text, "tests" real, "club" text, "career_caps" real, "tour_apps" real, "position" text ); Question: What is the number of career caps for a full back, when tour Apps is smalle...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "squad" ( "name" text, "tests" real, "club" text, "career_caps" real, "tour_apps" real, "position" text ); Question: What is the career caps for half-back, when tests is more than 3? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "squad" ( "name" text, "tests" real, "club" text, "career_caps" real, "tour_apps" real, "position" text ); Question: What name has tour Apps larger than 7, tests larger than 4, and a Career ca...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "driver" text, "entrant" text, "constructor" text, "time_retired" text, "grid" real ); Question: What constructor has a grid less than 21, and time/retired of engine? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "driver" text, "entrant" text, "constructor" text, "time_retired" text, "grid" real ); Question: When the entrant is fred saunders what is the driver? <|assistant|> SELECT "driver" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "driver" text, "entrant" text, "constructor" text, "time_retired" text, "grid" real ); Question: What's the lowest grid with and entrant of fred saunders? <|assistant|> SELECT MIN("g...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "driver" text, "entrant" text, "constructor" text, "time_retired" text, "grid" real ); Question: What is the time/retired for the driver emerson fittipaldi? <|assistant|> SELECT "tim...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "music" ( "title" text, "type" text, "artist" text, "label" text, "standard_number" text, "release_date" text ); Question: Which Artist has the Label of Columbia and the Standard number of COC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "music" ( "title" text, "type" text, "artist" text, "label" text, "standard_number" text, "release_date" text ); Question: What Type has the Artist of Hiroyuki Takami? <|assistant|> SELECT "ty...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "music" ( "title" text, "type" text, "artist" text, "label" text, "standard_number" text, "release_date" text ); Question: What Title has the Label of Columbia and Standard number of CODC-8760...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "acquisitions_1885_94" ( "name_pinyin" text, "name_wade_giles" text, "characters" text, "type" text, "construction" text ); Question: What is the type of Kuang-Hsing? <|assistant|> SELECT "type"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "acquisitions_1885_94" ( "name_pinyin" text, "name_wade_giles" text, "characters" text, "type" text, "construction" text ); Question: What type has the characters 廣丙? <|assistant|> SELECT "type"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "acquisitions_1885_94" ( "name_pinyin" text, "name_wade_giles" text, "characters" text, "type" text, "construction" text ); Question: What's the name that has the characters 廣亨? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "acquisitions_1885_94" ( "name_pinyin" text, "name_wade_giles" text, "characters" text, "type" text, "construction" text ); Question: What type has the characters 廣利? <|assistant|> SELECT "type"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "acquisitions_1885_94" ( "name_pinyin" text, "name_wade_giles" text, "characters" text, "type" text, "construction" text ); Question: What is the type of Guangjia? <|assistant|> SELECT "type" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_10_across_all_platforms" ( "rank" real, "actor" text, "character" text, "soap_opera" text, "years" text, "duration" text ); Question: What soap opera has a rank larger than 1, and a Chara...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_10_across_all_platforms" ( "rank" real, "actor" text, "character" text, "soap_opera" text, "years" text, "duration" text ); Question: What is the highest Rank 1960—? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_10_across_all_platforms" ( "rank" real, "actor" text, "character" text, "soap_opera" text, "years" text, "duration" text ); Question: What is the name of the actor with a duration of 61 y...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_10_across_all_platforms" ( "rank" real, "actor" text, "character" text, "soap_opera" text, "years" text, "duration" text ); Question: What are the years for Eileen Derbyshire with a durat...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_10_across_all_platforms" ( "rank" real, "actor" text, "character" text, "soap_opera" text, "years" text, "duration" text ); Question: What soap opera was on 1960–1965, 1965–1983, 1984–201...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_1" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text ); Question: Who are the rowers for Australia? <|assistant|> SELECT "rowers" FROM "heat_1" WHERE "country"='austr...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_1" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text ); Question: What's Italy's rank? <|assistant|> SELECT SUM("rank") FROM "heat_1" WHERE "country"='italy';<|endoft...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "round" real, "date" text, "home" text, "result" text, "visitor" text, "venue" text, "attendance" real ); Question: Who is the visitor team on Saturday, November 22 when linköpi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "round" real, "date" text, "home" text, "result" text, "visitor" text, "venue" text, "attendance" real ); Question: What is the lowest attendance on Monday, November 10 when lin...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "round" real, "date" text, "home" text, "result" text, "visitor" text, "venue" text, "attendance" real ); Question: Who is the visitor at the axa sports center in round 20? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); Question: What is the Attendance of the game on November 6, 1966? <|assistant|> SELECT "attendance" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); Question: What is the Result of the game on November 6, 1966? <|assistant|> SELECT "result" FROM "sche...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women" ( "event" text, "time" text, "club" text, "date" text, "location" text ); Question: Who is the club with a 4:03.63 time? <|assistant|> SELECT "club" FROM "women" WHERE "time"='4:03.63';<...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "116_seats_needed_for_a_majority" ( "date_released" text, "institute" text, "social_democratic" text, "socialist" text, "green_communist" text, "people_s_party" text, "lead" text ); Question...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "116_seats_needed_for_a_majority" ( "date_released" text, "institute" text, "social_democratic" text, "socialist" text, "green_communist" text, "people_s_party" text, "lead" text ); Question...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "116_seats_needed_for_a_majority" ( "date_released" text, "institute" text, "social_democratic" text, "socialist" text, "green_communist" text, "people_s_party" text, "lead" text ); Question...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: what is the result on 9 october 2012? <|assistant|> SELECT "result" FROM "internat...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: what is the score when the venue is stade général seyni kountché, niamey, the comp...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: what is the result when the venue is stade général seyni kountché, niamey, the com...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: what is the competition on 10 august 2011? <|assistant|> SELECT "competition" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: what is the date when the venue is stade général seyni kountché , niamey? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_all_time_athletes_50_metres_men" ( "rank" real, "time" text, "athlete" text, "date" text, "place" text ); Question: What place has manfred kokot as the athlete? <|assistant|> SELECT "place"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_all_time_athletes_50_metres_men" ( "rank" real, "time" text, "athlete" text, "date" text, "place" text ); Question: What athlete has reno as the place? <|assistant|> SELECT "athlete" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campuses" ( "campus" text, "year_opened" text, "students" text, "size" text, "location" text ); Question: What campus opened in 1970? <|assistant|> SELECT "campus" FROM "campuses" WHERE "year_o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campuses" ( "campus" text, "year_opened" text, "students" text, "size" text, "location" text ); Question: What year was the school opened that has a size of 10 acres and students of na? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campuses" ( "campus" text, "year_opened" text, "students" text, "size" text, "location" text ); Question: What location was the campus that has a size of 245 acres? <|assistant|> SELECT "locati...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campuses" ( "campus" text, "year_opened" text, "students" text, "size" text, "location" text ); Question: What campus was opened in 1977? <|assistant|> SELECT "campus" FROM "campuses" WHERE "ye...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campuses" ( "campus" text, "year_opened" text, "students" text, "size" text, "location" text ); Question: What location was the campus opened in 2005 with students listed as na? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "largest_generating_stations" ( "rank" real, "name" text, "capacity_mw" real, "province" text, "type" text ); Question: what is the type when the rank is smaller than 70, the province is british...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "largest_generating_stations" ( "rank" real, "name" text, "capacity_mw" real, "province" text, "type" text ); Question: what is the least capacity (mw) when the rank is less than 46 and the prov...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "largest_generating_stations" ( "rank" real, "name" text, "capacity_mw" real, "province" text, "type" text ); Question: what is the lowest rank when the type is hydro, the name is grand rapids g...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "largest_generating_stations" ( "rank" real, "name" text, "capacity_mw" real, "province" text, "type" text ); Question: what is the province when the rank is higher than 24 and the name is lafor...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "largest_generating_stations" ( "rank" real, "name" text, "capacity_mw" real, "province" text, "type" text ); Question: what is the name when the type is hydro, the capacity (mw) is less than 47...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_24_hours_of_le_mans_results" ( "year" real, "class" text, "tyres" text, "team" text, "co_drivers" text, "laps" real, "pos" text ); Question: How many years have toyota team tom's a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "anglo_italian_cup" ( "opposing_team" text, "against" real, "date" text, "venue" text, "round" text ); Question: What round was on 11/11/1992? <|assistant|> SELECT "round" FROM "anglo_italian_cu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "anglo_italian_cup" ( "opposing_team" text, "against" real, "date" text, "venue" text, "round" text ); Question: What is the total against on 08/12/1992? <|assistant|> SELECT SUM("against") FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "anglo_italian_cup" ( "opposing_team" text, "against" real, "date" text, "venue" text, "round" text ); Question: What is the venue of 24/11/1992? <|assistant|> SELECT "venue" FROM "anglo_italian...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "anglo_italian_cup" ( "opposing_team" text, "against" real, "date" text, "venue" text, "round" text ); Question: What round has less than 1 against? <|assistant|> SELECT "round" FROM "anglo_ital...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many gold medals for germany (GER) having a rank less than 15? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many silver medals when the bronze is more than 2 and having a rank more th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What's the average number of silver medals when bronze is less than 0? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What's the average number of silver medals for germany (GER) having more than 3...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_a_b_1" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text ); Question: What are the notes for 6:31.16? <|assistant|> SELECT "notes" FROM "semifinal_a_b_1" WHERE "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_a_b_1" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text ); Question: What rowers have a 6:29.56 time? <|assistant|> SELECT "rowers" FROM "semifinal_a_b_1" WHERE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_a_b_1" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text ); Question: What is the time with FB notes for Canada? <|assistant|> SELECT "time" FROM "semifinal_a_b_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_a_b_1" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text ); Question: What country has a time of 6:49.28? <|assistant|> SELECT "country" FROM "semifinal_a_b_1" W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_3" ( "team" text, "tries_for" real, "tries_against" real, "try_diff" text, "points_for" real, "points_against" real, "points_diff" text ); Question: Which Tries for has Points against ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_3" ( "team" text, "tries_for" real, "tries_against" real, "try_diff" text, "points_for" real, "points_against" real, "points_diff" text ); Question: Which Points for has Points against...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_3" ( "team" text, "tries_for" real, "tries_against" real, "try_diff" text, "points_for" real, "points_against" real, "points_diff" text ); Question: Which Tries for has Points against ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_3" ( "team" text, "tries_for" real, "tries_against" real, "try_diff" text, "points_for" real, "points_against" real, "points_diff" text ); Question: How many Tries against have a Team ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: What week had attendance of 48,667? <|assistant|> SELECT COUNT("week") FROM "schedule" WHERE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results_of_heat_1" ( "draw" real, "artist" text, "song" text, "percentage" text, "place" real ); Question: What Song has a Draw of less than 4 with a Percentage of 32.22%? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results_of_heat_1" ( "draw" real, "artist" text, "song" text, "percentage" text, "place" real ); Question: What Artist has a Place of 3 or less with a Percentage of 38.60%? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results_of_heat_1" ( "draw" real, "artist" text, "song" text, "percentage" text, "place" real ); Question: What is the Place of Draw 1 by Artist Monika Kirovska? <|assistant|> SELECT AVG("place...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_ladder" ( "hampden_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: What were the most byes of Terang-Mortlake when they had more than 11 wins...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_ladder" ( "hampden_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: How many wins did South Warrambool have? <|assistant|> SELECT AVG("wins") ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_ladder" ( "hampden_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: How many byes when there are more than 16 wins? <|assistant|> SELECT AVG("...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_ladder" ( "hampden_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: What is the least amount of Byes when there are more than 2 wins and 1946 ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_ladder" ( "hampden_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: How many wins when the draws are less than 1 and more than 4 losses? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "s" ( "township" text, "county" text, "pop_2010" real, "land_sqmi" real, "water_sqmi" real, "latitude" real, "longitude" real, "geo_id" real, "ansi_code" real ); Question: What was the l...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "s" ( "township" text, "county" text, "pop_2010" real, "land_sqmi" real, "water_sqmi" real, "latitude" real, "longitude" real, "geo_id" real, "ansi_code" real ); Question: What is the lo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "s" ( "township" text, "county" text, "pop_2010" real, "land_sqmi" real, "water_sqmi" real, "latitude" real, "longitude" real, "geo_id" real, "ansi_code" real ); Question: What is the av...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "s" ( "township" text, "county" text, "pop_2010" real, "land_sqmi" real, "water_sqmi" real, "latitude" real, "longitude" real, "geo_id" real, "ansi_code" real ); Question: What is the av...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "play" text, "author" text, "company" text, "base" text, "country" text ); Question: Which Country's Author is based on Sophocles and Euripides? <|assistant|> SELECT "country" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "play" text, "author" text, "company" text, "base" text, "country" text ); Question: Which Author's Company is Ruth Kanner Theatre Group? <|assistant|> SELECT "author" FROM "refer...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "play" text, "author" text, "company" text, "base" text, "country" text ); Question: Which Play is from Cyprus, from the Company Magdalena Zira Theatre? <|assistant|> SELECT "play...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "play" text, "author" text, "company" text, "base" text, "country" text ); Question: Which Country is the Play Electra and Orestes, The Trial from? <|assistant|> SELECT "country" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_3" ( "rank" real, "lane" real, "athlete" text, "nationality" text, "time" real, "react" real ); Question: How much total time was in lane 4? <|assistant|> SELECT COUNT("time") FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_3" ( "rank" real, "lane" real, "athlete" text, "nationality" text, "time" real, "react" real ); Question: Which Rank has a Reaction time larger than 0.20400000000000001, and a Time ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_3" ( "rank" real, "lane" real, "athlete" text, "nationality" text, "time" real, "react" real ); Question: How many ranks have more than 7 lanes, and an Athlete of michael mathieu, a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_3" ( "rank" real, "lane" real, "athlete" text, "nationality" text, "time" real, "react" real ); Question: Which Time has a Reaction smaller than 0.20400000000000001, and a Rank of 1...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); Question: What's the average Top-25, that has an Events that's smal...