question
stringlengths
14
216
context
stringlengths
45
458
answer
stringlengths
18
463
what's the pole position with location being hockenheimring
create table table_1140074_2 (pole_position varchar, location varchar, PRIMARY KEY (pole_position))
select pole_position from table_1140074_2 where location = "hockenheimring"
What institution is located in St. Peter?
create table table_261913_1 (institution varchar, location__all_in_minnesota_ varchar, PRIMARY KEY (institution))
select institution from table_261913_1 where location__all_in_minnesota_ = "st. peter"
Name the chassis for sfacs ecurie france
create table table_28190534_1 (chassis varchar, entrant varchar, PRIMARY KEY (chassis))
select chassis from table_28190534_1 where entrant = "sfacs ecurie france"
Show all template type codes and descriptions.
create table ref_template_types (template_type_code varchar, template_type_description varchar, PRIMARY KEY (template_type_code))
select template_type_code, template_type_description from ref_template_types
How many artworks are there?
create table artwork (id varchar, PRIMARY KEY (id))
select count(*) from artwork
When did episode number 6 air?
create table table_24399615_5 (airdate varchar, episode_no varchar, PRIMARY KEY (airdate))
select airdate from table_24399615_5 where episode_no = 6
What is the hometown of the players from alvin high school?
create table table_22496374_1 (home_town varchar, high_school varchar, PRIMARY KEY (home_town))
select home_town from table_22496374_1 where high_school = "alvin"
Show the id of each employee and the number of document destruction authorised by that employee.
create table documents_to_be_destroyed (destruction_authorised_by_employee_id varchar, PRIMARY KEY (destruction_authorised_by_employee_id))
select destruction_authorised_by_employee_id, count(*) from documents_to_be_destroyed group by destruction_authorised_by_employee_id
Show all distinct template type codes for all templates.
create table templates (template_type_code varchar, PRIMARY KEY (template_type_code))
select distinct template_type_code from templates
Find the number of students in total.
create table student (id varchar, PRIMARY KEY (id))
select count(*) from student
How many writers had an US air date of september 25, 1993?
create table table_10470082_3 (writer varchar, us_air_date varchar, PRIMARY KEY (writer))
select count(writer) from table_10470082_3 where us_air_date = "september 25, 1993"
Name the us viewers directed by christine moore
create table table_26914076_2 (us_viewers__millions_ varchar, directed_by varchar, PRIMARY KEY (us_viewers__millions_))
select us_viewers__millions_ from table_26914076_2 where directed_by = "christine moore"
What country does the player who joined the Vancouver Canucks originally hail from?
create table table_2886617_4 (nationality varchar, nhl_team varchar, PRIMARY KEY (nationality))
select nationality from table_2886617_4 where nhl_team = "vancouver canucks"
How many times was the incumbent john dawson redistricted from the 15th district?
create table table_2668393_18 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates))
select count(candidates) from table_2668393_18 where incumbent = "john dawson redistricted from the 15th district"
The Rainbow District School Board is associated with what type?
create table table_1506619_1 (type varchar, school_board varchar, PRIMARY KEY (type))
select type from table_1506619_1 where school_board = "rainbow district school_board"
How many players were drafted from laval?
create table table_20170644_5 (cfl_team varchar, college varchar, PRIMARY KEY (cfl_team))
select count(cfl_team) from table_20170644_5 where college = "laval"
Name the march 27-29 for november 3 being 133
create table table_1708610_3 (march_27_29 varchar, november_3 varchar, PRIMARY KEY (march_27_29))
select march_27_29 from table_1708610_3 where november_3 = "133"
Which episode was written by anthony e. zuiker & ken solarz
create table table_11665016_2 (title varchar, written_by varchar, PRIMARY KEY (title))
select title from table_11665016_2 where written_by = "anthony e. zuiker & ken solarz"
Find the famous titles of artists that do not have any volume.
create table volume (famous_title varchar, artist_id varchar, PRIMARY KEY (famous_title)); create table artist (famous_title varchar, artist_id varchar, PRIMARY KEY (famous_title))
select famous_title from artist where not artist_id in (select artist_id from volume)
Find the name of the courses that do not have any prerequisite?
create table prereq (title varchar, course_id varchar, PRIMARY KEY (title)); create table course (title varchar, course_id varchar, PRIMARY KEY (title))
select title from course where not course_id in (select course_id from prereq)
what's the try bonus with club being abercwmboi rfc
create table table_13940275_5 (try_bonus varchar, club varchar, PRIMARY KEY (try_bonus))
select try_bonus from table_13940275_5 where club = "abercwmboi rfc"
Who belong to the institution "University of Oxford"? Show the first names and last names.
create table authorship (authid varchar, instid varchar, PRIMARY KEY (authid)); create table authors (fname varchar, lname varchar, authid varchar, PRIMARY KEY (fname)); create table inst (instid varchar, name varchar, PRIMARY KEY (instid))
select distinct t1.fname, t1.lname from authors as t1 join authorship as t2 on t1.authid = t2.authid join inst as t3 on t2.instid = t3.instid where t3.name = "university of oxford"
Tony P. Hall was the incumbent in the race between what two candidates?
create table table_1341453_37 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates))
select candidates from table_1341453_37 where incumbent = "tony p. hall"
What max processor has a maximum memory of 256 gb?
create table table_10818465_1 (max_processors varchar, max_memory varchar, PRIMARY KEY (max_processors))
select max_processors from table_10818465_1 where max_memory = "256 gb"
What are the names and id of courses having at most 2 sections?
create table courses (course_name varchar, course_id varchar, PRIMARY KEY (course_name)); create table sections (course_id varchar, PRIMARY KEY (course_id))
select t1.course_name, t1.course_id from courses as t1 join sections as t2 on t1.course_id = t2.course_id group by t1.course_id having count(*) <= 2
Which film title used in nomination has vinterkyss as the original title?
create table table_21655290_1 (film_title_used_in_nomination varchar, original_title varchar, PRIMARY KEY (film_title_used_in_nomination))
select film_title_used_in_nomination from table_21655290_1 where original_title = "vinterkyss"
How many hebrew forms are there for the arabic form yuktibu يكتب?
create table table_2784232_1 (hebrew_form varchar, arabic_form varchar, PRIMARY KEY (hebrew_form))
select count(hebrew_form) from table_2784232_1 where arabic_form = "yuktibu يكتب"
Find the distinct first names of the students who have class senator votes.
create table student (fname varchar, stuid varchar, PRIMARY KEY (fname)); create table voting_record (class_senator_vote varchar, PRIMARY KEY (class_senator_vote))
select distinct t1.fname from student as t1 join voting_record as t2 on t1.stuid = t2.class_senator_vote
What is the home town of David Noel?
create table table_20785990_2 (home_town varchar, name varchar, PRIMARY KEY (home_town))
select home_town from table_20785990_2 where name = "david noel"
Find the patient who has the most recent undergoing treatment?
create table undergoes (patient varchar, dateundergoes varchar, PRIMARY KEY (patient))
select patient from undergoes order by dateundergoes limit 1
Who was the winner if the Mountains Classification award was given to Jaime Vergara and the Team Classification award is given to Col es Pasion Café De Colombia 472?
create table table_28853064_15 (winner varchar, mountains_classification varchar, team_classification varchar, PRIMARY KEY (winner))
select winner from table_28853064_15 where mountains_classification = "jaime vergara" and team_classification = "col es pasion café de colombia 472"
Who is every vacator if date of successors formal installation is August 8, 1960?
create table table_2159571_1 (vacator varchar, date_of_successors_formal_installation varchar, PRIMARY KEY (vacator))
select vacator from table_2159571_1 where date_of_successors_formal_installation = "august 8, 1960"
Show names of ships involved in a mission launched after 1928.
create table mission (ship_id varchar, launched_year integer, PRIMARY KEY (ship_id)); create table ship (name varchar, ship_id varchar, PRIMARY KEY (name))
select t2.name from mission as t1 join ship as t2 on t1.ship_id = t2.ship_id where t1.launched_year > 1928
What is the original air date of the episode "Another Happy Day"?
create table table_2570269_3 (original_air_date__uk_ varchar, episode_title varchar, PRIMARY KEY (original_air_date__uk_))
select original_air_date__uk_ from table_2570269_3 where episode_title = "another happy day"
Find the names of songs whose genre is modern or language is English.
create table song (song_name varchar, genre_is varchar, languages varchar, PRIMARY KEY (song_name))
select song_name from song where genre_is = "modern" or languages = "english"
If there were 14 in 1990 and 6 survived how many were destroyed?
create table table_1817852_1 (destroyed varchar, survived varchar, PRIMARY KEY (destroyed))
select destroyed from table_1817852_1 where 1990 = 14 and survived = 6
What were the high points for the game played at the MCI Center?
create table table_18904831_7 (high_points varchar, location varchar, PRIMARY KEY (high_points))
select count(high_points) from table_18904831_7 where location = "mci center"
If the language is another native, what is the San Benito Municipality total number?
create table table_2509112_3 (san_benito_municipality varchar, language varchar, PRIMARY KEY (san_benito_municipality))
select count(san_benito_municipality) from table_2509112_3 where language = "another native"
What are the names of the physician who prescribed the highest dose?
create table prescribes (physician varchar, dose varchar, PRIMARY KEY (physician)); create table physician (name varchar, employeeid varchar, PRIMARY KEY (name))
select t1.name from physician as t1 join prescribes as t2 on t1.employeeid = t2.physician order by t2.dose desc limit 1
Show the guest first names, start dates, and end dates of all the apartment bookings.
create table apartment_bookings (booking_start_date varchar, guest_id varchar, PRIMARY KEY (booking_start_date)); create table guests (guest_first_name varchar, guest_id varchar, PRIMARY KEY (guest_first_name))
select t2.guest_first_name, t1.booking_start_date, t1.booking_start_date from apartment_bookings as t1 join guests as t2 on t1.guest_id = t2.guest_id
whatis hte station code where users are 130368?
create table table_14748457_1 (station__and_code_ varchar, station_users_2008_9 varchar, PRIMARY KEY (station__and_code_))
select station__and_code_ from table_14748457_1 where station_users_2008_9 = "130368"
What is the number of jews asarb where the metro area is philadelphia?
create table table_1131183_2 (number_of_jews__asarb_ varchar, metro_area varchar, PRIMARY KEY (number_of_jews__asarb_))
select number_of_jews__asarb_ from table_1131183_2 where metro_area = "philadelphia"
What is the canadian air date when the US air date is 24 august 2012?
create table table_30012404_4 (canadian_air_date varchar, us_air_date varchar, PRIMARY KEY (canadian_air_date))
select canadian_air_date from table_30012404_4 where us_air_date = "24 august 2012"
Find the name of the students who have more than one advisor?
create table student (name varchar, id varchar, PRIMARY KEY (name)); create table advisor (s_id varchar, PRIMARY KEY (s_id))
select t1.name from student as t1 join advisor as t2 on t1.id = t2.s_id group by t2.s_id having count(*) > 1
List each language and the number of TV Channels using it.
create table tv_channel (language varchar, PRIMARY KEY (language))
select language, count(*) from tv_channel group by language
What report was there for the porsche north america?
create table table_10707176_2 (report varchar, winning_team varchar, PRIMARY KEY (report))
select report from table_10707176_2 where winning_team = "porsche north america"
What is every value for Croatian when value for English is dog?
create table table_25008327_8 (croatian varchar, english varchar, PRIMARY KEY (croatian))
select croatian from table_25008327_8 where english = "dog"
What is the code of airport that has the highest number of flights?
create table flights (destairport varchar, sourceairport varchar, PRIMARY KEY (destairport)); create table airports (airportcode varchar, PRIMARY KEY (airportcode))
select t1.airportcode from airports as t1 join flights as t2 on t1.airportcode = t2.destairport or t1.airportcode = t2.sourceairport group by t1.airportcode order by count(*) desc limit 1
Who is the written by when mark worthington is the director?
create table table_22570439_1 (written_by varchar, directed_by varchar, PRIMARY KEY (written_by))
select written_by from table_22570439_1 where directed_by = "mark worthington"
What amount of the university students and adults ehre the the senior high school is 26mm?
create table table_13555999_1 (university_students_and_adults__18yrs varchar, _ varchar, senior_high_school__15_18_yrs_ varchar, PRIMARY KEY (university_students_and_adults__18yrs))
select university_students_and_adults__18yrs + _ from table_13555999_1 where senior_high_school__15_18_yrs_ = "26mm"
what are the endings of examples achilles, appendices, fæces
create table table_17798093_20 (ending varchar, examples varchar, PRIMARY KEY (ending))
select ending from table_17798093_20 where examples = "achilles, appendices, fæces"
Which city did kpnz-tv provide coverage for?
create table table_2523809_1 (coverage varchar, callsign varchar, PRIMARY KEY (coverage))
select coverage from table_2523809_1 where callsign = "kpnz-tv"
Who are all successors when reason for change is died May 12, 1964?
create table table_2159506_4 (successor varchar, reason_for_change varchar, PRIMARY KEY (successor))
select successor from table_2159506_4 where reason_for_change = "died may 12, 1964"
How many original air dates did the episode directed by Bethany rooney have?
create table table_28859177_3 (original_air_date varchar, directed_by varchar, PRIMARY KEY (original_air_date))
select count(original_air_date) from table_28859177_3 where directed_by = "bethany rooney"
Which shipping agent shipped the most documents? List the shipping agent name and the number of documents.
create table documents (id varchar, PRIMARY KEY (id)); create table ref_shipping_agents (id varchar, PRIMARY KEY (id))
select ref_shipping_agents.shipping_agent_name, count(documents.document_id) from ref_shipping_agents join documents on documents.shipping_agent_code = ref_shipping_agents.shipping_agent_code group by ref_shipping_agents.shipping_agent_code order by count(documents.document_id) desc limit 1
Which country is akiko suzuki from?
create table table_24990183_5 (country varchar, name varchar, PRIMARY KEY (country))
select country from table_24990183_5 where name = "akiko suzuki"
What is the type if the organization name is Gamma RHO Lambda 1?
create table table_2538117_7 (type varchar, organization varchar, PRIMARY KEY (type))
select type from table_2538117_7 where organization = "gamma rho lambda 1"
Who was the winner if the final venue is Kowloon Cricket Club?
create table table_22577693_1 (winner varchar, final_venue varchar, PRIMARY KEY (winner))
select winner from table_22577693_1 where final_venue = "kowloon cricket club"
How many states is Grant Wharington from?
create table table_25595209_1 (state_country varchar, skipper varchar, PRIMARY KEY (state_country))
select count(state_country) from table_25595209_1 where skipper = "grant wharington"
When did the season located in the Netherlands premier?
create table table_1949994_7 (premiere_air_dates varchar, country varchar, PRIMARY KEY (premiere_air_dates))
select premiere_air_dates from table_1949994_7 where country = "the netherlands"
What are the profits in billions for Berkshire Hathaway?
create table table_1682026_6 (profits__billion_$_ varchar, company varchar, PRIMARY KEY (profits__billion_$_))
select profits__billion_$_ from table_1682026_6 where company = "berkshire hathaway"
What was the max mach when the maximum speed was 3887?
create table table_221315_3 (max_mach varchar, max_speed__mph_ varchar, PRIMARY KEY (max_mach))
select max_mach from table_221315_3 where max_speed__mph_ = 3887
Name the rank on channel for pilot
create table table_24222929_4 (rank_on_channel varchar, title varchar, PRIMARY KEY (rank_on_channel))
select rank_on_channel from table_24222929_4 where title = "pilot"
How many distinct governors are there?
create table party (governor varchar, PRIMARY KEY (governor))
select count(distinct governor) from party
What is the strong words compounded when the strongs transliteration is yowyariyb?
create table table_1242447_1 (strongs_words_compounded varchar, strongs_transliteration varchar, PRIMARY KEY (strongs_words_compounded))
select strongs_words_compounded from table_1242447_1 where strongs_transliteration = "yowyariyb"
Which is the charity that the background of the celebrity is heavyweight champion?
create table table_12286195_1 (charity varchar, background varchar, PRIMARY KEY (charity))
select charity from table_12286195_1 where background = "heavyweight champion"
What is the location of the daytona international speedway?
create table table_1245148_1 (location varchar, track_name varchar, PRIMARY KEY (location))
select location from table_1245148_1 where track_name = "daytona international speedway"
What's the C_{high} when the C_{low} value is 250.5?
create table table_1942366_9 (high varchar, low varchar, PRIMARY KEY (high))
select struct(high) from table_1942366_9 where struct(low) = "250.5"
What is the exercise when the equipment is heart rate monitor, water and towel?
create table table_27512025_1 (exercise varchar, equipment varchar, PRIMARY KEY (exercise))
select exercise from table_27512025_1 where equipment = "heart rate monitor, water and towel"
List the industry shared by the most companies.
create table companies (industry varchar, PRIMARY KEY (industry))
select industry from companies group by industry order by count(*) desc limit 1
Name the class 3 for silverstone rmit university
create table table_1936678_1 (class_3 varchar, location varchar, class_1 varchar, PRIMARY KEY (class_3))
select class_3 from table_1936678_1 where location = "silverstone" and class_1 = "rmit university"
How many entrepreneurs are there?
create table entrepreneur (id varchar, PRIMARY KEY (id))
select count(*) from entrepreneur
Who is the operator to destination Dalston Junction?
create table table_1612760_1 (operator varchar, destination varchar, PRIMARY KEY (operator))
select operator from table_1612760_1 where destination = "dalston junction"
If the arrival date is January 2059, what is the total amount of signal power?
create table table_1820752_1 (signal_power___kw__ varchar, arrival_date varchar, PRIMARY KEY (signal_power___kw__))
select count(signal_power___kw__) from table_1820752_1 where arrival_date = "january 2059"
Who directed the episode which originally aired February 4, 2005?
create table table_228973_11 (directed_by varchar, original_air_date varchar, PRIMARY KEY (directed_by))
select directed_by from table_228973_11 where original_air_date = "february 4, 2005"
If the distance is 55.7, what is the name of the constellation?
create table table_1820752_1 (constellation varchar, distance___ly__ varchar, PRIMARY KEY (constellation))
select constellation from table_1820752_1 where distance___ly__ = "55.7"
What is shown for august 21-22 when november 3 is november 3, 1994?
create table table_25252080_3 (august_21_22 varchar, november_3 varchar, PRIMARY KEY (august_21_22))
select august_21_22 from table_25252080_3 where november_3 = "november_3, 1994"
Find the codes of countries that have more than 50 players.
create table players (country_code varchar, PRIMARY KEY (country_code))
select country_code from players group by country_code having count(*) > 50
How many students does KAWA GORDON teaches?
create table list (classroom varchar, PRIMARY KEY (classroom)); create table teachers (classroom varchar, firstname varchar, lastname varchar, PRIMARY KEY (classroom))
select count(*) from list as t1 join teachers as t2 on t1.classroom = t2.classroom where t2.firstname = "kawa" and t2.lastname = "gordon"
When the poll source is research 2000/daily kos, what is the total number of dates administered?
create table table_16751596_13 (dates_administered varchar, poll_source varchar, PRIMARY KEY (dates_administered))
select count(dates_administered) from table_16751596_13 where poll_source = "research 2000/daily kos"
What are airlines that have flights arriving at airport 'AHD'?
create table airlines (airline varchar, uid varchar, PRIMARY KEY (airline)); create table flights (airline varchar, destairport varchar, PRIMARY KEY (airline))
select t1.airline from airlines as t1 join flights as t2 on t1.uid = t2.airline where t2.destairport = "ahd"
What is the rear sight type on the model with the acr muzzle brake device?
create table table_19901_1 (rear_sight_type varchar, muzzle_device varchar, PRIMARY KEY (rear_sight_type))
select rear_sight_type from table_19901_1 where muzzle_device = "acr muzzle brake"
When 13 is the share (18-49) what is the rank (timeslot)?
create table table_28980706_4 (rank__timeslot_ varchar, share__18_49_ varchar, PRIMARY KEY (rank__timeslot_))
select rank__timeslot_ from table_28980706_4 where share__18_49_ = 13
Show the most common country across members.
create table member (country varchar, PRIMARY KEY (country))
select country from member group by country order by count(*) desc limit 1
What is the status code, mobile phone number and email address of customer with last name as Kohler or first name as Marina?
create table customers (customer_status_code varchar, cell_mobile_phone_number varchar, email_address varchar, first_name varchar, last_name varchar, PRIMARY KEY (customer_status_code))
select customer_status_code, cell_mobile_phone_number, email_address from customers where first_name = "marina" or last_name = "kohler"
What is the name of the nurse has the most appointments?
create table nurse (name varchar, employeeid varchar, PRIMARY KEY (name)); create table appointment (prepnurse varchar, PRIMARY KEY (prepnurse))
select t1.name from nurse as t1 join appointment as t2 on t1.employeeid = t2.prepnurse group by t1.employeeid order by count(*) desc limit 1
Which office has 1 New Hampshire as a third place state?
create table table_20246201_9 (office varchar, states___third_place varchar, PRIMARY KEY (office))
select office from table_20246201_9 where states___third_place = "1 new hampshire"
How many school colors is there for the main campus location of highland?
create table table_12434380_1 (school_colors varchar, main_campus_location varchar, PRIMARY KEY (school_colors))
select count(school_colors) from table_12434380_1 where main_campus_location = "highland"
What is the highest value for SF round for the country of England?
create table table_23293785_2 (sf_round integer, country varchar, PRIMARY KEY (sf_round))
select max(sf_round) from table_23293785_2 where country = "england"
How many different nationalities do the players of New Jersey Devils come from?
create table table_1013129_3 (nationality varchar, nhl_team varchar, PRIMARY KEY (nationality))
select count(nationality) from table_1013129_3 where nhl_team = "new jersey devils"
How many millions of viewers were there for the episode with a run time of 18:00?
create table table_1601935_1 (viewers__in_millions_ varchar, run_time varchar, PRIMARY KEY (viewers__in_millions_))
select viewers__in_millions_ from table_1601935_1 where run_time = "18:00"
What country'c capital is santiago?
create table table_14098_1 (country_or_territory_with_flag varchar, capital varchar, PRIMARY KEY (country_or_territory_with_flag))
select country_or_territory_with_flag from table_14098_1 where capital = "santiago"
What are the assets for company who's headquarters are located in Brazil?
create table table_1682026_2 (assets__billion_$_ varchar, headquarters varchar, PRIMARY KEY (assets__billion_$_))
select assets__billion_$_ from table_1682026_2 where headquarters = "brazil"
How many Huckleberry Hound episodes were aired on 1960.09.18?
create table table_19860361_4 (huckleberry_hound varchar, air_date varchar, PRIMARY KEY (huckleberry_hound))
select count(huckleberry_hound) from table_19860361_4 where air_date = "1960.09.18"
What was the lowest judge rank for danny and frankie?
create table table_26375386_16 (judges integer, couple varchar, PRIMARY KEY (judges))
select min(judges) from table_26375386_16 where couple = "danny and frankie"
in the milwaukee team who made the high points
create table table_30049462_3 (high_points varchar, team varchar, PRIMARY KEY (high_points))
select high_points from table_30049462_3 where team = "milwaukee"
What is the Late Middle English equivalent of the Anglian æg, ǣg?
create table table_28177800_5 (late_middle_english varchar, late_old_english__anglian_ varchar, PRIMARY KEY (late_middle_english))
select late_middle_english from table_28177800_5 where late_old_english__anglian_ = "æg, ǣg"
Find the cell mobile number of the candidates whose assessment code is "Fail"?
create table candidates (candidate_id varchar, PRIMARY KEY (candidate_id)); create table people (cell_mobile_number varchar, person_id varchar, PRIMARY KEY (cell_mobile_number)); create table candidate_assessments (candidate_id varchar, asessment_outcome_code varchar, PRIMARY KEY (candidate_id))
select t3.cell_mobile_number from candidates as t1 join candidate_assessments as t2 on t1.candidate_id = t2.candidate_id join people as t3 on t1.candidate_id = t3.person_id where t2.asessment_outcome_code = "fail"
Show the apartment type codes and the corresponding number of apartments sorted by the number of apartments in ascending order.
create table apartments (apt_type_code varchar, PRIMARY KEY (apt_type_code))
select apt_type_code, count(*) from apartments group by apt_type_code order by count(*)
Name the most ending with
create table table_1852650_1 (ending_with integer, PRIMARY KEY (ending_with))
select max(ending_with) from table_1852650_1