question
stringlengths
14
216
context
stringlengths
45
458
answer
stringlengths
18
463
What are all the distinct asset models?
create table assets (asset_model varchar, PRIMARY KEY (asset_model))
select distinct asset_model from assets
What is the primary conference of the school that has the lowest acc percent score in the competition?
create table basketball_match (school_id varchar, acc_percent varchar, PRIMARY KEY (school_id)); create table university (primary_conference varchar, school_id varchar, PRIMARY KEY (primary_conference))
select t1.primary_conference from university as t1 join basketball_match as t2 on t1.school_id = t2.school_id order by t2.acc_percent limit 1
what's the date of birth with end of term being 2april1969
create table table_12134383_1 (date_of_birth varchar, end_of_term varchar, PRIMARY KEY (date_of_birth))
select date_of_birth from table_12134383_1 where end_of_term = "2april1969"
How many millions of viewers are listed when the share is 10.8?
create table table_29574579_1 (uk_viewers__million_ varchar, share___percentage_ varchar, PRIMARY KEY (uk_viewers__million_))
select uk_viewers__million_ from table_29574579_1 where share___percentage_ = "10.8"
What is main presenters of La Granja?
create table table_1053802_1 (main_presenters varchar, local_title varchar, PRIMARY KEY (main_presenters))
select main_presenters from table_1053802_1 where local_title = "la granja"
What is the English name of gùshǐ xiàn?
create table table_2847477_2 (english_name varchar, pinyin varchar, PRIMARY KEY (english_name))
select english_name from table_2847477_2 where pinyin = "gùshǐ xiàn"
A nucleus that is blue/black will specifically stain what?
create table table_13570_1 (specifically_stains varchar, nucleus varchar, PRIMARY KEY (specifically_stains))
select specifically_stains from table_13570_1 where nucleus = "blue/black"
Show the ids of the investors who have at least two transactions.
create table transactions (investor_id varchar, PRIMARY KEY (investor_id)); create table investors (investor_id varchar, PRIMARY KEY (investor_id))
select t2.investor_id from investors as t1 join transactions as t2 on t1.investor_id = t2.investor_id group by t2.investor_id having count(*) >= 2
Can you tell me the manufacturer behind Race Hill Farm Team?
create table table_2267465_1 (manufacturer varchar, team varchar, PRIMARY KEY (manufacturer))
select manufacturer from table_2267465_1 where team = "race hill farm team"
Who was the champion boxer?
create table table_14345690_2 (celebrity varchar, famous_for varchar, PRIMARY KEY (celebrity))
select celebrity from table_14345690_2 where famous_for = "champion boxer"
What was the outcome when the final score was 7–6(9), 7–6(1)?
create table table_2199290_2 (outcome varchar, score_in_the_final varchar, PRIMARY KEY (outcome))
select outcome from table_2199290_2 where score_in_the_final = "7–6(9), 7–6(1)"
Which part fault requires the most number of skills to fix? List part id and name.
create table part_faults (part_id varchar, part_fault_id varchar, PRIMARY KEY (part_id)); create table skills_required_to_fix (part_fault_id varchar, PRIMARY KEY (part_fault_id)); create table parts (part_id varchar, part_name varchar, PRIMARY KEY (part_id))
select t1.part_id, t1.part_name from parts as t1 join part_faults as t2 on t1.part_id = t2.part_id join skills_required_to_fix as t3 on t2.part_fault_id = t3.part_fault_id group by t1.part_id order by count(*) desc limit 1
what's the election date where electorate is omata
create table table_1193568_1 (election_date varchar, electorate varchar, PRIMARY KEY (election_date))
select election_date from table_1193568_1 where electorate = "omata"
What are all the distinct details of the customers?
create table customers (customer_details varchar, PRIMARY KEY (customer_details))
select distinct customer_details from customers
If the specimen weight/size is 1000 g / 8.79 cm, what is the calculated activity?
create table table_26211058_1 (calculated_activity___bq__ varchar, specimen_weight_size varchar, PRIMARY KEY (calculated_activity___bq__))
select count(calculated_activity___bq__) from table_26211058_1 where specimen_weight_size = "1000 g / 8.79 cm"
Who was the race 1 winner at the race held at Winton Motor Raceway?
create table table_22905641_2 (race_1_winner varchar, circuit varchar, PRIMARY KEY (race_1_winner))
select race_1_winner from table_22905641_2 where circuit = "winton motor raceway"
Who are the outgoing head coaches whose manner of departure is Gardening Leave 1?
create table table_29171931_3 (outgoing_head_coach varchar, manner_of_departure varchar, PRIMARY KEY (outgoing_head_coach))
select outgoing_head_coach from table_29171931_3 where manner_of_departure = "gardening leave 1"
List in alphabetic order all different amenities.
create table dorm_amenity (amenity_name varchar, PRIMARY KEY (amenity_name))
select amenity_name from dorm_amenity order by amenity_name
What's the NO of the standard with HC of 1.23 g/kWh?
create table table_2780146_6 (no_x__g_kwh_ varchar, hc__g_kwh_ varchar, PRIMARY KEY (no_x__g_kwh_))
select no_x__g_kwh_ from table_2780146_6 where hc__g_kwh_ = "1.23"
What is the percentage of registered voters in which the d-r spread is +14.3%?
create table table_27003223_4 (registered_voters varchar, d_r_spread varchar, PRIMARY KEY (registered_voters))
select registered_voters from table_27003223_4 where d_r_spread = "+14.3%"
how many vehicles where top 13 time is 1:18.72
create table table_20090682_4 (vehicle varchar, top_13_time varchar, PRIMARY KEY (vehicle))
select count(vehicle) from table_20090682_4 where top_13_time = "1:18.72"
Which junior team is associated with an NHL pick by the Buffalo Sabres?
create table table_2850912_4 (college_junior_club_team varchar, nhl_team varchar, PRIMARY KEY (college_junior_club_team))
select college_junior_club_team from table_2850912_4 where nhl_team = "buffalo sabres"
Retrieve all the last names of authors in alphabetical order.
create table authors (lname varchar, PRIMARY KEY (lname))
select lname from authors order by lname
How many values for Macedonian correspond to Slovianski value of Veliki?
create table table_25008327_8 (macedonian varchar, slovianski varchar, PRIMARY KEY (macedonian))
select count(macedonian) from table_25008327_8 where slovianski = "veliki"
What is the team when the high points were by wesley johnson (20)?
create table table_27756314_10 (team varchar, high_points varchar, PRIMARY KEY (team))
select team from table_27756314_10 where high_points = "wesley johnson (20)"
Which parishes have the highworth railroad?
create table table_16226584_1 (parish varchar, name varchar, PRIMARY KEY (parish))
select parish from table_16226584_1 where name = "highworth"
How many winners have a runner-up of A. Karthikeyan?
create table table_22753439_1 (winner varchar, runner_up_a varchar, PRIMARY KEY (winner))
select count(winner) from table_22753439_1 where runner_up_a = "a. karthikeyan"
What is the implementation when the netflow version is v5, v8, v9, ipfix?
create table table_1206114_2 (implementation varchar, netflow_version varchar, PRIMARY KEY (implementation))
select implementation from table_1206114_2 where netflow_version = "v5, v8, v9, ipfix"
Who had the high rebounds when the high assists were from J. Johnson (7)?
create table table_11961582_10 (high_rebounds varchar, high_assists varchar, PRIMARY KEY (high_rebounds))
select high_rebounds from table_11961582_10 where high_assists = "j. johnson (7)"
How many students play video games?
create table plays_games (stuid varchar, PRIMARY KEY (stuid))
select count(distinct stuid) from plays_games
What was the capacity percentage when attendance was 71080?
create table table_28884858_2 (capacity_percentage varchar, average_attendance varchar, PRIMARY KEY (capacity_percentage))
select capacity_percentage from table_28884858_2 where average_attendance = 71080
How many baronies is Maulnagrough a part of?
create table table_30120761_1 (barony varchar, townland varchar, PRIMARY KEY (barony))
select count(barony) from table_30120761_1 where townland = "maulnagrough"
What is the name of the player who played in 2009 only?
create table table_12321870_32 (player_name varchar, period varchar, PRIMARY KEY (player_name))
select player_name from table_12321870_32 where period = "2009"
Find the names and descriptions of courses that belong to the subject named "Computer Science".
create table courses (course_name varchar, course_description varchar, subject_id varchar, PRIMARY KEY (course_name)); create table subjects (subject_id varchar, subject_name varchar, PRIMARY KEY (subject_id))
select t1.course_name, t1.course_description from courses as t1 join subjects as t2 on t1.subject_id = t2.subject_id where t2.subject_name = "computer science"
List every album whose title starts with A in alphabetical order.
create table albums (title varchar, PRIMARY KEY (title))
select title from albums where title like 'a%' order by title
How many audition city's are there with an episode air date of June 24, 2010?
create table table_27615445_1 (audition_city varchar, episode_air_date varchar, PRIMARY KEY (audition_city))
select count(audition_city) from table_27615445_1 where episode_air_date = "june 24, 2010"
who wrote with original air date being september23,1995
create table table_14637853_3 (written_by varchar, original_air_date varchar, PRIMARY KEY (written_by))
select written_by from table_14637853_3 where original_air_date = "september23,1995"
What is the institution with the nickname engineers?
create table table_261927_1 (institution varchar, nickname varchar, PRIMARY KEY (institution))
select institution from table_261927_1 where nickname = "engineers"
Name the scientific linux release when delay is 28d
create table table_1500146_1 (scientific_linux_release varchar, delay varchar, PRIMARY KEY (scientific_linux_release))
select scientific_linux_release from table_1500146_1 where delay = "28d"
Who was the centerfold model when the issue's pictorial was amanda beard, reby sky , girls of montauk ?
create table table_1566852_8 (centerfold_model varchar, pictorials varchar, PRIMARY KEY (centerfold_model))
select centerfold_model from table_1566852_8 where pictorials = "amanda beard, reby sky , girls of montauk"
Which authority has a rocket launch called rehbar-5?
create table table_11869952_1 (derivatives varchar, rocket_launch varchar, PRIMARY KEY (derivatives))
select count(derivatives) from table_11869952_1 where rocket_launch = "rehbar-5"
What percentage is listed in column r1b1a2 (r-m269) for the 77.8% r1b1c (r-v88)?
create table table_21481509_4 (r1b1a2__r_m269_ varchar, r1b1c__r_v88_ varchar, PRIMARY KEY (r1b1a2__r_m269_))
select r1b1a2__r_m269_ from table_21481509_4 where r1b1c__r_v88_ = "77.8%"
Who were the writers of the episodes directed by Greg Sullivan and which first aired on July 21, 2012?
create table table_29087004_3 (written_by varchar, directed_by varchar, united_states_original_airdate varchar, PRIMARY KEY (written_by))
select written_by from table_29087004_3 where directed_by = "greg sullivan" and united_states_original_airdate = "july 21, 2012"
When wacker burghausen is the oberbayern a what is the schwaben?
create table table_23224961_1 (schwaben varchar, oberbayern_a varchar, PRIMARY KEY (schwaben))
select schwaben from table_23224961_1 where oberbayern_a = "wacker burghausen"
How many games are played for all football games by students on scholarship?
create table sportsinfo (gamesplayed integer, sportname varchar, onscholarship varchar, PRIMARY KEY (gamesplayed))
select sum(gamesplayed) from sportsinfo where sportname = "football" and onscholarship = 'y'
What activities do we have?
create table activity (activity_name varchar, PRIMARY KEY (activity_name))
select activity_name from activity
How many inputs are there in the 'closure for signature' tab under the field 'sea (revised)'?
create table table_2001348_1 (closure_for_signature varchar, field varchar, PRIMARY KEY (closure_for_signature))
select count(closure_for_signature) from table_2001348_1 where field = "sea (revised)"
What agency does Anderson Clayton Anderson work for?
create table table_14125006_1 (agency varchar, astronaut varchar, PRIMARY KEY (agency))
select agency from table_14125006_1 where astronaut = "anderson clayton anderson"
Name the institution for statesmen
create table table_1974482_1 (institution varchar, nickname varchar, PRIMARY KEY (institution))
select institution from table_1974482_1 where nickname = "statesmen"
Which team has Ali Daei as head coach?
create table table_27383390_2 (team varchar, head_coach varchar, PRIMARY KEY (team))
select team from table_27383390_2 where head_coach = "ali daei"
What is the score in the 6 atlas stones event of the player who got 2 (6 in 30.89s) in the 3 dead lift event?
create table table_24302700_6 (event_6_atlas_stones varchar, event_3_dead_lift varchar, PRIMARY KEY (event_6_atlas_stones))
select count(event_6_atlas_stones) from table_24302700_6 where event_3_dead_lift = "2 (6 in 30.89s)"
What was the actor's name for best debut?
create table table_10236830_1 (actors_name varchar, nomination varchar, PRIMARY KEY (actors_name))
select actors_name from table_10236830_1 where nomination = "best debut"
How many viewers saw the episode written by kevin biegel & bill lawrence?
create table table_27987623_1 (us_viewers__in_million_ varchar, written_by varchar, PRIMARY KEY (us_viewers__in_million_))
select us_viewers__in_million_ from table_27987623_1 where written_by = "kevin biegel & bill lawrence"
What are all the AAAA classes in the schools years 2004-05?
create table table_14603212_5 (class_aaaa varchar, school_year varchar, PRIMARY KEY (class_aaaa))
select class_aaaa from table_14603212_5 where school_year = "2004-05"
What is the least top division titles?
create table table_11250_4 (top_division_titles integer, PRIMARY KEY (top_division_titles))
select min(top_division_titles) from table_11250_4
Find the number of rooms that do not have any reservation.
create table rooms (roomid varchar, room varchar, PRIMARY KEY (roomid)); create table reservations (roomid varchar, room varchar, PRIMARY KEY (roomid))
select count(*) from rooms where not roomid in (select distinct room from reservations)
Name the number for service dates for hoosier energy for petersburg
create table table_23958917_1 (in_service_dates varchar, owner_s___2009_ varchar, location varchar, PRIMARY KEY (in_service_dates))
select count(in_service_dates) from table_23958917_1 where owner_s___2009_ = "hoosier energy" and location = "petersburg"
What is the unemployment rate in those places where the market income per capita is $16,981?
create table table_22815568_7 (unemployment_rate varchar, market_income_per_capita varchar, PRIMARY KEY (unemployment_rate))
select count(unemployment_rate) from table_22815568_7 where market_income_per_capita = "$16,981"
Who directed the episode where u.s. viewers (million) is 12.90?
create table table_10701133_1 (directed_by varchar, us_viewers__million_ varchar, PRIMARY KEY (directed_by))
select directed_by from table_10701133_1 where us_viewers__million_ = "12.90"
Where did the team play the Detroit Lions?
create table table_14984078_1 (game_site varchar, opponent varchar, PRIMARY KEY (game_site))
select game_site from table_14984078_1 where opponent = "detroit lions"
What team had a race time of 2:53:57?
create table table_2268216_1 (team varchar, race_time varchar, PRIMARY KEY (team))
select team from table_2268216_1 where race_time = "2:53:57"
What was the minimum score for r2?
create table table_18812411_3 (r2 integer, PRIMARY KEY (r2))
select min(r2) from table_18812411_3
When they played at the Bankatlantic Center, what was their record?
create table table_17360840_5 (record varchar, location varchar, PRIMARY KEY (record))
select record from table_17360840_5 where location = "bankatlantic center"
When 380 g/mi (236 g/km) is the dirty electric grid rocky mountains (denver) what is the u.s national average electric mix?
create table table_24620684_2 (us_national_average_electric_mix varchar, dirty_electric_grid_rocky_mountains__denver_ varchar, PRIMARY KEY (us_national_average_electric_mix))
select us_national_average_electric_mix from table_24620684_2 where dirty_electric_grid_rocky_mountains__denver_ = "380 g/mi (236 g/km)"
Name the primary conference for st. bonaventure university
create table table_16383772_1 (primary_conference varchar, school varchar, PRIMARY KEY (primary_conference))
select primary_conference from table_16383772_1 where school = "st. bonaventure university"
Name the most ending with for peyalvar
create table table_1852650_1 (ending_with integer, sung_by varchar, PRIMARY KEY (ending_with))
select max(ending_with) from table_1852650_1 where sung_by = "peyalvar"
List the names of teachers who have not been arranged to teach courses.
create table course_arrange (name varchar, teacher_id varchar, PRIMARY KEY (name)); create table teacher (name varchar, teacher_id varchar, PRIMARY KEY (name))
select name from teacher where not teacher_id in (select teacher_id from course_arrange)
Who was the Youth Classification in the race with Kenneth Hanson as Mountains Classification and Lucas Sebastian Haedo as winner?
create table table_23157997_13 (youth_classification varchar, mountains_classification varchar, winner varchar, PRIMARY KEY (youth_classification))
select youth_classification from table_23157997_13 where mountains_classification = "kenneth hanson" and winner = "lucas sebastian haedo"
what's the economics score with justice being 90.8
create table table_145439_1 (economics varchar, justice varchar, PRIMARY KEY (economics))
select economics from table_145439_1 where justice = "90.8"
When £337,000 is £ saved what is the percentage of electricity reduction?
create table table_29538735_1 (_percentage_electricity_reduction varchar, £_saved varchar, PRIMARY KEY (_percentage_electricity_reduction))
select _percentage_electricity_reduction from table_29538735_1 where £_saved = "£337,000"
Show the names of the drivers without a school bus.
create table school_bus (name varchar, driver_id varchar, PRIMARY KEY (name)); create table driver (name varchar, driver_id varchar, PRIMARY KEY (name))
select name from driver where not driver_id in (select driver_id from school_bus)
Show different parties of people along with the number of people in each party.
create table people (party varchar, PRIMARY KEY (party))
select party, count(*) from people group by party
What is the hometown of the contestant whose background is as a financial consultant?
create table table_19810459_1 (hometown varchar, background varchar, PRIMARY KEY (hometown))
select hometown from table_19810459_1 where background = "financial consultant"
What is the IDOE Profile in North Manchester?
create table table_1984697_85 (idoe_profile varchar, city___town varchar, PRIMARY KEY (idoe_profile))
select idoe_profile from table_1984697_85 where city___town = "north manchester"
What is the traditional form for 永城市?
create table table_2135222_2 (traditional varchar, simplified varchar, PRIMARY KEY (traditional))
select traditional from table_2135222_2 where simplified = "永城市"
Who were the original artist(s) when jack stamp arranged?
create table table_28715942_2 (original_artist varchar, arranger_s_ varchar, PRIMARY KEY (original_artist))
select original_artist from table_28715942_2 where arranger_s_ = "jack stamp"
Show the names of high schoolers who have at least 3 friends.
create table highschooler (name varchar, id varchar, PRIMARY KEY (name)); create table friend (student_id varchar, PRIMARY KEY (student_id))
select t2.name from friend as t1 join highschooler as t2 on t1.student_id = t2.id group by t1.student_id having count(*) >= 3
What is the name of the circuit in which the race name is ii danish grand prix?
create table table_1140105_6 (circuit varchar, race_name varchar, PRIMARY KEY (circuit))
select circuit from table_1140105_6 where race_name = "ii danish grand prix"
What is the validation for iin ranges 5610, 560221-560225?
create table table_15905399_1 (validation varchar, iin_ranges varchar, PRIMARY KEY (validation))
select validation from table_15905399_1 where iin_ranges = "5610, 560221-560225"
What's the l1 cache of the model with sspec number sl2z3, sl28q (mya0)?
create table table_24096813_15 (l1_cache varchar, sspec_number varchar, PRIMARY KEY (l1_cache))
select l1_cache from table_24096813_15 where sspec_number = "sl2z3, sl28q (mya0)"
What is the original air date of the episode written by David Zuckerman?
create table table_23242958_1 (original_air_date varchar, written_by varchar, PRIMARY KEY (original_air_date))
select original_air_date from table_23242958_1 where written_by = "david zuckerman"
how many shire in the land of area in km 2 is 27.17
create table table_17251764_1 (shire varchar, area_in_km_2 varchar, PRIMARY KEY (shire))
select count(shire) from table_17251764_1 where area_in_km_2 = "27.17"
What is the detail of the location UK Gallery?
create table locations (other_details varchar, location_name varchar, PRIMARY KEY (other_details))
select other_details from locations where location_name = "uk gallery"
What is the last stable version where the h.264 is 3.0 and vp9 (webm) is no.
create table table_26099252_1 (latest_stable_release varchar, vp9___webm__ varchar, h264 varchar, PRIMARY KEY (latest_stable_release))
select latest_stable_release from table_26099252_1 where vp9___webm__ = "no" and h264 = "3.0"
What is the percentage yield for a DPMO of 3.4?
create table table_222448_1 (percentage_yield varchar, dpmo varchar, PRIMARY KEY (percentage_yield))
select percentage_yield from table_222448_1 where dpmo = "3.4"
What is the Cyrillic name for Novi Vladimirovac?
create table table_2562572_56 (cyrillic_name_other_names varchar, settlement varchar, PRIMARY KEY (cyrillic_name_other_names))
select cyrillic_name_other_names from table_2562572_56 where settlement = "novi vladimirovac"
What is the exited day where the celebrity is vic reeves?
create table table_14345690_5 (exited varchar, celebrity varchar, PRIMARY KEY (exited))
select exited from table_14345690_5 where celebrity = "vic reeves"
Name the category for cab size crew and super tanker
create table table_2155350_2 (category varchar, cab_size varchar, sub_category varchar, PRIMARY KEY (category))
select category from table_2155350_2 where cab_size = "crew" and sub_category = "super tanker"
When charles bateman michael lyons is the gt3 winner and donington park is the circuit who is the gt4 winner?
create table table_30062172_3 (gt4_winner varchar, circuit varchar, gt3_winner varchar, PRIMARY KEY (gt4_winner))
select gt4_winner from table_30062172_3 where circuit = "donington park" and gt3_winner = "charles bateman michael lyons"
When 13,895 (27.3) is the percentage against what is the toll poll percentage?
create table table_20683381_3 (total_poll___percentage_ varchar, against___percentage_ varchar, PRIMARY KEY (total_poll___percentage_))
select total_poll___percentage_ from table_20683381_3 where against___percentage_ = "13,895 (27.3)"
How many places featured the DXCL Callsign?
create table table_12547903_3 (location varchar, callsign varchar, PRIMARY KEY (location))
select count(location) from table_12547903_3 where callsign = "dxcl"
What film earmed p3.2 million on December 25?
create table table_29217650_1 (movies varchar, december_25 varchar, PRIMARY KEY (movies))
select movies from table_29217650_1 where december_25 = "p3.2 million"
What is the maturity date of the ISIN labeled DE000A0BVBN3?
create table table_21692771_1 (maturity varchar, isin varchar, PRIMARY KEY (maturity))
select maturity from table_21692771_1 where isin = "de000a0bvbn3"
Who won the mixed restricted when Tomasz Rzeszotko won the mixed veteran and Karina Le Fevre won the U21 womens?
create table table_28211674_3 (mixed_restricted varchar, mixed_veteran varchar, u21_womens varchar, PRIMARY KEY (mixed_restricted))
select mixed_restricted from table_28211674_3 where mixed_veteran = "tomasz rzeszotko" and u21_womens = "karina le fevre"
Which city has the team nickname bearcats?
create table table_16384648_2 (location varchar, team_nickname varchar, PRIMARY KEY (location))
select location from table_16384648_2 where team_nickname = "bearcats"
Who had the high assists against detroit?
create table table_27712702_11 (high_assists varchar, team varchar, PRIMARY KEY (high_assists))
select high_assists from table_27712702_11 where team = "detroit"
What was the date of vacancy when Viorel Moldovan replaced a manager?
create table table_17115950_2 (date_of_vacancy varchar, replaced_by varchar, PRIMARY KEY (date_of_vacancy))
select date_of_vacancy from table_17115950_2 where replaced_by = "viorel moldovan"
Find the name of the company that has the least number of phone models. List the company name and the number of phone model produced by that company.
create table phone (company_name varchar, PRIMARY KEY (company_name))
select company_name, count(*) from phone group by company_name order by count(*) limit 1
How many times does the call sign XEZV appear?
create table table_14670060_1 (transmitting_from varchar, call_sign varchar, PRIMARY KEY (transmitting_from))
select count(transmitting_from) from table_14670060_1 where call_sign = "xezv"
Please show the most common status of roller coasters.
create table roller_coaster (status varchar, PRIMARY KEY (status))
select status from roller_coaster group by status order by count(*) desc limit 1