output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "title" FROM "table1_18054886_1" WHERE "viewers_millions"='3.7' AND "directed_by"='David Kendall'; |
## Task
Generate a SQL query to answer the following question:
`Which title, directed by David Kendall, had 3.7 million viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_18054886_1" (
"no_in_series" real,
"title" text,
"directed_by"... |
SELECT "directed_by" FROM "table1_18054886_1" WHERE "title"='\"People Who Use People\"'; |
## Task
Generate a SQL query to answer the following question:
`Who directed "People who use people"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_18054886_1" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,... |
SELECT COUNT("first_elected") FROM "california" WHERE "incumbent"='Diane Watson'; |
## Task
Generate a SQL query to answer the following question:
`How many people were first elected with an incument of diane watson?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "california" (
"district" text,
"incumbent" text,
"party" text,
... |
SELECT "party" FROM "california" WHERE "incumbent"='Hilda Solis'; |
## Task
Generate a SQL query to answer the following question:
`What party did hilda solis represent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "california" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result... |
SELECT "results" FROM "california" WHERE "incumbent"='Grace Napolitano'; |
## Task
Generate a SQL query to answer the following question:
`What were the result(s) of the election featuring grace napolitano as the incumbent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "california" (
"district" text,
"incumbent" text,
... |
SELECT MIN("standard_order") FROM "nine_pieces" WHERE "transcription_based_on_pinyin"='She Jiang'; |
## Task
Generate a SQL query to answer the following question:
`Which place in the order is the Pinyin transcription She Jiang?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nine_pieces" (
"standard_order" real,
"english_translation" text,
"tra... |
SELECT MAX("standard_order") FROM "nine_pieces" WHERE "english_translation"='A Lament for Ying'; |
## Task
Generate a SQL query to answer the following question:
`What is the place of "A Lament for Ying"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nine_pieces" (
"standard_order" real,
"english_translation" text,
"transcription_based_on_pi... |
SELECT COUNT("traditional_chinese") FROM "nine_pieces" WHERE "english_translation"='Crossing the River'; |
## Task
Generate a SQL query to answer the following question:
`How many traditional Chinese for the translation of "Crossing the River"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nine_pieces" (
"standard_order" real,
"english_translation" te... |
SELECT MAX("standard_order") FROM "nine_pieces" WHERE "transcription_based_on_pinyin"='Xi Wangri'; |
## Task
Generate a SQL query to answer the following question:
`What is the place of the Pinyin transcription Xi Wangri?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nine_pieces" (
"standard_order" real,
"english_translation" text,
"transcript... |
SELECT "english_translation" FROM "nine_pieces" WHERE "traditional_chinese"='哀郢'; |
## Task
Generate a SQL query to answer the following question:
`What is the English translation of 哀郢?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nine_pieces" (
"standard_order" real,
"english_translation" text,
"transcription_based_on_pinyi... |
SELECT "transcription_based_on_pinyin" FROM "nine_pieces" WHERE "english_translation"='Alas for the Days Gone By'; |
## Task
Generate a SQL query to answer the following question:
`What is the Pinyin transcription for "Alas for the Days Gone By"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nine_pieces" (
"standard_order" real,
"english_translation" text,
"t... |
SELECT "english_name" FROM "months" WHERE "abbr"='พ.ย.'; |
## Task
Generate a SQL query to answer the following question:
`What's the English name for the month with พ.ย. abbreviation? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "months" (
"english_name" text,
"thai_name" text,
"abbr" text,
"transc... |
SELECT "zodiac_sign" FROM "months" WHERE "abbr"='มี.ค.'; |
## Task
Generate a SQL query to answer the following question:
`What's the zodiac sing for the month abbreviated as มี.ค.?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "months" (
"english_name" text,
"thai_name" text,
"abbr" text,
"transcript... |
SELECT "transcription" FROM "months" WHERE "thai_name"='พฤษภาคม'; |
## Task
Generate a SQL query to answer the following question:
`What's the transcription of the thai name of the month พฤษภาคม?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "months" (
"english_name" text,
"thai_name" text,
"abbr" text,
"trans... |
SELECT COUNT("zodiac_sign") FROM "months" WHERE "thai_name"='กันยายน'; |
## Task
Generate a SQL query to answer the following question:
`How many zodiac signs does the month by the Thai name of กันยายน belong to?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "months" (
"english_name" text,
"thai_name" text,
"abbr" te... |
SELECT "english_name" FROM "months" WHERE "abbr"='มิ.ย.'; |
## Task
Generate a SQL query to answer the following question:
`What's the English name of the month abbreviated as มิ.ย.?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "months" (
"english_name" text,
"thai_name" text,
"abbr" text,
"transcript... |
SELECT "abbr" FROM "months" WHERE "zodiac_sign"='Scorpio'; |
## Task
Generate a SQL query to answer the following question:
`What's the abbreviation of the month in the zodiac sign scorpio?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "months" (
"english_name" text,
"thai_name" text,
"abbr" text,
"tran... |
SELECT "year_e_ceremony" FROM "submissions" WHERE "original_title"='გაღმა ნაპირი'; |
## Task
Generate a SQL query to answer the following question:
`which year was the original title გაღმა ნაპირი`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submissions" (
"year_e_ceremony" text,
"film_title_used_in_nomination" text,
"original_... |
SELECT COUNT("year_e_ceremony") FROM "submissions" WHERE "film_title_used_in_nomination"='27 Missing Kisses'; |
## Task
Generate a SQL query to answer the following question:
`how many times was 27 missing kisses used in nomination`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submissions" (
"year_e_ceremony" text,
"film_title_used_in_nomination" text,
"... |
SELECT "year_e_ceremony" FROM "submissions" WHERE "director"='Otar Iosseliani'; |
## Task
Generate a SQL query to answer the following question:
`when was otar iosseliani's film selected`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submissions" (
"year_e_ceremony" text,
"film_title_used_in_nomination" text,
"original_title"... |
SELECT "thai_name" FROM "weekdays" WHERE "transcription"='wan chan'; |
## Task
Generate a SQL query to answer the following question:
`What is the thai name of the transcription wan chan?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "weekdays" (
"english_name" text,
"thai_name" text,
"transcription" text,
"color... |
SELECT "sanskrit_word" FROM "weekdays" WHERE "color"='red'; |
## Task
Generate a SQL query to answer the following question:
`What is the sanskrit word for the color red?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "weekdays" (
"english_name" text,
"thai_name" text,
"transcription" text,
"color" text,
... |
SELECT "transcription" FROM "weekdays" WHERE "sanskrit_word"='Chandra'; |
## Task
Generate a SQL query to answer the following question:
`What is the transcription of the sanskrit word chandra?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "weekdays" (
"english_name" text,
"thai_name" text,
"transcription" text,
"co... |
SELECT "sanskrit_word" FROM "weekdays" WHERE "transcription"='wan athit'; |
## Task
Generate a SQL query to answer the following question:
`What is the sanskrit word if the transcription is wan athit?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "weekdays" (
"english_name" text,
"thai_name" text,
"transcription" text,
... |
SELECT "color" FROM "weekdays" WHERE "planet"='Venus'; |
## Task
Generate a SQL query to answer the following question:
`What is the color of the planet venus?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "weekdays" (
"english_name" text,
"thai_name" text,
"transcription" text,
"color" text,
"san... |
SELECT "planet" FROM "weekdays" WHERE "transcription"='wan suk'; |
## Task
Generate a SQL query to answer the following question:
`Which planet has the transcription of wan suk?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "weekdays" (
"english_name" text,
"thai_name" text,
"transcription" text,
"color" text... |
SELECT "year_to_april" FROM "micro_focus_international_plc_financial_" WHERE "revenue_us_million"='434.8'; |
## Task
Generate a SQL query to answer the following question:
`What is the year to april when the revenue is 434.8 million dollars?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "micro_focus_international_plc_financial_" (
"year_to_april" real,
"... |
SELECT "ebit_us_m" FROM "micro_focus_international_plc_financial_" WHERE "net_profit_us_m"='120.6'; |
## Task
Generate a SQL query to answer the following question:
`What is the dollar amount of ebit when the net profit is 120.6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "micro_focus_international_plc_financial_" (
"year_to_april" real,
"reven... |
SELECT "revenue_us_million" FROM "micro_focus_international_plc_financial_" WHERE "net_profit_us_m"='55.4'; |
## Task
Generate a SQL query to answer the following question:
`How many dollars is the revenue when the net profit is 55.4 million dollars?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "micro_focus_international_plc_financial_" (
"year_to_april" r... |
SELECT COUNT("year_to_april") FROM "micro_focus_international_plc_financial_" WHERE "earnings_per_share"='22.0'; |
## Task
Generate a SQL query to answer the following question:
`When the earning per share is listed as 22.0 what is the year to april?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "micro_focus_international_plc_financial_" (
"year_to_april" real,
... |
SELECT "earnings_per_share" FROM "micro_focus_international_plc_financial_" WHERE "net_profit_us_m"='16.2'; |
## Task
Generate a SQL query to answer the following question:
`What is the earnings per share when the net profit is 16.2 million dollars?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "micro_focus_international_plc_financial_" (
"year_to_april" re... |
SELECT "net_profit_us_m" FROM "micro_focus_international_plc_financial_" WHERE "revenue_us_million"='150.6'; |
## Task
Generate a SQL query to answer the following question:
`How much is the net profit when the revenue is 150.6 million dollars?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "micro_focus_international_plc_financial_" (
"year_to_april" real,
... |
SELECT "year_ceremony" FROM "submissions" WHERE "result"='Not Nominated' AND "director"='Alberto Aruelo'; |
## Task
Generate a SQL query to answer the following question:
`Name the year for not nominated for alberto aruelo`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submissions" (
"year_ceremony" text,
"original_title" text,
"film_title_used_in_nom... |
SELECT COUNT("director") FROM "submissions" WHERE "original_title"='Oro Diablo'; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of director for oro diablo`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submissions" (
"year_ceremony" text,
"original_title" text,
"film_title_used_in_nomin... |
SELECT COUNT("result") FROM "submissions" WHERE "film_title_used_in_nomination"='Maroa'; |
## Task
Generate a SQL query to answer the following question:
`Name the number of result for maroa`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submissions" (
"year_ceremony" text,
"original_title" text,
"film_title_used_in_nomination" text,
... |
SELECT COUNT("director") FROM "submissions" WHERE "original_title"='Huelepega: Ley de la Calle'; |
## Task
Generate a SQL query to answer the following question:
`Name the number of director for huelepega: ley de la calle`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submissions" (
"year_ceremony" text,
"original_title" text,
"film_title_us... |
SELECT "all_neutral" FROM "final_standings" WHERE "b10_pct"='.833'; |
## Task
Generate a SQL query to answer the following question:
`What was the win/loss record for All Neutral games for the team whose Big 10 winning percentage was .833?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_standings" (
"team" text,
... |
SELECT "category" FROM "zune_hd_applications" WHERE "version"='1.0' AND "title"='Chord Finder'; |
## Task
Generate a SQL query to answer the following question:
`What is the category when the version is 1.0 and the title is Chord finder? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "zune_hd_applications" (
"title" text,
"developer" text,
"... |
SELECT "release_date" FROM "zune_hd_applications" WHERE "title"='Metronome'; |
## Task
Generate a SQL query to answer the following question:
`What was the release date for metronome? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "zune_hd_applications" (
"title" text,
"developer" text,
"category" text,
"function" text,
... |
SELECT "developer" FROM "zune_hd_applications" WHERE "title"='Windows Live Messenger'; |
## Task
Generate a SQL query to answer the following question:
`Who is the developer for Windows live messenger? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "zune_hd_applications" (
"title" text,
"developer" text,
"category" text,
"function... |
SELECT "function" FROM "zune_hd_applications" WHERE "version"='1.4' AND "title"='Windows Live Messenger'; |
## Task
Generate a SQL query to answer the following question:
`What is the function of 1.4 version of Windows live messenger? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "zune_hd_applications" (
"title" text,
"developer" text,
"category" tex... |
SELECT "function" FROM "zune_hd_applications" WHERE "release_date"='2011-06-23'; |
## Task
Generate a SQL query to answer the following question:
`What functions were released on 2011-06-23? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "zune_hd_applications" (
"title" text,
"developer" text,
"category" text,
"function" tex... |
SELECT "cospar_id" FROM "table1_18161217_2" WHERE "estimated_operational_life"='2 months' AND "satellite"='Kosmos 2397'; |
## Task
Generate a SQL query to answer the following question:
`What is the cospar ID of the Kosmos 2397 satellite, which has an operational life of 2 months?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_18161217_2" (
"satellite" text,
"c... |
SELECT "launch_date" FROM "table1_18161217_2" WHERE "cospar_id"='2008-033A'; |
## Task
Generate a SQL query to answer the following question:
`What was the launch date the satellite with cospar ID is 2008-033A?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_18161217_2" (
"satellite" text,
"cospar_id" text,
"satcat_n... |
SELECT "cospar_id" FROM "table1_18161217_2" WHERE "satellite"='Kosmos 2379'; |
## Task
Generate a SQL query to answer the following question:
`What it the international designation for the kosmos 2379 satellite?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_18161217_2" (
"satellite" text,
"cospar_id" text,
"satcat_... |
SELECT "estimated_end_date_clarification_needed" FROM "table1_18161217_2" WHERE "cospar_id"='2001-037A'; |
## Task
Generate a SQL query to answer the following question:
`What is the estimated end date for the 2001-037a international designated satellite?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_18161217_2" (
"satellite" text,
"cospar_id" ... |
SELECT "city" FROM "undergraduate_chapters_associate_chapter" WHERE "charter_date"='December 4, 2011'; |
## Task
Generate a SQL query to answer the following question:
`in which city was charter date december 4, 2011`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "undergraduate_chapters_associate_chapter" (
"greek_designation" text,
"collegiate_instit... |
SELECT COUNT("greek_designation") FROM "undergraduate_chapters_associate_chapter" WHERE "city"='Tampa'; |
## Task
Generate a SQL query to answer the following question:
`how mnay greek designation in tampa`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "undergraduate_chapters_associate_chapter" (
"greek_designation" text,
"collegiate_institution" text... |
SELECT "status" FROM "undergraduate_chapters_associate_chapter" WHERE "city"='Vestal'; |
## Task
Generate a SQL query to answer the following question:
`what is the status in vestal`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "undergraduate_chapters_associate_chapter" (
"greek_designation" text,
"collegiate_institution" text,
"cha... |
SELECT "collegiate_institution" FROM "undergraduate_chapters_associate_chapter" WHERE "city"='Queens'; |
## Task
Generate a SQL query to answer the following question:
`what is the collegiate institution in queens`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "undergraduate_chapters_associate_chapter" (
"greek_designation" text,
"collegiate_instituti... |
SELECT "original_title" FROM "table1_18162883_1" WHERE "film_title_used_in_nomination"='Run for Money'; |
## Task
Generate a SQL query to answer the following question:
`What was the original title of Run for Money?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_18162883_1" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"origin... |
SELECT "tuesday" FROM "table1_18173916_6" WHERE "thursday"='196 Buried'; |
## Task
Generate a SQL query to answer the following question:
`What was the Tuesday episode if theThursday episode was 196 Buried?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_18173916_6" (
"episodes" text,
"monday" text,
"tuesday" tex... |
SELECT COUNT("friday") FROM "table1_18173916_6" WHERE "wednesday"='210 Kirby''s Epic Yarn'; |
## Task
Generate a SQL query to answer the following question:
`How many episodes were shown on Friday if 210 Kirby's Epic Yarn was shown on Wednesday?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_18173916_6" (
"episodes" text,
"monday" t... |
SELECT COUNT("friday") FROM "table1_18173916_6" WHERE "wednesday"='190 Boardwalk Empire'; |
## Task
Generate a SQL query to answer the following question:
`How many episodes were shown on Friday if 190 Boardwalk Empire was shown on Wednesday?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_18173916_6" (
"episodes" text,
"monday" te... |
SELECT "episodes" FROM "table1_18173916_6" WHERE "tuesday"='224 Assassin''s Creed: Brotherhood Circus Training'; |
## Task
Generate a SQL query to answer the following question:
`What were the dates when 224 Assassin's Creed: Brotherhood Circus Training was shown on Tuesday?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_18173916_6" (
"episodes" text,
"... |
SELECT "average_attendance_home" FROM "attendances" WHERE "division_section"='Superettan' AND "average_attendance_away"='1.889'; |
## Task
Generate a SQL query to answer the following question:
`When the average away attendance is 1.889 in the Superettan, what's the average home attendance?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "attendances" (
"season" real,
"average_... |
SELECT MAX("season") FROM "attendances" WHERE "average_attendance_league"='2.572'; |
## Task
Generate a SQL query to answer the following question:
`In which season was the average league attendance 2.572?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "attendances" (
"season" real,
"average_attendance_home" text,
"highest_attend... |
SELECT "division_section" FROM "attendances" WHERE "season"=2012; |
## Task
Generate a SQL query to answer the following question:
`In which division did they compete in 2012?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "attendances" (
"season" real,
"average_attendance_home" text,
"highest_attendance_home" te... |
SELECT "highest_attendance_away" FROM "attendances" WHERE "average_attendance_home"='3.123'; |
## Task
Generate a SQL query to answer the following question:
`When the home attendance is 3.123, what's the highest away attendance?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "attendances" (
"season" real,
"average_attendance_home" text,
"... |
SELECT "division_section" FROM "attendances" WHERE "average_attendance_home"='2.459'; |
## Task
Generate a SQL query to answer the following question:
`Which division has an average home attendance of 2.459?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "attendances" (
"season" real,
"average_attendance_home" text,
"highest_attenda... |
SELECT COUNT("speed_rank") FROM "indy_500_results" WHERE "car_number"=92; |
## Task
Generate a SQL query to answer the following question:
`How many years was he car number 92?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indy_500_results" (
"year" real,
"car_number" real,
"start" real,
"qual_speed" text,
"speed_r... |
SELECT COUNT("year") FROM "indy_500_results" WHERE "chassis"='Lotus-Ford 38/7'; |
## Task
Generate a SQL query to answer the following question:
`How many years was the chassis a lotus-ford 38/7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indy_500_results" (
"year" real,
"car_number" real,
"start" real,
"qual_speed" tex... |
SELECT "race_status" FROM "indy_500_results" WHERE "chassis"='Lotus-Ford 38/1'; |
## Task
Generate a SQL query to answer the following question:
`What was the race status(es) with the lotus-ford 38/1 chassis?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indy_500_results" (
"year" real,
"car_number" real,
"start" real,
"qu... |
SELECT "year" FROM "indy_500_results" WHERE "race_status"='Piston'; |
## Task
Generate a SQL query to answer the following question:
`What year(s) was the race status piston?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indy_500_results" (
"year" real,
"car_number" real,
"start" real,
"qual_speed" text,
"spe... |
SELECT MAX("laps_led") FROM "indy_500_results" WHERE "chassis"='Lotus-Ford 34/3'; |
## Task
Generate a SQL query to answer the following question:
`What is the largest laps led with the lotus-ford 34/3 chassis?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indy_500_results" (
"year" real,
"car_number" real,
"start" real,
"qu... |
SELECT MAX("population") FROM "2012_calendar_year_ratios_of_crime_per_1" WHERE "city"='Minneapolis'; |
## Task
Generate a SQL query to answer the following question:
`What was the population of Minneapolis in 2012?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2012_calendar_year_ratios_of_crime_per_1" (
"state" text,
"city" text,
"population" re... |
SELECT "burglary" FROM "2012_calendar_year_ratios_of_crime_per_1" WHERE "violent_crime"='974.7'; |
## Task
Generate a SQL query to answer the following question:
`How many burglaries occurred in the city where the violent crime rate was 974.7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2012_calendar_year_ratios_of_crime_per_1" (
"state" text,... |
SELECT "violent_crime" FROM "2012_calendar_year_ratios_of_crime_per_1" WHERE "robbery"='201.4'; |
## Task
Generate a SQL query to answer the following question:
`What was the violent crime rate in the city where the robbery rate was 201.4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2012_calendar_year_ratios_of_crime_per_1" (
"state" text,
... |
SELECT COUNT("property_crime") FROM "2012_calendar_year_ratios_of_crime_per_1" WHERE "burglary"='224.8'; |
## Task
Generate a SQL query to answer the following question:
`How many cities were there in 2012 where the rate of burglary was 224.8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2012_calendar_year_ratios_of_crime_per_1" (
"state" text,
"city... |
SELECT "mitchell" FROM "table1_1818471_1" WHERE "author_species"='Temminck & Schlegel, 1849'; |
## Task
Generate a SQL query to answer the following question:
`What are all values for Mitchell when the author species is Temminck & Schlegel, 1849?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1818471_1" (
"year" real,
"date" text,
"... |
SELECT "value" FROM "table1_1818471_1" WHERE "mitchell"=676; |
## Task
Generate a SQL query to answer the following question:
`What is every value when Mitchell is 676?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1818471_1" (
"year" real,
"date" text,
"type" text,
"species" text,
"author_speci... |
SELECT COUNT("afinsa") FROM "table1_1818471_1" WHERE "value"='5P'; |
## Task
Generate a SQL query to answer the following question:
`How many different numbers for Afinsa when value is 5p?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1818471_1" (
"year" real,
"date" text,
"type" text,
"species" text,
... |
SELECT "scott" FROM "table1_1818471_1" WHERE "date"='(15.12)'; |
## Task
Generate a SQL query to answer the following question:
`What is every entry for Scott when the date is (15.12)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1818471_1" (
"year" real,
"date" text,
"type" text,
"species" text,
... |
SELECT "species" FROM "table1_1818471_1" WHERE "afinsa"=639; |
## Task
Generate a SQL query to answer the following question:
`What is every species when Afinsa is 639?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1818471_1" (
"year" real,
"date" text,
"type" text,
"species" text,
"author_speci... |
SELECT COUNT("order") FROM "table1_1818471_1" WHERE "species"='Pavo cristatus'; |
## Task
Generate a SQL query to answer the following question:
`How many orders when the species is Pavo Cristatus?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1818471_1" (
"year" real,
"date" text,
"type" text,
"species" text,
"au... |
SELECT "constellation" FROM "targets" WHERE "distance_ly"='55.7'; |
## Task
Generate a SQL query to answer the following question:
`If the distance is 55.7, what is the name of the constellation?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "targets" (
"hd_designation" text,
"constellation" text,
"distance_ly" ... |
SELECT COUNT("distance_ly") FROM "targets" WHERE "spectral_type"='G1V'; |
## Task
Generate a SQL query to answer the following question:
`If the spectral type is g1v, what is the total distance amount?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "targets" (
"hd_designation" text,
"constellation" text,
"distance_ly" ... |
SELECT COUNT("hd_designation") FROM "targets" WHERE "arrival_date"='February 2070'; |
## Task
Generate a SQL query to answer the following question:
`What is the hd designation for arrival date of February 2070?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "targets" (
"hd_designation" text,
"constellation" text,
"distance_ly" te... |
SELECT "spectral_type" FROM "targets" WHERE "constellation"='Gemini'; |
## Task
Generate a SQL query to answer the following question:
`If the constellation is Gemini, what is the spectral type?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "targets" (
"hd_designation" text,
"constellation" text,
"distance_ly" text,... |
SELECT COUNT("signal_power_k_w") FROM "targets" WHERE "arrival_date"='January 2059'; |
## Task
Generate a SQL query to answer the following question:
`If the arrival date is January 2059, what is the total amount of signal power?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "targets" (
"hd_designation" text,
"constellation" text,
... |
SELECT "constellation" FROM "targets" WHERE "spectral_type"='G1V'; |
## Task
Generate a SQL query to answer the following question:
`If the spectral type is g1v, what is the constellation?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "targets" (
"hd_designation" text,
"constellation" text,
"distance_ly" text,
... |
SELECT "artist" FROM "list_of_songs_released_in_2009" WHERE "song_title"='\"Sugarbaby\"'; |
## Task
Generate a SQL query to answer the following question:
`What is the artist of the song "sugarbaby"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_songs_released_in_2009" (
"song_title" text,
"artist" text,
"decade" text,
"genr... |
SELECT "release_date" FROM "list_of_songs_released_in_2009" WHERE "song_title"='\"Had a Dad\"'; |
## Task
Generate a SQL query to answer the following question:
`What is the release date for the song "had a dad"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_songs_released_in_2009" (
"song_title" text,
"artist" text,
"decade" text,
... |
SELECT MAX("no") FROM "lpga_tour_wins_9" WHERE "tournament"='Evian Masters'; |
## Task
Generate a SQL query to answer the following question:
`List the total numbers of Evian Masters tournaments. `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "lpga_tour_wins_9" (
"no" real,
"date" text,
"tournament" text,
"winning_score"... |
SELECT "original_air_date" FROM "table1_18217753_1" WHERE "season_num"=9; |
## Task
Generate a SQL query to answer the following question:
`What is the original air date of season 9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_18217753_1" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" te... |
SELECT "written_by" FROM "table1_18217753_1" WHERE "u_s_viewers_millions"='27.11'; |
## Task
Generate a SQL query to answer the following question:
`Who were the writers when there were 27.11 million viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_18217753_1" (
"series_num" real,
"season_num" real,
"title" text,
... |
SELECT COUNT("series_num") FROM "table1_18217753_1" WHERE "u_s_viewers_millions"='23.93'; |
## Task
Generate a SQL query to answer the following question:
`How many series had viewers totaling 23.93 million?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_18217753_1" (
"series_num" real,
"season_num" real,
"title" text,
"direct... |
SELECT COUNT("original_air_date") FROM "table1_18217753_1" WHERE "u_s_viewers_millions"='26.06'; |
## Task
Generate a SQL query to answer the following question:
`How many original air dates totaled 26.06 million viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_18217753_1" (
"series_num" real,
"season_num" real,
"title" text,
... |
SELECT "title" FROM "table1_18217741_1" WHERE "u_s_viewers_millions"='18.58'; |
## Task
Generate a SQL query to answer the following question:
`What is the title when 18.58 u.s. viewers (millions) watched?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_18217741_1" (
"series_num" real,
"season_num" real,
"title" text... |
SELECT COUNT("digital_terrestrial_channel") FROM "availability_of_channels_from_various_pr" WHERE "channel"='Channel 4'; |
## Task
Generate a SQL query to answer the following question:
`How many digital terrestrial channels are there for channel 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "availability_of_channels_from_various_pr" (
"position" real,
"channel" te... |
SELECT "channel" FROM "availability_of_channels_from_various_pr" WHERE "digital_terrestrial_channel"='10'; |
## Task
Generate a SQL query to answer the following question:
`What is the channel that is on digital terrestrial channel 10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "availability_of_channels_from_various_pr" (
"position" real,
"channel" te... |
SELECT "digital_terrestrial_channel" FROM "availability_of_channels_from_various_pr" WHERE "channel"='ITV3'; |
## Task
Generate a SQL query to answer the following question:
`What is the digital terrestria channel number for itv3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "availability_of_channels_from_various_pr" (
"position" real,
"channel" text,
"... |
SELECT "position" FROM "availability_of_channels_from_various_pr" WHERE "digital_terrestrial_channel"='5 44 (+1)'; |
## Task
Generate a SQL query to answer the following question:
`What is the position of digital channel 5 44 (+1)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "availability_of_channels_from_various_pr" (
"position" real,
"channel" text,
"analo... |
SELECT "delegate" FROM "appointed_delegates_to_various_internati" WHERE "pageant"='Elite Model Look' AND "year">1993.0; |
## Task
Generate a SQL query to answer the following question:
`where pageant is elite model look and year is bigger than 1993.0, who is the delegate?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "appointed_delegates_to_various_internati" (
"year" ... |
SELECT COUNT("year") FROM "appointed_delegates_to_various_internati" WHERE "pageant"='Miss Globe International' AND "delegate"='Karen Loren Medrano Agustin'; |
## Task
Generate a SQL query to answer the following question:
`How many years was the pageant miss globe international and delegate was karen loren medrano agustin?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "appointed_delegates_to_various_interna... |
SELECT COUNT("pageant") FROM "appointed_delegates_to_various_internati" WHERE "hometown"='San Fernando, Pampanga'; |
## Task
Generate a SQL query to answer the following question:
`How many pageants were in san fernando, pampanga?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "appointed_delegates_to_various_internati" (
"year" real,
"delegate" text,
"hometown"... |
SELECT COUNT("pageant") FROM "appointed_delegates_to_various_internati" WHERE "delegate"='Margaret Ann Awitan Bayot'; |
## Task
Generate a SQL query to answer the following question:
`How many pageants were margaret ann awitan bayot the delegate of?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "appointed_delegates_to_various_internati" (
"year" real,
"delegate" te... |
SELECT "other_awards" FROM "appointed_delegates_to_various_internati" WHERE "delegate"='Milagros Gutierrez'; |
## Task
Generate a SQL query to answer the following question:
`How many awards did milagros gutierrez win?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "appointed_delegates_to_various_internati" (
"year" real,
"delegate" text,
"hometown" text,... |
SELECT "hometown" FROM "appointed_delegates_to_various_internati" WHERE "pageant"='Miss Global Teen'; |
## Task
Generate a SQL query to answer the following question:
`Where is the miss global teen?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "appointed_delegates_to_various_internati" (
"year" real,
"delegate" text,
"hometown" text,
"pageant" ... |
SELECT "substrate" FROM "biosynthesis" WHERE "enzyme"='ALA dehydratase'; |
## Task
Generate a SQL query to answer the following question:
`what is the subtrate for enzyme ala dehydratase`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "biosynthesis" (
"enzyme" text,
"location" text,
"substrate" text,
"product" text,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.