text
stringlengths
310
1.28k
<|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 Position has a Pick smaller than 152, and a Round smaller than 3? <|assistant|...
<|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: How many Picks have a Position of defensive back? <|assistant|> SELECT COUNT("pick")...
<|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 has a Round smaller than 11, and a Pick smaller than 152, and a Positio...
<|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 participants won the silver medal for the Men's Doubles? <|assistant|> SELECT "name" ...
<|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 event did Rashid Sidek participate in? <|assistant|> SELECT "event" FROM "list_of_meda...
<|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 Olympic Games had a silver medal for the Men's Singles? <|assistant|> SELECT "games" ...
<|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 sport was in the 1992 Barcelona games? <|assistant|> SELECT "sport" FROM "list_of_med...
<|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 event was in the 2008 Beijing games? <|assistant|> SELECT "event" FROM "list_of_medali...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nhl_entry_draft" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team" text ); Question: What is the round of the defense player from the United States?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nhl_entry_draft" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team" text ); Question: What is the position of Dale Craigwell? <|assistant|> SELECT "p...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nhl_entry_draft" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team" text ); Question: What is the position of the player from Sweden? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nhl_entry_draft" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team" text ); Question: Who is the player from a round larger than 5 and the college/ju...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nhl_entry_draft" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team" text ); Question: What position does Mikhail Kravets play? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "race" text, "length" text, "class" text, "circuit" text, "date" text ); Question: Which date was held at Laguna Seca Raceway, in class GTX/GTO? <|assistant|> SELECT "date" FROM "sc...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "race" text, "length" text, "class" text, "circuit" text, "date" text ); Question: Which circuit was held on May 7 for 1 hour? <|assistant|> SELECT "circuit" FROM "schedule" WHERE "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "race" text, "length" text, "class" text, "circuit" text, "date" text ); Question: Which circuit has a length of 45 minutes and is held on August 6? <|assistant|> SELECT "circuit" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "race" text, "length" text, "class" text, "circuit" text, "date" text ); Question: What is the length of the 6 Hours of Talladega? <|assistant|> SELECT "length" FROM "schedule" WHER...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "team" ( "school_year" text, "class_a" text, "class_aa" text, "class_aaa" text, "class_aaaa" text, "class_aaaaa" text ); Question: Name the class AAAA with class A of lindsay and class AAAAA o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "team" ( "school_year" text, "class_a" text, "class_aa" text, "class_aaa" text, "class_aaaa" text, "class_aaaaa" text ); Question: Name the class A with class AAAA of longview pine tree and sc...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "team" ( "school_year" text, "class_a" text, "class_aa" text, "class_aaa" text, "class_aaaa" text, "class_aaaaa" text ); Question: Name the class AA with class A of rule and school year of 199...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "team" ( "school_year" text, "class_a" text, "class_aa" text, "class_aaa" text, "class_aaaa" text, "class_aaaaa" text ); Question: Name the school year with class AAAAA of mcallen and class AA...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "team" ( "school_year" text, "class_a" text, "class_aa" text, "class_aaa" text, "class_aaaa" text, "class_aaaaa" text ); Question: Name the class A with school year of 2004-05 <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "team" ( "school_year" text, "class_a" text, "class_aa" text, "class_aaa" text, "class_aaaa" text, "class_aaaaa" text ); Question: Name the clas AAAA of school year 2000-01 <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "mascot" text, "location" text, "enrollment" real, "ihsaa_class" text, "ihsaa_football_class" text, "county" text ); Question: Wha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "mascot" text, "location" text, "enrollment" real, "ihsaa_class" text, "ihsaa_football_class" text, "county" text ); Question: Wha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "mascot" text, "location" text, "enrollment" real, "ihsaa_class" text, "ihsaa_football_class" text, "county" text ); Question: Wha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "mascot" text, "location" text, "enrollment" real, "ihsaa_class" text, "ihsaa_football_class" text, "county" text ); Question: Wha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "mascot" text, "location" text, "enrollment" real, "ihsaa_class" text, "ihsaa_football_class" text, "county" text ); Question: Wha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sprint_race" ( "team" text, "driver" text, "laps" real, "time" text, "grid" real ); Question: What is the average grid of driver Christian Vietoris who has less than 12 laps? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sprint_race" ( "team" text, "driver" text, "laps" real, "time" text, "grid" real ); Question: What is the grid of driver joΓ£o urbano? <|assistant|> SELECT SUM("grid") FROM "sprint_race" WHERE "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sprint_race" ( "team" text, "driver" text, "laps" real, "time" text, "grid" real ); Question: What is the lowest laps a grid less than 22 with a time of +35.268 has? <|assistant|> SELECT MIN("l...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sprint_race" ( "team" text, "driver" text, "laps" real, "time" text, "grid" real ); Question: What is the lowest laps driver Christian Vietoris with a grid smaller than 6 has? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams_and_drivers" ( "team" text, "car_s" text, "driver_s" text, "primary_sponsor_s" text, "crew_chief" text ); Question: What is the primary sponsor of driver Mark Martin? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams_and_drivers" ( "team" text, "car_s" text, "driver_s" text, "primary_sponsor_s" text, "crew_chief" text ); Question: Who is the crew chief of team Joe Gibbs Racing, which has a Chevrolet M...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams_and_drivers" ( "team" text, "car_s" text, "driver_s" text, "primary_sponsor_s" text, "crew_chief" text ); Question: Who is the driver of the team with the crew chief Derrick Finley? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams_and_drivers" ( "team" text, "car_s" text, "driver_s" text, "primary_sponsor_s" text, "crew_chief" text ); Question: Who is the crew chief of team Chip Ganassi Racing with Felix Sabates, w...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams_and_drivers" ( "team" text, "car_s" text, "driver_s" text, "primary_sponsor_s" text, "crew_chief" text ); Question: Which team has Peak Fitness as the primary sponsor? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" text ); Question: What date has w 20-17 as the result, and 1-0 as the rec...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" text ); Question: What game site has december 24, 2000 as a date? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" text ); Question: What date has dallas cowboys as the opponent? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" text ); Question: What is the attendance that has fedex field as the game...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "free_agents" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What is the record for April 22? <|assistant|> SELECT "record" FROM "free_agents" WHERE "date"=...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "free_agents" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What is the record when the visiting team was the Quebec Nordiques on April 22? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "seasons" ( "longitude" text, "sign" text, "sanskrit" text, "latin" text, "ruling_planet" text ); Question: What is the longitude of Taurus? <|assistant|> SELECT "longitude" FROM "seasons" WHERE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams_and_venues" ( "team" text, "location" text, "venue" text, "capacity" real, "position_in_2003" text ); Question: What is the Location for Belshina? <|assistant|> SELECT "location" FROM "te...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams_and_venues" ( "team" text, "location" text, "venue" text, "capacity" real, "position_in_2003" text ); Question: What is the name of the Team with a Capacity larger than 5,000, and a Posit...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams_and_venues" ( "team" text, "location" text, "venue" text, "capacity" real, "position_in_2003" text ); Question: What is the total number for Capacity at city stadium, borisov? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_1_2008" ( "airdate" text, "celebrities" text, "rating" real, "share" real, "18_49" text, "viewers_millions" real, "weekly_rank" text, "prod_code" real ); Question: Which rating lar...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_brasileiro_s_rie_a" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: What is the highest ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_brasileiro_s_rie_a" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: How many positions h...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_brasileiro_s_rie_a" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: What is the largest ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_brasileiro_s_rie_a" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: How many positions h...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_2_1938_1939" ( "episode" text, "title" text, "writer_s" text, "preservation" text, "original_airdate" text ); Question: What date did Episode 2-01 (42) air? <|assistant|> SELECT "origina...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_2_1938_1939" ( "episode" text, "title" text, "writer_s" text, "preservation" text, "original_airdate" text ); Question: Who wrote Episode 2-15 (56)? <|assistant|> SELECT "writer_s" FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world_championship_group_a_finland" ( "team" text, "games" real, "drawn" real, "lost" real, "points_difference" text, "points" real ); Question: What is the highest number of games with 1 los...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "brazil_national_team" ( "date" text, "city" text, "result" text, "score" text, "competition" text ); Question: Which City has a Result of w, and a Competition of international friendly (unoffic...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "brazil_national_team" ( "date" text, "city" text, "result" text, "score" text, "competition" text ); Question: Which Date has a Result of w, and a Score of 3-0? <|assistant|> SELECT "date" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "brazil_national_team" ( "date" text, "city" text, "result" text, "score" text, "competition" text ); Question: Which City has a Date of june 9, 1976? <|assistant|> SELECT "city" FROM "brazil_na...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "brazil_national_team" ( "date" text, "city" text, "result" text, "score" text, "competition" text ); Question: Which City has a Date of may 19, 1976? <|assistant|> SELECT "city" FROM "brazil_na...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: What are the total number of laps for Tom Bridger? <|assistant|> SELECT COUNT("la...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: What are the lowest laps of Graham Hill? <|assistant|> SELECT MIN("laps") FROM "c...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: What are the lowest laps of grid 17? <|assistant|> SELECT MIN("laps") FROM "class...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rushing" ( "name" text, "gain" real, "loss" real, "long" real, "avg_g" real ); Question: Which Avg/G has a Gain of 16, and a Name of barnes, freddie, and a Loss smaller than 2? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rushing" ( "name" text, "gain" real, "loss" real, "long" real, "avg_g" real ); Question: Which average Long has a Gain smaller than 16, and a Loss smaller than 6? <|assistant|> SELECT AVG("long...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rushing" ( "name" text, "gain" real, "loss" real, "long" real, "avg_g" real ); Question: Which Gain is the lowest one that has a Loss larger than 2, and an Avg/G larger than -6, and a Name of s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rushing" ( "name" text, "gain" real, "loss" real, "long" real, "avg_g" real ); Question: Which Avg/G is the lowest one that has a Long larger than 8, and a Loss smaller than 34, and a Gain larg...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rushing" ( "name" text, "gain" real, "loss" real, "long" real, "avg_g" real ); Question: Which Loss has a Name of bullock, chris, and a Long smaller than 36? <|assistant|> SELECT SUM("loss") FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rushing" ( "name" text, "gain" real, "loss" real, "long" real, "avg_g" real ); Question: How much Long has a Loss larger than 2, and a Gain of 157, and an Avg/G smaller than 129? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ladies_singles" ( "rank" real, "name" text, "nation" text, "points" real, "places" real ); Question: What is the fewest number of places for a skater from Norway with fewer than 1524.9 points? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: What home has Philadelphia as the visitor, and decem...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: What record has a decision of parent, Philadelphia a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_titles" ( "date" real, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); Question: Which Tournament has a Score of 6–4, 6–2? <|assistant|> SELECT "tournam...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_titles" ( "date" real, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); Question: Which Score has an Opponent in the final of mehdi tahiri? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_titles" ( "date" real, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); Question: Which Date has a Score of 6–3, 7–6? <|assistant|> SELECT SUM("date") FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_titles" ( "date" real, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); Question: Which Date has a Score of 7–6(3), 4–6, 6–2? <|assistant|> SELECT SUM("d...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_titles" ( "date" real, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); Question: Which Surface has a Tournament of olbia? <|assistant|> SELECT "surface"...
<|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 was the attendance at the week 7 game? <|assistant|> SELECT "attendance" FROM "schedule...
<|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 was the result of the game after week 3 against the New York Giants? <|assistant|> SELE...
<|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: Who was the opponent at the week 6 game? <|assistant|> SELECT "opponent" FROM "schedule" WHE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rushing" ( "name" text, "gp_gs" text, "gain" real, "loss" real, "long" real, "avg_g" text ); Question: What is the lowest loss that Jarius Wright has had where he also has had a gain bigger t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "winner" text, "score" text, "1st_prize" text ); Question: How much was the first place prize for the American golf clas...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "winner" text, "score" text, "1st_prize" text ); Question: What date was the Monsanto open located in Florida? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "winner" text, "score" text, "1st_prize" text ); Question: What was the score of Johnny Miller (7)? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" real, "division" real, "league" text, "regular_season" text, "playoffs" text ); Question: What is the total number of years that have divisions greater than 4? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" real, "division" real, "league" text, "regular_season" text, "playoffs" text ); Question: What is the highest division for years earlier than 2011? <|assistant|> SELECT M...
<|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: In what Week were there less than 30,348 in Attendance with a Result of W 37-21? <|assistant...
<|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 is the Week number on November 30, 1958 with more than 33,240 in Attendance? <|assistan...
<|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 Result on November 9, 1958? <|assistant|> SELECT "result" FROM "schedule" WHERE...
<|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 on Week 8? <|assistant|> SELECT AVG("attendance") FROM "schedule" WH...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year_performance" ( "season" text, "competition" text, "round" text, "against" text, "played" text, "drew" text, "lost" text, "goals_for" text, "goals_against" text ); Question:...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year_performance" ( "season" text, "competition" text, "round" text, "against" text, "played" text, "drew" text, "lost" text, "goals_for" text, "goals_against" text ); Question:...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year_performance" ( "season" text, "competition" text, "round" text, "against" text, "played" text, "drew" text, "lost" text, "goals_for" text, "goals_against" text ); Question:...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year_performance" ( "season" text, "competition" text, "round" text, "against" text, "played" text, "drew" text, "lost" text, "goals_for" text, "goals_against" text ); Question:...
<|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, "venue" text, "attendance" real ); Question: What is the attendance in texas stadium? <|assistant|> SELECT SUM("attendanc...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_22" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text, "report" text ); Question: What is the home team ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_22" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text, "report" text ); Question: What is the date for t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_22" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text, "report" text ); Question: Which home team had an...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_22" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text, "report" text ); Question: What is the report for...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "comparison_of_some_cameras_compatible_wi" ( "camera" text, "sensor_resolution" text, "sensor" text, "output" text, "cpu_usage" text, "ir_le_ds" text ); Question: What was the sensor with a re...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "comparison_of_some_cameras_compatible_wi" ( "camera" text, "sensor_resolution" text, "sensor" text, "output" text, "cpu_usage" text, "ir_le_ds" text ); Question: What was the sensor resolutio...