question
stringlengths
14
216
context
stringlengths
45
458
answer
stringlengths
18
463
Name the number of writers for airdate of 15 july 1967
create table table_20345624_2 (writer varchar, original_airdate varchar, PRIMARY KEY (writer))
select count(writer) from table_20345624_2 where original_airdate = "15 july 1967"
Who was the home team in the game broadcast on the Big East Network?
create table table_26842217_12 (home_team varchar, broadcast varchar, PRIMARY KEY (home_team))
select home_team from table_26842217_12 where broadcast = "big east network"
Show the short names of the buildings managed by "Emma".
create table apartment_buildings (building_short_name varchar, building_manager varchar, PRIMARY KEY (building_short_name))
select building_short_name from apartment_buildings where building_manager = "emma"
what's the torque with trim being xe (2009)
create table table_1373768_1 (torque varchar, trim varchar, PRIMARY KEY (torque))
select torque from table_1373768_1 where trim = "xe (2009)"
List all the subject names.
create table subjects (subject_name varchar, PRIMARY KEY (subject_name))
select subject_name from subjects
When was Stellbrookmoor established?
create table table_26013618_1 (date_established varchar, name_of_the_nature_reserve varchar, PRIMARY KEY (date_established))
select date_established from table_26013618_1 where name_of_the_nature_reserve = "stellbrookmoor"
How many communities had a total renewable generation of 1375?
create table table_13566548_1 (autonomous_community varchar, total_renewable_generation varchar, PRIMARY KEY (autonomous_community))
select count(autonomous_community) from table_13566548_1 where total_renewable_generation = 1375
Who is the artist for strip numbers 3932-4031a?
create table table_2161859_1 (artist varchar, strip_numbers varchar, PRIMARY KEY (artist))
select artist from table_2161859_1 where strip_numbers = "3932-4031a"
Show the transaction types and the total amount of transactions.
create table financial_transactions (transaction_type varchar, transaction_amount integer, PRIMARY KEY (transaction_type))
select transaction_type, sum(transaction_amount) from financial_transactions group by transaction_type
What is the original air date of the episode directed by Jeff Melman?
create table table_13477468_3 (original_air_date varchar, directed_by varchar, PRIMARY KEY (original_air_date))
select original_air_date from table_13477468_3 where directed_by = "jeff melman"
When гн(иј)ездо / gn(ij)ezdo is the serbo-croatian how many proto-slavics are there?
create table table_26757_4 (proto_slavic varchar, serbo_croatian varchar, PRIMARY KEY (proto_slavic))
select count(proto_slavic) from table_26757_4 where serbo_croatian = "гн(иј)ездо / gn(ij)ezdo"
Find the id and last name of the teacher that has the most detentions with detention type code "AFTER"?
create table detention (teacher_id varchar, detention_type_code varchar, PRIMARY KEY (teacher_id)); create table teachers (last_name varchar, teacher_id varchar, PRIMARY KEY (last_name))
select t1.teacher_id, t2.last_name from detention as t1 join teachers as t2 on t1.teacher_id = t2.teacher_id where t1.detention_type_code = "after" group by t1.teacher_id order by count(*) desc limit 1
What was the record of the Wildcats after playing Florida?
create table table_21062353_1 (record varchar, opponent varchar, PRIMARY KEY (record))
select record from table_21062353_1 where opponent = "florida"
List the name for storms and the number of affected regions for each storm.
create table affected_region (storm_id varchar, PRIMARY KEY (storm_id)); create table storm (name varchar, storm_id varchar, PRIMARY KEY (name))
select t1.name, count(*) from storm as t1 join affected_region as t2 on t1.storm_id = t2.storm_id group by t1.storm_id
Who is the original artist for the theme "Year they were born?"
create table table_15796100_1 (original_artist varchar, theme varchar, PRIMARY KEY (original_artist))
select original_artist from table_15796100_1 where theme = "year they were born"
How many Mixed Doubles won when Oliver Pongratz won the Men's Singles?
create table table_12164707_1 (mixed_doubles varchar, mens_singles varchar, PRIMARY KEY (mixed_doubles))
select count(mixed_doubles) from table_12164707_1 where mens_singles = "oliver pongratz"
Who were the candidates when Barney Frank was the incumbent?
create table table_1341395_22 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates))
select candidates from table_1341395_22 where incumbent = "barney frank"
How many live births per year are there in the period where the life expectancy for females is 73.3?
create table table_18950570_2 (live_births_per_year varchar, life_expectancy_females varchar, PRIMARY KEY (live_births_per_year))
select live_births_per_year from table_18950570_2 where life_expectancy_females = "73.3"
What is the Hadeda Ibis when the Ostrich is Dark Chanting Goshawk?
create table table_20042805_2 (hadeda_ibis varchar, ostrich varchar, PRIMARY KEY (hadeda_ibis))
select hadeda_ibis from table_20042805_2 where ostrich = "dark chanting goshawk"
What is the RCM that has a density of 9.7?
create table table_214920_1 (regional_county_municipality__rcm_ varchar, density__pop_per_km2_ varchar, PRIMARY KEY (regional_county_municipality__rcm_))
select regional_county_municipality__rcm_ from table_214920_1 where density__pop_per_km2_ = "9.7"
What is the l2 cache for the model with a release price of $669?
create table table_16400024_1 (l2_cache varchar, release_price___usd__ varchar, PRIMARY KEY (l2_cache))
select l2_cache from table_16400024_1 where release_price___usd__ = "$669"
What is the route/via when the destination is listed as Madurai?
create table table_29202276_2 (route_via varchar, destination varchar, PRIMARY KEY (route_via))
select route_via from table_29202276_2 where destination = "madurai"
List all the dates of enrollment and completion of students.
create table student_course_enrolment (date_of_enrolment varchar, date_of_completion varchar, PRIMARY KEY (date_of_enrolment))
select date_of_enrolment, date_of_completion from student_course_enrolment
Show names of technicians and the number of machines they are assigned to repair.
create table repair_assignment (technician_id varchar, PRIMARY KEY (technician_id)); create table technician (name varchar, technician_id varchar, PRIMARY KEY (name))
select t2.name, count(*) from repair_assignment as t1 join technician as t2 on t1.technician_id = t2.technician_id group by t2.name
What is the lowest child sex ratio in groups where employment is 31.3%?
create table table_10710364_2 (sex_ratio__child_ integer, work_participation___percentage_ varchar, PRIMARY KEY (sex_ratio__child_))
select min(sex_ratio__child_) from table_10710364_2 where work_participation___percentage_ = "31.3%"
Name the minimum inhabitants for markatal 49
create table table_16278673_1 (inhabitants_per_km² integer, markatal varchar, PRIMARY KEY (inhabitants_per_km²))
select min(inhabitants_per_km²) from table_16278673_1 where markatal = 49
What party did Hale Boggs belong to?
create table table_1341884_20 (party varchar, incumbent varchar, PRIMARY KEY (party))
select party from table_1341884_20 where incumbent = "hale boggs"
How many men from the Ukraine?
create table table_24302700_2 (event_4_carwalk varchar, nationality varchar, PRIMARY KEY (event_4_carwalk))
select count(event_4_carwalk) from table_24302700_2 where nationality = "ukraine"
List the id of students who attended statistics courses in the order of attendance date.
create table student_course_attendance (student_id varchar, course_id varchar, date_of_attendance varchar, PRIMARY KEY (student_id)); create table courses (course_id varchar, course_name varchar, PRIMARY KEY (course_id))
select t2.student_id from courses as t1 join student_course_attendance as t2 on t1.course_id = t2.course_id where t1.course_name = "statistics" order by t2.date_of_attendance
When рука / ruka is the serbo-croatian what is the macedonian?
create table table_26757_4 (macedonian varchar, serbo_croatian varchar, PRIMARY KEY (macedonian))
select macedonian from table_26757_4 where serbo_croatian = "рука / ruka"
Who directed the episode written by patrick meighan?
create table table_22269839_1 (directed_by varchar, written_by varchar, PRIMARY KEY (directed_by))
select directed_by from table_22269839_1 where written_by = "patrick meighan"
What country was Danissa Zurek from?
create table table_25461827_2 (country varchar, contestant varchar, PRIMARY KEY (country))
select country from table_25461827_2 where contestant = "danissa zurek"
What is the enrollment ration in primary in the region where the enrollment ratio in preschool is 50.23?
create table table_25042332_22 (primary__6_13_years_ varchar, preschool__0_5_years_ varchar, PRIMARY KEY (primary__6_13_years_))
select primary__6_13_years_ from table_25042332_22 where preschool__0_5_years_ = "50.23"
How many figures are there for No votes for the Forest Rehabilitation Debt Limit Amendment?
create table table_256286_45 (no_votes varchar, description varchar, PRIMARY KEY (no_votes))
select count(no_votes) from table_256286_45 where description = "forest rehabilitation debt limit amendment"
What are the different ids and names of the battles that lost any 'Brig' type shipes?
create table ship (lost_in_battle varchar, ship_type varchar, PRIMARY KEY (lost_in_battle)); create table battle (id varchar, name varchar, PRIMARY KEY (id))
select distinct t1.id, t1.name from battle as t1 join ship as t2 on t1.id = t2.lost_in_battle where t2.ship_type = 'brig'
Show the transaction type code that occurs the fewest times.
create table transactions (transaction_type_code varchar, PRIMARY KEY (transaction_type_code))
select transaction_type_code from transactions group by transaction_type_code order by count(*) limit 1
Where is the school whose students are nicknamed falcons located?
create table table_1974545_2 (location varchar, nickname varchar, PRIMARY KEY (location))
select location from table_1974545_2 where nickname = "falcons"
how many times was hancock % considered when starky % was 20.96%
create table table_19681738_1 (hancock__percentage varchar, starky__percentage varchar, PRIMARY KEY (hancock__percentage))
select count(hancock__percentage) from table_19681738_1 where starky__percentage = "20.96%"
What team owns the car owned by chip ganassi?
create table table_2503102_2 (team varchar, listed_owner_s_ varchar, PRIMARY KEY (team))
select team from table_2503102_2 where listed_owner_s_ = "chip ganassi"
Who were the original artist(s) for track number 6?
create table table_28715942_2 (original_artist varchar, track_no varchar, PRIMARY KEY (original_artist))
select original_artist from table_28715942_2 where track_no = 6
What is the land area of the RCM having a density of 21.1?
create table table_214920_1 (land_area varchar, density__pop_per_km2_ varchar, PRIMARY KEY (land_area))
select land_area from table_214920_1 where density__pop_per_km2_ = "21.1"
How many documents are with document type code BK for each product id?
create table documents (project_id varchar, document_type_code varchar, PRIMARY KEY (project_id))
select count(*), project_id from documents where document_type_code = "bk" group by project_id
If the distribution mechanism is windows nt 4.0 option pack Microsoft office 97 and the features is service release, what is the version?
create table table_2263152_1 (version varchar, features varchar, distribution_mechanism varchar, PRIMARY KEY (version))
select version from table_2263152_1 where features = "service release" and distribution_mechanism = "windows nt 4.0 option pack microsoft office 97"
What was the result in the event 1 medley for the man with a 4 (6 in 31.85s) in the event 3 squat lift?
create table table_24302700_2 (event_1_medley varchar, event_3_squat_lift varchar, PRIMARY KEY (event_1_medley))
select event_1_medley from table_24302700_2 where event_3_squat_lift = "4 (6 in 31.85s)"
How many points did player 7 score in the challenge cup?
create table table_22683369_8 (challenge_cup varchar, p varchar, PRIMARY KEY (challenge_cup))
select count(challenge_cup) from table_22683369_8 where p = 7
Where did the Centurions play the Hamburg Sea Devils?
create table table_27764201_2 (game_site varchar, opponent varchar, PRIMARY KEY (game_site))
select game_site from table_27764201_2 where opponent = "hamburg sea devils"
What countries are visited in the episode presented by Brian B. Thompson?
create table table_15211468_1 (countries_visited varchar, presenter varchar, PRIMARY KEY (countries_visited))
select countries_visited from table_15211468_1 where presenter = "brian b. thompson"
Thomas J. Lane is the incumbent of how many parties?
create table table_1342013_20 (party varchar, incumbent varchar, PRIMARY KEY (party))
select count(party) from table_1342013_20 where incumbent = "thomas j. lane"
Who won the fastest lap if Anders Krohn won the pole position?
create table table_25459168_2 (fastest_lap varchar, pole_position varchar, PRIMARY KEY (fastest_lap))
select fastest_lap from table_25459168_2 where pole_position = "anders krohn"
What is the total number of modern grannies performed?
create table table_28180840_15 (act varchar, name_name_of_act varchar, PRIMARY KEY (act))
select count(act) from table_28180840_15 where name_name_of_act = "modern grannies"
What are the names and types of the companies that have ever operated a flight?
create table operate_company (name varchar, type varchar, id varchar, PRIMARY KEY (name)); create table flight (id varchar, PRIMARY KEY (id))
select t1.name, t1.type from operate_company as t1 join flight as t2 on t1.id = t2.company_id
Name the most official number for tf1 # being 42
create table table_16425614_4 (official__number integer, tf1__number varchar, PRIMARY KEY (official__number))
select max(official__number) from table_16425614_4 where tf1__number = 42
What is the venue for the team Terek?
create table table_20140132_1 (venue varchar, team varchar, PRIMARY KEY (venue))
select venue from table_20140132_1 where team = "terek"
What is the date of debut that has a date of birth listed at 24-10-1887?
create table table_11585313_1 (date_of_debut varchar, date_of_birth varchar, PRIMARY KEY (date_of_debut))
select date_of_debut from table_11585313_1 where date_of_birth = "24-10-1887"
How many cover dates does the story "Devastation Derby! (part 1)" have?
create table table_18305523_2 (cover_date varchar, story_title varchar, PRIMARY KEY (cover_date))
select count(cover_date) from table_18305523_2 where story_title = "devastation derby! (part 1)"
What is the title of the episode directed by Peter Markle and written by Jerry Stahl?
create table table_10715317_2 (title varchar, directed_by varchar, written_by varchar, PRIMARY KEY (title))
select title from table_10715317_2 where directed_by = "peter markle" and written_by = "jerry stahl"
Who had the fastest lap(s) when stefan wilson had the pole?
create table table_29690363_3 (fastest_lap varchar, pole_position varchar, PRIMARY KEY (fastest_lap))
select fastest_lap from table_29690363_3 where pole_position = "stefan wilson"
When dxrt-tv is the callsign what is the power kw?
create table table_23394920_1 (power_kw varchar, callsign varchar, PRIMARY KEY (power_kw))
select power_kw from table_23394920_1 where callsign = "dxrt-tv"
What is the number of members that have boroughs of Bandon Bridge?
create table table_24329520_8 (members varchar, borough varchar, PRIMARY KEY (members))
select count(members) from table_24329520_8 where borough = "bandon bridge"
Who was performer 4 when Kate Robbins was performer 3?
create table table_14934885_1 (performer_4 varchar, performer_3 varchar, PRIMARY KEY (performer_4))
select performer_4 from table_14934885_1 where performer_3 = "kate robbins"
Who won the Womens Singles in the year the Jean-Michel Saive won the Mens Singles?
create table table_28138035_35 (womens_singles varchar, mens_singles varchar, PRIMARY KEY (womens_singles))
select womens_singles from table_28138035_35 where mens_singles = "jean-michel saive"
Who is the guest 3 in the show where guest 4 is Jill Douglas?
create table table_20466963_4 (guest_3 varchar, guest_4 varchar, PRIMARY KEY (guest_3))
select guest_3 from table_20466963_4 where guest_4 = "jill douglas"
What are all the conjugated forms of the verb where the el/ ella/usted verb is piense?
create table table_1977630_2 (nosotros___nosotras varchar, él___ella___usted varchar, PRIMARY KEY (nosotros___nosotras))
select nosotros___nosotras from table_1977630_2 where él___ella___usted = "piense"
What was the destination of the season won by Anwar Syed?
create table table_20026849_1 (destination varchar, winner varchar, PRIMARY KEY (destination))
select destination from table_20026849_1 where winner = "anwar syed"
What channel had the prize of €100,000?
create table table_14523485_9 (channel varchar, top_prize varchar, PRIMARY KEY (channel))
select channel from table_14523485_9 where top_prize = "€100,000"
How much is the track Fast As a Shark?
create table tracks (unit_price varchar, name varchar, PRIMARY KEY (unit_price))
select unit_price from tracks where name = "fast as a shark"
Name the chassis for ludwig fischer
create table table_28578594_1 (chassis varchar, driver varchar, PRIMARY KEY (chassis))
select chassis from table_28578594_1 where driver = "ludwig fischer"
What title was written by Matt Wayne?
create table table_16581695_3 (title varchar, written_by varchar, PRIMARY KEY (title))
select title from table_16581695_3 where written_by = "matt wayne"
What is title of album which track Balls to the Wall belongs to?
create table tracks (genre_id varchar, name varchar, PRIMARY KEY (genre_id)); create table albums (title varchar, id varchar, PRIMARY KEY (title))
select t1.title from albums as t1 join tracks as t2 on t1.id = t2.genre_id where t2.name = "balls to the wall"
When was the episode directed by Carey Meyer aired for the first time?
create table table_13273629_2 (original_air_date varchar, directed_by varchar, PRIMARY KEY (original_air_date))
select original_air_date from table_13273629_2 where directed_by = "carey meyer"
Show the role code with the least employees.
create table employees (role_code varchar, PRIMARY KEY (role_code))
select role_code from employees group by role_code order by count(*) limit 1
If the country of Origin is South Africa, who is the primary user?
create table table_26389588_1 (primary_user varchar, country_of_origin varchar, PRIMARY KEY (primary_user))
select primary_user from table_26389588_1 where country_of_origin = "south africa"
How many values of HDTV correspond to television service of la sorgente sat 1?
create table table_15887683_16 (hdtv varchar, television_service varchar, PRIMARY KEY (hdtv))
select count(hdtv) from table_15887683_16 where television_service = "la sorgente sat 1"
what is the km from wellington where the metlink code is mast?
create table table_3005450_1 (km_from_wellington varchar, metlink_code varchar, PRIMARY KEY (km_from_wellington))
select km_from_wellington from table_3005450_1 where metlink_code = "mast"
How many figures are there for density for Yucheng County?
create table table_2135222_2 (density varchar, english_name varchar, PRIMARY KEY (density))
select count(density) from table_2135222_2 where english_name = "yucheng county"
Which providers use exchange server?
create table table_14465871_2 (provider varchar, application varchar, PRIMARY KEY (provider))
select provider from table_14465871_2 where application = "exchange server"
When 1. fc köln is the team what is the date of appointment?
create table table_24162080_3 (date_of_appointment varchar, team varchar, PRIMARY KEY (date_of_appointment))
select date_of_appointment from table_24162080_3 where team = "1. fc köln"
what's the party with incumbent being william e. evans
create table table_1342359_5 (party varchar, incumbent varchar, PRIMARY KEY (party))
select party from table_1342359_5 where incumbent = "william e. evans"
What are the grades served at Manchester Junior-Senior High School?
create table table_1984697_85 (grades varchar, school varchar, PRIMARY KEY (grades))
select grades from table_1984697_85 where school = "manchester junior-senior high school"
What is theoriginal air date of the episode directed by timothy van patten?
create table table_11951237_3 (original_air_date varchar, directed_by varchar, PRIMARY KEY (original_air_date))
select original_air_date from table_11951237_3 where directed_by = "timothy van patten"
What are the distinct names and nationalities of the architects who have ever built a mill?
create table mill (id varchar, PRIMARY KEY (id)); create table architect (name varchar, nationality varchar, id varchar, PRIMARY KEY (name))
select distinct t1.name, t1.nationality from architect as t1 join mill as t2 on t1.id = t2.architect_id
Show the names of members and the location of the performances they attended.
create table performance (location varchar, performance_id varchar, PRIMARY KEY (location)); create table member (name varchar, member_id varchar, PRIMARY KEY (name)); create table member_attendance (member_id varchar, performance_id varchar, PRIMARY KEY (member_id))
select t2.name, t3.location from member_attendance as t1 join member as t2 on t1.member_id = t2.member_id join performance as t3 on t1.performance_id = t3.performance_id
What was the dominant religion in 2002 in lokve?
create table table_2562572_44 (dominant_religion__2002_ varchar, settlement varchar, PRIMARY KEY (dominant_religion__2002_))
select dominant_religion__2002_ from table_2562572_44 where settlement = "lokve"
When the scoring rank was 117, what was the best finish?
create table table_10021158_3 (best_finish varchar, scoring_rank varchar, PRIMARY KEY (best_finish))
select best_finish from table_10021158_3 where scoring_rank = "117"
Where was mlb draft for the player who's school was Carl Albert High School?
create table table_11677100_18 (mlb_draft varchar, school varchar, PRIMARY KEY (mlb_draft))
select mlb_draft from table_11677100_18 where school = "carl albert high school"
Eduardo Martins is a customer at which company?
create table customers (company varchar, first_name varchar, last_name varchar, PRIMARY KEY (company))
select company from customers where first_name = "eduardo" and last_name = "martins"
what television service are in the united kingdom and n° is greater than 854.0?
create table table_15887683_15 (television_service varchar, country varchar, n° varchar, PRIMARY KEY (television_service))
select television_service from table_15887683_15 where country = "united kingdom" and n° > 854.0
Name the most 3 car sets
create table table_19255192_2 (id varchar, PRIMARY KEY (id))
select max(3 as _car_sets) from table_19255192_2
While the original toyko/seoul tour cast included thomas hettrick, who was in the original 1st us tour cast?
create table table_24353141_1 (original_1st_us_tour_cast varchar, original_tokyo___seoul_tour_cast varchar, PRIMARY KEY (original_1st_us_tour_cast))
select original_1st_us_tour_cast from table_24353141_1 where original_tokyo___seoul_tour_cast = "thomas hettrick"
When tom snow 250cc honda is the rider what is Monday August 23rd?
create table table_26986076_5 (mon_23_aug varchar, rider varchar, PRIMARY KEY (mon_23_aug))
select mon_23_aug from table_26986076_5 where rider = "tom snow 250cc honda"
How many distinct payment methods are used by parties?
create table parties (payment_method_code varchar, PRIMARY KEY (payment_method_code))
select count(distinct payment_method_code) from parties
Name the singer for 1.45m
create table table_29135051_2 (singer_s_ varchar, ratings varchar, PRIMARY KEY (singer_s_))
select singer_s_ from table_29135051_2 where ratings = "1.45m"
When esv ingolstadt is the oberbayern b what is the niederbayern?
create table table_23224961_1 (niederbayern varchar, oberbayern_b varchar, PRIMARY KEY (niederbayern))
select niederbayern from table_23224961_1 where oberbayern_b = "esv ingolstadt"
When karl ridderbusch is the la roche who is the olivier?
create table table_29728787_1 (olivier varchar, la_roche varchar, PRIMARY KEY (olivier))
select olivier from table_29728787_1 where la_roche = "karl ridderbusch"
Find the name of the person who has no student friends.
create table person (name varchar, job varchar, PRIMARY KEY (name)); create table personfriend (name varchar, friend varchar, PRIMARY KEY (name)); create table person (name varchar, PRIMARY KEY (name))
select name from person except select t2.name from person as t1 join personfriend as t2 on t1.name = t2.friend where t1.job = 'student'
Who is every high points for the Pistons team?
create table table_23248910_9 (high_points varchar, team varchar, PRIMARY KEY (high_points))
select high_points from table_23248910_9 where team = "pistons"
The original artist The Temptations has what week #?
create table table_26250253_1 (week__number varchar, original_artist varchar, PRIMARY KEY (week__number))
select week__number from table_26250253_1 where original_artist = "the temptations"
Name the name for organization date being unknown
create table table_25794010_1 (name varchar, organization_date varchar, PRIMARY KEY (name))
select name from table_25794010_1 where organization_date = "unknown"
What affiliation is Erie, Pennsylvania?
create table table_16381914_1 (affiliation varchar, location varchar, PRIMARY KEY (affiliation))
select affiliation from table_16381914_1 where location = "erie, pennsylvania"
What is the 2012 population of Indonesia?
create table table_28741_1 (population_2012_ varchar, country varchar, PRIMARY KEY (population_2012_))
select population_2012_ from table_28741_1 where country = "indonesia"