question
stringlengths 14
216
| context
stringlengths 45
458
| answer
stringlengths 18
463
|
---|---|---|
who is the captain where coach is geoff miles | create table table_1165048_1 (captain varchar, coach varchar, PRIMARY KEY (captain)) | select captain from table_1165048_1 where coach = "geoff miles" |
What was the record in the game whose first star was J. Oduya? | create table table_27537518_6 (record varchar, first_star varchar, PRIMARY KEY (record)) | select record from table_27537518_6 where first_star = "j. oduya" |
Show all template ids and number of documents using each template. | create table documents (template_id varchar, PRIMARY KEY (template_id)) | select template_id, count(*) from documents group by template_id |
Which third party companies have at least 2 maintenance engineers or have at least 2 maintenance contracts? List the company id and name. | create table maintenance_contracts (maintenance_contract_company_id varchar, PRIMARY KEY (maintenance_contract_company_id)); create table maintenance_engineers (company_id varchar, PRIMARY KEY (company_id)); create table third_party_companies (company_id varchar, company_name varchar, PRIMARY KEY (company_id)) | select t1.company_id, t1.company_name from third_party_companies as t1 join maintenance_engineers as t2 on t1.company_id = t2.company_id group by t1.company_id having count(*) >= 2 union select t3.company_id, t3.company_name from third_party_companies as t3 join maintenance_contracts as t4 on t3.company_id = t4.maintenance_contract_company_id group by t3.company_id having count(*) >= 2 |
What is the name of the captain when teh shirt sponsor is n/a? | create table table_27631756_2 (captain varchar, shirt_sponsor varchar, PRIMARY KEY (captain)) | select captain from table_27631756_2 where shirt_sponsor = "n/a" |
What is every value for Russian when value for Bulgarian is пес, куче? | create table table_25008327_8 (russian varchar, bulgarian varchar, PRIMARY KEY (russian)) | select russian from table_25008327_8 where bulgarian = "пес, куче" |
What date did the Milton Keynes Dons appoint? | create table table_18788823_5 (date_of_appointment varchar, team varchar, PRIMARY KEY (date_of_appointment)) | select date_of_appointment from table_18788823_5 where team = "milton keynes dons" |
Who are all of the candidates in elections where Dennis Kucinich was a candidate? | create table table_1805191_36 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates)) | select candidates from table_1805191_36 where incumbent = "dennis kucinich" |
Name the population density when barangay is tiptip | create table table_1686313_1 (pop_density__per_km²_ varchar, barangay varchar, PRIMARY KEY (pop_density__per_km²_)) | select pop_density__per_km²_ from table_1686313_1 where barangay = "tiptip" |
What is the other abbreviation of the constellation that has hydrae /ˈhaɪdriː/ as genitive? | create table table_287159_1 (other_abbreviation varchar, genitive varchar, PRIMARY KEY (other_abbreviation)) | select other_abbreviation from table_287159_1 where genitive = "hydrae /ˈhaɪdriː/" |
List the names of all distinct medications, ordered in an alphabetical order. | create table medication (name varchar, PRIMARY KEY (name)) | select distinct name from medication order by name |
what is the date of appointment for the team osasuna? | create table table_24231638_3 (date_of_appointment varchar, team varchar, PRIMARY KEY (date_of_appointment)) | select date_of_appointment from table_24231638_3 where team = "osasuna" |
What was the largest ethnic group in sočica? | create table table_2562572_46 (largest_ethnic_group__2002_ varchar, settlement varchar, PRIMARY KEY (largest_ethnic_group__2002_)) | select largest_ethnic_group__2002_ from table_2562572_46 where settlement = "sočica" |
How many languages have elles as the film title used in nomination? | create table table_22073745_1 (languages varchar, film_title_used_in_nomination varchar, PRIMARY KEY (languages)) | select count(languages) from table_22073745_1 where film_title_used_in_nomination = "elles" |
Which nationality is the player from the Philadelphia Flyers? | create table table_1473672_3 (nationality varchar, nhl_team varchar, PRIMARY KEY (nationality)) | select nationality from table_1473672_3 where nhl_team = "philadelphia flyers" |
What is the complete description of the researcher role. | create table staff_roles (role_description varchar, role_code varchar, PRIMARY KEY (role_description)) | select role_description from staff_roles where role_code = 'researcher' |
How many entries are shown for date of successors formal installation where successor is john w. walker (dr)? | create table table_225099_3 (date_of_successors_formal_installation varchar, successor varchar, PRIMARY KEY (date_of_successors_formal_installation)) | select count(date_of_successors_formal_installation) from table_225099_3 where successor = "john w. walker (dr)" |
Show names of parties that does not have any members. | create table party (party_name varchar, party_id varchar, PRIMARY KEY (party_name)); create table member (party_name varchar, party_id varchar, PRIMARY KEY (party_name)) | select party_name from party where not party_id in (select party_id from member) |
Name the del pueblo for centennial 1988 | create table table_15977768_1 (del_pueblo varchar, centennial varchar, PRIMARY KEY (del_pueblo)) | select del_pueblo from table_15977768_1 where centennial = "1988" |
Would built the winning car in the IV J.C.C. Jersey Road Race? | create table table_1140119_5 (constructor varchar, race_name varchar, PRIMARY KEY (constructor)) | select constructor from table_1140119_5 where race_name = "iv j.c.c. jersey road race" |
What was the winning team where Tim Macrow won the fastest lap on Queensland Raceway circuit? | create table table_22083044_2 (winning_team varchar, circuit varchar, fastest_lap varchar, PRIMARY KEY (winning_team)) | select winning_team from table_22083044_2 where circuit = "queensland raceway" and fastest_lap = "tim macrow" |
What was the order number where the original artist is The Doors? | create table table_15796072_1 (order__number varchar, original_artist varchar, PRIMARY KEY (order__number)) | select order__number from table_15796072_1 where original_artist = "the doors" |
Show all investor details. | create table investors (investor_details varchar, PRIMARY KEY (investor_details)) | select investor_details from investors |
Who was the rider when Fri 28 Aug was 24' 23.36 92.820mph? | create table table_23465864_6 (rider varchar, fri_28_aug varchar, PRIMARY KEY (rider)) | select rider from table_23465864_6 where fri_28_aug = "24' 23.36 92.820mph" |
How many TFR were there in 2006 when the GFR was 53.8? | create table table_12251936_1 (tfr_2006 varchar, gfr_2006 varchar, PRIMARY KEY (tfr_2006)) | select tfr_2006 from table_12251936_1 where gfr_2006 = "53.8" |
What is Joan Leaven's occupation? | create table table_2933761_1 (occupation varchar, name varchar, PRIMARY KEY (occupation)) | select occupation from table_2933761_1 where name = "joan leaven" |
What party did hilda solis represent? | create table table_1805191_6 (party varchar, incumbent varchar, PRIMARY KEY (party)) | select party from table_1805191_6 where incumbent = "hilda solis" |
Name the 132.1% for where north carolina is colorado | create table table_15051_4 (north_carolina varchar, PRIMARY KEY (north_carolina)) | select 1321 as _percentage from table_15051_4 where north_carolina = "colorado" |
How many distinct complaint type codes are there in the database? | create table complaints (complaint_type_code varchar, PRIMARY KEY (complaint_type_code)) | select count(distinct complaint_type_code) from complaints |
Show the names of editors and the theme of journals for which they serve on committees. | create table journal_committee (editor_id varchar, journal_id varchar, PRIMARY KEY (editor_id)); create table editor (name varchar, editor_id varchar, PRIMARY KEY (name)); create table journal (theme varchar, journal_id varchar, PRIMARY KEY (theme)) | select t2.name, t3.theme from journal_committee as t1 join editor as t2 on t1.editor_id = t2.editor_id join journal as t3 on t1.journal_id = t3.journal_id |
What was the founding university of αεφ? | create table table_2538117_5 (founding_university varchar, letters varchar, PRIMARY KEY (founding_university)) | select founding_university from table_2538117_5 where letters = "αεφ" |
Which opening film has the opening date of august 23? | create table table_18220102_1 (opening_film varchar, date__opening_ varchar, PRIMARY KEY (opening_film)) | select opening_film from table_18220102_1 where date__opening_ = "august 23" |
What current conference is Post University a member of? | create table table_12936521_2 (current_conference varchar, institution varchar, PRIMARY KEY (current_conference)) | select current_conference from table_12936521_2 where institution = "post university" |
What was the location for when the opponent was @ roughriders? | create table table_21761882_4 (location varchar, opponent varchar, PRIMARY KEY (location)) | select location from table_21761882_4 where opponent = "@ roughriders" |
How many different variants are there for Northern Counties bodybuilder? | create table table_28035004_1 (variant varchar, bodybuilder varchar, PRIMARY KEY (variant)) | select count(variant) from table_28035004_1 where bodybuilder = "northern counties" |
When was the film Här har du ditt liv used in nomination? | create table table_20061872_1 (year__ceremony_ varchar, original_title varchar, PRIMARY KEY (year__ceremony_)) | select year__ceremony_ from table_20061872_1 where original_title = "här har du ditt liv" |
What is the percentage of the Labour Party on the Harris Poll | create table table_159614_2 (harris varchar, party varchar, PRIMARY KEY (harris)) | select harris from table_159614_2 where party = "labour" |
What status doe the area with a census ranking of 2,290 of 5,008 have? | create table table_171356_2 (status varchar, census_ranking varchar, PRIMARY KEY (status)) | select status from table_171356_2 where census_ranking = "2,290 of 5,008" |
What is overall rank when viewers are at 6.59 million? | create table table_20522228_2 (rank__overall_ varchar, viewers__millions_ varchar, PRIMARY KEY (rank__overall_)) | select rank__overall_ from table_20522228_2 where viewers__millions_ = "6.59" |
Name the license for e-on vue | create table table_19495707_1 (license varchar, application varchar, PRIMARY KEY (license)) | select license from table_19495707_1 where application = "e-on vue" |
What is the song choice when the theme is not aired? | create table table_12175755_1 (theme varchar, song_choice varchar, PRIMARY KEY (theme)) | select theme from table_12175755_1 where song_choice = "not aired" |
The episode written by Rebecca Dameron aired on what date? | create table table_11111116_6 (original_air_date varchar, written_by varchar, PRIMARY KEY (original_air_date)) | select original_air_date from table_11111116_6 where written_by = "rebecca dameron" |
What is the zip code in which the average mean sea level pressure is the lowest? | create table weather (zip_code varchar, mean_sea_level_pressure_inches integer, PRIMARY KEY (zip_code)) | select zip_code from weather group by zip_code order by avg(mean_sea_level_pressure_inches) limit 1 |
Find the number of tweets in record. | create table tweets (id varchar, PRIMARY KEY (id)) | select count(*) from tweets |
When did the term end that began January 3, 2007? | create table table_224672_2 (term_ended varchar, term_began varchar, PRIMARY KEY (term_ended)) | select term_ended from table_224672_2 where term_began = "january 3, 2007" |
Which category does the product named "flax" belong to? | create table products (product_category_code varchar, product_name varchar, PRIMARY KEY (product_category_code)) | select product_category_code from products where product_name = "flax" |
How many times did Public Policy Polling under Republican: Jack Hoogendyk? | create table table_16751596_6 (republican varchar, poll_source varchar, PRIMARY KEY (republican)) | select count(republican) as :_jack_hoogendyk from table_16751596_6 where poll_source = "public policy polling" |
Find the last name and hire date of the professor who is in office DRE 102. | create table professor (emp_num varchar, prof_office varchar, PRIMARY KEY (emp_num)); create table employee (emp_lname varchar, emp_hiredate varchar, emp_num varchar, PRIMARY KEY (emp_lname)) | select t1.emp_lname, t1.emp_hiredate from employee as t1 join professor as t2 on t1.emp_num = t2.emp_num where t2.prof_office = 'dre 102' |
What is the name of the institution with the mascot of blue devils? | create table table_12434380_1 (institution varchar, mascot varchar, PRIMARY KEY (institution)) | select institution from table_12434380_1 where mascot = "blue devils" |
In episode 115 what is seen being made before British police helmets? | create table table_15187735_9 (segment_b varchar, segment_c varchar, PRIMARY KEY (segment_b)) | select segment_b from table_15187735_9 where segment_c = "british police helmets" |
How many 'number of seasons in top division' were played if the 'first season in top division' games is in 1990-91? | create table table_18143210_2 (number_of_seasons_in_top_division integer, first_season_in_top_division varchar, PRIMARY KEY (number_of_seasons_in_top_division)) | select max(number_of_seasons_in_top_division) from table_18143210_2 where first_season_in_top_division = "1990-91" |
What is the nickname of the University of Alabama? | create table table_26355116_1 (nickname varchar, school varchar, PRIMARY KEY (nickname)) | select nickname from table_26355116_1 where school = "university of alabama" |
What is the country of origin of the artist who is female and produced a song in Bangla? | create table artist (country varchar, artist_name varchar, gender varchar, PRIMARY KEY (country)); create table song (artist_name varchar, languages varchar, PRIMARY KEY (artist_name)) | select t1.country from artist as t1 join song as t2 on t1.artist_name = t2.artist_name where t1.gender = "female" and t2.languages = "bangla" |
What was the record of the game in which Dydek (10) did the most high rebounds? | create table table_18904831_5 (record varchar, high_rebounds varchar, PRIMARY KEY (record)) | select record from table_18904831_5 where high_rebounds = "dydek (10)" |
what skipper has the sail number aus60000? | create table table_25561560_2 (skipper varchar, sail_number varchar, PRIMARY KEY (skipper)) | select skipper from table_25561560_2 where sail_number = "aus60000" |
What was the public office of the subject whose sculpture was created in 1954? | create table table_20903658_1 (public_office varchar, date_painted_created varchar, PRIMARY KEY (public_office)) | select public_office from table_20903658_1 where date_painted_created = "1954" |
What's the transcription of the thai name of the month พฤษภาคม? | create table table_180802_2 (transcription varchar, thai_name varchar, PRIMARY KEY (transcription)) | select transcription from table_180802_2 where thai_name = "พฤษภาคม" |
Who replaced when team is wigan athletic? | create table table_10592536_8 (replaced_by varchar, team varchar, PRIMARY KEY (replaced_by)) | select replaced_by from table_10592536_8 where team = "wigan athletic" |
What is the original air date of the episode directed by Terrence Nightingall? | create table table_17356205_1 (original_air_date varchar, directed_by varchar, PRIMARY KEY (original_air_date)) | select original_air_date from table_17356205_1 where directed_by = "terrence nightingall" |
List the name of enzymes in descending lexicographical order. | create table enzyme (name varchar, PRIMARY KEY (name)) | select name from enzyme order by name desc |
Show all product sizes. | create table products (product_size varchar, PRIMARY KEY (product_size)) | select distinct product_size from products |
Who was Betty's partner when the surface is hard? | create table table_2820584_2 (partner varchar, surface varchar, PRIMARY KEY (partner)) | select partner from table_2820584_2 where surface = "hard" |
What is the title of the episode written by Frank Military? | create table table_28611413_2 (title varchar, written_by varchar, PRIMARY KEY (title)) | select title from table_28611413_2 where written_by = "frank military" |
How many hectares of land area is Landsbro? | create table table_16796625_1 (land_area__hectares_ varchar, urban_area__locality_ varchar, PRIMARY KEY (land_area__hectares_)) | select land_area__hectares_ from table_16796625_1 where urban_area__locality_ = "landsbro" |
How many millions of viewers are listed where the writer is Matthew Okumura? | create table table_2866503_1 (us_viewers__million_ varchar, written_by varchar, PRIMARY KEY (us_viewers__million_)) | select us_viewers__million_ from table_2866503_1 where written_by = "matthew okumura" |
What is the English version of Mariusz Szczygieł book? | create table table_14631909_1 (english_title varchar, author varchar, PRIMARY KEY (english_title)) | select english_title from table_14631909_1 where author = "mariusz szczygieł" |
In how many locations was the episode with the Bailey family filmed? | create table table_19897294_10 (location_s_ varchar, family_families varchar, PRIMARY KEY (location_s_)) | select count(location_s_) from table_19897294_10 where family_families = "the bailey family" |
Show the names of students who have at least 2 likes. | create table likes (student_id varchar, PRIMARY KEY (student_id)); create table highschooler (name varchar, id varchar, PRIMARY KEY (name)) | select t2.name from likes as t1 join highschooler as t2 on t1.student_id = t2.id group by t1.student_id having count(*) >= 2 |
Who was featured in the election of charles edward bennett redistricted from 2nd? | create table table_1341843_10 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates)) | select candidates from table_1341843_10 where incumbent = "charles edward bennett redistricted from 2nd" |
What is the main legion base that disbanded 70 xx? | create table table_242785_3 (main_legion_base varchar, date_disband varchar, PRIMARY KEY (main_legion_base)) | select main_legion_base from table_242785_3 where date_disband = "70 xx" |
Which episode had 2.75 million viewers in the U.S.? | create table table_25740548_4 (title varchar, us_viewers__million_ varchar, PRIMARY KEY (title)) | select title from table_25740548_4 where us_viewers__million_ = "2.75" |
Who are the mens doubles and womens singles is wang shixian? | create table table_13553701_1 (mens_doubles varchar, womens_singles varchar, PRIMARY KEY (mens_doubles)) | select mens_doubles from table_13553701_1 where womens_singles = "wang shixian" |
Who are the champions that have won at Aguas Buenas, Puerto Rico? | create table table_1272033_1 (champion_s_ varchar, location varchar, PRIMARY KEY (champion_s_)) | select champion_s_ from table_1272033_1 where location = "aguas buenas, puerto rico" |
What is the cardinal direction associated with Venus? | create table table_14850099_18 (cardinal_direction varchar, planet varchar, PRIMARY KEY (cardinal_direction)) | select cardinal_direction from table_14850099_18 where planet = "venus" |
Show the lieutenant governor and comptroller from the democratic party. | create table party (lieutenant_governor varchar, comptroller varchar, party varchar, PRIMARY KEY (lieutenant_governor)) | select lieutenant_governor, comptroller from party where party = "democratic" |
Which flag is most widely used among all ships? | create table ship (flag varchar, PRIMARY KEY (flag)) | select flag from ship group by flag order by count(*) desc limit 1 |
When is the rhel release date when scientific linux release is 3.0.4 | create table table_1500146_1 (rhel_release_date varchar, scientific_linux_release varchar, PRIMARY KEY (rhel_release_date)) | select rhel_release_date from table_1500146_1 where scientific_linux_release = "3.0.4" |
Who is the rider where the horse is galan de sauvagere? | create table table_18666752_3 (rider varchar, horse varchar, PRIMARY KEY (rider)) | select rider from table_18666752_3 where horse = "galan de sauvagere" |
Who is in the high points in the @ l.a. clippers team? | create table table_27734286_1 (high_points varchar, team varchar, PRIMARY KEY (high_points)) | select high_points from table_27734286_1 where team = "@ l.a. clippers" |
What is the height in ft for the rockets from 1973-78? | create table table_11734041_16 (height_in_ft varchar, years_for_rockets varchar, PRIMARY KEY (height_in_ft)) | select height_in_ft from table_11734041_16 where years_for_rockets = "1973-78" |
how many teams won at golf when wooster won soccer | create table table_16423070_4 (golf varchar, soccer varchar, PRIMARY KEY (golf)) | select count(golf) from table_16423070_4 where soccer = "wooster" |
What are the names of the directors who made exactly one movie excluding director NULL? | create table movie (director varchar, PRIMARY KEY (director)) | select director from movie where director <> "null" group by director having count(*) = 1 |
What is the short stem for garbitzen? | create table table_12784134_24 (short_stem varchar, imperfect_stem varchar, PRIMARY KEY (short_stem)) | select short_stem from table_12784134_24 where imperfect_stem = "garbitzen" |
How many conflicts started in Afghanistan? | create table table_1921_1 (start_of_conflict varchar, location varchar, PRIMARY KEY (start_of_conflict)) | select count(start_of_conflict) from table_1921_1 where location = "afghanistan" |
Name the name of award for zubeen garg | create table table_24446718_7 (name_of_award varchar, awardee_s_ varchar, PRIMARY KEY (name_of_award)) | select name_of_award from table_24446718_7 where awardee_s_ = "zubeen garg" |
What candidates ran in the election with don fuqua? | create table table_1341690_9 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates)) | select candidates from table_1341690_9 where incumbent = "don fuqua" |
What is the model number for the order part numbered tmrm75dam22gg? | create table table_27277284_28 (model_number varchar, order_part_number varchar, PRIMARY KEY (model_number)) | select model_number from table_27277284_28 where order_part_number = "tmrm75dam22gg" |
How many departments does the college has? | create table department (dept_name varchar, PRIMARY KEY (dept_name)) | select count(distinct dept_name) from department |
What was the maximum number in written when the standard was 2? | create table table_19534874_2 (written integer, standard varchar, PRIMARY KEY (written)) | select max(written) from table_19534874_2 where standard = 2 |
Who had the high assists while Erick Dampier (8) had the high rebounds? | create table table_17288869_7 (high_assists varchar, high_rebounds varchar, PRIMARY KEY (high_assists)) | select high_assists from table_17288869_7 where high_rebounds = "erick dampier (8)" |
What date did the episode that had 8.84 million u.s. viewers originally air? | create table table_28768925_1 (original_air_date varchar, us_viewers__million_ varchar, PRIMARY KEY (original_air_date)) | select original_air_date from table_28768925_1 where us_viewers__million_ = "8.84" |
what is the affiliation of the colors maroon and white? | create table table_20887670_1 (affiliation varchar, colors varchar, PRIMARY KEY (affiliation)) | select affiliation from table_20887670_1 where colors = "maroon and white" |
Name the pinyin for ciá-ìng-gâing | create table table_2013618_1 (pinyin varchar, foochow varchar, PRIMARY KEY (pinyin)) | select pinyin from table_2013618_1 where foochow = "ciá-ìng-gâing" |
On November 14, 2007, what are the Democrat: Vivian Davis Figures percentages? | create table table_16751596_12 (democrat varchar, dates_administered varchar, PRIMARY KEY (democrat)) | select democrat as :_vivian_davis_figures from table_16751596_12 where dates_administered = "november 14, 2007" |
What's team #2 in the round where team $1 is Ilisiakos? | create table table_19130829_4 (team__number2 varchar, team__number1 varchar, PRIMARY KEY (team__number2)) | select team__number2 from table_19130829_4 where team__number1 = "ilisiakos" |
When Margaret Ann Bayot won binibining pilipinas-international, how many winners of Miss Universe Philippines were there? | create table table_1825751_4 (miss_universe_philippines varchar, binibining_pilipinas_international varchar, PRIMARY KEY (miss_universe_philippines)) | select count(miss_universe_philippines) from table_1825751_4 where binibining_pilipinas_international = "margaret ann bayot" |
What school is located in Chestnut Hill, Massachusetts? | create table table_1973842_1 (institution varchar, location varchar, PRIMARY KEY (institution)) | select institution from table_1973842_1 where location = "chestnut hill, massachusetts" |
Name the standard yarn weight system for 9 wpi | create table table_20297668_1 (standard_yarn_weight_system varchar, wraps_per_inch__wpi_ varchar, PRIMARY KEY (standard_yarn_weight_system)) | select standard_yarn_weight_system from table_20297668_1 where wraps_per_inch__wpi_ = "9 wpi" |
What was the club that won 10 top division titles? | create table table_18143210_2 (club varchar, top_division_titles varchar, PRIMARY KEY (club)) | select club from table_18143210_2 where top_division_titles = 10 |
Show the account id with most number of transactions. | create table financial_transactions (account_id varchar, PRIMARY KEY (account_id)) | select account_id from financial_transactions group by account_id order by count(*) desc limit 1 |
Subsets and Splits