question
stringlengths 14
216
| context
stringlengths 45
458
| answer
stringlengths 18
463
|
---|---|---|
Find the name of rooms booked by some customers whose first name contains ROY. | create table reservations (room varchar, PRIMARY KEY (room)); create table rooms (roomname varchar, roomid varchar, PRIMARY KEY (roomname)) | select t2.roomname from reservations as t1 join rooms as t2 on t1.room = t2.roomid where firstname like '%roy%' |
For period September 2009, what is the other Mozilla total number? | create table table_1876262_10 (other_mozilla varchar, period varchar, PRIMARY KEY (other_mozilla)) | select count(other_mozilla) from table_1876262_10 where period = "september 2009" |
Find all the policy types that are used by more than 2 customers. | create table policies (policy_type_code varchar, PRIMARY KEY (policy_type_code)) | select policy_type_code from policies group by policy_type_code having count(*) > 2 |
When 20' 58.50 107.929mph is Friday August 27th What is Tuesday 24th August? | create table table_26986076_5 (tues_24_aug varchar, fri_27_aug varchar, PRIMARY KEY (tues_24_aug)) | select tues_24_aug from table_26986076_5 where fri_27_aug = "20' 58.50 107.929mph" |
What is the place and when was the year when the women's doubles womens were Bai yang Niu Jianfeng? | create table table_28138035_33 (year_location varchar, womens_doubles varchar, PRIMARY KEY (year_location)) | select year_location from table_28138035_33 where womens_doubles = "bai yang niu jianfeng" |
What are the election date for elections held in the province of Albacete? | create table table_26362472_1 (election_date varchar, province varchar, PRIMARY KEY (election_date)) | select election_date from table_26362472_1 where province = "albacete" |
What is the original air date of the episode that was directed by David Paymer? | create table table_23399481_2 (original_air_date varchar, directed_by varchar, PRIMARY KEY (original_air_date)) | select original_air_date from table_23399481_2 where directed_by = "david paymer" |
What was his average finish when his average start was 27.7? | create table table_2169966_2 (avg_finish varchar, avg_start varchar, PRIMARY KEY (avg_finish)) | select avg_finish from table_2169966_2 where avg_start = "27.7" |
Who was awarded mountains classifications when Mikel Nieve was the winner? | create table table_25551880_2 (mountains_classification varchar, winner varchar, PRIMARY KEY (mountains_classification)) | select mountains_classification from table_25551880_2 where winner = "mikel nieve" |
What's the predecessor of the Ekavian word vreme? | create table table_27730_9 (predecessor varchar, ekavian varchar, PRIMARY KEY (predecessor)) | select predecessor from table_27730_9 where ekavian = "vreme" |
In Ca/Nv, what are all of the regional page #s? | create table table_287659_2 (regional_page__number varchar, state_name varchar, PRIMARY KEY (regional_page__number)) | select regional_page__number from table_287659_2 where state_name = "ca/nv" |
What market is KTFK-DT in? | create table table_11147852_1 (city_of_license_market varchar, station varchar, PRIMARY KEY (city_of_license_market)) | select city_of_license_market from table_11147852_1 where station = "ktfk-dt" |
How many manners of departure did peter voets have? | create table table_11713303_2 (manner_of_departure varchar, outgoing_manager varchar, PRIMARY KEY (manner_of_departure)) | select count(manner_of_departure) from table_11713303_2 where outgoing_manager = "peter voets" |
List all directors along with the number of films directed by each director. | create table film (directed_by varchar, PRIMARY KEY (directed_by)) | select directed_by, count(*) from film group by directed_by |
what's the song title with artbeingt being pat boone | create table table_13805432_2 (song_title varchar, artist varchar, PRIMARY KEY (song_title)) | select song_title from table_13805432_2 where artist = "pat boone" |
Which papers have "Stephanie Weirich" as an author? | create table authorship (authid varchar, paperid varchar, PRIMARY KEY (authid)); create table papers (title varchar, paperid varchar, PRIMARY KEY (title)); create table authors (authid varchar, fname varchar, lname varchar, PRIMARY KEY (authid)) | select t3.title from authors as t1 join authorship as t2 on t1.authid = t2.authid join papers as t3 on t2.paperid = t3.paperid where t1.fname = "stephanie" and t1.lname = "weirich" |
What is the guardian mātṛkā for the guardian whose consort is Svāhā? | create table table_100518_1 (guardian_mātṛkā varchar, consort varchar, PRIMARY KEY (guardian_mātṛkā)) | select guardian_mātṛkā from table_100518_1 where consort = "svāhā" |
Show the detail of vehicle with id 1. | create table vehicles (vehicle_details varchar, vehicle_id varchar, PRIMARY KEY (vehicle_details)) | select vehicle_details from vehicles where vehicle_id = 1 |
What is the snowfall for ski resort Snowmass? | create table table_25762852_1 (snowfall__in_year_ integer, name varchar, PRIMARY KEY (snowfall__in_year_)) | select max(snowfall__in_year_) from table_25762852_1 where name = "snowmass" |
Find the accreditation level that more than 3 phones use. | create table phone (accreditation_level varchar, PRIMARY KEY (accreditation_level)) | select accreditation_level from phone group by accreditation_level having count(*) > 3 |
What state had November 30, 1962 as the date of the successors formal installation? | create table table_1802522_3 (state__class_ varchar, date_of_successors_formal_installation varchar, PRIMARY KEY (state__class_)) | select state__class_ from table_1802522_3 where date_of_successors_formal_installation = "november 30, 1962" |
Name the most serial number for feb 1994 | create table table_29002641_1 (serial integer, scrapped varchar, PRIMARY KEY (serial)) | select max(serial) as number from table_29002641_1 where scrapped = "feb 1994" |
What is the fewest minutes played for the player with exactly 638 good passes? | create table table_28461589_2 (mins_played integer, good_passes varchar, PRIMARY KEY (mins_played)) | select min(mins_played) from table_28461589_2 where good_passes = 638 |
How many courses are there in total? | create table course (id varchar, PRIMARY KEY (id)) | select count(*) from course |
Which film actors (actresses) played a role in more than 30 films? List his or her first name and last name. | create table film_actor (actor_id varchar, PRIMARY KEY (actor_id)); create table actor (first_name varchar, last_name varchar, actor_id varchar, PRIMARY KEY (first_name)) | select t2.first_name, t2.last_name from film_actor as t1 join actor as t2 on t1.actor_id = t2.actor_id group by t2.actor_id having count(*) > 30 |
How many times did outgoing manager Bart de Roover vacated a position? | create table table_27374004_4 (date_of_vacancy varchar, outgoing_manager varchar, PRIMARY KEY (date_of_vacancy)) | select count(date_of_vacancy) from table_27374004_4 where outgoing_manager = "bart de roover" |
Which stadium is located in Adelaide, South Australia? | create table table_28885977_1 (stadium varchar, location varchar, PRIMARY KEY (stadium)) | select stadium from table_28885977_1 where location = "adelaide, south australia" |
How many people had the high rebound total when the team was 19-13? | create table table_13762472_5 (high_rebounds varchar, record varchar, PRIMARY KEY (high_rebounds)) | select count(high_rebounds) from table_13762472_5 where record = "19-13" |
Who are the away teams when subiaco oval was the grounds? | create table table_16388506_1 (away_team varchar, ground varchar, PRIMARY KEY (away_team)) | select away_team from table_16388506_1 where ground = "subiaco oval" |
What are the mhz when the profile is 8b? | create table table_2394927_1 (bandwidth___mhz__ varchar, profile varchar, PRIMARY KEY (bandwidth___mhz__)) | select bandwidth___mhz__ from table_2394927_1 where profile = "8b" |
Find the names of the top 3 departments that provide the largest amount of courses? | create table course (dept_name varchar, PRIMARY KEY (dept_name)) | select dept_name from course group by dept_name order by count(*) desc limit 3 |
Please show different software platforms and the corresponding number of devices using each. | create table device (software_platform varchar, PRIMARY KEY (software_platform)) | select software_platform, count(*) from device group by software_platform |
How many documents have the status code done? | create table documents (document_status_code varchar, PRIMARY KEY (document_status_code)) | select count(*) from documents where document_status_code = "done" |
What is the largest mass(kg)? | create table table_1558077_2 (mass__kg_ integer, PRIMARY KEY (mass__kg_)) | select max(mass__kg_) from table_1558077_2 |
Show the ids of all the faculty members who participate in an activity and advise a student. | create table student (facid varchar, advisor varchar, PRIMARY KEY (facid)); create table faculty_participates_in (facid varchar, advisor varchar, PRIMARY KEY (facid)) | select facid from faculty_participates_in intersect select advisor from student |
If the rings is 58.975, what is the number for the horizontal bar? | create table table_18662026_1 (horizontal_bar varchar, rings varchar, PRIMARY KEY (horizontal_bar)) | select horizontal_bar from table_18662026_1 where rings = "58.975" |
What are the nationalities of players who attended duke? | create table table_16494599_10 (nationality varchar, school_club_team varchar, PRIMARY KEY (nationality)) | select count(nationality) from table_16494599_10 where school_club_team = "duke" |
What was the number of channels in New Zealand? | create table table_11323532_2 (channel varchar, country_region varchar, PRIMARY KEY (channel)) | select count(channel) from table_11323532_2 where country_region = "new zealand" |
Find the number of customers in total. | create table customers (id varchar, PRIMARY KEY (id)) | select count(*) from customers |
How much did Kenny Brack win? | create table table_25146455_1 (winnings varchar, driver varchar, PRIMARY KEY (winnings)) | select winnings from table_25146455_1 where driver = "kenny brack" |
When sigma (with 1.5σ shift) is 2.5, what percent is defective? | create table table_222448_1 (percent_defective varchar, sigma__with_15σ_shift_ varchar, PRIMARY KEY (percent_defective)) | select percent_defective from table_222448_1 where sigma__with_15σ_shift_ = "2.5" |
The episode with the original airdate December22,1996 has what title? | create table table_26866233_1 (title varchar, original_airdate varchar, PRIMARY KEY (title)) | select title from table_26866233_1 where original_airdate = "december22,1996" |
what's the individual winners with nation being australia | create table table_1458666_4 (individual_winners varchar, nation varchar, PRIMARY KEY (individual_winners)) | select individual_winners from table_1458666_4 where nation = "australia" |
List all the international lacrosse league competitions for Toronto Rock. | create table table_18042409_1 (international_competition varchar, national_lacrosse_league varchar, PRIMARY KEY (international_competition)) | select international_competition from table_18042409_1 where national_lacrosse_league = "toronto rock" |
Who is the quarter back for a winning pct of .792 | create table table_14389782_2 (quarterback varchar, winning_pct varchar, PRIMARY KEY (quarterback)) | select quarterback from table_14389782_2 where winning_pct = ".792" |
What was the W-L record when HIgh Points was andre miller (30)? | create table table_17323042_11 (record varchar, high_points varchar, PRIMARY KEY (record)) | select record from table_17323042_11 where high_points = "andre miller (30)" |
What is who-two when you two is ngipelngu? | create table table_1015914_24 (who_two varchar, you_two varchar, PRIMARY KEY (who_two)) | select who_two from table_1015914_24 where you_two = "ngipelngu" |
Name the broadcast date of run time being 24:14 | create table table_2114308_1 (broadcast_date varchar, run_time varchar, PRIMARY KEY (broadcast_date)) | select broadcast_date from table_2114308_1 where run_time = "24:14" |
Show all template type codes and number of templates for each. | create table templates (template_type_code varchar, PRIMARY KEY (template_type_code)) | select template_type_code, count(*) from templates group by template_type_code |
Which club is at the location of kuopio? | create table table_29250534_1 (club varchar, location varchar, PRIMARY KEY (club)) | select club from table_29250534_1 where location = "kuopio" |
Which week is the theme First Solo | create table table_21501518_1 (week__number varchar, theme varchar, PRIMARY KEY (week__number)) | select week__number from table_21501518_1 where theme = "first solo" |
Show the name of buildings that do not have any institution. | create table building (name varchar, building_id varchar, PRIMARY KEY (name)); create table institution (name varchar, building_id varchar, PRIMARY KEY (name)) | select name from building where not building_id in (select building_id from institution) |
What package offers Fox Sports HD? | create table table_15887683_3 (package_option varchar, television_service varchar, PRIMARY KEY (package_option)) | select package_option from table_15887683_3 where television_service = "fox sports hd" |
how many people commentated where broadcaster is orf | create table table_184803_4 (commentator varchar, broadcaster varchar, PRIMARY KEY (commentator)) | select count(commentator) from table_184803_4 where broadcaster = "orf" |
How many teams have the titans as a mascot? | create table table_13456202_1 (affiliation varchar, mascot varchar, PRIMARY KEY (affiliation)) | select count(affiliation) from table_13456202_1 where mascot = "titans" |
Find the name of the department that has the biggest number of students minored in? | create table department (dname varchar, dno varchar, PRIMARY KEY (dname)); create table minor_in (dno varchar, PRIMARY KEY (dno)) | select t1.dname from department as t1 join minor_in as t2 on t1.dno = t2.dno group by t2.dno order by count(*) desc limit 1 |
Where is the company with estimated revenue of 33.3 billion headquartered? | create table table_21926985_2 (headquarters_city varchar, revenue__$billions__2012_estimate varchar, PRIMARY KEY (headquarters_city)) | select headquarters_city from table_21926985_2 where revenue__$billions__2012_estimate = "33.3" |
How many times did episode number 8 air? | create table table_24399615_5 (cable_rank varchar, episode_no varchar, PRIMARY KEY (cable_rank)) | select count(cable_rank) from table_24399615_5 where episode_no = 8 |
How much did Nina Carberry win? | create table table_26903214_1 (prize_money varchar, rider varchar, PRIMARY KEY (prize_money)) | select prize_money from table_26903214_1 where rider = "nina carberry" |
What were the competitions when the away team was fk kozara gradiska? | create table table_29728596_2 (competition varchar, away_team varchar, PRIMARY KEY (competition)) | select competition from table_29728596_2 where away_team = "fk kozara gradiska" |
What is the change in population since 1993 in the region where the % of country's population was 4.2? | create table table_2637317_1 (change_in_population_since_1993 varchar, _percentage_of_countrys_population varchar, PRIMARY KEY (change_in_population_since_1993)) | select count(change_in_population_since_1993) from table_2637317_1 where _percentage_of_countrys_population = "4.2" |
Who was Class AAA during the school year of 2000-01? | create table table_10399701_2 (class_aaa varchar, school_year varchar, PRIMARY KEY (class_aaa)) | select class_aaa from table_10399701_2 where school_year = "2000-01" |
What is the monto where the total region is 11230? | create table table_12526990_1 (monto varchar, total_region varchar, PRIMARY KEY (monto)) | select count(monto) from table_12526990_1 where total_region = 11230 |
Find the number of routes whose destination airports are in Canada. | create table routes (dst_apid varchar, PRIMARY KEY (dst_apid)); create table airports (apid varchar, PRIMARY KEY (apid)) | select count(*) from airports as t1 join routes as t2 on t1.apid = t2.dst_apid where country = 'canada' |
Which country has the most of TV Channels? List the country and number of TV Channels it has. | create table tv_channel (country varchar, PRIMARY KEY (country)) | select country, count(*) from tv_channel group by country order by count(*) desc limit 1 |
What was the title of the episode written by Mark Goffman? | create table table_23255941_1 (title varchar, written_by varchar, PRIMARY KEY (title)) | select title from table_23255941_1 where written_by = "mark goffman" |
Who directed the episode that aired on February 19, 1968? | create table table_25800134_12 (director varchar, airdate varchar, PRIMARY KEY (director)) | select director from table_25800134_12 where airdate = "february 19, 1968" |
What are the names of perpetrators in country "China" or "Japan"? | create table perpetrator (people_id varchar, country varchar, PRIMARY KEY (people_id)); create table people (name varchar, people_id varchar, PRIMARY KEY (name)) | select t1.name from people as t1 join perpetrator as t2 on t1.people_id = t2.people_id where t2.country = "china" or t2.country = "japan" |
Find the number of different airports which are the destinations of the American Airlines. | create table routes (alid varchar, PRIMARY KEY (alid)); create table airlines (alid varchar, name varchar, PRIMARY KEY (alid)) | select count(distinct dst_apid) from airlines as t1 join routes as t2 on t1.alid = t2.alid where t1.name = 'american airlines' |
Who played in group 8 when Persinab Nabire played in Group 12? | create table table_19523142_5 (group_8 varchar, group_12 varchar, PRIMARY KEY (group_8)) | select group_8 from table_19523142_5 where group_12 = "persinab nabire" |
Name the Valley Vista of Anthony Capuano | create table table_11340432_1 (valley_vista varchar, willow_canyon varchar, PRIMARY KEY (valley_vista)) | select valley_vista from table_11340432_1 where willow_canyon = "anthony capuano" |
Name the injunctive for गर्यो garyo 'he did' | create table table_16337329_5 (injunctive varchar, past_habitual varchar, PRIMARY KEY (injunctive)) | select injunctive from table_16337329_5 where past_habitual = "गर्यो garyo 'he did'" |
What is the content of la7 television service? | create table table_15887683_1 (content varchar, television_service varchar, PRIMARY KEY (content)) | select content from table_15887683_1 where television_service = "la7" |
What party did john s. barbour represent? | create table table_2668243_25 (party varchar, incumbent varchar, PRIMARY KEY (party)) | select party from table_2668243_25 where incumbent = "john s. barbour" |
what's the goals for/against with w-l-d being 3-1-1 | create table table_14181578_1 (goals_for_against varchar, w_l_d varchar, PRIMARY KEY (goals_for_against)) | select goals_for_against from table_14181578_1 where w_l_d = "3-1-1" |
How many different provinces is Baghaberd the center of? | create table table_23887174_1 (province__ashkharh_ varchar, center varchar, PRIMARY KEY (province__ashkharh_)) | select count(province__ashkharh_) from table_23887174_1 where center = "baghaberd" |
Who had the pole position in the Canadian Grand Prix? | create table table_26258348_4 (pole_position varchar, grand_prix varchar, PRIMARY KEY (pole_position)) | select pole_position from table_26258348_4 where grand_prix = "canadian grand_prix" |
For mid-hill zone what is the altitude? | create table table_10638523_1 (mid_hill_zone varchar, particulars_and_characteristics varchar, PRIMARY KEY (mid_hill_zone)) | select mid_hill_zone from table_10638523_1 where particulars_and_characteristics = "altitude" |
How many television station listings have a ioc code as mas? | create table table_2879165_1 (television_station varchar, ioc_code varchar, PRIMARY KEY (television_station)) | select count(television_station) from table_2879165_1 where ioc_code = "mas" |
How many females does this network has? | create table person (gender varchar, PRIMARY KEY (gender)) | select count(*) from person where gender = 'female' |
Whose WSOP earnings were $36,372? | create table table_23696862_6 (name varchar, wsop_earnings varchar, PRIMARY KEY (name)) | select name from table_23696862_6 where wsop_earnings = "$36,372" |
How many countries does each continent have? List the continent id, continent name and the number of countries. | create table countries (continent varchar, PRIMARY KEY (continent)); create table continents (contid varchar, continent varchar, PRIMARY KEY (contid)) | select t1.contid, t1.continent, count(*) from continents as t1 join countries as t2 on t1.contid = t2.continent group by t1.contid |
How many candidates were there in the district won by Joe Hoeffel? | create table table_1341423_38 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates)) | select count(candidates) from table_1341423_38 where incumbent = "joe hoeffel" |
Which province is bay of islands in | create table table_1024710_2 (province varchar, electorate varchar, PRIMARY KEY (province)) | select province from table_1024710_2 where electorate = "bay of islands" |
Name the record for black knights points 54 | create table table_21092444_1 (record varchar, black_knights_points varchar, PRIMARY KEY (record)) | select record from table_21092444_1 where black_knights_points = 54 |
What is the smallest amount of WSOP bracelets anyone had? | create table table_23696862_6 (wsop_bracelets integer, PRIMARY KEY (wsop_bracelets)) | select min(wsop_bracelets) from table_23696862_6 |
what is the malayalam name മലയാളം of sanskrit uttarāṣāḍha उत्तराषाढा | create table table_201400_2 (malayalam_name_മലയാളം varchar, sanskrit varchar, PRIMARY KEY (malayalam_name_മലയാളം)) | select malayalam_name_മലയാളം from table_201400_2 where sanskrit = "uttarāṣāḍha उत्तराषाढा" |
What circuit did rick kelly win on? | create table table_20884163_2 (circuit varchar, winner varchar, PRIMARY KEY (circuit)) | select circuit from table_20884163_2 where winner = "rick kelly" |
who is the voice actor with the birthday march 26? | create table table_26615633_1 (voice_actor varchar, birthday varchar, PRIMARY KEY (voice_actor)) | select voice_actor from table_26615633_1 where birthday = "march 26" |
Which line offers Fast to Norwood Junction? | create table table_1612760_1 (line varchar, service_pattern varchar, PRIMARY KEY (line)) | select line from table_1612760_1 where service_pattern = "fast to norwood junction" |
What is the original air date the was written by mark st. germain and direct by jay sandrich? | create table table_2818164_7 (original_air_date varchar, written_by varchar, directed_by varchar, PRIMARY KEY (original_air_date)) | select original_air_date from table_2818164_7 where written_by = "mark st. germain" and directed_by = "jay sandrich" |
When the Border Conference was held, who was the tournament winner? | create table table_22733636_1 (tournament_winner varchar, conference varchar, PRIMARY KEY (tournament_winner)) | select tournament_winner from table_22733636_1 where conference = "border conference" |
How many masters fought using a boxing style? | create table table_14937957_1 (masters varchar, martial_art_style varchar, PRIMARY KEY (masters)) | select count(masters) from table_14937957_1 where martial_art_style = "boxing" |
Who is the operator when Roe was the bodybuilder? | create table table_28035004_1 (operator varchar, bodybuilder varchar, PRIMARY KEY (operator)) | select operator from table_28035004_1 where bodybuilder = "roe" |
Which capitals have an area of exactly 377930 square km? | create table table_19605700_1 (capital varchar, area_km² varchar, PRIMARY KEY (capital)) | select capital from table_19605700_1 where area_km² = 377930 |
What is the phone number of the performer Ashley? | create table performers (customer_phone varchar, customer_name varchar, PRIMARY KEY (customer_phone)) | select customer_phone from performers where customer_name = "ashley" |
Who did the high rebounds in the game against Boston? | create table table_27704187_7 (high_rebounds varchar, team varchar, PRIMARY KEY (high_rebounds)) | select high_rebounds from table_27704187_7 where team = "boston" |
How many albums are there? | create table album (id varchar, PRIMARY KEY (id)) | select count(*) from album |
Find the number of users in each role. | create table users (role_code varchar, PRIMARY KEY (role_code)) | select count(*), role_code from users group by role_code |
What are all the week # where subject matter is auditioner's choice | create table table_26250227_1 (week__number varchar, theme varchar, PRIMARY KEY (week__number)) | select week__number from table_26250227_1 where theme = "auditioner's choice" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.