text
stringlengths 310
1.28k
|
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "45_nm" (
"model_number" text,
"s_spec_number" text,
"frequency" text,
"turbo" text,
"cores" text,
"l2_cache" text,
"l3_cache" text,
"i_o_bus" text,
"mult" text,
"memory" text,
"voltage" text,
"socket" text,
"release_date" text,
"part_number_s" text,
"release_price_usd" text
);
Question: What Memory has a Turbo of 2/2/4/5 and the Release date of May 2010?
<|assistant|>
SELECT "memory" FROM "45_nm" WHERE "turbo"='2/2/4/5' AND "release_date"='may 2010';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "45_nm" (
"model_number" text,
"s_spec_number" text,
"frequency" text,
"turbo" text,
"cores" text,
"l2_cache" text,
"l3_cache" text,
"i_o_bus" text,
"mult" text,
"memory" text,
"voltage" text,
"socket" text,
"release_date" text,
"part_number_s" text,
"release_price_usd" text
);
Question: What Model number has the sSpec numebr of SLBJG(B1)?
<|assistant|>
SELECT "model_number" FROM "45_nm" WHERE "s_spec_number"='slbjg(b1)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "45_nm" (
"model_number" text,
"s_spec_number" text,
"frequency" text,
"turbo" text,
"cores" text,
"l2_cache" text,
"l3_cache" text,
"i_o_bus" text,
"mult" text,
"memory" text,
"voltage" text,
"socket" text,
"release_date" text,
"part_number_s" text,
"release_price_usd" text
);
Question: What Turbo has the Release price (USD) of $583?
<|assistant|>
SELECT "turbo" FROM "45_nm" WHERE "release_price_usd"='$583';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_ultras_of_africa" (
"peak" text,
"country" text,
"elevation_m" real,
"prominence_m" real,
"col_m" real
);
Question: What is the lowest prominence for a peak with elevation of 3,615 meters?
<|assistant|>
SELECT MIN("prominence_m") FROM "list_of_ultras_of_africa" WHERE "elevation_m"='3,615';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_ultras_of_africa" (
"peak" text,
"country" text,
"elevation_m" real,
"prominence_m" real,
"col_m" real
);
Question: What is the Col entry for the peak with an elevation of 2,308 meters?
<|assistant|>
SELECT COUNT("col_m") FROM "list_of_ultras_of_africa" WHERE "elevation_m"='2,308';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "various" (
"actor" text,
"character" text,
"soap_opera" text,
"years" text,
"duration" text
);
Question: who is the actor that played rachel mckenna?
<|assistant|>
SELECT "actor" FROM "various" WHERE "character"='rachel mckenna';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "various" (
"actor" text,
"character" text,
"soap_opera" text,
"years" text,
"duration" text
);
Question: who is the actor for shortland street for the years 1993–1999, 2001–2003, 2007, 2009—?
<|assistant|>
SELECT "actor" FROM "various" WHERE "soap_opera"='shortland street' AND "years"='1993–1999, 2001–2003, 2007, 2009—';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "various" (
"actor" text,
"character" text,
"soap_opera" text,
"years" text,
"duration" text
);
Question: what is the soap opera when the years are 2000–2004, 2005—?
<|assistant|>
SELECT "soap_opera" FROM "various" WHERE "years"='2000–2004, 2005—';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "various" (
"actor" text,
"character" text,
"soap_opera" text,
"years" text,
"duration" text
);
Question: what is the character with the duration of 11 years?
<|assistant|>
SELECT "character" FROM "various" WHERE "duration"='11 years';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "various" (
"actor" text,
"character" text,
"soap_opera" text,
"years" text,
"duration" text
);
Question: what is the soap opera for elin sogn?
<|assistant|>
SELECT "soap_opera" FROM "various" WHERE "actor"='elin sogn';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "television_stations" (
"city_of_license_market" text,
"station" text,
"channel_tv_rf" text,
"owned_since" real,
"affiliation" text
);
Question: What station was owned since 2011, and a channel (tv/rf) of 27?
<|assistant|>
SELECT "station" FROM "television_stations" WHERE "owned_since"=2011 AND "channel_tv_rf"='27';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "television_stations" (
"city_of_license_market" text,
"station" text,
"channel_tv_rf" text,
"owned_since" real,
"affiliation" text
);
Question: What affiliation has an owned since larger than 1991, and also has a channel (tv/rf) of 42?
<|assistant|>
SELECT "affiliation" FROM "television_stations" WHERE "owned_since">1991 AND "channel_tv_rf"='42';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "television_stations" (
"city_of_license_market" text,
"station" text,
"channel_tv_rf" text,
"owned_since" real,
"affiliation" text
);
Question: What city of license/market has an owned since before 2011,and a affiliation of abc and channel (tv/rf) of 9 (22)?
<|assistant|>
SELECT "city_of_license_market" FROM "television_stations" WHERE "owned_since"<2011 AND "affiliation"='abc' AND "channel_tv_rf"='9 (22)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_ultras_of_africa" (
"peak" text,
"country" text,
"elevation_m" real,
"prominence_m" real,
"col_m" real
);
Question: Count the sum of Col (m) which has an Elevation (m) of 3,011, and a Country of equatorial guinea ( bioko )?
<|assistant|>
SELECT SUM("col_m") FROM "list_of_ultras_of_africa" WHERE "elevation_m"='3,011' AND "country"='equatorial guinea ( bioko )';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_ultras_of_africa" (
"peak" text,
"country" text,
"elevation_m" real,
"prominence_m" real,
"col_m" real
);
Question: COunt the sum of Prominence (m) of an Elevation (m) of 2,024?
<|assistant|>
SELECT SUM("prominence_m") FROM "list_of_ultras_of_africa" WHERE "elevation_m"='2,024';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_ultras_of_africa" (
"peak" text,
"country" text,
"elevation_m" real,
"prominence_m" real,
"col_m" real
);
Question: Count the Prominence (m) of Col (m) smaller than 0?
<|assistant|>
SELECT AVG("prominence_m") FROM "list_of_ultras_of_africa" WHERE "col_m"<0;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_ultras_of_africa" (
"peak" text,
"country" text,
"elevation_m" real,
"prominence_m" real,
"col_m" real
);
Question: Name the lowest Col (m) with a Peak of pico basilé, and a Prominence (m) smaller than 3,011?
<|assistant|>
SELECT MIN("col_m") FROM "list_of_ultras_of_africa" WHERE "peak"='pico basilé' AND "prominence_m"<'3,011';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"tv_time" text,
"attendance" text
);
Question: What is the Week of the game with TV Time of Fox 4:15ET?
<|assistant|>
SELECT COUNT("week") FROM "schedule" WHERE "tv_time"='fox 4:15et';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"tv_time" text,
"attendance" text
);
Question: What is the TV Time of the game on December 27, 2003?
<|assistant|>
SELECT "tv_time" FROM "schedule" WHERE "date"='december 27, 2003';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"tv_time" text,
"attendance" text
);
Question: What is the Opponent at the game with Attendance of 68,436?
<|assistant|>
SELECT "opponent" FROM "schedule" WHERE "attendance"='68,436';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"tv_time" text,
"attendance" text
);
Question: What is the Attendance at the game against the Cincinnati Bengals?
<|assistant|>
SELECT "attendance" FROM "schedule" WHERE "opponent"='cincinnati bengals';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"tv_time" text,
"attendance" text
);
Question: What is the Opponent of the game after Week 3 with a Result of L 10–6?
<|assistant|>
SELECT "opponent" FROM "schedule" WHERE "week">3 AND "result"='l 10–6';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"tv_time" text,
"attendance" text
);
Question: What is the Date of the Game with a Result of w 22–16 in TV Time of CBS 1:00ET?
<|assistant|>
SELECT "date" FROM "schedule" WHERE "tv_time"='cbs 1:00et' AND "result"='w 22–16';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tests" (
"date" text,
"opponent" text,
"score" text,
"venue" text,
"attendance" text
);
Question: At what Venue was the Attendance 47,678?
<|assistant|>
SELECT "venue" FROM "tests" WHERE "attendance"='47,678';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tests" (
"date" text,
"opponent" text,
"score" text,
"venue" text,
"attendance" text
);
Question: What is the Attendance of New Zealand Scores in bold?
<|assistant|>
SELECT "attendance" FROM "tests" WHERE "date"='new zealand scores in bold';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"bonus_points" text,
"points" text
);
Question: What is the number of lost games when 2 were drawn, and there were 6 bonus points?
<|assistant|>
SELECT "lost" FROM "table" WHERE "drawn"='2' AND "bonus_points"='6';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"bonus_points" text,
"points" text
);
Question: What is the number of bonus points when there are 4 drawn?
<|assistant|>
SELECT "bonus_points" FROM "table" WHERE "drawn"='4';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"bonus_points" text,
"points" text
);
Question: What is the number of bonus points when there are 2 drawn and the points against is 599?
<|assistant|>
SELECT "bonus_points" FROM "table" WHERE "drawn"='2' AND "points_against"='599';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"bonus_points" text,
"points" text
);
Question: What is the lost number when the team played 26 games and there were 83 points?
<|assistant|>
SELECT "lost" FROM "table" WHERE "played"='26' AND "points"='83';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"bonus_points" text,
"points" text
);
Question: What is the lost number for the team with 2 drawn games, and 572 points against?
<|assistant|>
SELECT "lost" FROM "table" WHERE "drawn"='2' AND "points_against"='572';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"bonus_points" text,
"points" text
);
Question: What is the number of bonus points for the team with 2 drawn games and 475 points?
<|assistant|>
SELECT "bonus_points" FROM "table" WHERE "drawn"='2' AND "points_for"='475';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "in" (
"nat" text,
"name" text,
"moving_from" text,
"type" text,
"transfer_window" text,
"ends" real,
"transfer_fee" text
);
Question: What is the transfer fee for Helguera?
<|assistant|>
SELECT "transfer_fee" FROM "in" WHERE "name"='helguera';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "in" (
"nat" text,
"name" text,
"moving_from" text,
"type" text,
"transfer_window" text,
"ends" real,
"transfer_fee" text
);
Question: What was the transfer fee when the moving from was celta de Vigo?
<|assistant|>
SELECT "transfer_fee" FROM "in" WHERE "moving_from"='celta de vigo';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "in" (
"nat" text,
"name" text,
"moving_from" text,
"type" text,
"transfer_window" text,
"ends" real,
"transfer_fee" text
);
Question: What was the transfer window with a moving from of fenerbahçe?
<|assistant|>
SELECT "transfer_window" FROM "in" WHERE "moving_from"='fenerbahçe';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "in" (
"nat" text,
"name" text,
"moving_from" text,
"type" text,
"transfer_window" text,
"ends" real,
"transfer_fee" text
);
Question: What nation had a moving from of espanyol?
<|assistant|>
SELECT "nat" FROM "in" WHERE "moving_from"='espanyol';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "in" (
"nat" text,
"name" text,
"moving_from" text,
"type" text,
"transfer_window" text,
"ends" real,
"transfer_fee" text
);
Question: What was the transfer fee for the player with an ends of 2007?
<|assistant|>
SELECT "transfer_fee" FROM "in" WHERE "ends"=2007;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1946" (
"title" text,
"series" text,
"director" text,
"production_number" text,
"release_date" text
);
Question: What is the Series of the Filmography with a Release date of 1946-03-16?
<|assistant|>
SELECT "series" FROM "1946" WHERE "release_date"='1946-03-16';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1946" (
"title" text,
"series" text,
"director" text,
"production_number" text,
"release_date" text
);
Question: Who is the Director of the Filmography with Production Number of 11-14?
<|assistant|>
SELECT "director" FROM "1946" WHERE "production_number"='11-14';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1946" (
"title" text,
"series" text,
"director" text,
"production_number" text,
"release_date" text
);
Question: What is the Series of the Filmography with Release date of 1946-01-05?
<|assistant|>
SELECT "series" FROM "1946" WHERE "release_date"='1946-01-05';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1946" (
"title" text,
"series" text,
"director" text,
"production_number" text,
"release_date" text
);
Question: What is the Series of the Filmography with a Production Number of M-4-15?
<|assistant|>
SELECT "series" FROM "1946" WHERE "production_number"='m-4-15';<|endoftext|>
|
<|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: What venue has a score of 4-0 with the 2002 Tiger Cup listed as the competition?
<|assistant|>
SELECT "venue" FROM "international_goals" WHERE "score"='4-0' AND "competition"='2002 tiger cup';<|endoftext|>
|
<|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: What competition has a score of 1-3?
<|assistant|>
SELECT "competition" FROM "international_goals" WHERE "score"='1-3';<|endoftext|>
|
<|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: What competition listed is dated November 17, 2003?
<|assistant|>
SELECT "competition" FROM "international_goals" WHERE "date"='november 17, 2003';<|endoftext|>
|
<|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: What venue listed is dated February 22, 2003?
<|assistant|>
SELECT "venue" FROM "international_goals" WHERE "date"='february 22, 2003';<|endoftext|>
|
<|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: What venue is listed as having a competition titled Friendly?
<|assistant|>
SELECT "venue" FROM "international_goals" WHERE "competition"='friendly';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heat_4" (
"rank" real,
"lane" real,
"athlete" text,
"time_sec" real,
"notes" text
);
Question: Which Notes have a Time larger than 23.34, and a Rank of 8?
<|assistant|>
SELECT "notes" FROM "heat_4" WHERE "time_sec">23.34 AND "rank"=8;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
Question: In what week was the December 21, 1969 game?
<|assistant|>
SELECT AVG("week") FROM "schedule" WHERE "date"='december 21, 1969';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "matches" (
"opposing_team" text,
"against" real,
"date" text,
"venue" text,
"status" text
);
Question: Which Opposing Team has a Venue of rectory ground, devonport?
<|assistant|>
SELECT "opposing_team" FROM "matches" WHERE "venue"='rectory ground, devonport';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "matches" (
"opposing_team" text,
"against" real,
"date" text,
"venue" text,
"status" text
);
Question: When has an Opposing Team of mid-districts?
<|assistant|>
SELECT "date" FROM "matches" WHERE "opposing_team"='mid-districts';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "early_broad_gauge_locomotives_for_all_tr" (
"class_old_to_1868" text,
"railway_number_s" text,
"quantity" real,
"year_s_of_manufacture" text,
"type" text
);
Question: Can you tell me the Class (old) to 1868 that has the Quantity larger than 8?
<|assistant|>
SELECT "class_old_to_1868" FROM "early_broad_gauge_locomotives_for_all_tr" WHERE "quantity">8;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "more_than_one_country" (
"player" text,
"int_l_debut" text,
"year" text,
"cross_code_debut" text,
"date" text,
"position" text
);
Question: What was the date of the Cross Code debut that had an Int'l Debut in the year 2008?
<|assistant|>
SELECT "date" FROM "more_than_one_country" WHERE "year"='2008';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "more_than_one_country" (
"player" text,
"int_l_debut" text,
"year" text,
"cross_code_debut" text,
"date" text,
"position" text
);
Question: What was the Int'l Debut for a player in the back position, that also had a Cross Code Debut of RU Australia v Wales?
<|assistant|>
SELECT "int_l_debut" FROM "more_than_one_country" WHERE "position"='back' AND "cross_code_debut"='ru australia v wales';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "more_than_one_country" (
"player" text,
"int_l_debut" text,
"year" text,
"cross_code_debut" text,
"date" text,
"position" text
);
Question: What year did Coenraad Breytenbach have their Int'l Debut?
<|assistant|>
SELECT "year" FROM "more_than_one_country" WHERE "player"='coenraad breytenbach';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "more_than_one_country" (
"player" text,
"int_l_debut" text,
"year" text,
"cross_code_debut" text,
"date" text,
"position" text
);
Question: What is the Cross Code Debut for a player that had their Int'l Debut of RU test New Zealand v Australia?
<|assistant|>
SELECT "cross_code_debut" FROM "more_than_one_country" WHERE "int_l_debut"='ru test new zealand v australia';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "gallup_poll_2012" (
"result" text,
"barack_obama" text,
"george_h_w_bush" text,
"ronald_reagan" text,
"jimmy_carter" text,
"gerald_ford" text,
"richard_nixon" text
);
Question: What percent of respondents had no opinion on George H.W. Bush?
<|assistant|>
SELECT "george_h_w_bush" FROM "gallup_poll_2012" WHERE "result"='no opinion';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heats" (
"heat" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
Question: What was Christian Kubusch's lane when the heat was more than 2 and time was DNS?
<|assistant|>
SELECT SUM("lane") FROM "heats" WHERE "time"='dns' AND "name"='christian kubusch' AND "heat">2;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heats" (
"heat" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
Question: What's Bulgaria's lane?
<|assistant|>
SELECT AVG("lane") FROM "heats" WHERE "nationality"='bulgaria';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heats" (
"heat" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
Question: What's Great Britain's lane with a heat less than 3?
<|assistant|>
SELECT AVG("lane") FROM "heats" WHERE "nationality"='great britain' AND "heat"<3;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heats" (
"heat" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
Question: What's Spain's lane with a heat less than 4?
<|assistant|>
SELECT AVG("lane") FROM "heats" WHERE "nationality"='spain' AND "heat"<4;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heats" (
"heat" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
Question: What's the heat in the lane less than 3 with a time of 14:48.39?
<|assistant|>
SELECT AVG("heat") FROM "heats" WHERE "lane"<3 AND "time"='14:48.39';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heats" (
"heat" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
Question: What's China's heat for Zhang Lin in a lane after 6?
<|assistant|>
SELECT SUM("heat") FROM "heats" WHERE "nationality"='china' AND "name"='zhang lin' AND "lane">6;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "world_championships_men" (
"year" real,
"place" text,
"gold" text,
"silver" text,
"bronze" text
);
Question: Who won bronze in 1994?
<|assistant|>
SELECT "bronze" FROM "world_championships_men" WHERE "year"=1994;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "eighth_round" (
"pick" real,
"team" text,
"player" text,
"position" text,
"college" text
);
Question: Which position was picked before 63, for Oklahoma College?
<|assistant|>
SELECT "position" FROM "eighth_round" WHERE "pick"<63 AND "college"='oklahoma';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "eighth_round" (
"pick" real,
"team" text,
"player" text,
"position" text,
"college" text
);
Question: Which College has a Position of Offensive Tackle?
<|assistant|>
SELECT "college" FROM "eighth_round" WHERE "position"='offensive tackle';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "centuries_in_the_friends_life_t20" (
"rank" real,
"player" text,
"team" text,
"runs" text,
"balls" real,
"year" real,
"against" text
);
Question: Which player had 50 balls?
<|assistant|>
SELECT "player" FROM "centuries_in_the_friends_life_t20" WHERE "balls"=50;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1959" (
"title" text,
"series" text,
"director" text,
"production_number" real,
"release_date" text
);
Question: What date was Apes of Wrath written by Friz Freleng, production number higher than 1496 from series mm released?
<|assistant|>
SELECT "release_date" FROM "1959" WHERE "director"='friz freleng' AND "production_number">1496 AND "series"='mm' AND "title"='apes of wrath';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1959" (
"title" text,
"series" text,
"director" text,
"production_number" real,
"release_date" text
);
Question: What is the production number directed by Robert McKimson in series mm titled People Are Bunny?
<|assistant|>
SELECT SUM("production_number") FROM "1959" WHERE "director"='robert mckimson' AND "series"='mm' AND "title"='people are bunny';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1959" (
"title" text,
"series" text,
"director" text,
"production_number" real,
"release_date" text
);
Question: What was the series of the episode directed by Abe Levitow released on 1959-06-27?
<|assistant|>
SELECT "series" FROM "1959" WHERE "director"='abe levitow' AND "release_date"='1959-06-27';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1959" (
"title" text,
"series" text,
"director" text,
"production_number" real,
"release_date" text
);
Question: What is the release date of the episode named Mouse-Placed Kitten with an episode number less than 1495 directed by Robert McKimson?
<|assistant|>
SELECT "release_date" FROM "1959" WHERE "production_number"<1495 AND "director"='robert mckimson' AND "title"='mouse-placed kitten';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "amateur_draft" (
"round" real,
"pick" real,
"player" text,
"nationality" text,
"college_junior_club_team" text
);
Question: Which Player has a Round larger than 8?
<|assistant|>
SELECT "player" FROM "amateur_draft" WHERE "round">8;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "amateur_draft" (
"round" real,
"pick" real,
"player" text,
"nationality" text,
"college_junior_club_team" text
);
Question: What is tom cassidy's nationality?
<|assistant|>
SELECT "nationality" FROM "amateur_draft" WHERE "player"='tom cassidy';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "amateur_draft" (
"round" real,
"pick" real,
"player" text,
"nationality" text,
"college_junior_club_team" text
);
Question: Which College/Junior/Club Team has a Pick larger than 70, and a Round smaller than 7?
<|assistant|>
SELECT "college_junior_club_team" FROM "amateur_draft" WHERE "pick">70 AND "round"<7;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "amateur_draft" (
"round" real,
"pick" real,
"player" text,
"nationality" text,
"college_junior_club_team" text
);
Question: Which Player has a Round larger than 8?
<|assistant|>
SELECT "player" FROM "amateur_draft" WHERE "round">8;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"county" text
);
Question: Which County has a Location of edinburgh?
<|assistant|>
SELECT "county" FROM "indiana_high_school_athletics_conference" WHERE "location"='edinburgh';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"county" text
);
Question: COunt the average Enrollment in hope?
<|assistant|>
SELECT AVG("enrollment") FROM "indiana_high_school_athletics_conference" WHERE "location"='hope';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"county" text
);
Question: Which Mascot has IHSAA Class of aa, and a Enrollment larger than 369?
<|assistant|>
SELECT "mascot" FROM "indiana_high_school_athletics_conference" WHERE "ihsaa_class"='aa' AND "enrollment">369;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "appearances_and_goals" (
"name" text,
"position" text,
"league_apps" text,
"league_goals" real,
"fa_cup_apps" text,
"fa_cup_goals" real,
"league_cup_apps" text,
"league_cup_goals" real,
"total_apps" text,
"total_goals" real
);
Question: what is the lowest league goals when the league apps is 1 and the fa cup goals is more than 0?
<|assistant|>
SELECT MIN("league_goals") FROM "appearances_and_goals" WHERE "league_apps"='1' AND "fa_cup_goals">0;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "appearances_and_goals" (
"name" text,
"position" text,
"league_apps" text,
"league_goals" real,
"fa_cup_apps" text,
"fa_cup_goals" real,
"league_cup_apps" text,
"league_cup_goals" real,
"total_apps" text,
"total_goals" real
);
Question: what is the highest fa cup goals when the total goals is more than 3 and total apps is 31 (1)?
<|assistant|>
SELECT MAX("fa_cup_goals") FROM "appearances_and_goals" WHERE "total_goals">3 AND "total_apps"='31 (1)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "appearances_and_goals" (
"name" text,
"position" text,
"league_apps" text,
"league_goals" real,
"fa_cup_apps" text,
"fa_cup_goals" real,
"league_cup_apps" text,
"league_cup_goals" real,
"total_apps" text,
"total_goals" real
);
Question: what is the league goals when the fa cup goals is higher than 0, the fa cup apps is 2 and the league apps is 45?
<|assistant|>
SELECT "league_goals" FROM "appearances_and_goals" WHERE "fa_cup_goals">0 AND "fa_cup_apps"='2' AND "league_apps"='45';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "appearances_and_goals" (
"name" text,
"position" text,
"league_apps" text,
"league_goals" real,
"fa_cup_apps" text,
"fa_cup_goals" real,
"league_cup_apps" text,
"league_cup_goals" real,
"total_apps" text,
"total_goals" real
);
Question: how many times is the total apps 1 and the fa cup goals less than 0 for bob mountain?
<|assistant|>
SELECT COUNT("total_goals") FROM "appearances_and_goals" WHERE "total_apps"='1' AND "name"='bob mountain' AND "fa_cup_goals"<0;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fa_premier_league" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
);
Question: What is the highest attendance for the match against west ham united at the venue of a?
<|assistant|>
SELECT MAX("attendance") FROM "fa_premier_league" WHERE "venue"='a' AND "opponent"='west ham united';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
Question: Which Country has a Score of 67?
<|assistant|>
SELECT "country" FROM "first_round" WHERE "score"=67;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
Question: Which To par has a Player of momoko ueda?
<|assistant|>
SELECT "to_par" FROM "first_round" WHERE "player"='momoko ueda';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
Question: Which To par has a Player of johanna head?
<|assistant|>
SELECT "to_par" FROM "first_round" WHERE "player"='johanna head';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_a_b_2" (
"rank" real,
"rowers" text,
"country" text,
"time" text,
"notes" text
);
Question: What is the notes for the team from Denmark?
<|assistant|>
SELECT "notes" FROM "semifinal_a_b_2" WHERE "country"='denmark';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "quarterfinal_2" (
"rank" real,
"athlete" text,
"country" text,
"time" text,
"notes" text
);
Question: Which athlete had a rank of 6 and notes of sc/d?
<|assistant|>
SELECT "athlete" FROM "quarterfinal_2" WHERE "notes"='sc/d' AND "rank"=6;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "quarterfinal_2" (
"rank" real,
"athlete" text,
"country" text,
"time" text,
"notes" text
);
Question: Which country is the athlete latt shwe zin with notes of sc/d from?
<|assistant|>
SELECT "country" FROM "quarterfinal_2" WHERE "notes"='sc/d' AND "athlete"='latt shwe zin';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "numbers_and_names" (
"hr_no" text,
"hr_name" text,
"cr_no" real,
"lms_no" real,
"built" text,
"works" text,
"withdrawn" text
);
Question: What's the HR number when the LMS number is 14758?
<|assistant|>
SELECT "hr_no" FROM "numbers_and_names" WHERE "lms_no"=14758;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "numbers_and_names" (
"hr_no" text,
"hr_name" text,
"cr_no" real,
"lms_no" real,
"built" text,
"works" text,
"withdrawn" text
);
Question: What's the CR number that has an LMS number less than 14761 and works of Hawthorn Leslie 3100?
<|assistant|>
SELECT AVG("cr_no") FROM "numbers_and_names" WHERE "works"='hawthorn leslie 3100' AND "lms_no"<14761;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "numbers_and_names" (
"hr_no" text,
"hr_name" text,
"cr_no" real,
"lms_no" real,
"built" text,
"works" text,
"withdrawn" text
);
Question: What's the HR Number when the LMS number is 14757 and has a built of 9/1915?
<|assistant|>
SELECT "hr_no" FROM "numbers_and_names" WHERE "built"='9/1915' AND "lms_no"=14757;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "numbers_and_names" (
"hr_no" text,
"hr_name" text,
"cr_no" real,
"lms_no" real,
"built" text,
"works" text,
"withdrawn" text
);
Question: What's the built date when the CR number is more than 940 and the LMS number is 14760?
<|assistant|>
SELECT "built" FROM "numbers_and_names" WHERE "cr_no">940 AND "lms_no"=14760;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"round" real,
"date" text,
"home" text,
"result" text,
"visitor" text,
"venue" text,
"attendance" real
);
Question: What is the Home team of the event on Thursday, December 11 with Visitor Modo Hockey?
<|assistant|>
SELECT "home" FROM "game_log" WHERE "visitor"='modo hockey' AND "date"='thursday, december 11';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "studio" (
"albumnum" text,
"english_title" text,
"chinese_traditional" text,
"chinese_simplified" text,
"release_date" text,
"label" text
);
Question: What is the traditional Chinese name for the record titled Sunrise?
<|assistant|>
SELECT "chinese_traditional" FROM "studio" WHERE "english_title"='sunrise';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "studio" (
"albumnum" text,
"english_title" text,
"chinese_traditional" text,
"chinese_simplified" text,
"release_date" text,
"label" text
);
Question: What would be the traditional Chinese name tat is simplified as 崇拜?
<|assistant|>
SELECT "chinese_traditional" FROM "studio" WHERE "chinese_simplified"='崇拜';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "studio" (
"albumnum" text,
"english_title" text,
"chinese_traditional" text,
"chinese_simplified" text,
"release_date" text,
"label" text
);
Question: What traditional Chinese name would the Rock Records release Grown up Overnight be given?
<|assistant|>
SELECT "chinese_traditional" FROM "studio" WHERE "label"='rock records' AND "english_title"='grown up overnight';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "studio" (
"albumnum" text,
"english_title" text,
"chinese_traditional" text,
"chinese_simplified" text,
"release_date" text,
"label" text
);
Question: What is the traditional Chinese name for the record Beautiful?
<|assistant|>
SELECT "chinese_traditional" FROM "studio" WHERE "english_title"='beautiful';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "studio" (
"albumnum" text,
"english_title" text,
"chinese_traditional" text,
"chinese_simplified" text,
"release_date" text,
"label" text
);
Question: What is the album number for the record 情歌没有告诉你, simplified from the traditional Chinese name?
<|assistant|>
SELECT "albumnum" FROM "studio" WHERE "chinese_simplified"='情歌没有告诉你';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "studio" (
"albumnum" text,
"english_title" text,
"chinese_traditional" text,
"chinese_simplified" text,
"release_date" text,
"label" text
);
Question: What is the simplified Chinese name for the 9th album?
<|assistant|>
SELECT "chinese_simplified" FROM "studio" WHERE "albumnum"='9th';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tag_team_turmoil_match" (
"eliminated" text,
"tag_team" text,
"entered" real,
"eliminated_by" text,
"time" text
);
Question: Which Eliminated has a Tag Team of jindrak and cade?
<|assistant|>
SELECT "eliminated_by" FROM "tag_team_turmoil_match" WHERE "tag_team"='jindrak and cade';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tag_team_turmoil_match" (
"eliminated" text,
"tag_team" text,
"entered" real,
"eliminated_by" text,
"time" text
);
Question: Which Eliminated has an Entered smaller than 2?
<|assistant|>
SELECT "eliminated_by" FROM "tag_team_turmoil_match" WHERE "entered"<2;<|endoftext|>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.