text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "variation_with_playing_cards" ( "1st_player_s_choice" text, "2nd_player_s_choice" text, "probability_1st_player_wins" text, "probability_2nd_player_wins" text, "probability_of_a_draw" text ); Question: when the 1st player has a choice of bb r what is the 2nd player's probability of winning? <|assistant|> SELECT "probability_2nd_player_wins" FROM "variation_with_playing_cards" WHERE "1st_player_s_choice"='bb r';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "variation_with_playing_cards" ( "1st_player_s_choice" text, "2nd_player_s_choice" text, "probability_1st_player_wins" text, "probability_2nd_player_wins" text, "probability_of_a_draw" text ); Question: When the 2nd player's choice is r bb what is the probability the 1st player wins 0.11%? <|assistant|> SELECT "probability_of_a_draw" FROM "variation_with_playing_cards" WHERE "2nd_player_s_choice"='r bb' AND "probability_1st_player_wins"='0.11%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "variation_with_playing_cards" ( "1st_player_s_choice" text, "2nd_player_s_choice" text, "probability_1st_player_wins" text, "probability_2nd_player_wins" text, "probability_of_a_draw" text ); Question: When the 2nd player chooses r bb, what is the 2nd player's probability of a winning draw of 93.54%? <|assistant|> SELECT "probability_of_a_draw" FROM "variation_with_playing_cards" WHERE "probability_2nd_player_wins"='93.54%' AND "2nd_player_s_choice"='r bb';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was Collingwood's score as the home team? <|assistant|> SELECT "home_team_score" FROM "round_3" WHERE "home_team"='collingwood';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the home team when the away team scored 4.9 (33)? <|assistant|> SELECT "home_team" FROM "round_3" WHERE "away_team_score"='4.9 (33)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the average crowd size when teh home team scored 13.24 (102)? <|assistant|> SELECT AVG("crowd") FROM "round_3" WHERE "home_team_score"='13.24 (102)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_11" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What venue features carlton as the home side? <|assistant|> SELECT "venue" FROM "round_11" WHERE "home_team"='carlton';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_11" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What day is collingwood the home side? <|assistant|> SELECT "date" FROM "round_11" WHERE "home_team"='collingwood';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_11" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the away team's score when hawthorn is away? <|assistant|> SELECT "away_team_score" FROM "round_11" WHERE "away_team"='hawthorn';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_11" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Who is the home side when the away side score is 8.8 (56)? <|assistant|> SELECT "home_team" FROM "round_11" WHERE "away_team_score"='8.8 (56)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); Question: The event that has a record of 1-0 is none of the above. <|assistant|> SELECT "event" FROM "mixed_martial_arts_record" WHERE "record"='1-0';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nba_draft_picks" ( "name" text, "round" text, "overall_pick" text, "year" real, "team" text ); Question: What year was Leon Blevins picked? <|assistant|> SELECT SUM("year") FROM "nba_draft_picks" WHERE "name"='leon blevins';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nba_draft_picks" ( "name" text, "round" text, "overall_pick" text, "year" real, "team" text ); Question: What year was Jordan Hill picked overall number 8? <|assistant|> SELECT MIN("year") FROM "nba_draft_picks" WHERE "overall_pick"='8' AND "name"='jordan hill';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nba_draft_picks" ( "name" text, "round" text, "overall_pick" text, "year" real, "team" text ); Question: In 1981 which team picked overall 148? <|assistant|> SELECT "team" FROM "nba_draft_picks" WHERE "year"=1981 AND "overall_pick"='148';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scoring_chart" ( "couple" text, "place" real, "wk_1" real, "wk_2" real, "tot_1_2" real ); Question: What is the place of the team that had a total score larger than 37 and a week one score above 20? <|assistant|> SELECT MIN("place") FROM "scoring_chart" WHERE "tot_1_2">37 AND "wk_1">20;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season_schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: How many people attended the game on December 2, 1951? <|assistant|> SELECT "attendance" FROM "regular_season_schedule" WHERE "date"='december 2, 1951';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season_schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: After week 9, which games had an attendance greater than 24,229? <|assistant|> SELECT "date" FROM "regular_season_schedule" WHERE "attendance">'24,229' AND "week">9;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What venue does st kilda play at as the away team? <|assistant|> SELECT "venue" FROM "round_18" WHERE "away_team"='st kilda';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is melbourne's home team score? <|assistant|> SELECT "home_team_score" FROM "round_18" WHERE "home_team"='melbourne';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: How many games is collingwood the home side? <|assistant|> SELECT COUNT("crowd") FROM "round_18" WHERE "home_team"='collingwood';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: Who was the opponent on the date of November 29, 1970 and the attendance was less than 31,427? <|assistant|> SELECT AVG("week") FROM "schedule" WHERE "date"='november 29, 1970' AND "attendance"<'31,427';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: On what date was the game where is was later than Week 4 of the season and the opponent was the New York Giants? <|assistant|> SELECT "date" FROM "schedule" WHERE "week">4 AND "opponent"='new york giants';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: What was the attendance of the game on December 13, 1970? <|assistant|> SELECT COUNT("attendance") FROM "schedule" WHERE "date"='december 13, 1970' AND "week">13;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "attendance" real ); Question: What is the date before week 13 and Miami Dolphins as an opponent? <|assistant|> SELECT "date" FROM "schedule" WHERE "week"<13 AND "opponent"='miami dolphins';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "attendance" real ); Question: What is the attendance for week 11? <|assistant|> SELECT "attendance" FROM "schedule" WHERE "week"=11;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the average crowd size when the home side scores 8.9 (57)? <|assistant|> SELECT AVG("crowd") FROM "round_17" WHERE "home_team_score"='8.9 (57)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the home team's score for north melbourne? <|assistant|> SELECT "home_team_score" FROM "round_17" WHERE "home_team"='north melbourne';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the average crowd size when the home team scores 16.9 (105)? <|assistant|> SELECT AVG("crowd") FROM "round_17" WHERE "home_team_score"='16.9 (105)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams_and_drivers" ( "team" text, "chassis" text, "engine" text, "driver_s" text, "sponsor_s" text, "rounds" text ); Question: Who sponsors Josele Garza in all rounds? <|assistant|> SELECT "sponsor_s" FROM "teams_and_drivers" WHERE "rounds"='all' AND "driver_s"='josele garza';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams_and_drivers" ( "team" text, "chassis" text, "engine" text, "driver_s" text, "sponsor_s" text, "rounds" text ); Question: Which rounds did the team Walther participate in? <|assistant|> SELECT "rounds" FROM "teams_and_drivers" WHERE "team"='walther';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams_and_drivers" ( "team" text, "chassis" text, "engine" text, "driver_s" text, "sponsor_s" text, "rounds" text ); Question: What team was Tom Sneva on in rounds 1-9? <|assistant|> SELECT "team" FROM "teams_and_drivers" WHERE "driver_s"='tom sneva' AND "rounds"='1-9';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams_and_drivers" ( "team" text, "chassis" text, "engine" text, "driver_s" text, "sponsor_s" text, "rounds" text ); Question: Which rounds do Arciero Wines sponsor a March 85c chassis? <|assistant|> SELECT "rounds" FROM "teams_and_drivers" WHERE "sponsor_s"='arciero wines' AND "chassis"='march 85c';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_chapters" ( "chapter" text, "chartered" text, "school" text, "state" text, "status" text, "charter_range" text ); Question: What years were the inactive North Carolina chapter active? <|assistant|> SELECT "charter_range" FROM "list_of_chapters" WHERE "status"='inactive' AND "state"='north carolina';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_chapters" ( "chapter" text, "chartered" text, "school" text, "state" text, "status" text, "charter_range" text ); Question: What years were the inactive Idaho chapter active? <|assistant|> SELECT "charter_range" FROM "list_of_chapters" WHERE "status"='inactive' AND "state"='idaho';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_chapters" ( "chapter" text, "chartered" text, "school" text, "state" text, "status" text, "charter_range" text ); Question: Which chapter was active from 1906-1991? <|assistant|> SELECT "chapter" FROM "list_of_chapters" WHERE "charter_range"='1906-1991';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_chapters" ( "chapter" text, "chartered" text, "school" text, "state" text, "status" text, "charter_range" text ); Question: What are the active dates for the Montana State University chapter? <|assistant|> SELECT "charter_range" FROM "list_of_chapters" WHERE "school"='montana state university';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_chapters" ( "chapter" text, "chartered" text, "school" text, "state" text, "status" text, "charter_range" text ); Question: What state had an active chapter from 1906-1991? <|assistant|> SELECT "state" FROM "list_of_chapters" WHERE "charter_range"='1906-1991';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "tv_time" text, "attendance" text ); Question: How many people were at the game with a record of 6-1? <|assistant|> SELECT "attendance" FROM "schedule" WHERE "record"='6-1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "tv_time" text, "attendance" text ); Question: When was there a game against the Indianapolis colts? <|assistant|> SELECT "date" FROM "schedule" WHERE "opponent"='indianapolis colts';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the lowest crowd size at MCG? <|assistant|> SELECT MIN("crowd") FROM "round_16" WHERE "venue"='mcg';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the away team name that has a score of 7.10 (52)? <|assistant|> SELECT "away_team" FROM "round_16" WHERE "away_team_score"='7.10 (52)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the average crowd size when the home team is North Melbourne? <|assistant|> SELECT AVG("crowd") FROM "round_16" WHERE "home_team"='north melbourne';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the away team score when the home team is North Melbourne? <|assistant|> SELECT "away_team_score" FROM "round_16" WHERE "home_team"='north melbourne';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "races" ( "race_name" text, "circuit" text, "city_location" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "report" text ); Question: What is the pole position for marlboro challenge? <|assistant|> SELECT "pole_position" FROM "races" WHERE "race_name"='marlboro challenge';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "races" ( "race_name" text, "circuit" text, "city_location" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "report" text ); Question: What circut has an unknown fastest lap on July 19? <|assistant|> SELECT "circuit" FROM "races" WHERE "fastest_lap"='unknown' AND "date"='july 19';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "races" ( "race_name" text, "circuit" text, "city_location" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "report" text ); Question: What circuit did marlboro team penske win with an unknown fastest lap? <|assistant|> SELECT "circuit" FROM "races" WHERE "winning_team"='marlboro team penske' AND "fastest_lap"='unknown';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "races" ( "race_name" text, "circuit" text, "city_location" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "report" text ); Question: What team does mario andretti play pole position for? <|assistant|> SELECT "winning_team" FROM "races" WHERE "pole_position"='mario andretti';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the venue where Carlton was the away team? <|assistant|> SELECT "venue" FROM "round_4" WHERE "away_team"='carlton';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the venue where the home team scored 13.9 (87)? <|assistant|> SELECT "venue" FROM "round_4" WHERE "home_team_score"='13.9 (87)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the away team whose opponents scored 8.16 (64)? <|assistant|> SELECT "away_team" FROM "round_4" WHERE "home_team_score"='8.16 (64)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the venue when Carlton was the away team? <|assistant|> SELECT "venue" FROM "round_4" WHERE "away_team"='carlton';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinals" ( "rank" real, "heat" real, "lane" real, "name" text, "nationality" text, "time" real ); Question: What was the highest heat with a time slower than 48.87 from sweden? <|assistant|> SELECT MAX("heat") FROM "semifinals" WHERE "time">48.87 AND "nationality"='sweden';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinals" ( "rank" real, "heat" real, "lane" real, "name" text, "nationality" text, "time" real ); Question: How many lanes featured a swimmer ranked above 4, in a heat later than 1, from australia, named ashley callus? <|assistant|> SELECT COUNT("lane") FROM "semifinals" WHERE "rank">4 AND "heat">1 AND "nationality"='australia' AND "name"='ashley callus';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cities_by_gdp" ( "rank" real, "city" text, "state" text, "gdp_in_id_b" text, "population_m_luz" real, "gdp_per_capita_id_k" text, "eurozone" text ); Question: What is the Eurozone result for Population M (LUZ) of 3.08? <|assistant|> SELECT "eurozone" FROM "cities_by_gdp" WHERE "population_m_luz"=3.08;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cities_by_gdp" ( "rank" real, "city" text, "state" text, "gdp_in_id_b" text, "population_m_luz" real, "gdp_per_capita_id_k" text, "eurozone" text ); Question: What is the GDP $IDB in Istanbul? <|assistant|> SELECT "gdp_in_id_b" FROM "cities_by_gdp" WHERE "city"='istanbul';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members" ( "institution" text, "location" text, "men_s_nickname" text, "women_s_nickname" text, "founded" real, "type" text, "enrollment" real, "joined" text ); Question: What is the most recently founded school that joined in 2011? <|assistant|> SELECT MAX("founded") FROM "current_members" WHERE "joined"='2011';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the home team that scored 24.14 (158) in front of a crowd larger than 18,000? <|assistant|> SELECT "home_team" FROM "round_12" WHERE "crowd">'18,000' AND "home_team_score"='24.14 (158)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the home team that played Geelong? <|assistant|> SELECT "home_team_score" FROM "round_12" WHERE "away_team"='geelong';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the home team's score when they played Richmond? <|assistant|> SELECT "home_team_score" FROM "round_12" WHERE "away_team"='richmond';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is Melbourne's home venue? <|assistant|> SELECT "venue" FROM "round_12" WHERE "home_team"='melbourne';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the venue when the away team scored 9.17 (71)? <|assistant|> SELECT "venue" FROM "round_12" WHERE "away_team_score"='9.17 (71)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2003_new_england_patriots_draft_selectio" ( "round" real, "overall" real, "player" text, "position" text, "college" text ); Question: What was the overall draft pick for the player selected for the tight end position? <|assistant|> SELECT "overall" FROM "2003_new_england_patriots_draft_selectio" WHERE "position"='tight end';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_5" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Which home team corresponds to an away team score of 10.12 (72)? <|assistant|> SELECT "home_team" FROM "round_5" WHERE "away_team_score"='10.12 (72)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_5" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: On what date is Hawthorn the home team? <|assistant|> SELECT "date" FROM "round_5" WHERE "home_team"='hawthorn';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_5" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: On what date is St Kilda the away team? <|assistant|> SELECT "date" FROM "round_5" WHERE "away_team"='st kilda';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season_schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: Who did the Browns play on October 13, 1968? <|assistant|> SELECT "opponent" FROM "regular_season_schedule" WHERE "date"='october 13, 1968';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_medalists" ( "medal" text, "name" text, "games" text, "sport" text, "event" text ); Question: Which game is named tsegay kebede category:articles with hcards? <|assistant|> SELECT "games" FROM "list_of_medalists" WHERE "name"='tsegay kebede category:articles with hcards';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_medalists" ( "medal" text, "name" text, "games" text, "sport" text, "event" text ); Question: Which event in the 2000 Sydney games was in the category gete wami category:articles with hcards? <|assistant|> SELECT "event" FROM "list_of_medalists" WHERE "games"='2000 sydney' AND "name"='gete wami category:articles with hcards';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_medalists" ( "medal" text, "name" text, "games" text, "sport" text, "event" text ); Question: Which event in the 2008 Beijing Games had a bronze medal? <|assistant|> SELECT "event" FROM "list_of_medalists" WHERE "games"='2008 beijing' AND "medal"='bronze';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_medalists" ( "medal" text, "name" text, "games" text, "sport" text, "event" text ); Question: What is the medal named fatuma roba category:articles with hcards for? <|assistant|> SELECT "medal" FROM "list_of_medalists" WHERE "name"='fatuma roba category:articles with hcards';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_medalists" ( "medal" text, "name" text, "games" text, "sport" text, "event" text ); Question: What is the game named derartu tulu category:articles with hcards? <|assistant|> SELECT "games" FROM "list_of_medalists" WHERE "name"='derartu tulu category:articles with hcards';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "races" ( "finish" text, "race" text, "distance" text, "jockey" text, "time" text, "grade" text, "runner_up_winner" text, "track" text ); Question: What is the fastest time for the Kentucky Derby race? <|assistant|> SELECT "time" FROM "races" WHERE "race"='kentucky derby';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "races" ( "finish" text, "race" text, "distance" text, "jockey" text, "time" text, "grade" text, "runner_up_winner" text, "track" text ); Question: Which track does the Woodward Stakes race take place on? <|assistant|> SELECT "track" FROM "races" WHERE "race"='woodward stakes';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "races" ( "finish" text, "race" text, "distance" text, "jockey" text, "time" text, "grade" text, "runner_up_winner" text, "track" text ); Question: What grade did jockey Robby Albarado get when racing with Ravens Pass? <|assistant|> SELECT "grade" FROM "races" WHERE "jockey"='robby albarado' AND "runner_up_winner"='ravens pass';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men_s_lanterne_rouge" ( "year" real, "name" text, "nationality" text, "time" text, "age_category" text ); Question: In which Age Category is Marco Manenti? <|assistant|> SELECT "age_category" FROM "men_s_lanterne_rouge" WHERE "name"='marco manenti';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men_s_lanterne_rouge" ( "year" real, "name" text, "nationality" text, "time" text, "age_category" text ); Question: Which year has a Time of 13:23:43? <|assistant|> SELECT "year" FROM "men_s_lanterne_rouge" WHERE "time"='13:23:43';<|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, "time" text, "att" text, "record" text ); Question: What score has 3-7 as the record? <|assistant|> SELECT "score" FROM "game_log" WHERE "record"='3-7';<|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, "time" text, "att" text, "record" text ); Question: What loss has 16,458 as an Att.? <|assistant|> SELECT "loss" FROM "game_log" WHERE "att"='16,458';<|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, "time" text, "att" text, "record" text ); Question: What date has 5-3 as the score, and holt (1-1) as a loss? <|assistant|> SELECT "date" FROM "game_log" WHERE "score"='5-3' AND "loss"='holt (1-1)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "transport" ( "s_no" real, "company" text, "incorporated" real, "ministry" text, "sector" text ); Question: What is the sector of the company with an incorporated date before 1983? <|assistant|> SELECT "sector" FROM "transport" WHERE "incorporated"<1983;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "transport" ( "s_no" real, "company" text, "incorporated" real, "ministry" text, "sector" text ); Question: What is the average incorporataed year of the Air India Charters company? <|assistant|> SELECT AVG("incorporated") FROM "transport" WHERE "company"='air india charters';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lanka_sama_samaja_party_electoral_result" ( "date" text, "candidates_nominated" real, "candidates_elected" text, "votes" real, "pct_of_national_vote" real ); Question: How many votes were tallied in 1956 with a % of national vote larger than 11.47? <|assistant|> SELECT SUM("votes") FROM "lanka_sama_samaja_party_electoral_result" WHERE "date"='1956' AND "pct_of_national_vote">11.47;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lanka_sama_samaja_party_electoral_result" ( "date" text, "candidates_nominated" real, "candidates_elected" text, "votes" real, "pct_of_national_vote" real ); Question: How many candidates were nominated in 1952 with under 305,133 votes? <|assistant|> SELECT SUM("candidates_nominated") FROM "lanka_sama_samaja_party_electoral_result" WHERE "date"='1952' AND "votes"<'305,133';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lanka_sama_samaja_party_electoral_result" ( "date" text, "candidates_nominated" real, "candidates_elected" text, "votes" real, "pct_of_national_vote" real ); Question: How many votes were tallied with a % of national vote of 13.11, and over 39 candidates nominated? <|assistant|> SELECT COUNT("votes") FROM "lanka_sama_samaja_party_electoral_result" WHERE "pct_of_national_vote"=13.11 AND "candidates_nominated">39;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "attendance" real, "record" text, "points" real ); Question: Who is the visitor with a record of 14–17–5? <|assistant|> SELECT "visitor" FROM "game_log" WHERE "record"='14–17–5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "attendance" real, "record" text, "points" real ); Question: How many in attendance when Penguins were home with a record of 14–19–6 with less than 34 points? <|assistant|> SELECT COUNT("attendance") FROM "game_log" WHERE "home"='penguins' AND "record"='14–19–6' AND "points"<34;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "date" text, "label" text, "region" text, "format" text, "catalog" text ); Question: Which Format has a Catalog of 561 445-1? <|assistant|> SELECT "format" FROM "release_history" WHERE "catalog"='561 445-1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "date" text, "label" text, "region" text, "format" text, "catalog" text ); Question: Which Region has a Date of early september 1999? <|assistant|> SELECT "region" FROM "release_history" WHERE "date"='early september 1999';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "date" text, "label" text, "region" text, "format" text, "catalog" text ); Question: Which Region has a Date of early september 1999? <|assistant|> SELECT "region" FROM "release_history" WHERE "date"='early september 1999';<|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 date of the game with a loss of White (4-5)? <|assistant|> SELECT "date" FROM "game_log" WHERE "loss"='white (4-5)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playoffs" ( "date" text, "opponent" text, "score" text, "location_attendance" text, "series" text ); Question: what score has a location and attendance of montreal forum and the date of may 10? <|assistant|> SELECT "score" FROM "playoffs" WHERE "location_attendance"='montreal forum' AND "date"='may 10';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "preliminaries_scores" ( "province" text, "swimsuit" real, "evening_gown" real, "interview" real, "average" real ); Question: Which Interview has a Province of monte cristi and a Swimsuit larger than 7.27 <|assistant|> SELECT SUM("interview") FROM "preliminaries_scores" WHERE "province"='monte cristi' AND "swimsuit">7.27;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "preliminaries_scores" ( "province" text, "swimsuit" real, "evening_gown" real, "interview" real, "average" real ); Question: WHich Evening Gown has a Swimsuit smaller than 7.99 and a Interview larger than 7.98? <|assistant|> SELECT AVG("evening_gown") FROM "preliminaries_scores" WHERE "swimsuit"<7.99 AND "interview">7.98;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "preliminaries_scores" ( "province" text, "swimsuit" real, "evening_gown" real, "interview" real, "average" real ); Question: Which Interview has a Swimsuit larger than 7.6, and a Province of la vega, and an Average smaller than 8.38? <|assistant|> SELECT SUM("interview") FROM "preliminaries_scores" WHERE "swimsuit">7.6 AND "province"='la vega' AND "average"<8.38;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_13_2009" ( "series_ep" text, "episode" real, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: Which items in segment A have a segment D of marble sculptures? <|assistant|> SELECT "segment_a" FROM "season_13_2009" WHERE "segment_d"='marble sculptures';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_13_2009" ( "series_ep" text, "episode" real, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: Which segment A also has a segment D of kitchen shears? <|assistant|> SELECT "segment_a" FROM "season_13_2009" WHERE "segment_d"='kitchen shears';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_13_2009" ( "series_ep" text, "episode" real, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: Which items in segment C is episode 160? <|assistant|> SELECT "segment_c" FROM "season_13_2009" WHERE "episode"=160;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ratings" ( "season" text, "episodes" real, "first_airdate" text, "last_airdate" text, "nielsen_ranking" text ); Question: Which season last aired on May 6, 1987? <|assistant|> SELECT "season" FROM "ratings" WHERE "last_airdate"='may 6, 1987';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ratings" ( "season" text, "episodes" real, "first_airdate" text, "last_airdate" text, "nielsen_ranking" text ); Question: What is the Nielsen ranking for Season 8? <|assistant|> SELECT "nielsen_ranking" FROM "ratings" WHERE "season"='season 8';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ratings" ( "season" text, "episodes" real, "first_airdate" text, "last_airdate" text, "nielsen_ranking" text ); Question: What was the first airdate or the season that had less than 24 episodes and a Nielsen ranking of #38? <|assistant|> SELECT "first_airdate" FROM "ratings" WHERE "episodes"<24 AND "nielsen_ranking"='#38';<|endoftext|>