text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "external_links" (
"year" real,
"champion" text,
"score" text,
"defeated" text,
"location" text
);
Question: what is the location when the champion is brigham young-hawaii, defeated is western o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "external_links" (
"year" real,
"champion" text,
"score" text,
"defeated" text,
"location" text
);
Question: what is the year when the location is san diego, california and defeated is houston b... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "units" (
"unit" text,
"type" text,
"gross_mw" text,
"construction_start" text,
"operation_start" text
);
Question: Operation start of 2015 has what gross mw?
<|assistant|>
SELECT "gross_mw" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "units" (
"unit" text,
"type" text,
"gross_mw" text,
"construction_start" text,
"operation_start" text
);
Question: Gross MW of 220, and a Unit of kakrapar 1 involves what operation start?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "units" (
"unit" text,
"type" text,
"gross_mw" text,
"construction_start" text,
"operation_start" text
);
Question: Type of phase ii has what gross mw?
<|assistant|>
SELECT "gross_mw" FROM "unit... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "units" (
"unit" text,
"type" text,
"gross_mw" text,
"construction_start" text,
"operation_start" text
);
Question: Construction start of phase i includes what type?
<|assistant|>
SELECT "type" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "units" (
"unit" text,
"type" text,
"gross_mw" text,
"construction_start" text,
"operation_start" text
);
Question: Construction start of 1 december 1984 is what unit?
<|assistant|>
SELECT "unit... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "units" (
"unit" text,
"type" text,
"gross_mw" text,
"construction_start" text,
"operation_start" text
);
Question: Construction start of phase ii has what operation start?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sanskrit_and_pali_influence" (
"value" text,
"khmer" text,
"word_form" text,
"ungegn" text,
"ala_lc" text,
"notes" text
);
Question: what's the ungen for ត្រីទស?
<|assistant|>
SELECT "ungegn"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sanskrit_and_pali_influence" (
"value" text,
"khmer" text,
"word_form" text,
"ungegn" text,
"ala_lc" text,
"notes" text
);
Question: what notes have the khmer ២៨?
<|assistant|>
SELECT "notes"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sanskrit_and_pali_influence" (
"value" text,
"khmer" text,
"word_form" text,
"ungegn" text,
"ala_lc" text,
"notes" text
);
Question: what's the ungegn for the ១០០ khmer?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "inhabited_territories_of_the_united_stat" (
"territory" text,
"abbr" text,
"capital" text,
"acquired" real,
"territorial_status" text,
"population_2010" real,
"house_seat" real
);
Question:... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "inhabited_territories_of_the_united_stat" (
"territory" text,
"abbr" text,
"capital" text,
"acquired" real,
"territorial_status" text,
"population_2010" real,
"house_seat" real
);
Question:... |
<|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: Name the termination of mission for appointe... |
<|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: Name the representative with presentation of... |
<|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: Name the representative appointed by george ... |
<|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: Name the title with representative edward h.... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" real
);
Question: Which Country that has 600?
<|assistant|>
SELECT "country" FROM "final_round... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What is the to par that has macdonald smith as the player?
<|assistant|>
SELECT "to_par" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: Which country has t6 as a place and 75-70=145 as the score?
<|assistant|>
SELECT "country" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What is the to par that has jimmy hines as the player?
<|assistant|>
SELECT "to_par" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: Which score has t3 as the place?
<|assistant|>
SELECT "score" FROM "second_round" WHERE "pl... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: Which place has horton smith as the player?
<|assistant|>
SELECT "place" FROM "second_round... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: Which place has United States as the country and Craig Wood as the player?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
);
Question: What was the 2013 finish for the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
);
Question: What was the 2012 finish in the U... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
);
Question: Which tournament had a 2010 finis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "the_championship" (
"18_september_2007_19_45" text,
"preston_north_end" text,
"home" text,
"won_2_1" text,
"5_754" real
);
Question: Name the 18th september 2007-19:45 with preston north end of... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "the_championship" (
"18_september_2007_19_45" text,
"preston_north_end" text,
"home" text,
"won_2_1" text,
"5_754" real
);
Question: Name the won 2-1 for preston north end of preston
<|assistan... |
<|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 is the qualification for rank of 29 in 1957?
<|assistant|>
SELECT "qual" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What is the Place when the To par was +3 and Score was 74-73=147?
<|assistant|>
SELECT "pla... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: When the To par is E, what is the Score?
<|assistant|>
SELECT "score" FROM "second_round" W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What was Lloyd Mangrum's Score?
<|assistant|>
SELECT "score" FROM "second_round" WHERE "pla... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What Dave Douglas' Place?
<|assistant|>
SELECT "place" FROM "second_round" WHERE "player"='... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What's Chick Harbert's To par?
<|assistant|>
SELECT "to_par" FROM "second_round" WHERE "pla... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What United States Player has a To par of +4 and a Score of 71-77=148?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" real
);
Question: What is South Korea's to par value?
<|assistant|>
SELECT "to_par" FROM "fina... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" real
);
Question: What are Tiger Woods' average earnings?
<|assistant|>
SELECT AVG("money") FR... |
<|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,
"round" real,
"time" text,
"location" text
);
Question: What's the method for a record of 4-2 and rou... |
<|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,
"round" real,
"time" text,
"location" text
);
Question: Where's the location for the opponent James Z... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "house_of_schleswig_holstein_sonderburg_g" (
"name" text,
"birth" text,
"marriage" text,
"became_consort" text,
"ceased_to_be_consort" text,
"spouse" text
);
Question: Name the spouse for loui... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "house_of_schleswig_holstein_sonderburg_g" (
"name" text,
"birth" text,
"marriage" text,
"became_consort" text,
"ceased_to_be_consort" text,
"spouse" text
);
Question: Name the became consort ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "house_of_schleswig_holstein_sonderburg_g" (
"name" text,
"birth" text,
"marriage" text,
"became_consort" text,
"ceased_to_be_consort" text,
"spouse" text
);
Question: Name the marriagefor cea... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "house_of_schleswig_holstein_sonderburg_g" (
"name" text,
"birth" text,
"marriage" text,
"became_consort" text,
"ceased_to_be_consort" text,
"spouse" text
);
Question: Tell me the name of the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "house_of_schleswig_holstein_sonderburg_g" (
"name" text,
"birth" text,
"marriage" text,
"became_consort" text,
"ceased_to_be_consort" text,
"spouse" text
);
Question: Name the birth of the pe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
Question: What was the rank of the player in lane 6?
<|assistant|>
SELECT AVG("rank") FROM "semifinal_2"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_24_hours_of_le_mans_results" (
"year" real,
"class" text,
"tyres" text,
"team" text,
"co_drivers" text,
"laps" real,
"pos" text,
"class_pos" text
);
Question: Name the average ye... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "language" (
"language" text,
"number" text,
"percentage_pct" text,
"males" text,
"females" text
);
Question: Which Language has a Number of 553 633?
<|assistant|>
SELECT "language" FROM "langua... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "language" (
"language" text,
"number" text,
"percentage_pct" text,
"males" text,
"females" text
);
Question: Which Males have a percentage of 0.42?
<|assistant|>
SELECT "males" FROM "language" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "language" (
"language" text,
"number" text,
"percentage_pct" text,
"males" text,
"females" text
);
Question: What's the Language with a percentage of 6.49?
<|assistant|>
SELECT "language" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "language" (
"language" text,
"number" text,
"percentage_pct" text,
"males" text,
"females" text
);
Question: What Number has a Language listed as other?
<|assistant|>
SELECT "number" FROM "lang... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medals_table" (
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: what is the highest gold count when total is more than 3, bronze less than 3, and nation of b... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medals_table" (
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: with silver count at 0, what is the lowest bronze count?
<|assistant|>
SELECT MIN("bronze") F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medals_table" (
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: what is the gold count with total less than 3 and more than 1 silver?
<|assistant|>
SELECT MI... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "jdf_coast_guard" (
"name_of_ship" text,
"length" text,
"max_speed" text,
"crew_capacity" text,
"class" text,
"builder" text,
"delivery" real
);
Question: Who built the ship that is 42.8 m l... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "executive_commissioners" (
"year" text,
"human_resources_operations" text,
"local_affairs" text,
"academic_university_affairs" text,
"external_affairs" text
);
Question: Who was the Human Resou... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "executive_commissioners" (
"year" text,
"human_resources_operations" text,
"local_affairs" text,
"academic_university_affairs" text,
"external_affairs" text
);
Question: Who was in local affair... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "executive_commissioners" (
"year" text,
"human_resources_operations" text,
"local_affairs" text,
"academic_university_affairs" text,
"external_affairs" text
);
Question: Who was in Human Resour... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "executive_commissioners" (
"year" text,
"human_resources_operations" text,
"local_affairs" text,
"academic_university_affairs" text,
"external_affairs" text
);
Question: Who was in external aff... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "executive_commissioners" (
"year" text,
"human_resources_operations" text,
"local_affairs" text,
"academic_university_affairs" text,
"external_affairs" text
);
Question: Who was in local affair... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "executive_commissioners" (
"year" text,
"human_resources_operations" text,
"local_affairs" text,
"academic_university_affairs" text,
"external_affairs" text
);
Question: Who was in Academic & U... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1994" (
"sydney" text,
"melbourne" text,
"perth" text,
"adelaide" text,
"gold_coast" text,
"auckland" text
);
Question: Which Perth's gold coast and Adelaide were yes when Auckland was no?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1994" (
"sydney" text,
"melbourne" text,
"perth" text,
"adelaide" text,
"gold_coast" text,
"auckland" text
);
Question: Which Melbourne had a gold coast and sydney which were yes, but an adel... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1994" (
"sydney" text,
"melbourne" text,
"perth" text,
"adelaide" text,
"gold_coast" text,
"auckland" text
);
Question: Which Adelaide's Melbourne and Perth were yes when Auckland was no?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1994" (
"sydney" text,
"melbourne" text,
"perth" text,
"adelaide" text,
"gold_coast" text,
"auckland" text
);
Question: Which Sydney's Melbourne was no, when Auckland was yes?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1994" (
"sydney" text,
"melbourne" text,
"perth" text,
"adelaide" text,
"gold_coast" text,
"auckland" text
);
Question: Which Syndney's Gold coast, Adelaide, Melbourne, and Auckland were all ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1994" (
"sydney" text,
"melbourne" text,
"perth" text,
"adelaide" text,
"gold_coast" text,
"auckland" text
);
Question: Which Adelaide's Melbourne, Sydney, and Gold Coast were all no?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "stage_results" (
"date" text,
"course" text,
"distance" text,
"type" text,
"winner" text
);
Question: Name the date which has type of plain stage
<|assistant|>
SELECT "date" FROM "stage_results... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "stage_results" (
"date" text,
"course" text,
"distance" text,
"type" text,
"winner" text
);
Question: Name the distance for Course of vittorio veneto to marina romea
<|assistant|>
SELECT "dista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_6_3_titles_3_runners_up" (
"outcome" text,
"date" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: Who was the partner that played a match on a grass ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_6_3_titles_3_runners_up" (
"outcome" text,
"date" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: What was the score of the match in which mardy fish... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_6_3_titles_3_runners_up" (
"outcome" text,
"date" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: Who were the opponents in the match that was played... |
<|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: What is the time when the opp... |
<|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: what is the total number of r... |
<|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: what is the method when the t... |
<|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: what is the time when the eve... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_rankings" (
"rank" real,
"team" text,
"country" text,
"value_m" real,
"debt_as_pct_of_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 "2009_rankings" (
"rank" real,
"team" text,
"country" text,
"value_m" real,
"debt_as_pct_of_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 "2009_rankings" (
"rank" real,
"team" text,
"country" text,
"value_m" real,
"debt_as_pct_of_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 "2009_rankings" (
"rank" real,
"team" text,
"country" text,
"value_m" real,
"debt_as_pct_of_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 "1989_90_liverpool_f_c_season" (
"round" text,
"kick_off" text,
"opponents" text,
"h_a" text,
"result" text,
"attendance" real,
"report" text
);
Question: What is the result for an H/A of H ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1989_90_liverpool_f_c_season" (
"round" text,
"kick_off" text,
"opponents" text,
"h_a" text,
"result" text,
"attendance" real,
"report" text
);
Question: What was the kickoff date for the r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What country was Henry Picard from?
<|assistant|>
SELECT "country" FROM "third_round" WHERE ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "installations" (
"name" text,
"park" text,
"country" text,
"inversions" real,
"opened" text,
"status" text
);
Question: Name the sum of inversions for opened of april 20, 2002
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "installations" (
"name" text,
"park" text,
"country" text,
"inversions" real,
"opened" text,
"status" text
);
Question: Name the opened for spain
<|assistant|>
SELECT "opened" FROM "installat... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "installations" (
"name" text,
"park" text,
"country" text,
"inversions" real,
"opened" text,
"status" text
);
Question: Name the status for six flags new england
<|assistant|>
SELECT "status"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" text
);
Question: Name the to par with money of 200,000 for australia
<|assistant|>
SELECT "to... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" text
);
Question: Name the money for ireland
<|assistant|>
SELECT "money" FROM "final_round" W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" text
);
Question: Name the money for pádraig harrington
<|assistant|>
SELECT "money" FROM "fin... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" text
);
Question: Name the to par for score of 69-73-68-70=280
<|assistant|>
SELECT "to_par" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" text
);
Question: Name the money for the to par of -6
<|assistant|>
SELECT "money" FROM "final... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_health_minsters" (
"minister" text,
"party" text,
"governments" text,
"term_start" text,
"term_end" text
);
Question: On what date or dates did the term with the Centre Party end?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_health_minsters" (
"minister" text,
"party" text,
"governments" text,
"term_start" text,
"term_end" text
);
Question: When did the term end for the term that had government 27 and Minis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_calendar" (
"race_title" text,
"circuit" text,
"location_state" text,
"date" text,
"winner" text,
"team" text
);
Question: What is the location/state of the race on the Wanneroo raceway?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_calendar" (
"race_title" text,
"circuit" text,
"location_state" text,
"date" text,
"winner" text,
"team" text
);
Question: What is the location/state of the Launceston race?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_calendar" (
"race_title" text,
"circuit" text,
"location_state" text,
"date" text,
"winner" text,
"team" text
);
Question: What is the team of winner Dick Johnson?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_calendar" (
"race_title" text,
"circuit" text,
"location_state" text,
"date" text,
"winner" text,
"team" text
);
Question: What is the race title of the Oran Park raceway circuit with te... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "population" (
"year" real,
"population_region_total" real,
"population_maryborough" real,
"population_hervey_bay" real,
"population_woocoo" real,
"population_tiaro" real
);
Question: Name the... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "population" (
"year" real,
"population_region_total" real,
"population_maryborough" real,
"population_hervey_bay" real,
"population_woocoo" real,
"population_tiaro" real
);
Question: Name the... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "population" (
"year" real,
"population_region_total" real,
"population_maryborough" real,
"population_hervey_bay" real,
"population_woocoo" real,
"population_tiaro" real
);
Question: Name the... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.