question
stringlengths
14
216
context
stringlengths
45
458
answer
stringlengths
18
463
List all document type codes and document type names.
create table ref_document_types (document_type_code varchar, document_type_name varchar, PRIMARY KEY (document_type_code))
select document_type_code, document_type_name from ref_document_types
what is the sweet for voice actor saki fujita?
create table table_26615633_3 (sweet varchar, voice_actor varchar, PRIMARY KEY (sweet))
select sweet from table_26615633_3 where voice_actor = "saki fujita"
The score in the final is 2–6, 6–2, 6–0, on what surface?
create table table_26202847_6 (surface varchar, score_in_the_final varchar, PRIMARY KEY (surface))
select surface from table_26202847_6 where score_in_the_final = "2–6, 6–2, 6–0"
Find the number of departments in each school.
create table department (school_code varchar, dept_name varchar, PRIMARY KEY (school_code))
select count(distinct dept_name), school_code from department group by school_code
How many vacators have October 22, 1808 as date successor seated?
create table table_225093_4 (vacator varchar, date_successor_seated varchar, PRIMARY KEY (vacator))
select count(vacator) from table_225093_4 where date_successor_seated = "october 22, 1808"
What is the event # when the winner is what is 7x6?
create table table_22050544_1 (event__number varchar, winner varchar, PRIMARY KEY (event__number))
select event__number from table_22050544_1 where winner = "what is 7x6"
What was the host city in years where the host school was école de technologie supérieure?
create table table_2331549_1 (host_city varchar, host_school varchar, PRIMARY KEY (host_city))
select host_city from table_2331549_1 where host_school = "école de technologie supérieure"
How many cover models were on the edition that featured Jennifer Pershing as the centerfold?
create table table_1566852_10 (cover_model varchar, centerfold_model varchar, PRIMARY KEY (cover_model))
select count(cover_model) from table_1566852_10 where centerfold_model = "jennifer pershing"
Find the names of the chip models that are not used by any phone with full accreditation type.
create table chip_model (model_name varchar, chip_model varchar, accreditation_type varchar, PRIMARY KEY (model_name)); create table phone (model_name varchar, chip_model varchar, accreditation_type varchar, PRIMARY KEY (model_name))
select model_name from chip_model except select chip_model from phone where accreditation_type = 'full'
Name the broadcast date for run timke of 25:04
create table table_2102782_1 (broadcast_date varchar, run_time varchar, PRIMARY KEY (broadcast_date))
select broadcast_date from table_2102782_1 where run_time = "25:04"
available subnets leading total is?
create table table_149426_4 (available_subnets integer, PRIMARY KEY (available_subnets))
select max(available_subnets) from table_149426_4
Name the guest judge for first audition date being july 9, 2009
create table table_22897967_1 (guest_judge varchar, first_audition_date varchar, PRIMARY KEY (guest_judge))
select count(guest_judge) from table_22897967_1 where first_audition_date = "july 9, 2009"
Show the location with most number of train stations.
create table station (location varchar, PRIMARY KEY (location))
select location from station group by location order by count(*) desc limit 1
What are the names of teams that do no have match season record?
create table match_season (name varchar, team_id varchar, team varchar, PRIMARY KEY (name)); create table team (name varchar, team_id varchar, team varchar, PRIMARY KEY (name))
select name from team where not team_id in (select team from match_season)
Who won the regular season when Missouri Valley Conference took place?
create table table_22779004_1 (regular_season_winner varchar, conference varchar, PRIMARY KEY (regular_season_winner))
select regular_season_winner from table_22779004_1 where conference = "missouri valley conference"
Find the titles of all movies directed by steven spielberg.
create table movie (title varchar, director varchar, PRIMARY KEY (title))
select title from movie where director = 'steven spielberg'
What was the description when the viewers selected Nan?
create table table_15162503_1 (description varchar, viewers_selection varchar, PRIMARY KEY (description))
select description from table_15162503_1 where viewers_selection = "nan"
What was the main legion base for the Romans when the notes were "primigenia goddess of fate. xx in batavi revolt"?
create table table_242785_3 (main_legion_base varchar, notes varchar, PRIMARY KEY (main_legion_base))
select main_legion_base from table_242785_3 where notes = "primigenia goddess of fate. xx in batavi revolt"
What is the id, name and IATA code of the airport that had most number of flights?
create table airport (id varchar, name varchar, iata varchar, PRIMARY KEY (id)); create table flight (id varchar, airport_id varchar, PRIMARY KEY (id))
select t1.id, t1.name, t1.iata from airport as t1 join flight as t2 on t1.id = t2.airport_id group by t2.id order by count(*) desc limit 1
When was the date of vacancy for the manager of Kartalspor?
create table table_27091128_3 (date_of_vacancy varchar, team varchar, PRIMARY KEY (date_of_vacancy))
select date_of_vacancy from table_27091128_3 where team = "kartalspor"
How many debit cards do we have?
create table customers_cards (card_type_code varchar, PRIMARY KEY (card_type_code))
select count(*) from customers_cards where card_type_code = "debit"
Who is performing in the back stage position for the song "Der Kapitan"? Show the first name and last name.
create table band (firstname varchar, lastname varchar, id varchar, PRIMARY KEY (firstname)); create table performance (bandmate varchar, songid varchar, stageposition varchar, PRIMARY KEY (bandmate)); create table songs (songid varchar, title varchar, PRIMARY KEY (songid))
select t2.firstname, t2.lastname from performance as t1 join band as t2 on t1.bandmate = t2.id join songs as t3 on t3.songid = t1.songid where t3.title = "der kapitan" and t1.stageposition = "back"
Name the total number of period for yvon le roux
create table table_24565004_13 (period varchar, name varchar, PRIMARY KEY (period))
select count(period) from table_24565004_13 where name = "yvon le roux"
For the area which was 9.1 in October 2010, what is the figure for October 2012?
create table table_21531764_1 (october_2012 varchar, october_2010 varchar, PRIMARY KEY (october_2012))
select october_2012 from table_21531764_1 where october_2010 = "9.1"
If the opponent is the Stampeders, what is the record?
create table table_23916539_3 (record varchar, opponent varchar, PRIMARY KEY (record))
select record from table_23916539_3 where opponent = "stampeders"
How many marriages between women have % same-sex marriages of 1.06?
create table table_19614212_1 (marriages_between_women varchar, _percentage_same_sex_marriages varchar, PRIMARY KEY (marriages_between_women))
select marriages_between_women from table_19614212_1 where _percentage_same_sex_marriages = "1.06"
What is the airport name for airport 'AKO'?
create table airports (airportname varchar, airportcode varchar, PRIMARY KEY (airportname))
select airportname from airports where airportcode = "ako"
What is the adjusted GDP when the nominal GDP is 8.43 (in billions)?
create table table_1610496_3 (gdp_adjusted__$_billions_ varchar, gdp_nominal__$_billions_ varchar, PRIMARY KEY (gdp_adjusted__$_billions_))
select gdp_adjusted__$_billions_ from table_1610496_3 where gdp_nominal__$_billions_ = "8.43"
What country has a P of GK?
create table table_17596418_4 (country varchar, p varchar, PRIMARY KEY (country))
select country from table_17596418_4 where p = "gk"
Name the proto oceanic for *fafine
create table table_15568886_14 (proto_oceanic varchar, proto_polynesian varchar, PRIMARY KEY (proto_oceanic))
select proto_oceanic from table_15568886_14 where proto_polynesian = "*fafine"
Who directed all the episodes that were written by aaron ehasz & john o'bryan?
create table table_14562722_1 (directed_by varchar, written_by varchar, PRIMARY KEY (directed_by))
select directed_by from table_14562722_1 where written_by = "aaron ehasz & john o'bryan"
Name the total number of serial number for 24 wd no
create table table_20236726_2 (serial_no varchar, wd_no varchar, PRIMARY KEY (serial_no))
select count(serial_no) from table_20236726_2 where wd_no = 24
Who is GTU Winning Team's #27 Don Lindley's TO Winning Team?
create table table_13657749_2 (to_winning_team varchar, gtu_winning_team varchar, PRIMARY KEY (to_winning_team))
select to_winning_team from table_13657749_2 where gtu_winning_team = "#27 don lindley"
What are the shipping agent names?
create table ref_shipping_agents (shipping_agent_name varchar, PRIMARY KEY (shipping_agent_name))
select shipping_agent_name from ref_shipping_agents
Name the mandate for list pct 12.39%
create table table_14834801_1 (mandate varchar, list_pct varchar, PRIMARY KEY (mandate))
select mandate from table_14834801_1 where list_pct = "12.39%"
Which team did the player have who had 27 total carries?
create table table_20938922_2 (team varchar, carries varchar, PRIMARY KEY (team))
select team from table_20938922_2 where carries = 27
How many points did the opponents score at the game in Knoxville?
create table table_22903773_2 (opp_points integer, location varchar, PRIMARY KEY (opp_points))
select min(opp_points) from table_22903773_2 where location = "knoxville"
What is the id of the reviewer whose name has substring “Mike”?
create table reviewer (rid varchar, name varchar, PRIMARY KEY (rid))
select rid from reviewer where name like "%mike%"
When 25 are willing to take risks, what is the experts view?
create table table_1855342_5 (experts_view integer, willing_to_take_risks varchar, PRIMARY KEY (experts_view))
select min(experts_view) from table_1855342_5 where willing_to_take_risks = 25
What is the arrival time of greenbat
create table table_142159_1 (arrival integer, name varchar, PRIMARY KEY (arrival))
select max(arrival) from table_142159_1 where name = "greenbat"
When موسم زيتون is the arabic title when is the year (ceremony)?
create table table_26555737_1 (year__ceremony_ varchar, arabic_title varchar, PRIMARY KEY (year__ceremony_))
select year__ceremony_ from table_26555737_1 where arabic_title = "موسم زيتون"
Who led with the highest points during the game against Indiana?
create table table_23286158_9 (high_points varchar, team varchar, PRIMARY KEY (high_points))
select high_points from table_23286158_9 where team = "indiana"
What is the location for the team name of eagles?
create table table_24195232_1 (location varchar, team_name varchar, PRIMARY KEY (location))
select location from table_24195232_1 where team_name = "eagles"
Show the location codes and the number of documents in each location.
create table document_locations (location_code varchar, PRIMARY KEY (location_code))
select location_code, count(*) from document_locations group by location_code
How many employees have certificate.
create table certificate (eid varchar, PRIMARY KEY (eid))
select count(distinct eid) from certificate
what's the original air date where written by is iain morris & damon beesley
create table table_11589522_3 (original_air_date varchar, written_by varchar, PRIMARY KEY (original_air_date))
select original_air_date from table_11589522_3 where written_by = "iain morris & damon beesley"
What is the location for tournament on Jul 8-11?
create table table_26144632_1 (location varchar, dates varchar, PRIMARY KEY (location))
select location from table_26144632_1 where dates = "jul 8-11"
What country is the contestant from Chihuahua from?
create table table_20754016_2 (country varchar, hometown varchar, PRIMARY KEY (country))
select country from table_20754016_2 where hometown = "chihuahua"
List the employees who have not showed up in any circulation history of documents. List the employee's name.
create table circulation_history (employee_name varchar, PRIMARY KEY (employee_name)); create table employees (employee_name varchar, PRIMARY KEY (employee_name))
select employee_name from employees except select employees.employee_name from employees join circulation_history on circulation_history.employee_id = employees.employee_id
What is the title when 18.58 u.s. viewers (millions) watched?
create table table_18217741_1 (title varchar, us_viewers__millions_ varchar, PRIMARY KEY (title))
select title from table_18217741_1 where us_viewers__millions_ = "18.58"
display the full name (first and last name ) of employee with ID and name of the country presently where (s)he is working.
create table countries (country_name varchar, country_id varchar, PRIMARY KEY (country_name)); create table departments (department_id varchar, location_id varchar, PRIMARY KEY (department_id)); create table locations (location_id varchar, country_id varchar, PRIMARY KEY (location_id)); create table employees (first_name varchar, last_name varchar, employee_id varchar, department_id varchar, PRIMARY KEY (first_name))
select t1.first_name, t1.last_name, t1.employee_id, t4.country_name from employees as t1 join departments as t2 on t1.department_id = t2.department_id join locations as t3 on t2.location_id = t3.location_id join countries as t4 on t3.country_id = t4.country_id
Who were the directors of the film submitted with the title Young Törless?
create table table_10874596_1 (director varchar, film_title_used_in_nomination varchar, PRIMARY KEY (director))
select director from table_10874596_1 where film_title_used_in_nomination = "young törless"
Which TV network has a country of origin of Iran?
create table table_29799700_2 (tv_network_s_ varchar, country varchar, PRIMARY KEY (tv_network_s_))
select tv_network_s_ from table_29799700_2 where country = "iran"
which train name arrives in lonavla at 17:45
create table table_29301050_1 (train_name varchar, arrival_lonavla varchar, PRIMARY KEY (train_name))
select train_name from table_29301050_1 where arrival_lonavla = "17:45"
When there was a bye in the round of 32, what was the result in the round of 16?
create table table_1745820_5 (semifinals varchar, round_of_32 varchar, PRIMARY KEY (semifinals))
select semifinals from table_1745820_5 where round_of_32 = "bye"
Which driver won at the Sachsenring circuit?
create table table_1140114_5 (winning_driver varchar, circuit varchar, PRIMARY KEY (winning_driver))
select winning_driver from table_1140114_5 where circuit = "sachsenring"
How many upstream speeds are there for downstream of 20 mbit/s and bandwidth of 40 gb?
create table table_17304621_14 (upstream varchar, downstream varchar, bandwidth varchar, PRIMARY KEY (upstream))
select count(upstream) from table_17304621_14 where downstream = "20 mbit/s" and bandwidth = "40 gb"
Where was the attempt on the Prime Minister of Sri Lanka's life made?
create table table_251272_4 (location varchar, title_at_the_time varchar, PRIMARY KEY (location))
select location from table_251272_4 where title_at_the_time = "prime minister of sri lanka"
Name the rank on channel for january 21, 2011
create table table_26493520_3 (rank_on_channel varchar, original_air_date varchar, PRIMARY KEY (rank_on_channel))
select rank_on_channel from table_26493520_3 where original_air_date = "january 21, 2011"
what are all the playoffs for regular season is 1st, atlantic division
create table table_1046170_5 (playoffs varchar, regular_season varchar, PRIMARY KEY (playoffs))
select playoffs from table_1046170_5 where regular_season = "1st, atlantic division"
How many films are titled "Dans la Ville Blanche"?
create table table_22034853_1 (film_title_used_in_nomination varchar, original_title varchar, PRIMARY KEY (film_title_used_in_nomination))
select count(film_title_used_in_nomination) from table_22034853_1 where original_title = "dans la ville blanche"
Which aorist has imperfect form of bijasmo / bejasmo / besmo?
create table table_27298240_26 (aorist varchar, imperfect varchar, PRIMARY KEY (aorist))
select aorist from table_27298240_26 where imperfect = "bijasmo / bejasmo / besmo"
Show the location codes with at least 3 documents.
create table document_locations (location_code varchar, PRIMARY KEY (location_code))
select location_code from document_locations group by location_code having count(*) >= 3
What teams drafted players that played for northwood school?
create table table_10960039_6 (cfl_team varchar, college varchar, PRIMARY KEY (cfl_team))
select cfl_team from table_10960039_6 where college = "northwood"
What is the English word for the Russian words loshad, kobyla (лошадь, кобыла)?
create table table_15040_8 (english varchar, russian varchar, PRIMARY KEY (english))
select english from table_15040_8 where russian = "loshad, kobyla (лошадь, кобыла)"
Name the race 1 when race 3 is 8
create table table_15530244_5 (race_1 varchar, race_3 varchar, PRIMARY KEY (race_1))
select race_1 from table_15530244_5 where race_3 = "8"
The episode which originally aired on December 17, 2004 was written by whom?
create table table_228973_11 (written_by varchar, original_air_date varchar, PRIMARY KEY (written_by))
select written_by from table_228973_11 where original_air_date = "december 17, 2004"
Who is the kitmaker for TPS?
create table table_25129482_1 (kitmaker varchar, club varchar, PRIMARY KEY (kitmaker))
select kitmaker from table_25129482_1 where club = "tps"
Name the parent unit for josef priller
create table table_28342423_1 (parent_unit varchar, commanding_officer varchar, PRIMARY KEY (parent_unit))
select parent_unit from table_28342423_1 where commanding_officer = "josef priller"
What party is thomas foglietta from?
create table table_1341472_40 (party varchar, incumbent varchar, PRIMARY KEY (party))
select party from table_1341472_40 where incumbent = "thomas foglietta"
Who was the challenger when guillaume brahimi was the iron chef?
create table table_29281529_2 (challenger varchar, iron_chef varchar, PRIMARY KEY (challenger))
select challenger from table_29281529_2 where iron_chef = "guillaume brahimi"
What date was parliament assembled when John rudhale was first member?
create table table_15451122_2 (assembled varchar, first_member varchar, PRIMARY KEY (assembled))
select assembled from table_15451122_2 where first_member = "john rudhale"
list all the names of programs, ordering by launch time.
create table program (name varchar, launch varchar, PRIMARY KEY (name))
select name from program order by launch
give the 1st leg score against ilisiakos
create table table_21434618_1 (team__number2 varchar, PRIMARY KEY (team__number2))
select 1 as st_leg from table_21434618_1 where team__number2 = "ilisiakos"
Which source shows Blackberry at 2.9%?
create table table_11381701_3 (source varchar, blackberry varchar, PRIMARY KEY (source))
select source from table_11381701_3 where blackberry = "2.9%"
What is the size when the frame is bigger than for 4096.0
create table table_1251878_3 (aspect_ratio varchar, width integer, PRIMARY KEY (aspect_ratio))
select aspect_ratio from table_1251878_3 where width > 4096.0
Who was the artist who worked on the stories published in 1966?
create table table_23963073_1 (artist varchar, date_of_publication varchar, PRIMARY KEY (artist))
select artist from table_23963073_1 where date_of_publication = 1966
What is Segment B for series episode 12-08?
create table table_15187735_12 (segment_b varchar, series_ep varchar, PRIMARY KEY (segment_b))
select segment_b from table_15187735_12 where series_ep = "12-08"
what's the species in the world with peruvian amazon vs. peru (percent)  of 63
create table table_11727969_1 (species_in_the_world varchar, peruvian_amazon_vs_peru__percent_ varchar, PRIMARY KEY (species_in_the_world))
select species_in_the_world from table_11727969_1 where peruvian_amazon_vs_peru__percent_ = 63
Please show the different record companies and the corresponding number of orchestras.
create table orchestra (record_company varchar, PRIMARY KEY (record_company))
select record_company, count(*) from orchestra group by record_company
How many titles/sources have a developer of Clover Studio?
create table table_26538035_1 (title_and_source varchar, developer varchar, PRIMARY KEY (title_and_source))
select count(title_and_source) from table_26538035_1 where developer = "clover studio"
Which high school is located in Kyoto?
create table table_2518850_4 (high_school_name varchar, prefecture varchar, PRIMARY KEY (high_school_name))
select high_school_name from table_2518850_4 where prefecture = "kyoto"
How many weeks was France at #1?
create table table_27441210_12 (weeks_at__number1 integer, country varchar, PRIMARY KEY (weeks_at__number1))
select max(weeks_at__number1) from table_27441210_12 where country = "france"
What are the names that had a finalist score of 2?
create table table_14286908_1 (school varchar, finalists varchar, PRIMARY KEY (school))
select school from table_14286908_1 where finalists = 2
What are the profits (in billions) where the assets are 192.8 billion?
create table table_1682026_3 (profits__billion_$_ varchar, assets__billion_$_ varchar, PRIMARY KEY (profits__billion_$_))
select profits__billion_$_ from table_1682026_3 where assets__billion_$_ = "192.8"
How many constructors are listed for the XVI BRDC international trophy race
create table table_1140103_6 (constructor varchar, race_name varchar, PRIMARY KEY (constructor))
select count(constructor) from table_1140103_6 where race_name = "xvi brdc international trophy"
What are the resident details containing the substring 'Miss'?
create table residents (other_details varchar, PRIMARY KEY (other_details))
select other_details from residents where other_details like '%miss%'
what is the vehicle code where the bore is 79.4?
create table table_23722304_2 (vehicle_code varchar, bore__mm_ varchar, PRIMARY KEY (vehicle_code))
select vehicle_code from table_23722304_2 where bore__mm_ = "79.4"
What is the deficit (-surplus) of the country who use 5.2% of the world demand of uranium?
create table table_15624586_2 (deficit___surplus_ varchar, _percentage_of_world_demand varchar, PRIMARY KEY (deficit___surplus_))
select deficit___surplus_ from table_15624586_2 where _percentage_of_world_demand = "5.2%"
What is the Burmese term for Thursday?
create table table_14850099_18 (burmese varchar, english varchar, PRIMARY KEY (burmese))
select burmese from table_14850099_18 where english = "thursday"
Which episodes did Katie Palmer write?
create table table_27823058_1 (title varchar, written_by varchar, PRIMARY KEY (title))
select title from table_27823058_1 where written_by = "katie palmer"
what is the number of teams where conmebol 1996 did not qualify?
create table table_14310205_1 (team varchar, conmebol_1996 varchar, PRIMARY KEY (team))
select count(team) from table_14310205_1 where conmebol_1996 = "did not qualify"
When 4744 is the avg. trips per mile (x1000) what is the current stock?
create table table_17839_1 (current_stock varchar, avg_trips_per_mile__×1000_ varchar, PRIMARY KEY (current_stock))
select current_stock from table_17839_1 where avg_trips_per_mile__×1000_ = 4744
When рыба (rýba) is the belarusian how many slovenes are there?
create table table_26757_4 (slovene varchar, belarusian varchar, PRIMARY KEY (slovene))
select count(slovene) from table_26757_4 where belarusian = "рыба (rýba)"
Which product has been ordered most number of times?
create table products (product_details varchar, product_id varchar, PRIMARY KEY (product_details)); create table order_items (product_id varchar, PRIMARY KEY (product_id))
select t2.product_details from order_items as t1 join products as t2 on t1.product_id = t2.product_id group by t1.product_id order by count(*) desc limit 1
what are all the registrations where location is yaxley
create table table_11934032_1 (registrations varchar, location varchar, PRIMARY KEY (registrations))
select registrations from table_11934032_1 where location = "yaxley"
What position did Nell McAndrew finish?
create table table_14345690_2 (finished varchar, celebrity varchar, PRIMARY KEY (finished))
select finished from table_14345690_2 where celebrity = "nell mcandrew"
How many officers o/s were there on the day when the number of USAAF was 2373882?
create table table_23508196_2 (officers_o_s integer, total_usaaf varchar, PRIMARY KEY (officers_o_s))
select max(officers_o_s) from table_23508196_2 where total_usaaf = 2373882
Show all school names in alphabetical order.
create table school (school_name varchar, PRIMARY KEY (school_name))
select school_name from school order by school_name
Name the total number of opponent in the final for 6–2, 6–1, 6–3
create table table_23235767_4 (opponent_in_the_final varchar, score_in_the_final varchar, PRIMARY KEY (opponent_in_the_final))
select count(opponent_in_the_final) from table_23235767_4 where score_in_the_final = "6–2, 6–1, 6–3"