question
stringlengths 14
216
| context
stringlengths 45
458
| answer
stringlengths 18
463
|
---|---|---|
When did the old manager vacate his position in Plymouth Argyle? | create table table_19359427_6 (date_of_vacancy varchar, team varchar, PRIMARY KEY (date_of_vacancy)) | select date_of_vacancy from table_19359427_6 where team = "plymouth argyle" |
Which team uses lola t92/00/ buick for their chassis/engine? | create table table_23391714_1 (team varchar, chassis_engine varchar, PRIMARY KEY (team)) | select team from table_23391714_1 where chassis_engine = "lola t92/00/ buick" |
How many songs have a shared vocal? | create table vocals (songid varchar, PRIMARY KEY (songid)); create table songs (songid varchar, PRIMARY KEY (songid)) | select count(distinct title) from vocals as t1 join songs as t2 on t1.songid = t2.songid where type = "shared" |
what is the stroke where the vehicle code is t211? | create table table_23722304_2 (stroke__mm_ varchar, vehicle_code varchar, PRIMARY KEY (stroke__mm_)) | select stroke__mm_ from table_23722304_2 where vehicle_code = "t211" |
Count the number of rooms that are not in the Lamberton building. | create table classroom (building varchar, PRIMARY KEY (building)) | select count(*) from classroom where building <> 'lamberton' |
What are all the AAA classes in the school years of 2004-05? | create table table_14603212_5 (class_aaa varchar, school_year varchar, PRIMARY KEY (class_aaa)) | select class_aaa from table_14603212_5 where school_year = "2004-05" |
Find the package choice and series name of the TV channel that has high definition TV. | create table tv_channel (package_option varchar, series_name varchar, hight_definition_tv varchar, PRIMARY KEY (package_option)) | select package_option, series_name from tv_channel where hight_definition_tv = "yes" |
What is the power in KW of the transmitter situated in Borongan? | create table table_24673888_1 (power_kw varchar, location__transmitter_site_ varchar, PRIMARY KEY (power_kw)) | select power_kw from table_24673888_1 where location__transmitter_site_ = "borongan" |
How many different advisors are listed? | create table student (advisor varchar, PRIMARY KEY (advisor)) | select count(distinct advisor) from student |
Name the mountains classification for rabobank and damiano cunego | create table table_29077342_19 (mountains_classification varchar, team_classification varchar, general_classification varchar, PRIMARY KEY (mountains_classification)) | select mountains_classification from table_29077342_19 where team_classification = "rabobank" and general_classification = "damiano cunego" |
How many episodes did David Jackson write and direct? | create table table_11695215_1 (written_by varchar, directed_by varchar, PRIMARY KEY (written_by)) | select count(written_by) from table_11695215_1 where directed_by = "david jackson" |
If the velocity angle is ln[(1 + √5)/2] ≅ 0.481, what is the condition/parameter? | create table table_15314901_1 (condition_parameter varchar, velocity_angle_η_in_i_radians varchar, PRIMARY KEY (condition_parameter)) | select condition_parameter from table_15314901_1 where velocity_angle_η_in_i_radians = "ln[(1 + √5)/2] ≅ 0.481" |
When la salle is the team who has the highest amount of points? | create table table_29556461_8 (high_points varchar, team varchar, PRIMARY KEY (high_points)) | select high_points from table_29556461_8 where team = "la salle" |
What is the order id and order details for the order more than two invoices. | create table orders (order_id varchar, order_details varchar, PRIMARY KEY (order_id)); create table invoices (order_id varchar, PRIMARY KEY (order_id)) | select t2.order_id, t2.order_details from invoices as t1 join orders as t2 on t1.order_id = t2.order_id group by t2.order_id having count(*) > 2 |
What digital channel corresponds to virtual channel 5.2? | create table table_2857352_3 (digital_channel varchar, virtual_channel varchar, PRIMARY KEY (digital_channel)) | select digital_channel from table_2857352_3 where virtual_channel = "5.2" |
How many time was the political party the social democratic party of germany? | create table table_21132404_1 (_percentage_2006 varchar, political_parties varchar, PRIMARY KEY (_percentage_2006)) | select count(_percentage_2006) from table_21132404_1 where political_parties = "social democratic party of germany" |
Who is the s color commentator when the pregame host is jon sciambi? | create table table_2941848_10 (s_color_commentator varchar, pregame_hosts varchar, PRIMARY KEY (s_color_commentator)) | select s_color_commentator from table_2941848_10 where pregame_hosts = "jon sciambi" |
List all customer status codes and the number of customers having each status code. | create table customers (customer_status_code varchar, PRIMARY KEY (customer_status_code)) | select customer_status_code, count(*) from customers group by customer_status_code |
Find the product category description of the product category with code "Spices". | create table ref_product_categories (product_category_description varchar, product_category_code varchar, PRIMARY KEY (product_category_description)) | select product_category_description from ref_product_categories where product_category_code = "spices" |
What's the bus width (in bit) of the model whose core is 650 MHz? | create table table_19161046_1 (bus_width___bit__ varchar, core___mhz__ varchar, PRIMARY KEY (bus_width___bit__)) | select count(bus_width___bit__) from table_19161046_1 where core___mhz__ = 650 |
Which school, club team, or country played for the rockets in the years 2000-01? | create table table_11734041_3 (school_club_team_country varchar, years_for_rockets varchar, PRIMARY KEY (school_club_team_country)) | select school_club_team_country from table_11734041_3 where years_for_rockets = "2000-01" |
What tv season year had 14.54 million viewers? | create table table_27553627_2 (tv_season varchar, viewers__in_millions_ varchar, PRIMARY KEY (tv_season)) | select tv_season from table_27553627_2 where viewers__in_millions_ = "14.54" |
Which team is 9th in wickets? | create table table_1670921_1 (fielding_team varchar, wicket varchar, PRIMARY KEY (fielding_team)) | select fielding_team from table_1670921_1 where wicket = "9th" |
Who tied for the highest rebounds during the game against Orlando? | create table table_23248940_8 (high_rebounds varchar, team varchar, PRIMARY KEY (high_rebounds)) | select high_rebounds from table_23248940_8 where team = "orlando" |
Who got the pole position if the supporting is USAC National Midget Series? | create table table_25459168_2 (pole_position varchar, supporting varchar, PRIMARY KEY (pole_position)) | select pole_position from table_25459168_2 where supporting = "usac national midget series" |
Name the broadcast network for chiba prefecture | create table table_21076286_2 (broadcast_network varchar, broadcast_scope varchar, PRIMARY KEY (broadcast_network)) | select broadcast_network from table_21076286_2 where broadcast_scope = "chiba prefecture" |
Which claim incurred the most number of settlements? List the claim id, the date the claim was made, and the number. | create table claims (claim_id varchar, date_claim_made varchar, PRIMARY KEY (claim_id)); create table settlements (claim_id varchar, PRIMARY KEY (claim_id)) | select t1.claim_id, t1.date_claim_made, count(*) from claims as t1 join settlements as t2 on t1.claim_id = t2.claim_id group by t1.claim_id order by count(*) desc limit 1 |
How many times was the womens doubles in china? | create table table_28138035_6 (mens_singles varchar, womens_doubles varchar, PRIMARY KEY (mens_singles)) | select count(mens_singles) from table_28138035_6 where womens_doubles = "china" |
What is the name of the zhou jinsong's hometown? | create table table_28180840_15 (hometown varchar, name_name_of_act varchar, PRIMARY KEY (hometown)) | select hometown from table_28180840_15 where name_name_of_act = "zhou jinsong" |
When rashard lewis (24) has the highest amount of points who is the team? | create table table_23249053_11 (team varchar, high_points varchar, PRIMARY KEY (team)) | select team from table_23249053_11 where high_points = "rashard lewis (24)" |
What is the distance (in meters) when the shuttle time is 6.86 seconds? | create table table_1751142_2 (distance__m_ integer, shuttle_time__seconds_ varchar, PRIMARY KEY (distance__m_)) | select min(distance__m_) from table_1751142_2 where shuttle_time__seconds_ = "6.86" |
When river ness is the hr name what is the hr number? | create table table_1886270_1 (hr_no varchar, hr_name varchar, PRIMARY KEY (hr_no)) | select hr_no from table_1886270_1 where hr_name = "river ness" |
Who was the original artist of the Top 12 Men theme? | create table table_27614707_1 (original_artist varchar, theme varchar, PRIMARY KEY (original_artist)) | select original_artist from table_27614707_1 where theme = "top 12 men" |
Name the owners 2009 for south side indianapolis | create table table_23958917_1 (owner_s___2009_ varchar, location varchar, PRIMARY KEY (owner_s___2009_)) | select owner_s___2009_ from table_23958917_1 where location = "south side indianapolis" |
What episode is directed by Bryan Spicer and written by Terence Paul Winter? | create table table_23958944_5 (title varchar, directed_by varchar, written_by varchar, PRIMARY KEY (title)) | select title from table_23958944_5 where directed_by = "bryan spicer" and written_by = "terence paul winter" |
What town holds Stadion Zlatica? | create table table_28668784_1 (city___town varchar, stadium varchar, PRIMARY KEY (city___town)) | select city___town from table_28668784_1 where stadium = "stadion zlatica" |
What time was achieved on Saturday 29th August by the rider who recorded 25' 01.89 90.438mph on Friday 28th August? | create table table_23465864_4 (sat_29_aug varchar, fri_28_aug varchar, PRIMARY KEY (sat_29_aug)) | select sat_29_aug from table_23465864_4 where fri_28_aug = "25' 01.89 90.438mph" |
List the all the distinct names of the products with the characteristic name 'warm'. | create table characteristics (characteristic_id varchar, characteristic_name varchar, PRIMARY KEY (characteristic_id)); create table products (product_name varchar, product_id varchar, PRIMARY KEY (product_name)); create table product_characteristics (product_id varchar, characteristic_id varchar, PRIMARY KEY (product_id)) | select distinct t1.product_name from products as t1 join product_characteristics as t2 on t1.product_id = t2.product_id join characteristics as t3 on t2.characteristic_id = t3.characteristic_id where t3.characteristic_name = "warm" |
What was the 2006 population count of the local government area where Coober Pedy is located? | create table table_23685890_2 (pop_2006 varchar, major_town varchar, PRIMARY KEY (pop_2006)) | select pop_2006 from table_23685890_2 where major_town = "coober pedy" |
What's the zodiac sign for the month with Thai name มกราคม? | create table table_20354_5 (zodiac_sign varchar, thai_name varchar, PRIMARY KEY (zodiac_sign)) | select zodiac_sign from table_20354_5 where thai_name = "มกราคม" |
Who is the director when the writter is Andrea Newman? | create table table_24910733_1 (directed_by varchar, written_by varchar, PRIMARY KEY (directed_by)) | select directed_by from table_24910733_1 where written_by = "andrea newman" |
What is the lowest gp? | create table table_26176081_29 (gp integer, PRIMARY KEY (gp)) | select min(gp) from table_26176081_29 |
Find the number of students for the cities where have more than one student. | create table student (city_code varchar, PRIMARY KEY (city_code)) | select count(*), city_code from student group by city_code having count(*) > 1 |
What is the permitted length of stay in the Jersey territory? | create table table_25965003_3 (length_of_stay_permitted varchar, countries_and_territories varchar, PRIMARY KEY (length_of_stay_permitted)) | select length_of_stay_permitted from table_25965003_3 where countries_and_territories = "jersey" |
How many previous years did Maebashi Ikuei high school have a total number of 1 participation? | create table table_2518850_4 (year_of_previous_participation varchar, total_number_of_participation varchar, high_school_name varchar, PRIMARY KEY (year_of_previous_participation)) | select count(year_of_previous_participation) from table_2518850_4 where total_number_of_participation = 1 and high_school_name = "maebashi ikuei" |
Find the country that has the most stadiums. | create table stadium (country varchar, PRIMARY KEY (country)) | select country from stadium group by country order by count(*) desc limit 1 |
List the record company shared by the most number of orchestras. | create table orchestra (record_company varchar, PRIMARY KEY (record_company)) | select record_company from orchestra group by record_company order by count(*) desc limit 1 |
Name the entrant for bruno sterzi | create table table_28578594_1 (entrant varchar, driver varchar, PRIMARY KEY (entrant)) | select entrant from table_28578594_1 where driver = "bruno sterzi" |
Who is the television commentator when the spokesperson is Kateryna Osadcha? | create table table_1998037_9 (television_commentator varchar, spokesperson varchar, PRIMARY KEY (television_commentator)) | select television_commentator from table_1998037_9 where spokesperson = "kateryna osadcha" |
How many sprints classifications were associated with an overall winner of Joaquin Rodriguez? | create table table_26257223_13 (sprints_classification varchar, winner varchar, PRIMARY KEY (sprints_classification)) | select count(sprints_classification) from table_26257223_13 where winner = "joaquin rodriguez" |
what are all the percent (1990) where state is mississippi | create table table_1182314_5 (percent__1990_ varchar, state varchar, PRIMARY KEY (percent__1990_)) | select percent__1990_ from table_1182314_5 where state = "mississippi" |
If the national trophy/rookie is Gerrard Barrabeig, what is the name of the second? | create table table_25563779_4 (second varchar, national_trophy_rookie varchar, PRIMARY KEY (second)) | select second from table_25563779_4 where national_trophy_rookie = "gerrard barrabeig" |
What teams do the players from TPS (Finland) play for? | create table table_1013129_11 (nhl_team varchar, college_junior_club_team varchar, PRIMARY KEY (nhl_team)) | select nhl_team from table_1013129_11 where college_junior_club_team = "tps (finland)" |
What town is Muscle Shoals High School located in? | create table table_11677691_10 (hometown varchar, school varchar, PRIMARY KEY (hometown)) | select hometown from table_11677691_10 where school = "muscle shoals high school" |
Show the title and publication dates of books. | create table book (title varchar, book_id varchar, PRIMARY KEY (title)); create table publication (publication_date varchar, book_id varchar, PRIMARY KEY (publication_date)) | select t1.title, t2.publication_date from book as t1 join publication as t2 on t1.book_id = t2.book_id |
What is the population density for the city of lubang? | create table table_261951_1 (pop_density__per_km²_ varchar, municipality varchar, PRIMARY KEY (pop_density__per_km²_)) | select count(pop_density__per_km²_) from table_261951_1 where municipality = "lubang" |
What is the bayonet lug status for a m4 hbar and m4le carbine equipped? | create table table_12834315_5 (bayonet_lug varchar, barrel_profile varchar, name varchar, PRIMARY KEY (bayonet_lug)) | select bayonet_lug from table_12834315_5 where barrel_profile = "m4 hbar" and name = "m4le carbine" |
What is under drafted when pro team is arizona cardinals? | create table table_1198175_1 (drafted varchar, pro_team varchar, PRIMARY KEY (drafted)) | select drafted from table_1198175_1 where pro_team = "arizona cardinals" |
When was it where 65 Australians were involved in the UN? | create table table_10121127_1 (dates_of_australian_involvement varchar, number_of_australians_involved varchar, PRIMARY KEY (dates_of_australian_involvement)) | select dates_of_australian_involvement from table_10121127_1 where number_of_australians_involved = "65" |
Name the seans team being 13 november 2008 | create table table_23292220_7 (seans_team varchar, first_broadcast varchar, PRIMARY KEY (seans_team)) | select seans_team from table_23292220_7 where first_broadcast = "13 november 2008" |
How many deaths did the eyar with exactly 6 hurricanes have? | create table table_2930244_4 (deaths varchar, number_of_hurricanes varchar, PRIMARY KEY (deaths)) | select count(deaths) from table_2930244_4 where number_of_hurricanes = 6 |
List all document ids with at least two paragraphs. | create table paragraphs (document_id varchar, PRIMARY KEY (document_id)) | select document_id from paragraphs group by document_id having count(*) >= 2 |
Who are all winning drivers if winning team is Carlin Motorsport and circuit is Croft? | create table table_26137666_3 (winning_driver varchar, winning_team varchar, circuit varchar, PRIMARY KEY (winning_driver)) | select winning_driver from table_26137666_3 where winning_team = "carlin motorsport" and circuit = "croft" |
What film festival had the Best Male Actor? | create table table_26282750_1 (film_festival varchar, category varchar, PRIMARY KEY (film_festival)) | select film_festival from table_26282750_1 where category = "best male actor" |
What is listed in Network station when the country is Brunei? | create table table_2879165_1 (network_station varchar, country varchar, PRIMARY KEY (network_station)) | select count(network_station) from table_2879165_1 where country = "brunei" |
How many districts have Mac Sweeney as incumbent? | create table table_1341586_44 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates)) | select count(candidates) from table_1341586_44 where incumbent = "mac sweeney" |
What is the toll for light vehicles at the plaza between bela bela and modimolle? | create table table_1211545_2 (light_vehicle varchar, location varchar, PRIMARY KEY (light_vehicle)) | select light_vehicle from table_1211545_2 where location = "between bela bela and modimolle" |
How many counties are there? | create table county_public_safety (id varchar, PRIMARY KEY (id)) | select count(*) from county_public_safety |
What is the hometown of contestants who are from the province of Huesca? | create table table_23476629_2 (hometown varchar, province varchar, PRIMARY KEY (hometown)) | select hometown from table_23476629_2 where province = "huesca" |
How many races did Cale Yarborough win at an average speed of 88.924 mph? | create table table_22648285_1 (race_time varchar, driver varchar, average_speed__mph_ varchar, PRIMARY KEY (race_time)) | select count(race_time) from table_22648285_1 where driver = "cale yarborough" and average_speed__mph_ = "88.924" |
Whats the status of the trains at location Museum | create table table_142159_1 (status varchar, location varchar, PRIMARY KEY (status)) | select status from table_142159_1 where location = "museum" |
WHat is the Homeland security distinguished service medal when the medal of honor is Coast guard Medal? | create table table_2104176_1 (homeland_security_distinguished_service_medal varchar, medal_of_honor varchar, PRIMARY KEY (homeland_security_distinguished_service_medal)) | select homeland_security_distinguished_service_medal from table_2104176_1 where medal_of_honor = "coast guard medal" |
Who got the high rebounds if Brook Lopez (15) earned the high points? | create table table_27700375_8 (high_rebounds varchar, high_points varchar, PRIMARY KEY (high_rebounds)) | select high_rebounds from table_27700375_8 where high_points = "brook lopez (15)" |
How many afc titles were there when there were 2 super bowl wins? | create table table_1952065_4 (afc_titles integer, super_bowl_wins varchar, PRIMARY KEY (afc_titles)) | select max(afc_titles) from table_1952065_4 where super_bowl_wins = 2 |
Who was the womens doubles when the mixed doubles is jacco arends selena piek? | create table table_12171145_1 (womens_doubles varchar, mixed_doubles varchar, PRIMARY KEY (womens_doubles)) | select womens_doubles from table_12171145_1 where mixed_doubles = "jacco arends selena piek" |
Show all cities where students live. | create table student (city_code varchar, PRIMARY KEY (city_code)) | select distinct city_code from student |
Who is the chairman when the current manager is bob peeters? | create table table_27374004_2 (chairman varchar, current_manager varchar, PRIMARY KEY (chairman)) | select chairman from table_27374004_2 where current_manager = "bob peeters" |
What is the document id with least number of paragraphs? | create table paragraphs (document_id varchar, PRIMARY KEY (document_id)) | select document_id from paragraphs group by document_id order by count(*) limit 1 |
Who had a high rebound where the associated record is 11-13? | create table table_17104539_10 (high_rebounds varchar, record varchar, PRIMARY KEY (high_rebounds)) | select high_rebounds from table_17104539_10 where record = "11-13" |
How many verbs mean to bear | create table table_1745843_10 (part_4 varchar, verb_meaning varchar, PRIMARY KEY (part_4)) | select count(part_4) from table_1745843_10 where verb_meaning = "to bear" |
How many departments are led by heads who are not mentioned? | create table management (department_id varchar, PRIMARY KEY (department_id)); create table department (department_id varchar, PRIMARY KEY (department_id)) | select count(*) from department where not department_id in (select department_id from management) |
What is the barrel length for a cold model le6921sp? | create table table_12834315_5 (barrel_length varchar, colt_model_no varchar, PRIMARY KEY (barrel_length)) | select barrel_length from table_12834315_5 where colt_model_no = "le6921sp" |
When vista radio is the owner how many call signs are there? | create table table_18536769_1 (call_sign varchar, owner varchar, PRIMARY KEY (call_sign)) | select count(call_sign) from table_18536769_1 where owner = "vista radio" |
How many different contents are offered by the Qualsiasi Tranne Sky HD package? | create table table_15887683_3 (content varchar, package_option varchar, PRIMARY KEY (content)) | select count(content) from table_15887683_3 where package_option = "qualsiasi tranne sky hd" |
What is the donor payment in Belgium? | create table table_16175217_1 (donor_payment varchar, country varchar, PRIMARY KEY (donor_payment)) | select donor_payment from table_16175217_1 where country = "belgium" |
Find the number of students in one classroom. | create table list (classroom varchar, PRIMARY KEY (classroom)) | select count(*), classroom from list group by classroom |
Who wrote the episodes directed by David Straiton? | create table table_21312845_1 (written_by varchar, directed_by varchar, PRIMARY KEY (written_by)) | select written_by from table_21312845_1 where directed_by = "david straiton" |
Who was the director when there were 13.66 million u.s viewers? | create table table_11404452_1 (director varchar, us_viewers__millions_ varchar, PRIMARY KEY (director)) | select director from table_11404452_1 where us_viewers__millions_ = "13.66" |
what is the total number of location where station number is c03 | create table table_11934032_1 (location varchar, station_number varchar, PRIMARY KEY (location)) | select count(location) from table_11934032_1 where station_number = "c03" |
Who were the running candidates when Samuel Riker was the incumbent? | create table table_2668374_10 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates)) | select candidates from table_2668374_10 where incumbent = "samuel riker" |
Who is the driver of the european grand prix? | create table table_1137696_3 (winning_driver varchar, grand_prix varchar, PRIMARY KEY (winning_driver)) | select winning_driver from table_1137696_3 where grand_prix = "european grand_prix" |
What are the titles of episodes with 5.66 million US viewers? | create table table_2866514_1 (title varchar, us_viewers__million_ varchar, PRIMARY KEY (title)) | select title from table_2866514_1 where us_viewers__million_ = "5.66" |
Show the location name and code with the least documents. | create table document_locations (location_code varchar, PRIMARY KEY (location_code)); create table ref_locations (location_name varchar, location_code varchar, PRIMARY KEY (location_name)) | select t2.location_name, t1.location_code from document_locations as t1 join ref_locations as t2 on t1.location_code = t2.location_code group by t1.location_code order by count(*) limit 1 |
List the names of orchestras that have performance. | create table orchestra (orchestra varchar, orchestra_id varchar, PRIMARY KEY (orchestra)); create table performance (orchestra varchar, orchestra_id varchar, PRIMARY KEY (orchestra)) | select orchestra from orchestra where orchestra_id in (select orchestra_id from performance) |
How many members does the club "Tennis Club" has? | create table club (clubid varchar, clubname varchar, PRIMARY KEY (clubid)); create table member_of_club (clubid varchar, stuid varchar, PRIMARY KEY (clubid)); create table student (stuid varchar, PRIMARY KEY (stuid)) | select count(*) from club as t1 join member_of_club as t2 on t1.clubid = t2.clubid join student as t3 on t2.stuid = t3.stuid where t1.clubname = "tennis club" |
What is the gender of the cunningham hill infant school? | create table table_28523_2 (gender varchar, school varchar, PRIMARY KEY (gender)) | select gender from table_28523_2 where school = "cunningham hill infant school" |
What is the high school for the player who's hometown is Blue Island, Il? | create table table_20785990_2 (high_school varchar, home_town varchar, PRIMARY KEY (high_school)) | select high_school from table_20785990_2 where home_town = "blue island, il" |
What is the other abbreviation of the constellation that has β trianguli as its brightest star? | create table table_287159_1 (other_abbreviation varchar, brightest_star varchar, PRIMARY KEY (other_abbreviation)) | select other_abbreviation from table_287159_1 where brightest_star = "β trianguli" |
What is every reference for type and usage of Germanium small-signal RF transistor? | create table table_30011_2 (reference varchar, type_and_usage varchar, PRIMARY KEY (reference)) | select reference from table_30011_2 where type_and_usage = "germanium small-signal rf transistor" |
Who composed the work conducted by jaroslav Vogel? | create table table_24521345_1 (composer varchar, conductor varchar, PRIMARY KEY (composer)) | select composer from table_24521345_1 where conductor = "jaroslav vogel" |
Subsets and Splits