question
stringlengths 14
216
| context
stringlengths 45
458
| answer
stringlengths 18
463
|
---|---|---|
How many networks are there that have a channel number 7? | create table table_160728_4 (network varchar, channel varchar, PRIMARY KEY (network)) | select count(network) from table_160728_4 where channel = 7 |
How many points did the Cowboys have when they had a 7-0 record? | create table table_21197135_1 (cowboys_points varchar, record varchar, PRIMARY KEY (cowboys_points)) | select cowboys_points from table_21197135_1 where record = "7-0" |
Which episode did 18.74 million people tune in? | create table table_25996938_1 (title varchar, us_viewers__million_ varchar, PRIMARY KEY (title)) | select title from table_25996938_1 where us_viewers__million_ = "18.74" |
What is the country where there are 8 children per donor and no data for donor payments? | create table table_16175217_1 (country varchar, children_per_donor varchar, donor_payment varchar, PRIMARY KEY (country)) | select country from table_16175217_1 where children_per_donor = "8 children" and donor_payment = "no data" |
Name the aircraft type for jagdgeschwader 6 | create table table_28342423_1 (aircraft_type varchar, parent_unit varchar, PRIMARY KEY (aircraft_type)) | select aircraft_type from table_28342423_1 where parent_unit = "jagdgeschwader 6" |
Who had the most assist when the opponent was Cleveland? | create table table_15780049_6 (high_assists varchar, team varchar, PRIMARY KEY (high_assists)) | select high_assists from table_15780049_6 where team = "cleveland" |
What are the slovenian names of the villages that had 65.9% of slovenes in 1951? | create table table_10797463_1 (village__slovenian_ varchar, percent_of_slovenes_1951 varchar, PRIMARY KEY (village__slovenian_)) | select village__slovenian_ from table_10797463_1 where percent_of_slovenes_1951 = "65.9%" |
What was the margin of victory in the year when the honoree was Tommy Armour? | create table table_1515346_2 (margin_of_victory varchar, honoree_s_ varchar, PRIMARY KEY (margin_of_victory)) | select margin_of_victory from table_1515346_2 where honoree_s_ = "tommy armour" |
List the id, color scheme, and name for all the photos. | create table photos (id varchar, color varchar, name varchar, PRIMARY KEY (id)) | select id, color, name from photos |
Who manufactured the car that won with an average speed of 126.259 mph? | create table table_22298383_1 (manufacturer varchar, average_speed__mph_ varchar, PRIMARY KEY (manufacturer)) | select manufacturer from table_22298383_1 where average_speed__mph_ = "126.259" |
What is the 2nd ratio of 1996-2002 Dodge Viper? | create table table_1310499_1 (application varchar, PRIMARY KEY (application)) | select 2 as nd from table_1310499_1 where application = "1996-2002 dodge viper" |
Find the name of scientists who are assigned to some project. | create table assignedto (scientist varchar, PRIMARY KEY (scientist)); create table scientists (name varchar, ssn varchar, PRIMARY KEY (name)) | select t2.name from assignedto as t1 join scientists as t2 on t1.scientist = t2.ssn |
When frederick remann (r) is the vacator what is the reason for vacancy? | create table table_2417445_4 (reason_for_vacancy varchar, vacator varchar, PRIMARY KEY (reason_for_vacancy)) | select reason_for_vacancy from table_2417445_4 where vacator = "frederick remann (r)" |
What's the nickname of the school in Maryville, Tennessee? | create table table_1973842_2 (nickname varchar, location varchar, PRIMARY KEY (nickname)) | select nickname from table_1973842_2 where location = "maryville, tennessee" |
How many degrees were conferred in "San Jose State University" in 2000? | create table degrees (id varchar, PRIMARY KEY (id)); create table campuses (id varchar, PRIMARY KEY (id)) | select degrees from campuses as t1 join degrees as t2 on t1.id = t2.campus where t1.campus = "san jose state university" and t2.year = 2000 |
What musical performances aired on 5 April 2010? | create table table_26733129_1 (musical_performance varchar, air_date varchar, PRIMARY KEY (musical_performance)) | select musical_performance from table_26733129_1 where air_date = "5 april 2010" |
How many vacant seats were filled by newcomer Joseph H. Bottum (r)? | create table table_1802522_3 (vacator varchar, successor varchar, PRIMARY KEY (vacator)) | select count(vacator) from table_1802522_3 where successor = "joseph h. bottum (r)" |
what is the total number of census designated places with a population of 10581? | create table table_22916979_2 (census_designated_place varchar, population__2000_census_ varchar, PRIMARY KEY (census_designated_place)) | select count(census_designated_place) from table_22916979_2 where population__2000_census_ = 10581 |
How may times did a player that attended Iowa state appear on the all time roster? | create table table_11734041_1 (years_for_rockets varchar, school_club_team_country varchar, PRIMARY KEY (years_for_rockets)) | select count(years_for_rockets) from table_11734041_1 where school_club_team_country = "iowa state" |
Name the total number of eu for quinn | create table table_22667773_8 (count varchar, name varchar, PRIMARY KEY (count)) | select count as eu from table_22667773_8 where name = "quinn" |
Which outcomes have a final score of 6–3, 6–2? | create table table_22834834_3 (outcome varchar, score_in_the_final varchar, PRIMARY KEY (outcome)) | select outcome from table_22834834_3 where score_in_the_final = "6–3, 6–2" |
What is the date of birth for the player in the Inglewood club? | create table table_26847237_2 (dob varchar, club varchar, PRIMARY KEY (dob)) | select dob from table_26847237_2 where club = "inglewood" |
What are the names and descriptions of all the sections? | create table sections (section_name varchar, section_description varchar, PRIMARY KEY (section_name)) | select section_name, section_description from sections |
What gun has a time to feet ratio of 18.8 at 55 degrees? | create table table_16439764_1 (gun varchar, time_to_ft__m__at_55°__seconds_ varchar, PRIMARY KEY (gun)) | select gun from table_16439764_1 where time_to_ft__m__at_55°__seconds_ = "18.8" |
Show the nominees that have nominated musicals for both "Tony Award" and "Drama Desk Award". | create table musical (nominee varchar, award varchar, PRIMARY KEY (nominee)) | select nominee from musical where award = "tony award" intersect select nominee from musical where award = "drama desk award" |
Find the last name of the individuals that have been contact individuals of an organization. | create table individuals (individual_last_name varchar, individual_id varchar, PRIMARY KEY (individual_last_name)); create table organization_contact_individuals (individual_id varchar, PRIMARY KEY (individual_id)) | select distinct t1.individual_last_name from individuals as t1 join organization_contact_individuals as t2 on t1.individual_id = t2.individual_id |
What is the ch# of dwlj-tv? | create table table_12379297_1 (ch__number varchar, callsign varchar, PRIMARY KEY (ch__number)) | select ch__number from table_12379297_1 where callsign = "dwlj-tv" |
What is the longest number of weeks any 1 song was at number #1? | create table table_19542477_9 (whole_weeks integer, PRIMARY KEY (whole_weeks)) | select max(whole_weeks) from table_19542477_9 |
Who were the builders of the boat designed by Botin Carkeek? | create table table_19872699_1 (builder varchar, design_firm varchar, PRIMARY KEY (builder)) | select builder from table_19872699_1 where design_firm = "botin carkeek" |
Show the id and details for the investors who have the top 3 number of transactions. | create table transactions (investor_id varchar, PRIMARY KEY (investor_id)); create table investors (investor_details varchar, investor_id varchar, PRIMARY KEY (investor_details)) | select t2.investor_id, t1.investor_details from investors as t1 join transactions as t2 on t1.investor_id = t2.investor_id group by t2.investor_id order by count(*) desc limit 3 |
What is the name of the integrated where the component are customers? | create table table_11944282_1 (integrated varchar, component varchar, PRIMARY KEY (integrated)) | select integrated from table_11944282_1 where component = "customers" |
How scored the most points where the record is 3-0 for the season? | create table table_23285849_5 (high_points varchar, record varchar, PRIMARY KEY (high_points)) | select high_points from table_23285849_5 where record = "3-0" |
Show different locations of railways along with the corresponding number of railways at each location. | create table railway (location varchar, PRIMARY KEY (location)) | select location, count(*) from railway group by location |
Where was the tour when jing junhong li jiawei played womens doubles? | create table table_28138035_20 (year_location varchar, womens_doubles varchar, PRIMARY KEY (year_location)) | select year_location from table_28138035_20 where womens_doubles = "jing junhong li jiawei" |
Find the id and name of the staff who has been assigned for the shortest period. | create table staff_department_assignments (staff_id varchar, PRIMARY KEY (staff_id)); create table staff (staff_id varchar, staff_name varchar, PRIMARY KEY (staff_id)) | select t1.staff_id, t1.staff_name from staff as t1 join staff_department_assignments as t2 on t1.staff_id = t2.staff_id order by date_assigned_to - date_assigned_from limit 1 |
List the names of members in ascending alphabetical order. | create table member (name varchar, PRIMARY KEY (name)) | select name from member order by name |
What is the party with the candidates newt gingrich (r) 59.1% dock h. davis (d) 40.9%? | create table table_1341640_11 (party varchar, candidates varchar, PRIMARY KEY (party)) | select party from table_1341640_11 where candidates = "newt gingrich (r) 59.1% dock h. davis (d) 40.9%" |
Name the number of master recording for doobie brothers the doobie brothers | create table table_22457674_1 (master_recording varchar, artist varchar, PRIMARY KEY (master_recording)) | select count(master_recording) from table_22457674_1 where artist = "doobie brothers the doobie brothers" |
When 7 april 2001 to 29 september 2001 was aired in japan 2 how many titles were there? | create table table_1714685_1 (title varchar, aired_in_japan_3 varchar, PRIMARY KEY (title)) | select count(title) from table_1714685_1 where aired_in_japan_3 = "7 april 2001 to 29 september 2001" |
Show the distinct fate of missions that involve ships with nationality "United States" | create table mission (fate varchar, ship_id varchar, PRIMARY KEY (fate)); create table ship (ship_id varchar, nationality varchar, PRIMARY KEY (ship_id)) | select distinct t1.fate from mission as t1 join ship as t2 on t1.ship_id = t2.ship_id where t2.nationality = "united states" |
What is download bandwith where the provider is deutsche telekom ag? | create table table_1773908_3 (down__up_to_kbit_s_ integer, provider varchar, PRIMARY KEY (down__up_to_kbit_s_)) | select max(down__up_to_kbit_s_) from table_1773908_3 where provider = "deutsche telekom ag" |
Which player went to Emporia State? | create table table_10361230_1 (player_name varchar, college varchar, PRIMARY KEY (player_name)) | select player_name from table_10361230_1 where college = "emporia state" |
what is the old English name of Saturday? | create table table_2624098_1 (old_english_day_name varchar, modern_english_day_name varchar, PRIMARY KEY (old_english_day_name)) | select old_english_day_name from table_2624098_1 where modern_english_day_name = "saturday" |
Name the last match for argentina - estadio josé maría minella | create table table_23819979_3 (last_match varchar, final_place varchar, PRIMARY KEY (last_match)) | select last_match from table_23819979_3 where final_place = "argentina - estadio josé maría minella" |
How many clubs are there? | create table club (id varchar, PRIMARY KEY (id)) | select count(*) from club |
What are the famous titles of the artist "Triumfall"? | create table artist (famous_title varchar, artist varchar, PRIMARY KEY (famous_title)) | select famous_title from artist where artist = "triumfall" |
Name the college for calgary stampeders | create table table_16575609_4 (college varchar, cfl_team varchar, PRIMARY KEY (college)) | select college from table_16575609_4 where cfl_team = "calgary stampeders" |
What is the lowest when pohang steelyard is the stadium? | create table table_21824695_8 (lowest varchar, stadium varchar, PRIMARY KEY (lowest)) | select lowest from table_21824695_8 where stadium = "pohang steelyard" |
List the first and last names of all distinct staff members who are assigned to the problem whose id is 1. | create table problem_log (assigned_to_staff_id varchar, problem_id varchar, PRIMARY KEY (assigned_to_staff_id)); create table staff (staff_id varchar, PRIMARY KEY (staff_id)) | select distinct staff_first_name, staff_last_name from staff as t1 join problem_log as t2 on t1.staff_id = t2.assigned_to_staff_id where t2.problem_id = 1 |
What was the installation date in El Paso, Texas? | create table table_21821014_1 (installation_date varchar, location varchar, PRIMARY KEY (installation_date)) | select installation_date from table_21821014_1 where location = "el paso, texas" |
what's the fuel delivery where power is hp (kw) @6500 rpm | create table table_11167610_1 (fuel_delivery varchar, power varchar, PRIMARY KEY (fuel_delivery)) | select fuel_delivery from table_11167610_1 where power = "hp (kw) @6500 rpm" |
How many different counts of the population in Cavinti in 2010 are there? | create table table_216776_2 (population__2010_ varchar, municipality varchar, PRIMARY KEY (population__2010_)) | select count(population__2010_) from table_216776_2 where municipality = "cavinti" |
What was the record lowest temperature with a precipitation of 1.71 in.? | create table table_26558_1 (record_low varchar, precip varchar, PRIMARY KEY (record_low)) | select record_low from table_26558_1 where precip = "1.71 in." |
Name the directors for peter gawler | create table table_25764073_3 (director_s_ varchar, writer_s_ varchar, PRIMARY KEY (director_s_)) | select director_s_ from table_25764073_3 where writer_s_ = "peter gawler" |
What is the original of the ipa ( rio de janeiro )translation ki̥ mo̞ɕˈtɾaɾɜ̃w̃ nɐ ˈtɛʁə tɕĩʑiˈtɜ̃nə? | create table table_23915_4 (translation varchar, ipa___rio_de_janeiro__ varchar, PRIMARY KEY (translation)) | select translation from table_23915_4 where ipa___rio_de_janeiro__ = "ki̥ mo̞ɕˈtɾaɾɜ̃w̃ nɐ ˈtɛʁə tɕĩʑiˈtɜ̃nə" |
What was the author/editor/source when the l.a. ranking was 1st? | create table table_19948664_2 (author___editor___source varchar, ranking_la__2_ varchar, PRIMARY KEY (author___editor___source)) | select author___editor___source from table_19948664_2 where ranking_la__2_ = "1st" |
Show all the planned delivery dates and actual delivery dates of bookings. | create table bookings (planned_delivery_date varchar, actual_delivery_date varchar, PRIMARY KEY (planned_delivery_date)) | select planned_delivery_date, actual_delivery_date from bookings |
What is the number of distinct publication dates? | create table publication (publication_date varchar, PRIMARY KEY (publication_date)) | select count(distinct publication_date) from publication |
Name the status for unemployment rate being 6.7% | create table table_22815568_12 (status varchar, unemployment_rate varchar, PRIMARY KEY (status)) | select status from table_22815568_12 where unemployment_rate = "6.7%" |
What was Anthony Leung Kam-Chung previous position? | create table table_2263674_1 (portfolio varchar, romanised_name varchar, PRIMARY KEY (portfolio)) | select portfolio from table_2263674_1 where romanised_name = "anthony leung kam-chung" |
Who was awarded mountains classification when Alessandro petacchi won? | create table table_25551880_2 (mountains_classification varchar, winner varchar, PRIMARY KEY (mountains_classification)) | select mountains_classification from table_25551880_2 where winner = "alessandro petacchi" |
How many different dates of issue are the for the coin with kumsusan memorial palace on the obverse? | create table table_298883_5 (date_of_issue varchar, obverse varchar, PRIMARY KEY (date_of_issue)) | select count(date_of_issue) from table_298883_5 where obverse = "kumsusan memorial palace" |
Which films does the actor Alla Sergiyko star in? | create table table_10236830_6 (film_name varchar, actors_name varchar, PRIMARY KEY (film_name)) | select film_name from table_10236830_6 where actors_name = "alla sergiyko" |
What are the names of the directors who made exactly one movie? | create table movie (director varchar, PRIMARY KEY (director)) | select director from movie group by director having count(*) = 1 |
what's the mole with prize money being €24,475 | create table table_13036251_1 (the_mole varchar, prize_money varchar, PRIMARY KEY (the_mole)) | select the_mole from table_13036251_1 where prize_money = "€24,475" |
Name the viewers for 520 | create table table_23958944_6 (us_viewers__in_millions_ varchar, production_number varchar, PRIMARY KEY (us_viewers__in_millions_)) | select us_viewers__in_millions_ from table_23958944_6 where production_number = 520 |
What is the highest population in 2001? | create table table_27366772_3 (population__2001_ integer, PRIMARY KEY (population__2001_)) | select max(population__2001_) from table_27366772_3 |
What is the last episode in the series written by Gregory S. Malins? | create table table_27714985_1 (no_s__in_series integer, written_by varchar, PRIMARY KEY (no_s__in_series)) | select max(no_s__in_series) from table_27714985_1 where written_by = "gregory s. malins" |
What is the socket location for sSPEC number sl3f7(kc0)sl3fj(kc0)? | create table table_16400024_1 (socket varchar, sspec_number varchar, PRIMARY KEY (socket)) | select socket from table_16400024_1 where sspec_number = "sl3f7(kc0)sl3fj(kc0)" |
How many roles are there? | create table roles (id varchar, PRIMARY KEY (id)) | select count(*) from roles |
How many titles did Trupti Murgunde claim? | create table table_12194021_1 (womens_doubles varchar, womens_singles varchar, PRIMARY KEY (womens_doubles)) | select womens_doubles from table_12194021_1 where womens_singles = "trupti murgunde" |
What are the approved treatments when the antibody is bevacizumab? | create table table_1661124_1 (approved_treatment_s_ varchar, antibody varchar, PRIMARY KEY (approved_treatment_s_)) | select approved_treatment_s_ from table_1661124_1 where antibody = "bevacizumab" |
Who won best actor? | create table table_25926120_3 (awardee_s_ varchar, name_of_award varchar, PRIMARY KEY (awardee_s_)) | select awardee_s_ from table_25926120_3 where name_of_award = "best actor" |
Which skill is used in fixing the most number of faults? List the skill id and description. | create table skills (skill_id varchar, skill_description varchar, PRIMARY KEY (skill_id)); create table skills_required_to_fix (skill_id varchar, PRIMARY KEY (skill_id)) | select t1.skill_id, t1.skill_description from skills as t1 join skills_required_to_fix as t2 on t1.skill_id = t2.skill_id group by t1.skill_id order by count(*) desc limit 1 |
If class a is canadian and class aaa is wimberley, which possible school years could this fall on? | create table table_14603212_1 (school_year varchar, class_aaa varchar, wimberley varchar, class_a varchar, PRIMARY KEY (school_year)) | select school_year from table_14603212_1 where class_aaa = wimberley and class_a = "canadian" |
Who wrote the episode that aired February 4, 2010? | create table table_23483182_1 (written_by varchar, original_air_date varchar, PRIMARY KEY (written_by)) | select written_by from table_23483182_1 where original_air_date = "february 4, 2010" |
What is january 15-16 when november 3 is 153? | create table table_25355392_2 (january_15_16 varchar, november_3 varchar, PRIMARY KEY (january_15_16)) | select january_15_16 from table_25355392_2 where november_3 = "153" |
What is the place of the Pinyin transcription Xi Wangri? | create table table_1805919_1 (standard_order integer, transcription__based_on_pinyin_ varchar, PRIMARY KEY (standard_order)) | select max(standard_order) from table_1805919_1 where transcription__based_on_pinyin_ = "xi wangri" |
How many aircrafts are there? | create table aircraft (id varchar, PRIMARY KEY (id)) | select count(*) from aircraft |
Name the club for quevedo | create table table_2454589_1 (club varchar, home_city varchar, PRIMARY KEY (club)) | select club from table_2454589_1 where home_city = "quevedo" |
How many affiliations does the University of Toledo have? | create table table_28211213_1 (affiliation varchar, institution varchar, PRIMARY KEY (affiliation)) | select count(affiliation) from table_28211213_1 where institution = "university of toledo" |
Where is ropery lane and la matches 7 location? | create table table_1176371_1 (location varchar, la_matches varchar, name_of_ground varchar, PRIMARY KEY (location)) | select location from table_1176371_1 where la_matches = 7 and name_of_ground = "ropery lane" |
What location had a VFL Game number of 9? | create table table_16527640_3 (location varchar, vfl_games varchar, PRIMARY KEY (location)) | select location from table_16527640_3 where vfl_games = 9 |
What was the amount of winners share (in $) in the game with a margin victory of 2 strokes? | create table table_1940012_2 (winners_share___$__ varchar, margin_of_victory varchar, PRIMARY KEY (winners_share___$__)) | select winners_share___$__ from table_1940012_2 where margin_of_victory = "2 strokes" |
When sylvania, oh is the location what is the team nickname? | create table table_28211213_2 (team_nickname varchar, location varchar, PRIMARY KEY (team_nickname)) | select team_nickname from table_28211213_2 where location = "sylvania, oh" |
Name th epopulation may for general terrero | create table table_2068761_1 (population__may_1 varchar, _2000_ varchar, barangay varchar, PRIMARY KEY (population__may_1)) | select population__may_1, _2000_ from table_2068761_1 where barangay = "general terrero" |
What party does joel r. poinsett represent? | create table table_2668264_22 (party varchar, incumbent varchar, PRIMARY KEY (party)) | select party from table_2668264_22 where incumbent = "joel r. poinsett" |
Who is Jason Leffler's primary sponsor? | create table table_1529793_1 (primary_sponsor_s_ varchar, driver_s_ varchar, PRIMARY KEY (primary_sponsor_s_)) | select primary_sponsor_s_ from table_1529793_1 where driver_s_ = "jason leffler" |
What is the road record for Vanderbilt? | create table table_23183195_2 (road_record varchar, team varchar, PRIMARY KEY (road_record)) | select count(road_record) from table_23183195_2 where team = "vanderbilt" |
What are the team and starting year of technicians? | create table technician (team varchar, starting_year varchar, PRIMARY KEY (team)) | select team, starting_year from technician |
Name the flight up for 10 december 1982 19:02:36 utc | create table table_245801_1 (flight_up varchar, landing_date varchar, PRIMARY KEY (flight_up)) | select flight_up from table_245801_1 where landing_date = "10 december 1982 19:02:36 utc" |
What is the highest value for map number? | create table table_198175_2 (map_number integer, PRIMARY KEY (map_number)) | select max(map_number) from table_198175_2 |
What is the national rank of Windstream? | create table table_21926985_2 (national_rank integer, company_name varchar, PRIMARY KEY (national_rank)) | select min(national_rank) from table_21926985_2 where company_name = "windstream" |
How many companies were created by Andy? | create table manufacturers (founder varchar, PRIMARY KEY (founder)) | select count(*) from manufacturers where founder = 'andy' |
What is the top speed of a 4-speed automatic with production in 2002-2005? | create table table_1857216_1 (top_speed varchar, transmission varchar, production varchar, PRIMARY KEY (top_speed)) | select top_speed from table_1857216_1 where transmission = "4-speed automatic" and production = "2002-2005" |
What was the result of the playoffs when the regular season was 7th, southeast | create table table_1214035_1 (playoffs varchar, regular_season varchar, PRIMARY KEY (playoffs)) | select playoffs from table_1214035_1 where regular_season = "7th, southeast" |
what is the name of the episode whose writer is Timothy J. Lea and the director is Norberto Barba? | create table table_22580855_1 (title varchar, written_by varchar, directed_by varchar, PRIMARY KEY (title)) | select title from table_22580855_1 where written_by = "timothy j. lea" and directed_by = "norberto barba" |
Who was RL Süd (1st) when FK Pirmasens was RL Südwest (1st)? | create table table_20217456_7 (rl_süd__1st_ varchar, rl_südwest__1st_ varchar, PRIMARY KEY (rl_süd__1st_)) | select rl_süd__1st_ from table_20217456_7 where rl_südwest__1st_ = "fk pirmasens" |
If the province is Nunavut, what is the Arabs 2011 amount? | create table table_1939367_1 (arabs_2011 varchar, province varchar, PRIMARY KEY (arabs_2011)) | select arabs_2011 from table_1939367_1 where province = "nunavut" |
How much power does dwzf have? | create table table_27588823_2 (power__kw_ varchar, callsign varchar, PRIMARY KEY (power__kw_)) | select power__kw_ from table_27588823_2 where callsign = "dwzf" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.