text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1482_1700" ( "name" text, "father" text, "birth" text, "marriage" text, "became_countess" text, "ceased_to_be_countess" text, "death" text, "spouse" text ); Question: When did elisabeth o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: Who is entered earlier than 1975 and has a Lotus 20 chassis? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: Which engine has a Lotus 49c chassis? <|assistant|> SELECT "en...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: What are the average points of Scuderia Scribante with a Brabh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: How many points are there for a Mclaren m23 chassis later than...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list" ( "rural_municipality_rm" text, "rm_no" text, "sarm_div_no" text, "census_div_no" text, "population_2011" real, "population_2006" real, "change_pct" real, "land_area_km" real, "pop...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "daytona_500_results" ( "year" real, "manufacturer" text, "start" text, "finish" text, "team" text ); Question: What was the result after 1994 for team MB2 and 31 starts? <|assistant|> SELECT "f...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "daytona_500_results" ( "year" real, "manufacturer" text, "start" text, "finish" text, "team" text ); Question: What team has 33 starts? <|assistant|> SELECT "team" FROM "daytona_500_results" WH...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "daytona_500_results" ( "year" real, "manufacturer" text, "start" text, "finish" text, "team" text ); Question: What team finished 35 in a ford before 1997? <|assistant|> SELECT "team" FROM "day...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" real, "venue" text, "winner" text, "country" text, "score" real ); Question: What was the sum of the scores before the year 2002, that had the venue of Halmstad? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" real, "venue" text, "winner" text, "country" text, "score" real ); Question: What was France's highest score when the venue was Bokskogens? <|assistant|> SELECT MAX("score") F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" real, "venue" text, "winner" text, "country" text, "score" real ); Question: What was the earliest year during which the winner was Matthew King, and during which the score wa...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" real, "venue" text, "winner" text, "country" text, "score" real ); Question: What was the average year during which the score was 270? <|assistant|> SELECT AVG("year") FROM "w...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" real, "venue" text, "winner" text, "country" text, "score" real ); Question: What were the total number scores after 2005, when the winner was David Patrick? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" real, "venue" text, "winner" text, "country" text, "score" real ); Question: What was the average year that the venue was Bokskogens? <|assistant|> SELECT AVG("year") FROM "wi...
<|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" text, "record" text ); Question: Who did the Toronto Blue Jays play against where the score was 4 - 2? <|assi...
<|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" text, "record" text ); Question: Who did the Blue Jays play against on April 11? <|assistant|> SELECT "oppone...
<|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" text, "record" text ); Question: Who did the Blue Jays play against on April 24? <|assistant|> SELECT "oppone...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_rankings" ( "rank" real, "team" text, "country" text, "value_m" real, "debt_as_pctof_value" real, "pct_change_on_year" text, "revenue_m" real, "operating_income_m" real ); Question: ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_rankings" ( "rank" real, "team" text, "country" text, "value_m" real, "debt_as_pctof_value" real, "pct_change_on_year" text, "revenue_m" real, "operating_income_m" real ); Question: ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_rankings" ( "rank" real, "team" text, "country" text, "value_m" real, "debt_as_pctof_value" real, "pct_change_on_year" text, "revenue_m" real, "operating_income_m" real ); Question: ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_rankings" ( "rank" real, "team" text, "country" text, "value_m" real, "debt_as_pctof_value" real, "pct_change_on_year" text, "revenue_m" real, "operating_income_m" real ); Question: ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_rankings" ( "rank" real, "team" text, "country" text, "value_m" real, "debt_as_pctof_value" real, "pct_change_on_year" text, "revenue_m" real, "operating_income_m" real ); Question: ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "negotiation_progress" ( "screening_started" text, "screening_completed" text, "chapter_unfrozen" text, "chapter_opened" text, "chapter_closed" text ); Question: Name the screening completed for...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "negotiation_progress" ( "screening_started" text, "screening_completed" text, "chapter_unfrozen" text, "chapter_opened" text, "chapter_closed" text ); Question: Name the screening started when ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "awards_nominations" ( "year" real, "ceremony" text, "result" text, "award" text, "work" text ); Question: What award was Trent Tesoro nominated for in 2007? <|assistant|> SELECT "award" FROM "a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "site" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: What is the score for the team that has a record of 80-64? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indianapolis_500_results" ( "year" real, "chassis" text, "engine" text, "start" text, "finish" text, "team" text ); Question: What position did team scandia finish when their engine was coswo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indianapolis_500_results" ( "year" real, "chassis" text, "engine" text, "start" text, "finish" text, "team" text ); Question: What was the position of the team that used an oldsmobile engine ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: what is the least bronze when gold is more than 0 for russia? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: what is the highest rank for italy when gold is more than 1? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: what is the total when bronze is more than 1 and gold smaller than 1? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sigma_mass_storage_devices" ( "device" real, "device_type" text, "capacity_mb" text, "avg_seek_time_ms" text, "avg_rotational_delay_ms" real, "avg_transfer_rate_k_b_s" real ); Question: What ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sigma_mass_storage_devices" ( "device" real, "device_type" text, "capacity_mb" text, "avg_seek_time_ms" text, "avg_rotational_delay_ms" real, "avg_transfer_rate_k_b_s" real ); Question: What ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: Which entrant has a year after 1955? <|assistant|> SELECT "ent...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_table" ( "position" real, "club" text, "played" real, "points" text, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_table" ( "position" real, "club" text, "played" real, "points" text, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "awards_and_nominations" ( "year" real, "award_show" text, "category" text, "recipient_s" text, "result" text ); Question: On which award show was Bad Girls nominated for Most Popular Drama in 2...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "awards_and_nominations" ( "year" real, "award_show" text, "category" text, "recipient_s" text, "result" text ); Question: Who was the recipient when the show was nominated for Most Popular Dram...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "awards_and_nominations" ( "year" real, "award_show" text, "category" text, "recipient_s" text, "result" text ); Question: In what award show was Bad Girls nominated for Best Loved Drama in 2002...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the average total number of medals for a nation with 2 silver medals an...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the lowest rank of Ukraine with fewer than 14 silver medals, fewer than...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the total of bronze medals from nations with more than 16 total medals ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the total number of bronze medals with a total of 4 medals and 1 gold m...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real ); Question: What was the qualification with more than 162 laps in 1953? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real ); Question: What was the qualification with more than 585 laps? <|assistant|> SELECT "qual...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real ); Question: How many laps had a qualification of 136.168? <|assistant|> SELECT COUNT("laps...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "representative" text, "title" text, "presentation_of_credentials" text, "termination_of_mission" text, "appointed_by" text ); Question: Who was appointed with the title of envoy ex...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2004_enlargement" ( "member_countries" text, "population" text, "area_km" text, "gdp_billion_us" text, "gdp_per_capita_us" text ); Question: What is the GDP (billion US$) of the country that ha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2004_enlargement" ( "member_countries" text, "population" text, "area_km" text, "gdp_billion_us" text, "gdp_per_capita_us" text ); Question: What is the name of the member country that has a Po...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2004_enlargement" ( "member_countries" text, "population" text, "area_km" text, "gdp_billion_us" text, "gdp_per_capita_us" text ); Question: What is the total population of the country that has...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2004_enlargement" ( "member_countries" text, "population" text, "area_km" text, "gdp_billion_us" text, "gdp_per_capita_us" text ); Question: What is the name of the country that has an Area (km...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2004_enlargement" ( "member_countries" text, "population" text, "area_km" text, "gdp_billion_us" text, "gdp_per_capita_us" text ); Question: What is the GDP (billion US$) of the country that ha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2004_enlargement" ( "member_countries" text, "population" text, "area_km" text, "gdp_billion_us" text, "gdp_per_capita_us" text ); Question: What is the GDP per capita (US$) of the country that...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "country" text, "film_title_used_in_nomination" text, "language" text, "original_title" text, "director" text ); Question: What is the original title for the Korean language film?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "country" text, "film_title_used_in_nomination" text, "language" text, "original_title" text, "director" text ); Question: What language is the film La Diagonale du Fou in? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "country" text, "film_title_used_in_nomination" text, "language" text, "original_title" text, "director" text ); Question: What was the original title of the Hindi film? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "country" text, "film_title_used_in_nomination" text, "language" text, "original_title" text, "director" text ); Question: What language is the film Karnal in? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "country" text, "film_title_used_in_nomination" text, "language" text, "original_title" text, "director" text ); Question: What was the film title nominated from the Netherlands? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "country" text, "film_title_used_in_nomination" text, "language" text, "original_title" text, "director" text ); Question: What was the film title nominated from the Sweden? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: On the Date of 15 June 1992 what is the Score that is listed? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "notes_and_references" ( "school" text, "location" text, "total" real, "crimean_war" real, "persian_war" real, "indian_mutiny" real, "1860_1878" real, "zulu_war" real, "second_afghan_war"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "notes_and_references" ( "school" text, "location" text, "total" real, "crimean_war" real, "persian_war" real, "indian_mutiny" real, "1860_1878" real, "zulu_war" real, "second_afghan_war"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "notes_and_references" ( "school" text, "location" text, "total" real, "crimean_war" real, "persian_war" real, "indian_mutiny" real, "1860_1878" real, "zulu_war" real, "second_afghan_war"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "notes_and_references" ( "school" text, "location" text, "total" real, "crimean_war" real, "persian_war" real, "indian_mutiny" real, "1860_1878" real, "zulu_war" real, "second_afghan_war"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "notes_and_references" ( "school" text, "location" text, "total" real, "crimean_war" real, "persian_war" real, "indian_mutiny" real, "1860_1878" real, "zulu_war" real, "second_afghan_war"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "saint_petersburg_teams" ( "club" text, "league" text, "sport" text, "venue" text, "established" real ); Question: What Venue has Basketball as a Sport? <|assistant|> SELECT "venue" FROM "saint_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "saint_petersburg_teams" ( "club" text, "league" text, "sport" text, "venue" text, "established" real ); Question: What Venue has Spartak St. Petersburg Club? <|assistant|> SELECT "venue" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "saint_petersburg_teams" ( "club" text, "league" text, "sport" text, "venue" text, "established" real ); Question: What League of VSL Sport was Established in 1935? <|assistant|> SELECT "sport" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "saint_petersburg_teams" ( "club" text, "league" text, "sport" text, "venue" text, "established" real ); Question: What Club Established in 2010 has a League of MHL? <|assistant|> SELECT "club" ...
<|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" real ); Question: What was the highest attendance week 12? <|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, "game_site" text, "record" text, "attendance" real ); Question: What is the record for the result w 33-3? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "members" ( "district" text, "counties_represented" text, "delegate" text, "party" text, "first_elected" real, "committee" text ); Question: What Committee has the First Elected of 1993? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "members" ( "district" text, "counties_represented" text, "delegate" text, "party" text, "first_elected" real, "committee" text ); Question: What is the total number of First Elected that has ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "members" ( "district" text, "counties_represented" text, "delegate" text, "party" text, "first_elected" real, "committee" text ); Question: What counties represented have a First Elected of 2...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "currency" ( "country" text, "currency" text, "1_euro" real, "1_usd" real, "central_bank" text ); Question: For Central Bank of Uruguay, what's the 1USD=? <|assistant|> SELECT "1_usd" FROM "curr...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "currency" ( "country" text, "currency" text, "1_euro" real, "1_usd" real, "central_bank" text ); Question: What is the 1USD= that has the Uruguayan Peso (uyu) and 1 Euro is greater than 25.3797...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "currency" ( "country" text, "currency" text, "1_euro" real, "1_usd" real, "central_bank" text ); Question: What is the 1USD= in Chile and has 1 Euro greater than 635.134? <|assistant|> SELECT C...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "currency" ( "country" text, "currency" text, "1_euro" real, "1_usd" real, "central_bank" text ); Question: If the 1USD= 5,916.27, what is the lowest 1 Euro amount? <|assistant|> SELECT MIN("1_e...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text ); Question: What is the venue when the year is after 2001 for the summer olympics? <|assistant|> SE...
<|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 is the total attendance for the August 8 game? <|assistant|> SELECT SUM...
<|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: Which opponent led to a 56-59 record? <|assistant|> SELECT "opponent" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "super_league_tries" ( "date" text, "venue" text, "opponent" text, "result" text, "tournament" text, "scored" real ); Question: Where did they play that the score was 22-12? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "films" ( "year" real, "title" text, "role" text, "language" text, "notes" text ); Question: What language is spoken after 2007 for the role of urvashi mathur? <|assistant|> SELECT "language" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "films" ( "year" real, "title" text, "role" text, "language" text, "notes" text ); Question: What role is spoken in hindi in 2011? <|assistant|> SELECT "role" FROM "films" WHERE "language"='hind...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "films" ( "year" real, "title" text, "role" text, "language" text, "notes" text ); Question: What is the note section for the role with a language of hindi and a title of miley naa miley hum? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "track_listing" ( "title" text, "english_translation" text, "lyrics_by" text, "music_by" text, "time" text ); Question: What is the title of the song that has a translation of Without Me? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "composition_by_molecule_type" ( "molecule" text, "percent_of_mass" text, "mol_weight_daltons" text, "molecules" text, "percent_of_molecules" text ); Question: what is the molecules when the per...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "composition_by_molecule_type" ( "molecule" text, "percent_of_mass" text, "mol_weight_daltons" text, "molecules" text, "percent_of_molecules" text ); Question: What is the percent of molecules w...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "composition_by_molecule_type" ( "molecule" text, "percent_of_mass" text, "mol_weight_daltons" text, "molecules" text, "percent_of_molecules" text ); Question: what is the mol.weight (daltons) w...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "composition_by_molecule_type" ( "molecule" text, "percent_of_mass" text, "mol_weight_daltons" text, "molecules" text, "percent_of_molecules" text ); Question: what is the perfect of mass when t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "composition_by_molecule_type" ( "molecule" text, "percent_of_mass" text, "mol_weight_daltons" text, "molecules" text, "percent_of_molecules" text ); Question: what is the percent of mass when t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_attendances" ( "rank" real, "round" text, "home_team" text, "away_team" text, "result" text, "location" text, "attendance" real ); Question: How many people attended the game when the a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_attendances" ( "rank" real, "round" text, "home_team" text, "away_team" text, "result" text, "location" text, "attendance" real ); Question: What was the round when the home team was ch...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_attendances" ( "rank" real, "round" text, "home_team" text, "away_team" text, "result" text, "location" text, "attendance" real ); Question: What is the rank when the game was at dnipro...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: What are the lowest points for the engines of the Lamborghini v12 and the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: What is the Chassis from before 1997 with a Lamborghini v12 engine? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: What is the total of the year with a point larger than 0 or the Chassis of...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: What are the lowest points from 1992 with a Chassis of Minardi m192? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: What Entrant has 0 points and from 1997? <|assistant|> SELECT "entrant" FR...