text
stringlengths 310
1.28k
|
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_members" (
"school" text,
"location" text,
"mascot" text,
"county" text,
"year_joined" text,
"previous_conference" text,
"year_left" text
);
Question: what is the school when the location is rochester?
<|assistant|>
SELECT "school" FROM "former_members" WHERE "location"='rochester';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_members" (
"school" text,
"location" text,
"mascot" text,
"county" text,
"year_joined" text,
"previous_conference" text,
"year_left" text
);
Question: what is the location when the school is muncie burris?
<|assistant|>
SELECT "location" FROM "former_members" WHERE "school"='muncie burris';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_members" (
"school" text,
"location" text,
"mascot" text,
"county" text,
"year_joined" text,
"previous_conference" text,
"year_left" text
);
Question: what is the mascot when the school is warsaw?
<|assistant|>
SELECT "mascot" FROM "former_members" WHERE "school"='warsaw';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_members" (
"school" text,
"location" text,
"mascot" text,
"county" text,
"year_joined" text,
"previous_conference" text,
"year_left" text
);
Question: what is the mascot when the county is 43 kosciusko?
<|assistant|>
SELECT "mascot" FROM "former_members" WHERE "county"='43 kosciusko';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_members" (
"school" text,
"location" text,
"mascot" text,
"county" text,
"year_joined" text,
"previous_conference" text,
"year_left" text
);
Question: what is the county when the year left is 1998?
<|assistant|>
SELECT "county" FROM "former_members" WHERE "year_left"='1998';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "satellite_awards" (
"year" real,
"category" text,
"film" text,
"result" text,
"lost_to" text
);
Question: which Film has a Category of best actress – musical or comedy, and a Lost to of nicole kidman ( moulin rouge! )?
<|assistant|>
SELECT "film" FROM "satellite_awards" WHERE "category"='best actress – musical or comedy' AND "lost_to"='nicole kidman ( moulin rouge! )';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "satellite_awards" (
"year" real,
"category" text,
"film" text,
"result" text,
"lost_to" text
);
Question: which Category has a Result of nominated, and a Lost to of jennifer westfeldt ( kissing jessica stein )?
<|assistant|>
SELECT "category" FROM "satellite_awards" WHERE "result"='nominated' AND "lost_to"='jennifer westfeldt ( kissing jessica stein )';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "satellite_awards" (
"year" real,
"category" text,
"film" text,
"result" text,
"lost_to" text
);
Question: Which the Lost to is in 2000
<|assistant|>
SELECT "lost_to" FROM "satellite_awards" WHERE "year"=2000;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"bills_points" real,
"opponents" real,
"record" text,
"attendance" real
);
Question: What is the average attendance for games against the Pittsburgh Steelers when the opponents scored more than 0 points?
<|assistant|>
SELECT AVG("attendance") FROM "schedule" WHERE "opponent"='pittsburgh steelers' AND "opponents">0;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "twentieth_round" (
"pick" real,
"team" text,
"player" text,
"position" text,
"college" text
);
Question: Who is the team that has a pick less than 154 and an offensive guard position?
<|assistant|>
SELECT "team" FROM "twentieth_round" WHERE "position"='offensive guard' AND "pick"<154;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_roster" (
"name" text,
"pos" text,
"height" text,
"weight" text,
"2012_club" text
);
Question: What is the Weight of the GK Player with 2012 Club of CN Atlètic-Barceloneta?
<|assistant|>
SELECT "weight" FROM "current_roster" WHERE "pos"='gk' AND "2012_club"='cn atlètic-barceloneta';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_roster" (
"name" text,
"pos" text,
"height" text,
"weight" text,
"2012_club" text
);
Question: What is the Height of the CF Player with 2012 club of Posillipo?
<|assistant|>
SELECT "height" FROM "current_roster" WHERE "pos"='cf' AND "2012_club"='posillipo';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "conference_premier" (
"game" real,
"date" text,
"opponents" text,
"venue" text,
"result" text,
"score_f_a" text,
"attendance" real
);
Question: What is the Attendance of Game 24?
<|assistant|>
SELECT SUM("attendance") FROM "conference_premier" WHERE "game"=24;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "conference_premier" (
"game" real,
"date" text,
"opponents" text,
"venue" text,
"result" text,
"score_f_a" text,
"attendance" real
);
Question: What is the Venue of Game 41 with a Score F–A of 1–2?
<|assistant|>
SELECT "venue" FROM "conference_premier" WHERE "score_f_a"='1–2' AND "game"=41;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_36_20_16" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score_in_the_final" text
);
Question: Who are the opponents in the February 19, 1996 final?
<|assistant|>
SELECT "opponents_in_the_final" FROM "doubles_36_20_16" WHERE "date"='february 19, 1996';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_36_20_16" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score_in_the_final" text
);
Question: What was the final score on March 22, 1993?
<|assistant|>
SELECT "score_in_the_final" FROM "doubles_36_20_16" WHERE "date"='march 22, 1993';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_36_20_16" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score_in_the_final" text
);
Question: What is the outcome on June 9, 1997?
<|assistant|>
SELECT "outcome" FROM "doubles_36_20_16" WHERE "date"='june 9, 1997';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"county" text
);
Question: What school has an IHSAA Class of aaa, and their mascot is Tiger Cubs?
<|assistant|>
SELECT "school" FROM "indiana_high_school_athletics_conference" WHERE "ihsaa_class"='aaa' AND "mascot"='tiger cubs';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"county" text
);
Question: What is the IHSAA Football Class for county 67 putnam at Greencastle?
<|assistant|>
SELECT "ihsaa_football_class" FROM "indiana_high_school_athletics_conference" WHERE "county"='67 putnam' AND "school"='greencastle';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"county" text
);
Question: What school has more than 533 enrolled and is an IHSAA Football Class of aa?
<|assistant|>
SELECT "school" FROM "indiana_high_school_athletics_conference" WHERE "enrollment">533 AND "ihsaa_football_class"='aa';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"county" text
);
Question: Where is the IHSAA Class of aaa school with more than 590 enrolled?
<|assistant|>
SELECT "location" FROM "indiana_high_school_athletics_conference" WHERE "ihsaa_class"='aaa' AND "enrollment">590;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "title_history" (
"wrestlers" text,
"reign" text,
"days_held" text,
"location" text,
"event" text
);
Question: Which location has 111 as the days held?
<|assistant|>
SELECT "location" FROM "title_history" WHERE "days_held"='111';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "title_history" (
"wrestlers" text,
"reign" text,
"days_held" text,
"location" text,
"event" text
);
Question: What days held has 1 as the reign with eden black as the wrestlers?
<|assistant|>
SELECT "days_held" FROM "title_history" WHERE "reign"='1' AND "wrestlers"='eden black';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "title_history" (
"wrestlers" text,
"reign" text,
"days_held" text,
"location" text,
"event" text
);
Question: What wrestlers have summer brawl 2006 as the event?
<|assistant|>
SELECT "wrestlers" FROM "title_history" WHERE "event"='summer brawl 2006';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"points" real
);
Question: What is the average amount of points larger than 154 laps?
<|assistant|>
SELECT AVG("points") FROM "race" WHERE "laps">154;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: What home team played against Crystal Palace?
<|assistant|>
SELECT "home_team" FROM "third_round_proper" WHERE "away_team"='crystal palace';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_team" (
"rank" real,
"team" text,
"apps" real,
"record" text,
"win_pct" real
);
Question: What is the lowest win % with a 0-2 record and more than 2 apps?
<|assistant|>
SELECT MIN("win_pct") FROM "by_team" WHERE "record"='0-2' AND "apps">2;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_team" (
"rank" real,
"team" text,
"apps" real,
"record" text,
"win_pct" real
);
Question: What is the lowest apps for rank 3 and 0% wins?
<|assistant|>
SELECT MIN("apps") FROM "by_team" WHERE "rank"=3 AND "win_pct"<0;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_10_albums" (
"rank" real,
"artist" text,
"album" text,
"peak_position" real,
"sales" real,
"certification" text
);
Question: What artist had a peak position under 2, and more than 200,000 in sales?
<|assistant|>
SELECT "artist" FROM "top_10_albums" WHERE "peak_position"<2 AND "sales">'200,000';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"draw" real,
"language" text,
"artist" text,
"song" text,
"english_translation" text,
"place" real,
"points" real
);
Question: Which points has place smaller than 2?
<|assistant|>
SELECT "points" FROM "results" WHERE "place"<2;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "membership" (
"school" text,
"location" text,
"mascot" text,
"size" real,
"ihsaa_class" text,
"num_county" text,
"year_joined" real,
"previous_conference" text
);
Question: What's the size of Centerville in 89 Wayne county with an IHSAA class of AA in the year before 1974?
<|assistant|>
SELECT "size" FROM "membership" WHERE "year_joined"<1974 AND "ihsaa_class"='aa' AND "num_county"='89 wayne' AND "school"='centerville';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "membership" (
"school" text,
"location" text,
"mascot" text,
"size" real,
"ihsaa_class" text,
"num_county" text,
"year_joined" real,
"previous_conference" text
);
Question: What's the year that Hagerstown joined?
<|assistant|>
SELECT "year_joined" FROM "membership" WHERE "school"='hagerstown';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "membership" (
"school" text,
"location" text,
"mascot" text,
"size" real,
"ihsaa_class" text,
"num_county" text,
"year_joined" real,
"previous_conference" text
);
Question: What county is Fountain City?
<|assistant|>
SELECT "num_county" FROM "membership" WHERE "location"='fountain city';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "membership" (
"school" text,
"location" text,
"mascot" text,
"size" real,
"ihsaa_class" text,
"num_county" text,
"year_joined" real,
"previous_conference" text
);
Question: What's the previous conference of Fountain City with a size more than 287?
<|assistant|>
SELECT "previous_conference" FROM "membership" WHERE "size">287 AND "location"='fountain city';<|endoftext|>
|
<|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,
"polling_institute" text,
"socialist" text,
"social_democratic" text,
"green_communist" text,
"people_s_party" text,
"left_bloc" text,
"lead" text
);
Question: What is the people's party with an 8.0% green-communist?
<|assistant|>
SELECT "people_s_party" FROM "116_seats_needed_for_a_majority" WHERE "green_communist"='8.0%';<|endoftext|>
|
<|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,
"polling_institute" text,
"socialist" text,
"social_democratic" text,
"green_communist" text,
"people_s_party" text,
"left_bloc" text,
"lead" text
);
Question: What is the social democrat released on October 10, 1999?
<|assistant|>
SELECT "social_democratic" FROM "116_seats_needed_for_a_majority" WHERE "date_released"='october 10, 1999';<|endoftext|>
|
<|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,
"polling_institute" text,
"socialist" text,
"social_democratic" text,
"green_communist" text,
"people_s_party" text,
"left_bloc" text,
"lead" text
);
Question: What is the green-communist with a 15.5% lead?
<|assistant|>
SELECT "green_communist" FROM "116_seats_needed_for_a_majority" WHERE "lead"='15.5%';<|endoftext|>
|
<|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,
"polling_institute" text,
"socialist" text,
"social_democratic" text,
"green_communist" text,
"people_s_party" text,
"left_bloc" text,
"lead" text
);
Question: What is the left bloc with a 49.0% socialist?
<|assistant|>
SELECT "left_bloc" FROM "116_seats_needed_for_a_majority" WHERE "socialist"='49.0%';<|endoftext|>
|
<|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,
"polling_institute" text,
"socialist" text,
"social_democratic" text,
"green_communist" text,
"people_s_party" text,
"left_bloc" text,
"lead" text
);
Question: Which polling institute has a 30.7% for social democratic?
<|assistant|>
SELECT "polling_institute" FROM "116_seats_needed_for_a_majority" WHERE "social_democratic"='30.7%';<|endoftext|>
|
<|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,
"polling_institute" text,
"socialist" text,
"social_democratic" text,
"green_communist" text,
"people_s_party" text,
"left_bloc" text,
"lead" text
);
Question: What is the people's party with a 30.0% social democratic?
<|assistant|>
SELECT "people_s_party" FROM "116_seats_needed_for_a_majority" WHERE "social_democratic"='30.0%';<|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 is the week with w 31-21 result?
<|assistant|>
SELECT "week" FROM "schedule" WHERE "result"='w 31-21';<|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: In week 7, what was the average attendance?
<|assistant|>
SELECT AVG("attendance") FROM "schedule" WHERE "week"=7;<|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 september 10, 1979?
<|assistant|>
SELECT "opponent" FROM "schedule" WHERE "date"='september 10, 1979';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "discography" (
"date_of_release" text,
"title" text,
"billboard_peak" text,
"riaa_cert" text,
"label" text
);
Question: When was twenty released?
<|assistant|>
SELECT "date_of_release" FROM "discography" WHERE "title"='twenty';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "discography" (
"date_of_release" text,
"title" text,
"billboard_peak" text,
"riaa_cert" text,
"label" text
);
Question: On what date was god & guns released?
<|assistant|>
SELECT "date_of_release" FROM "discography" WHERE "title"='god & guns';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "discography" (
"date_of_release" text,
"title" text,
"billboard_peak" text,
"riaa_cert" text,
"label" text
);
Question: What was the Billboard peak for the album released on September 12, 2000 by sanctuary?
<|assistant|>
SELECT "billboard_peak" FROM "discography" WHERE "label"='sanctuary' AND "date_of_release"='september 12, 2000';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "discography" (
"date_of_release" text,
"title" text,
"billboard_peak" text,
"riaa_cert" text,
"label" text
);
Question: Where did god & guns peak on the Billboard?
<|assistant|>
SELECT "billboard_peak" FROM "discography" WHERE "title"='god & guns';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "discography" (
"date_of_release" text,
"title" text,
"billboard_peak" text,
"riaa_cert" text,
"label" text
);
Question: What was the Billboard peak for the album released on February 2, 1976 by MCA?
<|assistant|>
SELECT "billboard_peak" FROM "discography" WHERE "label"='mca' AND "date_of_release"='february 2, 1976';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"opposing_team" text,
"against" real,
"date" text,
"venue" text,
"status" text
);
Question: What venue was the tour match against eastern province played at with more than 0 against?
<|assistant|>
SELECT "venue" FROM "results" WHERE "status"='tour match' AND "against">0 AND "opposing_team"='eastern province';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"opposing_team" text,
"against" real,
"date" text,
"venue" text,
"status" text
);
Question: What is the status of the game where there was more than 22 against?
<|assistant|>
SELECT "status" FROM "results" WHERE "against">22;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"game" text,
"date" text,
"opponent" text,
"result" text,
"lions_points" text,
"opponents" text,
"record" text,
"streak" text,
"attendance" text
);
Question: In which game did the opponents score 14 points?
<|assistant|>
SELECT "game" FROM "schedule" WHERE "opponents"='14';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"game" text,
"date" text,
"opponent" text,
"result" text,
"lions_points" text,
"opponents" text,
"record" text,
"streak" text,
"attendance" text
);
Question: What was the streak after the game on Dec. 12?
<|assistant|>
SELECT "streak" FROM "schedule" WHERE "date"='dec. 12';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "comparison_of_amt_versions" (
"feature" text,
"amt_1_0_desktop" text,
"amt_2_0_2_1_desktop" text,
"amt_2_5_2_6_mobile" text,
"amt_3_0_desktop" text,
"amt_4_0_mobile" text,
"amt_5_0_desktop" text,
"6_0_desktop_mobile" text,
"7_0_8_0_desktop_mobile" text
);
Question: What's the AMT 3.0 when it has a feature of Vlan Settings for Intel AMT Network Interfaces?
<|assistant|>
SELECT "amt_3_0_desktop" FROM "comparison_of_amt_versions" WHERE "feature"='vlan settings for intel amt network interfaces';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" real,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the number of silver when bronze is 0, and rank is less than 2?
<|assistant|>
SELECT SUM("silver") FROM "medal_table" WHERE "bronze"=0 AND "rank"<2;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" real,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the silver when the Total is 1, and Gold is 1?
<|assistant|>
SELECT AVG("silver") FROM "medal_table" WHERE "total"=1 AND "gold"=1;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" real,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the number of silver when the total is less than 1?
<|assistant|>
SELECT COUNT("silver") FROM "medal_table" WHERE "total"<1;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" real,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the largest silver number when the rank is smaller than 1?
<|assistant|>
SELECT MAX("silver") FROM "medal_table" WHERE "rank"<1;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" real,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the number of bronze when the total is smaller than 1?
<|assistant|>
SELECT AVG("bronze") FROM "medal_table" WHERE "total"<1;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" real,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the highest number of bronze when silver is larger than 0, rank is larger than 3?
<|assistant|>
SELECT MAX("bronze") FROM "medal_table" WHERE "silver">0 AND "rank">3;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medals_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the lowest number of silvers for countries in rank 12 with more than 0 bronze?
<|assistant|>
SELECT MIN("silver") FROM "medals_table" WHERE "rank"='12' AND "bronze">0;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medals_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the most number of silvers for teams in rank 5 with more than 6 total medals?
<|assistant|>
SELECT MAX("silver") FROM "medals_table" WHERE "rank"='5' AND "total">6;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medals_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the fewest number of golds for teams with a total of 3 and fewer than 2 silvers?
<|assistant|>
SELECT MIN("gold") FROM "medals_table" WHERE "total"=3 AND "silver"<2;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "win_loss_record" (
"club" text,
"active" text,
"wins" real,
"losses" real,
"draws" real,
"percentage_wins" text,
"flags" real
);
Question: What's the number of wins when the flags were less than 8 and 52.11% of wins?
<|assistant|>
SELECT COUNT("wins") FROM "win_loss_record" WHERE "percentage_wins"='52.11%' AND "flags"<8;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "win_loss_record" (
"club" text,
"active" text,
"wins" real,
"losses" real,
"draws" real,
"percentage_wins" text,
"flags" real
);
Question: What's the most flags that had 473 wins and less than 633 losses?
<|assistant|>
SELECT MAX("flags") FROM "win_loss_record" WHERE "wins"=473 AND "losses"<633;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "win_loss_record" (
"club" text,
"active" text,
"wins" real,
"losses" real,
"draws" real,
"percentage_wins" text,
"flags" real
);
Question: How many wins did South Warrnambool have that had more than 6 flags and a draw greater than 10?
<|assistant|>
SELECT "wins" FROM "win_loss_record" WHERE "flags">6 AND "draws">10 AND "club"='south warrnambool';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "win_loss_record" (
"club" text,
"active" text,
"wins" real,
"losses" real,
"draws" real,
"percentage_wins" text,
"flags" real
);
Question: What are the losses of Warrnambool with a draw less than 19?
<|assistant|>
SELECT AVG("losses") FROM "win_loss_record" WHERE "club"='warrnambool' AND "draws"<19;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "senior_career" (
"year" real,
"competition_description" text,
"location" text,
"apparatus" text,
"rank_final" text
);
Question: What is the Location of the Competition with a Rank-Final of 10?
<|assistant|>
SELECT "location" FROM "senior_career" WHERE "rank_final"='10';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: How many gold medals for Bulgaria (BUL) with 2 silvers and a less than 18 rank?
<|assistant|>
SELECT SUM("gold") FROM "men" WHERE "silver"=2 AND "nation"='bulgaria (bul)' AND "rank"<18;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What's the most bronze medals for Great Britain (GBR) with more than 1 silver and ranked more than 6?
<|assistant|>
SELECT MAX("bronze") FROM "men" WHERE "rank">6 AND "nation"='great britain (gbr)' AND "silver">1;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What's the total silver medals having less than 2 gold and 2 bronze?
<|assistant|>
SELECT COUNT("silver") FROM "men" WHERE "bronze"=2 AND "gold"<2;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "yellow_cards" (
"name" text,
"championship" real,
"league_cup" real,
"fa_cup" real,
"total" real
);
Question: Which Name has a Championship larger than 2, and a Total larger than 4, and an FA Cup larger than 0?
<|assistant|>
SELECT "name" FROM "yellow_cards" WHERE "championship">2 AND "total">4 AND "fa_cup">0;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "digital_channels" (
"channel" real,
"video" text,
"aspect" text,
"psip_short_name" text,
"programming" text
);
Question: Which Video has a Channel smaller than 35.66, and a Programming of nhk world?
<|assistant|>
SELECT "video" FROM "digital_channels" WHERE "channel"<35.66 AND "programming"='nhk world';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "digital_channels" (
"channel" real,
"video" text,
"aspect" text,
"psip_short_name" text,
"programming" text
);
Question: Which Video has a PSIP Short Name of rt?
<|assistant|>
SELECT "video" FROM "digital_channels" WHERE "psip_short_name"='rt';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "digital_channels" (
"channel" real,
"video" text,
"aspect" text,
"psip_short_name" text,
"programming" text
);
Question: Which Programming has a Channel of 35.4?
<|assistant|>
SELECT "programming" FROM "digital_channels" WHERE "channel"=35.4;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "per_country" (
"rank" text,
"country" text,
"jerseys" real,
"vuelta_wins" real,
"points" real,
"combo" real,
"different_holders" real
);
Question: what is the lowest vuelta wins when the rank is 19 and combo is more than 0?
<|assistant|>
SELECT MIN("vuelta_wins") FROM "per_country" WHERE "rank"='19' AND "combo">0;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "per_country" (
"rank" text,
"country" text,
"jerseys" real,
"vuelta_wins" real,
"points" real,
"combo" real,
"different_holders" real
);
Question: How many times is the country ireland and points more than 4?
<|assistant|>
SELECT COUNT("vuelta_wins") FROM "per_country" WHERE "country"='ireland' AND "points">4;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"date" text,
"label" text,
"format" text,
"country" text,
"catalog" text
);
Question: What is the format for the MHCP-66 Catalog?
<|assistant|>
SELECT "format" FROM "release_history" WHERE "catalog"='mhcp-66';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"date" text,
"label" text,
"format" text,
"country" text,
"catalog" text
);
Question: What Catalog came out on August 20, 1965?
<|assistant|>
SELECT "catalog" FROM "release_history" WHERE "date"='august 20, 1965';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"date" text,
"label" text,
"format" text,
"country" text,
"catalog" text
);
Question: What is the catalog with an LP Format and under the Simply Vinyl label?
<|assistant|>
SELECT "catalog" FROM "release_history" WHERE "format"='lp' AND "label"='simply vinyl';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"date" text,
"label" text,
"format" text,
"country" text,
"catalog" text
);
Question: What date had a CD format, under Columbia/Legacy from the UK?
<|assistant|>
SELECT "date" FROM "release_history" WHERE "format"='cd' AND "label"='columbia/legacy' AND "country"='uk';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"date" text,
"label" text,
"format" text,
"country" text,
"catalog" text
);
Question: What country has an LP format, catalog s 31503?
<|assistant|>
SELECT "country" FROM "release_history" WHERE "format"='lp' AND "catalog"='s 31503';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"date" text,
"label" text,
"format" text,
"country" text,
"catalog" text
);
Question: What is the format for Catalog CL 2372?
<|assistant|>
SELECT "format" FROM "release_history" WHERE "catalog"='cl 2372';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"tournament" text,
"venue" text,
"result" text,
"event" text,
"points" text
);
Question: What event has european championships as the tournament, with 2006 as the year?
<|assistant|>
SELECT "event" FROM "achievements" WHERE "tournament"='european championships' AND "year"=2006;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"tournament" text,
"venue" text,
"result" text,
"event" text,
"points" text
);
Question: What average year has international meeting & national championships as the tournament?
<|assistant|>
SELECT AVG("year") FROM "achievements" WHERE "tournament"='international meeting & national championships';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"tournament" text,
"venue" text,
"result" text,
"event" text,
"points" text
);
Question: What is the lowest year that has hypo-meeting as the tournament, with 8002 as the points?
<|assistant|>
SELECT MIN("year") FROM "achievements" WHERE "tournament"='hypo-meeting' AND "points"='8002';<|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: Who was the opponent in the match that lasted 4:17?
<|assistant|>
SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "time"='4:17';<|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: Where was the match that lasted less than 3 rounds and was won by submission (triangle choke)?
<|assistant|>
SELECT "location" FROM "mixed_martial_arts_record" WHERE "round"<3 AND "method"='submission (triangle choke)';<|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: Which event had Carlos Alexandre Pereira as opponent?
<|assistant|>
SELECT "event" FROM "mixed_martial_arts_record" WHERE "opponent"='carlos alexandre pereira';<|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: Where was the match that resulted in a win in 4:16 held?
<|assistant|>
SELECT "location" FROM "mixed_martial_arts_record" WHERE "res"='win' AND "time"='4:16';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "texas_counties_ranked_by_per_capita_inco" (
"county" text,
"per_capita_income" text,
"median_household_income" text,
"median_family_income" text,
"population" real,
"number_of_households" real
);
Question: What's the population that has a median family income of $50,553?
<|assistant|>
SELECT COUNT("population") FROM "texas_counties_ranked_by_per_capita_inco" WHERE "median_family_income"='$50,553';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heat_6" (
"rank" real,
"athlete" text,
"country" text,
"time" text,
"notes" text
);
Question: What is the highest rank for the team of egypt?
<|assistant|>
SELECT MAX("rank") FROM "heat_6" WHERE "country"='egypt';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heat_6" (
"rank" real,
"athlete" text,
"country" text,
"time" text,
"notes" text
);
Question: Who was the athlete from egypt with q in the notes?
<|assistant|>
SELECT "athlete" FROM "heat_6" WHERE "notes"='q' AND "country"='egypt';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "main_sites" (
"transmitter" text,
"service_area" text,
"radio_1_m_hz" real,
"2_fm_m_hz" text,
"rna_g_m_hz" text,
"lyric_fm_m_hz" text,
"erp_k_w" real
);
Question: What is the 2FM for SW Ireland?
<|assistant|>
SELECT "2_fm_m_hz" FROM "main_sites" WHERE "service_area"='sw ireland';<|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: Name Event of Medal of gold and a Name of duncan white?
<|assistant|>
SELECT "event" FROM "list_of_medalists" WHERE "medal"='gold' AND "name"='duncan white';<|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: Name the Event of the Games of 1950 auckland and a Medal of bronze?
<|assistant|>
SELECT "event" FROM "list_of_medalists" WHERE "games"='1950 auckland' 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: Which Medal has a Name of alex obeyesekera?
<|assistant|>
SELECT "medal" FROM "list_of_medalists" WHERE "name"='alex obeyesekera';<|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 has a Medal of gold and a Name of barney henricus?
<|assistant|>
SELECT "event" FROM "list_of_medalists" WHERE "medal"='gold' AND "name"='barney henricus';<|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: Name the Event of sudesh peiris?
<|assistant|>
SELECT "event" FROM "list_of_medalists" WHERE "name"='sudesh peiris';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_trailers" (
"year" real,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
);
Question: What year was the developer(s) Bioware?
<|assistant|>
SELECT AVG("year") FROM "game_trailers" WHERE "developer_s"='bioware';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_trailers" (
"year" real,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
);
Question: What is the genre for 2009 on Playstation 3?
<|assistant|>
SELECT "genre" FROM "game_trailers" WHERE "year">2009 AND "platform_s"='playstation 3';<|endoftext|>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.