question
stringlengths
14
216
context
stringlengths
45
458
answer
stringlengths
18
463
What were the results of the womens u20 when the mens 45 was Sunwest Razorbacks def Northern Eagles?
create table table_16724844_1 (womens_u20 varchar, mens_45 varchar, PRIMARY KEY (womens_u20))
select womens_u20 from table_16724844_1 where mens_45 = "sunwest razorbacks def northern eagles"
Who was the cast on the 3/23/1963 episode?
create table table_26032940_2 (main_cast varchar, airdate varchar, PRIMARY KEY (main_cast))
select main_cast from table_26032940_2 where airdate = "3/23/1963"
What is the intergiro classification of alexander gontchenkov?
create table table_12261926_2 (intergiro_classification varchar, winner varchar, PRIMARY KEY (intergiro_classification))
select intergiro_classification from table_12261926_2 where winner = "alexander gontchenkov"
List all the username and passwords of users with the most popular role.
create table users (user_name varchar, password varchar, role_code varchar, PRIMARY KEY (user_name))
select user_name, password from users group by role_code order by count(*) desc limit 1
Which complaint status has more than 3 records on file?
create table complaints (complaint_status_code varchar, PRIMARY KEY (complaint_status_code))
select complaint_status_code from complaints group by complaint_status_code having count(*) > 3
What was the polling average in Aug 2009 when is was 5.0% in Sep 2009?
create table table_23680576_2 (aug_2008 varchar, sep_2008 varchar, PRIMARY KEY (aug_2008))
select aug_2008 from table_23680576_2 where sep_2008 = "5.0%"
How many editors are there?
create table editor (id varchar, PRIMARY KEY (id))
select count(*) from editor
What is every entry for epoch if periselene is 5,454.925?
create table table_206217_2 (epoch__utc_ varchar, periselene__km_ varchar, PRIMARY KEY (epoch__utc_))
select epoch__utc_ from table_206217_2 where periselene__km_ = "5,454.925"
Name the most obama number for mccain being 38.86%
create table table_20468206_1 (obama_number integer, mccain_percentage varchar, PRIMARY KEY (obama_number))
select max(obama_number) from table_20468206_1 where mccain_percentage = "38.86%"
what is the home team when the round # is round 1?
create table table_26847237_3 (home_team varchar, round__number varchar, PRIMARY KEY (home_team))
select home_team from table_26847237_3 where round__number = "round 1"
If the country of origin is switzerland, what is the name/ designation?
create table table_26389588_1 (name___designation varchar, country_of_origin varchar, PRIMARY KEY (name___designation))
select name___designation from table_26389588_1 where country_of_origin = "switzerland"
If the just cents is 84.46, what is the just ratio?
create table table_18955077_1 (just_ratio varchar, just__cents_ varchar, PRIMARY KEY (just_ratio))
select just_ratio from table_18955077_1 where just__cents_ = "84.46"
What is channel 33.7's official call sign?
create table table_1404984_1 (call_sign varchar, virtual_channel varchar, PRIMARY KEY (call_sign))
select call_sign from table_1404984_1 where virtual_channel = "33.7"
What are all approximate sales for the author Laura Ingalls Wilder?
create table table_2512935_8 (approximate_sales varchar, author varchar, PRIMARY KEY (approximate_sales))
select approximate_sales from table_2512935_8 where author = "laura ingalls wilder"
Who wrote when the original airdate is April 5, 1987?
create table table_2226817_2 (written_by varchar, original_air_date varchar, PRIMARY KEY (written_by))
select written_by from table_2226817_2 where original_air_date = "april 5, 1987"
Find the personal name, family name, and author ID of the course author that teaches the most courses.
create table courses (author_id varchar, PRIMARY KEY (author_id)); create table course_authors_and_tutors (personal_name varchar, family_name varchar, author_id varchar, PRIMARY KEY (personal_name))
select t1.personal_name, t1.family_name, t2.author_id from course_authors_and_tutors as t1 join courses as t2 on t1.author_id = t2.author_id group by t2.author_id order by count(*) desc limit 1
How many weeks in the top 10 was spent by a song performed by Peter Kay?
create table table_27813010_2 (weeks_in_top_10 integer, artist varchar, PRIMARY KEY (weeks_in_top_10))
select max(weeks_in_top_10) from table_27813010_2 where artist = "peter kay"
A list of the top 5 countries by number of invoices. List country name and number of invoices.
create table invoices (billing_country varchar, PRIMARY KEY (billing_country))
select billing_country, count(*) from invoices group by billing_country order by count(*) desc limit 5
how many people wrote the episode directed by rob schrab?
create table table_28081876_4 (written_by varchar, directed_by varchar, PRIMARY KEY (written_by))
select count(written_by) from table_28081876_4 where directed_by = "rob schrab"
What is the official name of the municipality whose name in Basque is Bilar?
create table table_300283_1 (official_name varchar, name_in_basque varchar, PRIMARY KEY (official_name))
select official_name from table_300283_1 where name_in_basque = "bilar"
How many teams can still qualify when there are 0 teams that have secured qualification and 52 teams started?
create table table_23995075_2 (teams_that_can_still_qualify varchar, teams_that_have_secured_qualification varchar, teams_started varchar, PRIMARY KEY (teams_that_can_still_qualify))
select teams_that_can_still_qualify from table_23995075_2 where teams_that_have_secured_qualification = "0" and teams_started = "52"
What is the highest track number?
create table table_10848177_1 (track__number integer, PRIMARY KEY (track__number))
select max(track__number) from table_10848177_1
how many title and source with pal -295- being yes and jp -210- being yes
create table table_13663434_1 (title_and_source varchar, pal__295_ varchar, jp__210_ varchar, PRIMARY KEY (title_and_source))
select count(title_and_source) from table_13663434_1 where pal__295_ = "yes" and jp__210_ = "yes"
Who was the athlete that covered biking within 58:52?
create table table_17085947_32 (athlete varchar, bike__40km_ varchar, PRIMARY KEY (athlete))
select athlete from table_17085947_32 where bike__40km_ = "58:52"
What order did Lambert perform in the top 11?
create table table_21501511_1 (order__number varchar, week__number varchar, PRIMARY KEY (order__number))
select order__number from table_21501511_1 where week__number = "top 11"
Name the country for the us dollar
create table table_2764267_2 (country varchar, currency varchar, PRIMARY KEY (country))
select country from table_2764267_2 where currency = "us dollar"
What was the vacancy date for Thomas Thomasberg?
create table table_27782699_3 (date_of_vacancy varchar, outgoing_manager varchar, PRIMARY KEY (date_of_vacancy))
select date_of_vacancy from table_27782699_3 where outgoing_manager = "thomas thomasberg"
What is the name of the series with the unknown host?
create table table_27487310_5 (name varchar, host_s_ varchar, PRIMARY KEY (name))
select name from table_27487310_5 where host_s_ = "unknown"
what's the builder where withdrawn is 1954–1958
create table table_1181375_1 (builder varchar, withdrawn varchar, PRIMARY KEY (builder))
select builder from table_1181375_1 where withdrawn = "1954–1958"
What reference, written by Nelson Riddle, suggests 2 violas?
create table table_2414_1 (reference varchar, violas varchar, author varchar, PRIMARY KEY (reference))
select reference from table_2414_1 where violas = 2 and author = "nelson riddle"
How many different types of beds are there?
create table rooms (bedtype varchar, PRIMARY KEY (bedtype))
select count(distinct bedtype) from rooms
Which region has a regional page # of 1-3, 5-7, 9-11, 13-15?
create table table_287659_2 (region_name varchar, regional_page__number varchar, PRIMARY KEY (region_name))
select region_name from table_287659_2 where regional_page__number = "1-3, 5-7, 9-11, 13-15"
What is the intro date for the throughput of 16 mbit/s?
create table table_29778616_1 (intro_date varchar, throughput varchar, PRIMARY KEY (intro_date))
select intro_date from table_29778616_1 where throughput = "16 mbit/s"
How many pixels would be found in a hardware colour of 8?
create table table_1701371_2 (pixels varchar, hardware_colours varchar, PRIMARY KEY (pixels))
select pixels from table_1701371_2 where hardware_colours = 8
how many byu-uu score with winner being utah state (2–1) won over byu by media vote
create table table_13665809_2 (byu_uu_score varchar, winner varchar, PRIMARY KEY (byu_uu_score))
select count(byu_uu_score) from table_13665809_2 where winner = "utah state (2–1) won over byu by media vote"
what is the highest mccain # where obama got 33.7%
create table table_20424014_1 (mccain__number integer, obama__percentage varchar, PRIMARY KEY (mccain__number))
select max(mccain__number) from table_20424014_1 where obama__percentage = "33.7%"
how many 20-39% are in pont-de-vivaux?
create table table_29615165_5 (_percentage_20_39_years varchar, quartier varchar, PRIMARY KEY (_percentage_20_39_years))
select count(_percentage_20_39_years) from table_29615165_5 where quartier = "pont-de-vivaux"
what is the least number of no decisions for scott feldman category:articles with hcards
create table table_19864214_3 (no_decisions integer, pitcher varchar, PRIMARY KEY (no_decisions))
select min(no_decisions) from table_19864214_3 where pitcher = "scott feldman category:articles with hcards"
On what date was James P. Buchanan (d)'s successor seated?
create table table_2159547_3 (date_successor_seated varchar, vacator varchar, PRIMARY KEY (date_successor_seated))
select date_successor_seated from table_2159547_3 where vacator = "james p. buchanan (d)"
What is the employee id of the head whose department has the least number of employees?
create table department (head varchar, departmentid varchar, PRIMARY KEY (head))
select head from department group by departmentid order by count(departmentid) limit 1
What's the air date of part 1 of the episode whose part 2 aired on December 2, 2007?
create table table_13241993_3 (part_1 varchar, part_2 varchar, PRIMARY KEY (part_1))
select part_1 from table_13241993_3 where part_2 = "december 2, 2007"
Which is the class AA when graford was the class A
create table table_14747043_1 (class_aa varchar, class_a varchar, PRIMARY KEY (class_aa))
select class_aa from table_14747043_1 where class_a = "graford"
Please show the software platforms of devices in descending order of the count.
create table device (software_platform varchar, PRIMARY KEY (software_platform))
select software_platform from device group by software_platform order by count(*) desc
What's the name of the church in Stavang?
create table table_178381_1 (church_name varchar, location_of_the_church varchar, PRIMARY KEY (church_name))
select church_name from table_178381_1 where location_of_the_church = "stavang"
The man who received 87,676 votes in Queens won what percentage of the total for the election?
create table table_1108394_47 (_percentage varchar, queens varchar, PRIMARY KEY (_percentage))
select _percentage from table_1108394_47 where queens = "87,676"
What are the customer phone numbers under the policy "Life Insurance"?
create table available_policies (customer_phone varchar, policy_type_code varchar, PRIMARY KEY (customer_phone))
select customer_phone from available_policies where policy_type_code = "life insurance"
What's the NHL team that drafted the player from Sudbury Wolves (OHA)?
create table table_1965650_4 (nhl_team varchar, college_junior_club_team varchar, PRIMARY KEY (nhl_team))
select nhl_team from table_1965650_4 where college_junior_club_team = "sudbury wolves (oha)"
Name the 2nd leg for boca juniors
create table table_23812628_1 (team__number1 varchar, PRIMARY KEY (team__number1))
select 2 as nd_leg from table_23812628_1 where team__number1 = "boca juniors"
Which authority has a rocket launch called shahpar-2?
create table table_11869952_1 (institutional_authority varchar, rocket_launch varchar, PRIMARY KEY (institutional_authority))
select institutional_authority from table_11869952_1 where rocket_launch = "shahpar-2"
What is the nickname of Drexel University?
create table table_19210115_1 (nickname varchar, institution varchar, PRIMARY KEY (nickname))
select nickname from table_19210115_1 where institution = "drexel university"
how many country has moto3/125cc with 15
create table table_2889810_2 (country varchar, moto3_125cc varchar, PRIMARY KEY (country))
select country from table_2889810_2 where moto3_125cc = 15
Which airport has an IATA Code of ORD?
create table table_18047346_5 (airport_name varchar, iata_code varchar, PRIMARY KEY (airport_name))
select airport_name from table_18047346_5 where iata_code = "ord"
The winning team of the race, los angeles times 500 is who?
create table table_10706879_3 (winning_team varchar, name varchar, PRIMARY KEY (winning_team))
select winning_team from table_10706879_3 where name = "los angeles times 500"
What is population in the world when 788 (8.1%)?
create table table_19017269_5 (world integer, latin_america_caribbean varchar, PRIMARY KEY (world))
select min(world) from table_19017269_5 where latin_america_caribbean = "788 (8.1%)"
List all information about customer master index, and sort them by details in descending order.
create table customer_master_index (cmi_details varchar, PRIMARY KEY (cmi_details))
select * from customer_master_index order by cmi_details desc
what's the na -350- with title and source being paper wars: cannon fodder
create table table_13663434_1 (na__350_ varchar, title_and_source varchar, PRIMARY KEY (na__350_))
select na__350_ from table_13663434_1 where title_and_source = "paper wars: cannon fodder"
Find the payment method code used by more than 3 parties.
create table parties (payment_method_code varchar, PRIMARY KEY (payment_method_code))
select payment_method_code from parties group by payment_method_code having count(*) > 3
How many years was the film The Blossoming of Maximo Oliveros entered?
create table table_17919342_1 (year__ceremony_ varchar, film_title_used_in_nomination varchar, PRIMARY KEY (year__ceremony_))
select count(year__ceremony_) from table_17919342_1 where film_title_used_in_nomination = "the blossoming of maximo oliveros"
what's the club with losing bonus being 1
create table table_13758945_3 (club varchar, losing_bonus varchar, PRIMARY KEY (club))
select club from table_13758945_3 where losing_bonus = "1"
What was the result(s) in the event 3 squatlift for the man from the United states with a result of 1 (42.66s) in the event 2 truck pull?
create table table_24302700_2 (event_3_squat_lift varchar, nationality varchar, event_2_truck_pull varchar, PRIMARY KEY (event_3_squat_lift))
select event_3_squat_lift from table_24302700_2 where nationality = "united states" and event_2_truck_pull = "1 (42.66s)"
What is the toll for light vehicles at the plaza where the toll for heavy vehicles with 2 axles is r87.00?
create table table_1211545_2 (light_vehicle varchar, heavy_vehicle__2_axles_ varchar, PRIMARY KEY (light_vehicle))
select light_vehicle from table_1211545_2 where heavy_vehicle__2_axles_ = "r87.00"
What is the target with an approval date of 2006?
create table table_1661124_1 (target varchar, approval_date varchar, PRIMARY KEY (target))
select target from table_1661124_1 where approval_date = 2006
What is every reason for change for the date of successors installation is March 16, 1960?
create table table_2159571_1 (reason_for_change varchar, date_of_successors_formal_installation varchar, PRIMARY KEY (reason_for_change))
select reason_for_change from table_2159571_1 where date_of_successors_formal_installation = "march 16, 1960"
For the chinese name 盧奕基 how many in total is the govt salary?
create table table_17964087_2 (govt_salary varchar, chinese_name varchar, PRIMARY KEY (govt_salary))
select count(govt_salary) from table_17964087_2 where chinese_name = "盧奕基"
Who wrote the episode originally aired on September 29, 1999?
create table table_18646432_4 (written_by varchar, original_air_date varchar, PRIMARY KEY (written_by))
select written_by from table_18646432_4 where original_air_date = "september 29, 1999"
Name the least population 2007 for barangay is poblacion ii
create table table_1686313_1 (population__2007_ integer, barangay varchar, PRIMARY KEY (population__2007_))
select min(population__2007_) from table_1686313_1 where barangay = "poblacion ii"
Name the drivetrain for 1ur-fse for usf41
create table table_21530474_1 (drivetrain varchar, engine_code varchar, chassis_code varchar, PRIMARY KEY (drivetrain))
select drivetrain from table_21530474_1 where engine_code = "1ur-fse" and chassis_code = "usf41"
in which state where John Laurance (f) as a vacator?
create table table_224840_3 (state__class_ varchar, vacator varchar, PRIMARY KEY (state__class_))
select state__class_ from table_224840_3 where vacator = "john laurance (f)"
Who scored the highest points and how much against the raptors?
create table table_23248910_6 (high_points varchar, team varchar, PRIMARY KEY (high_points))
select high_points from table_23248910_6 where team = "raptors"
Where did they finish in the season when when they won $491,977?
create table table_2649597_1 (season_rank varchar, winnings varchar, PRIMARY KEY (season_rank))
select season_rank from table_2649597_1 where winnings = "$491,977"
When was the start of the construction of the unit that's been in commercial operation since 04.03.1987?
create table table_12983929_1 (construction_start varchar, commercial_operation varchar, PRIMARY KEY (construction_start))
select construction_start from table_12983929_1 where commercial_operation = "04.03.1987"
Who manufactured the car driven by Will Power and Scott Dixon had the most laps?
create table table_27913160_3 (manufacturer varchar, driver varchar, most_laps_led varchar, PRIMARY KEY (manufacturer))
select manufacturer from table_27913160_3 where driver = "will power" and most_laps_led = "scott dixon"
What is every code and location where the launch site condition and owner is obliterated?
create table table_22282917_26 (code_ varchar, _location varchar, launch_site_condition_owner varchar, PRIMARY KEY (code_))
select code_ & _location from table_22282917_26 where launch_site_condition_owner = "obliterated"
Who is the regular season winner for the Ivy League conference?
create table table_21091982_3 (regular_season_winner varchar, conference varchar, PRIMARY KEY (regular_season_winner))
select regular_season_winner from table_21091982_3 where conference = "ivy league"
For nhl team is san jose sharks mention all the college/junior/club team
create table table_2781227_4 (college_junior_club_team varchar, nhl_team varchar, PRIMARY KEY (college_junior_club_team))
select college_junior_club_team from table_2781227_4 where nhl_team = "san jose sharks"
What is the code nickname where Steve Mayne is the coach?
create table table_18752986_1 (nickname varchar, coach varchar, PRIMARY KEY (nickname))
select nickname from table_18752986_1 where coach = "steve mayne"
Return the name and gender of the staff who was assigned in 2016.
create table staff (staff_name varchar, staff_gender varchar, staff_id varchar, PRIMARY KEY (staff_name)); create table staff_department_assignments (staff_id varchar, date_assigned_from varchar, PRIMARY KEY (staff_id))
select t1.staff_name, t1.staff_gender from staff as t1 join staff_department_assignments as t2 on t1.staff_id = t2.staff_id where t2.date_assigned_from like "2016%"
During the quarter 2012 Q4, how many millions of android phones were shipped?
create table table_14260687_3 (android varchar, quarter varchar, PRIMARY KEY (android))
select count(android) from table_14260687_3 where quarter = "2012 q4"
Show all video game types.
create table video_games (gtype varchar, PRIMARY KEY (gtype))
select distinct gtype from video_games
Name the least yes for dublin south
create table table_1705429_1 (yes integer, constituency varchar, PRIMARY KEY (yes))
select min(yes) from table_1705429_1 where constituency = "dublin south"
What is the number for future stem for poztu?
create table table_12784134_24 (future_stem varchar, perfect_stem varchar, PRIMARY KEY (future_stem))
select count(future_stem) from table_12784134_24 where perfect_stem = "poztu"
Who is every composer for the media named Hall of Dreams?
create table table_23829490_1 (composer varchar, name_of_the_media varchar, PRIMARY KEY (composer))
select composer from table_23829490_1 where name_of_the_media = "hall of dreams"
What is the premiere where the host is lieke van lexmond dennis weening?
create table table_11323532_2 (premiere varchar, host varchar, PRIMARY KEY (premiere))
select premiere from table_11323532_2 where host = "lieke van lexmond dennis weening"
Find the first name and gender of the student who has allergy to milk but not cat.
create table student (fname varchar, sex varchar, stuid varchar, allergy varchar, PRIMARY KEY (fname)); create table has_allergy (fname varchar, sex varchar, stuid varchar, allergy varchar, PRIMARY KEY (fname))
select fname, sex from student where stuid in (select stuid from has_allergy where allergy = "milk" except select stuid from has_allergy where allergy = "cat")
Name the series ep for s02e08
create table table_15187735_3 (series_ep varchar, netflix varchar, PRIMARY KEY (series_ep))
select series_ep from table_15187735_3 where netflix = "s02e08"
What is the original air date where tracy poust & jon kinnally was written by?
create table table_22570439_1 (original_air_date varchar, written_by varchar, PRIMARY KEY (original_air_date))
select original_air_date from table_22570439_1 where written_by = "tracy poust & jon kinnally"
Who is h.t. brewer when je armstrong is c.p. greeks?
create table table_1320857_1 (ht_brewer varchar, je_armstrong varchar, PRIMARY KEY (ht_brewer))
select ht_brewer from table_1320857_1 where je_armstrong = "c.p. greeks"
What is the oldest log id and its corresponding problem id?
create table problem_log (problem_log_id varchar, problem_id varchar, log_entry_date varchar, PRIMARY KEY (problem_log_id))
select problem_log_id, problem_id from problem_log order by log_entry_date limit 1
what is the name of the processor for model x33x0?
create table table_24101118_1 (processor varchar, model__list_ varchar, PRIMARY KEY (processor))
select processor from table_24101118_1 where model__list_ = "x33x0"
Which teams homeeground is Stemmemyren?
create table table_2522473_1 (team varchar, home_ground varchar, PRIMARY KEY (team))
select team from table_2522473_1 where home_ground = "stemmemyren"
Which college has any student who is a goalie and succeeded in the tryout.
create table tryout (cname varchar, decision varchar, ppos varchar, PRIMARY KEY (cname))
select cname from tryout where decision = 'yes' and ppos = 'goalie'
Which kind of part has the least number of faults? List the part name.
create table parts (part_name varchar, part_id varchar, PRIMARY KEY (part_name)); create table part_faults (part_id varchar, PRIMARY KEY (part_id))
select t1.part_name from parts as t1 join part_faults as t2 on t1.part_id = t2.part_id group by t1.part_name order by count(*) limit 1
Which manager was replaced by Thomas Thomasberg?
create table table_27782699_3 (outgoing_manager varchar, replaced_by varchar, PRIMARY KEY (outgoing_manager))
select outgoing_manager from table_27782699_3 where replaced_by = "thomas thomasberg"
What is the minimum score given in judging panel points?
create table table_26485957_1 (judging_panel_points integer, PRIMARY KEY (judging_panel_points))
select min(judging_panel_points) from table_26485957_1
What is the men's nickname at the school that has the lady wildcats women's nickname?
create table table_10577579_3 (men’s_nickname varchar, women’s_nickname varchar, PRIMARY KEY (men’s_nickname))
select men’s_nickname from table_10577579_3 where women’s_nickname = "lady wildcats"
Name the barrel twist for colt model mt6400
create table table_12834315_4 (barrel_twist varchar, colt_model_no varchar, PRIMARY KEY (barrel_twist))
select barrel_twist from table_12834315_4 where colt_model_no = "mt6400"
Show card type codes with at least 5 cards.
create table customers_cards (card_type_code varchar, PRIMARY KEY (card_type_code))
select card_type_code from customers_cards group by card_type_code having count(*) >= 5
What is the acronym for the school whose website is ul.edu.lb
create table table_1160660_1 (acronym varchar, website varchar, PRIMARY KEY (acronym))
select acronym from table_1160660_1 where website = "ul.edu.lb"
When indonesia is the country what is the rank of 2010?
create table table_293465_1 (rank_2010 varchar, country varchar, PRIMARY KEY (rank_2010))
select rank_2010 from table_293465_1 where country = "indonesia"
How many professors who are from either Accounting or Biology department?
create table department (dept_code varchar, dept_name varchar, PRIMARY KEY (dept_code)); create table professor (dept_code varchar, PRIMARY KEY (dept_code))
select count(*) from professor as t1 join department as t2 on t1.dept_code = t2.dept_code where t2.dept_name = 'accounting' or t2.dept_name = 'biology'