text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29273182_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: Who wrote the episode with a production code of ip03007?
<|assistant|>
SELECT "written_by" FROM "table1_29273182_1" WHERE "production_code"='IP03007';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29273182_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: What is the name of episode number 29 in the series?
<|assistant|>
SELECT "title" FROM "table1_29273182_1" WHERE "no_in_series"=29;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29273182_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: Who wrote the episode with ip03012 as the production code?
<|assistant|>
SELECT "written_by" FROM "table1_29273182_1" WHERE "production_code"='IP03012';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29273182_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: Who directed the episode with production code ip03010?
<|assistant|>
SELECT "directed_by" FROM "table1_29273182_1" WHERE "production_code"='IP03010';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29273390_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
Question: What is the least amount in each season?
<|assistant|>
SELECT MIN("no_in_season") FROM "table1_29273390_1";<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29273390_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
Question: What is the least number in a season?
<|assistant|>
SELECT MIN("no_in_season") FROM "table1_29273390_1";<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29273390_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
Question: Who directed an episode with 1.19 million?
<|assistant|>
SELECT "directed_by" FROM "table1_29273390_1" WHERE "u_s_viewers_million"='1.19';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_calendar_and_results" (
"rnd" real,
"circuit" text,
"location" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"most_laps_led" text,
"winning_driver" text,
"winning_team" text,
"supporting" text
);
Question: At what location was the March 17 race held?
<|assistant|>
SELECT "location" FROM "race_calendar_and_results" WHERE "date"='March 17';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_calendar_and_results" (
"rnd" real,
"circuit" text,
"location" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"most_laps_led" text,
"winning_driver" text,
"winning_team" text,
"supporting" text
);
Question: What location did Zach Veach have the fastest lap?
<|assistant|>
SELECT "location" FROM "race_calendar_and_results" WHERE "fastest_lap"='Zach Veach';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_calendar_and_results" (
"rnd" real,
"circuit" text,
"location" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"most_laps_led" text,
"winning_driver" text,
"winning_team" text,
"supporting" text
);
Question: Where was the race with Luke Ellery as fastest lap and Wayne Boyd as winning driver?
<|assistant|>
SELECT "location" FROM "race_calendar_and_results" WHERE "fastest_lap"='Luke Ellery' AND "winning_driver"='Wayne Boyd';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29289372_1" (
"city_municipality" text,
"population_2010" real,
"area_km" text,
"pop_density_per_km" text,
"income_classification" text
);
Question: When 318676 is the population of 2010 and 1st class is the income classification what is the area in kilometers squared?
<|assistant|>
SELECT "area_km" FROM "table1_29289372_1" WHERE "income_classification"='1st Class' AND "population_2010"=318676;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29289372_1" (
"city_municipality" text,
"population_2010" real,
"area_km" text,
"pop_density_per_km" text,
"income_classification" text
);
Question: When itogon, benguet is the city/municipality and 1st class is the income classification how many measurements of population in 2010?
<|assistant|>
SELECT COUNT("population_2010") FROM "table1_29289372_1" WHERE "income_classification"='1st Class' AND "city_municipality"='Itogon, Benguet';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29289372_1" (
"city_municipality" text,
"population_2010" real,
"area_km" text,
"pop_density_per_km" text,
"income_classification" text
);
Question: When 82.74 is the area in kilometers squared what is the pop.density (per km2)?
<|assistant|>
SELECT "pop_density_per_km" FROM "table1_29289372_1" WHERE "area_km"='82.74';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29289372_1" (
"city_municipality" text,
"population_2010" real,
"area_km" text,
"pop_density_per_km" text,
"income_classification" text
);
Question: When 106 is the area in kilometers squared what is the city/municipality?
<|assistant|>
SELECT "city_municipality" FROM "table1_29289372_1" WHERE "area_km"='106';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29273243_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: How many episodes have the production code ip04004?
<|assistant|>
SELECT COUNT("title") FROM "table1_29273243_1" WHERE "production_code"='IP04004';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29273243_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: What season number is the episode "The Gang Cracks The Liberty Bell"?
<|assistant|>
SELECT MIN("no_in_season") FROM "table1_29273243_1" WHERE "title"='\"The Gang Cracks the Liberty Bell\"';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29273243_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: How many people wrote "Paddy's Pub: The Worst Bar in Philadelphia"?
<|assistant|>
SELECT COUNT("written_by") FROM "table1_29273243_1" WHERE "title"='\"Paddy''s Pub: The Worst Bar in Philadelphia\"';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29273243_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: Who wrote episode number 11?
<|assistant|>
SELECT "written_by" FROM "table1_29273243_1" WHERE "no_in_season"=11;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29273243_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: Who wrote the episode "The Gang Gets Extreme: Home Makeover Edition"?
<|assistant|>
SELECT "written_by" FROM "table1_29273243_1" WHERE "title"='\"The Gang Gets Extreme: Home Makeover Edition\"';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"episode" real,
"airdate" text,
"iron_chef" text,
"challenger" text,
"theme_ingredient" text,
"winner" text
);
Question: Who was the challenger when guillaume brahimi was the iron chef?
<|assistant|>
SELECT "challenger" FROM "results" WHERE "iron_chef"='Guillaume Brahimi';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"episode" real,
"airdate" text,
"iron_chef" text,
"challenger" text,
"theme_ingredient" text,
"winner" text
);
Question: Who was the iron chef when herb Faust was the challenger?
<|assistant|>
SELECT "iron_chef" FROM "results" WHERE "challenger"='Herb Faust';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"episode" real,
"airdate" text,
"iron_chef" text,
"challenger" text,
"theme_ingredient" text,
"winner" text
);
Question: What date did the episode air when guy grossi won?
<|assistant|>
SELECT "airdate" FROM "results" WHERE "winner"='Guy Grossi';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "characters" (
"character" text,
"original_cast_2009" text,
"revival_cast_2010" text,
"wales_cast_2012" text,
"new_zealand_cast_2012" text,
"australian_cast_2012" text
);
Question: In the 2010 revival, who played the character that was played by Morgan Albrecht in the New Zealand 2012 production?
<|assistant|>
SELECT "revival_cast_2010" FROM "characters" WHERE "new_zealand_cast_2012"='Morgan Albrecht';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "characters" (
"character" text,
"original_cast_2009" text,
"revival_cast_2010" text,
"wales_cast_2012" text,
"new_zealand_cast_2012" text,
"australian_cast_2012" text
);
Question: In the 2012 production in Wales, who played the character that Owen Little played in Australia?
<|assistant|>
SELECT "wales_cast_2012" FROM "characters" WHERE "australian_cast_2012"='Owen Little';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "characters" (
"character" text,
"original_cast_2009" text,
"revival_cast_2010" text,
"wales_cast_2012" text,
"new_zealand_cast_2012" text,
"australian_cast_2012" text
);
Question: Who played Lily Cahill in the Australian 2012 production?
<|assistant|>
SELECT "australian_cast_2012" FROM "characters" WHERE "character"='Lily Cahill';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "characters" (
"character" text,
"original_cast_2009" text,
"revival_cast_2010" text,
"wales_cast_2012" text,
"new_zealand_cast_2012" text,
"australian_cast_2012" text
);
Question: In the 2012 Wales production, who played the character that Clementine Mills played in Australia?
<|assistant|>
SELECT "wales_cast_2012" FROM "characters" WHERE "australian_cast_2012"='Clementine Mills';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "characters" (
"character" text,
"original_cast_2009" text,
"revival_cast_2010" text,
"wales_cast_2012" text,
"new_zealand_cast_2012" text,
"australian_cast_2012" text
);
Question: In the original cast, who played the character portrayed by Edward Franklin in the revival?
<|assistant|>
SELECT "original_cast_2009" FROM "characters" WHERE "revival_cast_2010"='Edward Franklin';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "characters" (
"character" text,
"original_cast_2009" text,
"revival_cast_2010" text,
"wales_cast_2012" text,
"new_zealand_cast_2012" text,
"australian_cast_2012" text
);
Question: In the original cast, who played the character portrayed by Christopher Harris in Wales?
<|assistant|>
SELECT "original_cast_2009" FROM "characters" WHERE "wales_cast_2012"='Christopher Harris';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29296103_10" (
"week_of" text,
"tournament" text,
"champion" text,
"runner_up" text,
"semifinalists" text,
"quarterfinalists" text
);
Question: which tournament was the champion nick saviano florin segărceanu 6–3, 6–4?
<|assistant|>
SELECT "tournament" FROM "table1_29296103_10" WHERE "champion"='Nick Saviano Florin Segărceanu 6–3, 6–4';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29296103_10" (
"week_of" text,
"tournament" text,
"champion" text,
"runner_up" text,
"semifinalists" text,
"quarterfinalists" text
);
Question: Which tournament was runner-up paul annacone eric korita?
<|assistant|>
SELECT "tournament" FROM "table1_29296103_10" WHERE "runner_up"='Paul Annacone Eric Korita';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29296103_10" (
"week_of" text,
"tournament" text,
"champion" text,
"runner_up" text,
"semifinalists" text,
"quarterfinalists" text
);
Question: Who were the semifinalists when sammy giammalva was runner-up?
<|assistant|>
SELECT "semifinalists" FROM "table1_29296103_10" WHERE "runner_up"='Sammy Giammalva';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29296103_10" (
"week_of" text,
"tournament" text,
"champion" text,
"runner_up" text,
"semifinalists" text,
"quarterfinalists" text
);
Question: which tournament was the champion pat cash 4–6, 6–4, 6–3?
<|assistant|>
SELECT "tournament" FROM "table1_29296103_10" WHERE "champion"='Pat Cash 4–6, 6–4, 6–3';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29296103_10" (
"week_of" text,
"tournament" text,
"champion" text,
"runner_up" text,
"semifinalists" text,
"quarterfinalists" text
);
Question: Which tournament was on the week of 24 october and champion is matt doyle 1–6, 6–1, 6–2?
<|assistant|>
SELECT "tournament" FROM "table1_29296103_10" WHERE "week_of"='24 October' AND "champion"='Matt Doyle 1–6, 6–1, 6–2';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29296103_10" (
"week_of" text,
"tournament" text,
"champion" text,
"runner_up" text,
"semifinalists" text,
"quarterfinalists" text
);
Question: How many runner ups were there for the cologne , germany carpet – $75,000 – s32/d16 when the champion was matt doyle 1–6, 6–1, 6–2?
<|assistant|>
SELECT COUNT("runner_up") FROM "table1_29296103_10" WHERE "tournament"='Cologne , Germany Carpet – $75,000 – S32/D16' AND "champion"='Matt Doyle 1–6, 6–1, 6–2';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pune_lonavala_service" (
"train_number" real,
"train_name" text,
"departure_pune" text,
"arrival_lonavla" text,
"frequency" text,
"origin" text
);
Question: which train number departs pune at 13:00
<|assistant|>
SELECT "train_number" FROM "pune_lonavala_service" WHERE "departure_pune"='13:00';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pune_lonavala_service" (
"train_number" real,
"train_name" text,
"departure_pune" text,
"arrival_lonavla" text,
"frequency" text,
"origin" text
);
Question: which train number arrives in lonavla at 17:45
<|assistant|>
SELECT "train_number" FROM "pune_lonavala_service" WHERE "arrival_lonavla"='17:45';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pune_lonavala_service" (
"train_number" real,
"train_name" text,
"departure_pune" text,
"arrival_lonavla" text,
"frequency" text,
"origin" text
);
Question: which train name arrives in lonavla at 17:45
<|assistant|>
SELECT "train_name" FROM "pune_lonavala_service" WHERE "arrival_lonavla"='17:45';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pune_lonavala_service" (
"train_number" real,
"train_name" text,
"departure_pune" text,
"arrival_lonavla" text,
"frequency" text,
"origin" text
);
Question: how many trains run daily to lonavla and arrive at 12:25
<|assistant|>
SELECT COUNT("train_number") FROM "pune_lonavala_service" WHERE "frequency"='Daily' AND "arrival_lonavla"='12:25';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pune_lonavala_service" (
"train_number" real,
"train_name" text,
"departure_pune" text,
"arrival_lonavla" text,
"frequency" text,
"origin" text
);
Question: how many trains have the number 99808
<|assistant|>
SELECT COUNT("train_name") FROM "pune_lonavala_service" WHERE "train_number"=99808;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pune_lonavala_service" (
"train_number" real,
"train_name" text,
"departure_pune" text,
"arrival_lonavla" text,
"frequency" text,
"origin" text
);
Question: what time does the train that arrives in lonavla at 22:22 depart pune
<|assistant|>
SELECT "departure_pune" FROM "pune_lonavala_service" WHERE "arrival_lonavla"='22:22';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29295463_9" (
"week_of" text,
"tournament" text,
"champion" text,
"runner_up" text,
"semifinalists" text,
"quarterfinalists" text
);
Question: Who became the champion for the 1984 Grand Prix where Marty Davis was the runner-up?
<|assistant|>
SELECT "champion" FROM "table1_29295463_9" WHERE "runner_up"='Marty Davis';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29295463_9" (
"week_of" text,
"tournament" text,
"champion" text,
"runner_up" text,
"semifinalists" text,
"quarterfinalists" text
);
Question: Who were the quarter-finalists in the event where the champion was Terry Moor 3-6, 7-6, 6-2?
<|assistant|>
SELECT "quarterfinalists" FROM "table1_29295463_9" WHERE "champion"='Terry Moor 3-6, 7-6, 6-2';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29295463_9" (
"week_of" text,
"tournament" text,
"champion" text,
"runner_up" text,
"semifinalists" text,
"quarterfinalists" text
);
Question: Who was the champion in the tournament where Scott Davis Chris Dunk was the runner up?
<|assistant|>
SELECT "champion" FROM "table1_29295463_9" WHERE "runner_up"='Scott Davis Chris Dunk';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29295463_9" (
"week_of" text,
"tournament" text,
"champion" text,
"runner_up" text,
"semifinalists" text,
"quarterfinalists" text
);
Question: Who were the semifinalists in the tournament where Mats Wilander 7-6, 6-3 was declared the champion?
<|assistant|>
SELECT "semifinalists" FROM "table1_29295463_9" WHERE "champion"='Mats Wilander 7-6, 6-3';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1850s" (
"year" real,
"number_of_tropical_storms" real,
"number_of_hurricanes" real,
"number_of_major_hurricanes" real,
"deaths" text,
"strongest_storm" text
);
Question: How many years saw 3 hurricanes wherein the strongest storm was level three?
<|assistant|>
SELECT COUNT("year") FROM "1850s" WHERE "number_of_hurricanes"=3 AND "strongest_storm"='Three';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1860s" (
"year" real,
"number_of_tropical_storms" real,
"number_of_hurricanes" real,
"number_of_major_hurricanes" real,
"deaths" text,
"strongest_storm" text
);
Question: What is the largest overall number of major hurricanes?
<|assistant|>
SELECT MAX("number_of_major_hurricanes") FROM "1860s";<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1860s" (
"year" real,
"number_of_tropical_storms" real,
"number_of_hurricanes" real,
"number_of_major_hurricanes" real,
"deaths" text,
"strongest_storm" text
);
Question: When the death is none what is the number of major hurricanes?
<|assistant|>
SELECT COUNT("number_of_major_hurricanes") FROM "1860s" WHERE "deaths"='None';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1860s" (
"year" real,
"number_of_tropical_storms" real,
"number_of_hurricanes" real,
"number_of_major_hurricanes" real,
"deaths" text,
"strongest_storm" text
);
Question: What is the lowest overall number of hurricanes?
<|assistant|>
SELECT MIN("number_of_hurricanes") FROM "1860s";<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29302711_13" (
"rk" real,
"name" text,
"country" text,
"matches_played" real,
"matches_won" real,
"points" real,
"prize_money_usd" real
);
Question: What country offered a prize of 66400 US dollars?
<|assistant|>
SELECT "country" FROM "table1_29302711_13" WHERE "prize_money_usd"=66400;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29302711_13" (
"rk" real,
"name" text,
"country" text,
"matches_played" real,
"matches_won" real,
"points" real,
"prize_money_usd" real
);
Question: What country does the player named Mark Cox play for?
<|assistant|>
SELECT "country" FROM "table1_29302711_13" WHERE "name"='Mark Cox';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1870s" (
"year" real,
"number_of_tropical_storms" real,
"number_of_hurricanes" real,
"number_of_major_hurricanes" real,
"deaths" text,
"strongest_storm" text
);
Question: How many deaths did the eyar with exactly 6 hurricanes have?
<|assistant|>
SELECT COUNT("deaths") FROM "1870s" WHERE "number_of_hurricanes"=6;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1870s" (
"year" real,
"number_of_tropical_storms" real,
"number_of_hurricanes" real,
"number_of_major_hurricanes" real,
"deaths" text,
"strongest_storm" text
);
Question: What is the maximum number of tropical storms in the year that had exactly 34 deaths?
<|assistant|>
SELECT MAX("number_of_tropical_storms") FROM "1870s" WHERE "deaths"='34';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1870s" (
"year" real,
"number_of_tropical_storms" real,
"number_of_hurricanes" real,
"number_of_major_hurricanes" real,
"deaths" text,
"strongest_storm" text
);
Question: How many deaths did the year with 10 hurricanes and exactly 1 major hurricane have?
<|assistant|>
SELECT "deaths" FROM "1870s" WHERE "number_of_hurricanes"=10 AND "number_of_major_hurricanes"=1;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29329432_1" (
"no" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
Question: Name the number of episodes that jim barnes wrote for 1.82 million viewers
<|assistant|>
SELECT COUNT("no") FROM "table1_29329432_1" WHERE "written_by"='Jim Barnes' AND "u_s_viewers_million"='1.82';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29329432_1" (
"no" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
Question: Name the least number for production code 3x6266
<|assistant|>
SELECT MIN("no") FROM "table1_29329432_1" WHERE "production_code"='3X6266';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cube_film_series" (
"name" text,
"occupation" text,
"gender" text,
"prison_connection" text,
"played_by" text,
"status" text
);
Question: How many characters does Maurice Dean Wint play in the movie Cube?
<|assistant|>
SELECT COUNT("status") FROM "cube_film_series" WHERE "played_by"='Maurice Dean Wint';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cube_film_series" (
"name" text,
"occupation" text,
"gender" text,
"prison_connection" text,
"played_by" text,
"status" text
);
Question: What is Joan Leaven's occupation?
<|assistant|>
SELECT "occupation" FROM "cube_film_series" WHERE "name"='Joan Leaven';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cube_film_series" (
"name" text,
"occupation" text,
"gender" text,
"prison_connection" text,
"played_by" text,
"status" text
);
Question: What gender is Quentin?
<|assistant|>
SELECT "gender" FROM "cube_film_series" WHERE "name"='Quentin';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cube_film_series" (
"name" text,
"occupation" text,
"gender" text,
"prison_connection" text,
"played_by" text,
"status" text
);
Question: Who played the mathematics student?
<|assistant|>
SELECT "played_by" FROM "cube_film_series" WHERE "occupation"='Mathematics Student';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cube_film_series" (
"name" text,
"occupation" text,
"gender" text,
"prison_connection" text,
"played_by" text,
"status" text
);
Question: How many prisons is Joan Leaven connected with?
<|assistant|>
SELECT COUNT("prison_connection") FROM "cube_film_series" WHERE "name"='Joan Leaven';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification_leadership" (
"stage" real,
"winner" text,
"general_classification" text,
"mountains_classification" text,
"sprint_classification" text,
"young_rider_classification" text,
"team_classification" text,
"aggressive_rider" text
);
Question: What is aggressive rider Richie Porte's team classifaction?
<|assistant|>
SELECT "team_classification" FROM "classification_leadership" WHERE "aggressive_rider"='Richie Porte';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification_leadership" (
"stage" real,
"winner" text,
"general_classification" text,
"mountains_classification" text,
"sprint_classification" text,
"young_rider_classification" text,
"team_classification" text,
"aggressive_rider" text
);
Question: Thomas de Gendt performed on what stage as aggressive rider?
<|assistant|>
SELECT MAX("stage") FROM "classification_leadership" WHERE "aggressive_rider"='Thomas De Gendt';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification_leadership" (
"stage" real,
"winner" text,
"general_classification" text,
"mountains_classification" text,
"sprint_classification" text,
"young_rider_classification" text,
"team_classification" text,
"aggressive_rider" text
);
Question: Where Luke Durbridge is the aggressive rider who is listed as the young rider classification?
<|assistant|>
SELECT "young_rider_classification" FROM "classification_leadership" WHERE "aggressive_rider"='Luke Durbridge';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification_leadership" (
"stage" real,
"winner" text,
"general_classification" text,
"mountains_classification" text,
"sprint_classification" text,
"young_rider_classification" text,
"team_classification" text,
"aggressive_rider" text
);
Question: Who is listed under the general classifcation where Ben Swift won and Cameron Meyer was listed under the young rider?
<|assistant|>
SELECT "general_classification" FROM "classification_leadership" WHERE "winner"='Ben Swift' AND "young_rider_classification"='Cameron Meyer';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification_leadership" (
"stage" real,
"winner" text,
"general_classification" text,
"mountains_classification" text,
"sprint_classification" text,
"young_rider_classification" text,
"team_classification" text,
"aggressive_rider" text
);
Question: Who is the sprint classification where Francisco Ventoso wins?
<|assistant|>
SELECT "sprint_classification" FROM "classification_leadership" WHERE "winner"='Francisco Ventoso';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29302781_12" (
"week_of" text,
"tournament" text,
"champion" text,
"runner_up" text,
"semifinalists" text,
"quarterfinalists" text
);
Question: In the week of what was the runner-up Pat Du Pré?
<|assistant|>
SELECT "week_of" FROM "table1_29302781_12" WHERE "runner_up"='Pat Du Pré';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29302781_12" (
"week_of" text,
"tournament" text,
"champion" text,
"runner_up" text,
"semifinalists" text,
"quarterfinalists" text
);
Question: Who were the semifinalists when the runner-up was Peter Feigl?
<|assistant|>
SELECT "semifinalists" FROM "table1_29302781_12" WHERE "runner_up"='Peter Feigl';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29302781_12" (
"week_of" text,
"tournament" text,
"champion" text,
"runner_up" text,
"semifinalists" text,
"quarterfinalists" text
);
Question: Who were the semifinalists when the runner-up was Pat Du Pré?
<|assistant|>
SELECT "semifinalists" FROM "table1_29302781_12" WHERE "runner_up"='Pat Du Pré';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29302781_12" (
"week_of" text,
"tournament" text,
"champion" text,
"runner_up" text,
"semifinalists" text,
"quarterfinalists" text
);
Question: Who were the semifinalists in the week of 13 November when the runner-up was Pat Du Pré?
<|assistant|>
SELECT "semifinalists" FROM "table1_29302781_12" WHERE "week_of"='13 November' AND "runner_up"='Pat Du Pré';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29302816_8" (
"week_of" text,
"tournament" text,
"champion" text,
"runner_up" text,
"semifinalists" text,
"quarterfinalists" text
);
Question: What are the quarterfinalists when the runner up is andrew pattison?
<|assistant|>
SELECT "quarterfinalists" FROM "table1_29302816_8" WHERE "runner_up"='Andrew Pattison';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_293465_1" (
"rank_2011" real,
"country" text,
"production_in_2011_1_000_ton" real,
"share_2011" text,
"rank_2010" real,
"production_in_2010_1_000_ton" real
);
Question: When indonesia is the country what is the rank of 2010?
<|assistant|>
SELECT "rank_2010" FROM "table1_293465_1" WHERE "country"='Indonesia';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_293465_1" (
"rank_2011" real,
"country" text,
"production_in_2011_1_000_ton" real,
"share_2011" text,
"rank_2010" real,
"production_in_2010_1_000_ton" real
);
Question: When 5 is the rank of 2011 what is the country?
<|assistant|>
SELECT "country" FROM "table1_293465_1" WHERE "rank_2011"=5;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_293465_1" (
"rank_2011" real,
"country" text,
"production_in_2011_1_000_ton" real,
"share_2011" text,
"rank_2010" real,
"production_in_2010_1_000_ton" real
);
Question: When sweden is the country what is the highest production in 2010 (1,000 ton)?
<|assistant|>
SELECT MAX("production_in_2010_1_000_ton") FROM "table1_293465_1" WHERE "country"='Sweden';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_293465_1" (
"rank_2011" real,
"country" text,
"production_in_2011_1_000_ton" real,
"share_2011" text,
"rank_2010" real,
"production_in_2010_1_000_ton" real
);
Question: When 75849 is the production in 2010 (1,000 ton) what is the production in 2011 (1,000 ton)?
<|assistant|>
SELECT "production_in_2011_1_000_ton" FROM "table1_293465_1" WHERE "production_in_2010_1_000_ton"=75849;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_calendar_and_results" (
"round" real,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text
);
Question: Valmir Benavides won pole position at which circuit?
<|assistant|>
SELECT "circuit" FROM "race_calendar_and_results" WHERE "pole_position"='Valmir Benavides';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_calendar_and_results" (
"round" real,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text
);
Question: Who was the winner at the track where Roberval Andrade won pole, Felipe Giaffone had the fastest lap, and RVR Corinthians Motorsport was the winning team?
<|assistant|>
SELECT "winning_driver" FROM "race_calendar_and_results" WHERE "pole_position"='Roberval Andrade' AND "fastest_lap"='Felipe Giaffone' AND "winning_team"='RVR Corinthians Motorsport';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_situation" (
"provider" text,
"country" text,
"subscribers_2005_thousands" real,
"subscribers_2006_thousands" real,
"growth_pct" text
);
Question: What is the fewest number of 2005 subscribers for Vodafone?
<|assistant|>
SELECT MIN("subscribers_2005_thousands") FROM "current_situation" WHERE "provider"='Vodafone';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_situation" (
"provider" text,
"country" text,
"subscribers_2005_thousands" real,
"subscribers_2006_thousands" real,
"growth_pct" text
);
Question: What is the maximum number of 2006 subscribers for Glo Mobile?
<|assistant|>
SELECT MAX("subscribers_2006_thousands") FROM "current_situation" WHERE "provider"='Glo Mobile';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_situation" (
"provider" text,
"country" text,
"subscribers_2005_thousands" real,
"subscribers_2006_thousands" real,
"growth_pct" text
);
Question: What is the maximum number of 2006 subscribers for Mobilis?
<|assistant|>
SELECT MAX("subscribers_2006_thousands") FROM "current_situation" WHERE "provider"='Mobilis';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_situation" (
"provider" text,
"country" text,
"subscribers_2005_thousands" real,
"subscribers_2006_thousands" real,
"growth_pct" text
);
Question: How many subscribers, in 2006, does Glo Mobile have?
<|assistant|>
SELECT "subscribers_2006_thousands" FROM "current_situation" WHERE "provider"='Glo Mobile';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_situation" (
"provider" text,
"country" text,
"subscribers_2005_thousands" real,
"subscribers_2006_thousands" real,
"growth_pct" text
);
Question: How many 2006 subscribers are named Vodafone?
<|assistant|>
SELECT COUNT("subscribers_2006_thousands") FROM "current_situation" WHERE "provider"='Vodafone';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "personnel_and_sponsorship" (
"team" text,
"chairman" text,
"head_coach" text,
"captain" text,
"kitmaker" text,
"shirt_sponsor" text
);
Question: Name the number of captains for barcelona
<|assistant|>
SELECT COUNT("captain") FROM "personnel_and_sponsorship" WHERE "team"='Barcelona';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "personnel_and_sponsorship" (
"team" text,
"chairman" text,
"head_coach" text,
"captain" text,
"kitmaker" text,
"shirt_sponsor" text
);
Question: Name the chairman for iker casillas
<|assistant|>
SELECT "chairman" FROM "personnel_and_sponsorship" WHERE "captain"='Iker Casillas';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "personnel_and_sponsorship" (
"team" text,
"chairman" text,
"head_coach" text,
"captain" text,
"kitmaker" text,
"shirt_sponsor" text
);
Question: Name the team for javier clemente
<|assistant|>
SELECT "team" FROM "personnel_and_sponsorship" WHERE "head_coach"='Javier Clemente';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29391888_1" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: What is the season # for the production code 3.89?
<|assistant|>
SELECT "season_num" FROM "table1_29391888_1" WHERE "production_code"='3.89';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29391888_1" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: What is the series # for the episode titled "words"?
<|assistant|>
SELECT MAX("series_num") FROM "table1_29391888_1" WHERE "title"='\"Words\"';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29391888_1" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: Who wrote the episode that was directed by Kevin Inch?
<|assistant|>
SELECT "written_by" FROM "table1_29391888_1" WHERE "directed_by"='Kevin Inch';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29391888_1" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: What is the original air date for the season# 2?
<|assistant|>
SELECT "original_air_date" FROM "table1_29391888_1" WHERE "season_num"=2;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29391888_1" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: What is the production code for the episode whose original air date was May15,2000?
<|assistant|>
SELECT "production_code" FROM "table1_29391888_1" WHERE "original_air_date"='May15,2000';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29391888_1" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: Who directed the episode titled "who nose"?
<|assistant|>
SELECT "directed_by" FROM "table1_29391888_1" WHERE "title"='\"Who Nose\"';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "roster" (
"num" real,
"name" text,
"position" text,
"height" text,
"weight" real,
"year" text,
"former_school" text,
"hometown" text
);
Question: What is the former school of the player from Detroit, MI?
<|assistant|>
SELECT "former_school" FROM "roster" WHERE "hometown"='Detroit, MI';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "roster" (
"num" real,
"name" text,
"position" text,
"height" text,
"weight" real,
"year" text,
"former_school" text,
"hometown" text
);
Question: What is the hometown of Jarrid Famous?
<|assistant|>
SELECT "hometown" FROM "roster" WHERE "name"='Jarrid Famous';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "roster" (
"num" real,
"name" text,
"position" text,
"height" text,
"weight" real,
"year" text,
"former_school" text,
"hometown" text
);
Question: What number is the player whose hometown is Tampa, FL?
<|assistant|>
SELECT "num" FROM "roster" WHERE "hometown"='Tampa, FL';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "roster" (
"num" real,
"name" text,
"position" text,
"height" text,
"weight" real,
"year" text,
"former_school" text,
"hometown" text
);
Question: What year is the player whose number is 31?
<|assistant|>
SELECT "year" FROM "roster" WHERE "num"=31;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "roster" (
"num" real,
"name" text,
"position" text,
"height" text,
"weight" real,
"year" text,
"former_school" text,
"hometown" text
);
Question: What is the height of Anthony Crater?
<|assistant|>
SELECT "height" FROM "roster" WHERE "name"='Anthony Crater';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "roster" (
"num" real,
"name" text,
"position" text,
"height" text,
"weight" real,
"year" text,
"former_school" text,
"hometown" text
);
Question: What is the former school of the player from North Port, FL?
<|assistant|>
SELECT "former_school" FROM "roster" WHERE "hometown"='North Port, FL';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_recipient_countries_of_remittances_i" (
"country" text,
"remittances_2008" text,
"remittances_2009" text,
"remittances_2010" text,
"remittances_2011" text
);
Question: how many countries have remittances in 2008 of 9.07?
<|assistant|>
SELECT COUNT("country") FROM "top_recipient_countries_of_remittances_i" WHERE "remittances_2008"='9.07';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_recipient_countries_of_remittances_i" (
"country" text,
"remittances_2008" text,
"remittances_2009" text,
"remittances_2010" text,
"remittances_2011" text
);
Question: how many remittances in 2010 where the remittances is 19.73?
<|assistant|>
SELECT COUNT("remittances_2010") FROM "top_recipient_countries_of_remittances_i" WHERE "remittances_2009"='19.73';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_recipient_countries_of_remittances_i" (
"country" text,
"remittances_2008" text,
"remittances_2009" text,
"remittances_2010" text,
"remittances_2011" text
);
Question: how many remittances in 2010 for nigeria?
<|assistant|>
SELECT "remittances_2010" FROM "top_recipient_countries_of_remittances_i" WHERE "country"='Nigeria';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_recipient_countries_of_remittances_i" (
"country" text,
"remittances_2008" text,
"remittances_2009" text,
"remittances_2010" text,
"remittances_2011" text
);
Question: how many countiers had 2009 remittances of 6.02?
<|assistant|>
SELECT COUNT("country") FROM "top_recipient_countries_of_remittances_i" WHERE "remittances_2009"='6.02';<|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.