question
stringlengths 14
216
| context
stringlengths 45
458
| answer
stringlengths 18
463
|
---|---|---|
Name the replaced by when outgoing manager is kent nielsen | create table table_17039232_3 (replaced_by varchar, outgoing_manager varchar, PRIMARY KEY (replaced_by)) | select replaced_by from table_17039232_3 where outgoing_manager = "kent nielsen" |
What CFL teams are part of Simon Fraser college? | create table table_10975034_4 (cfl_team varchar, college varchar, PRIMARY KEY (cfl_team)) | select cfl_team from table_10975034_4 where college = "simon fraser" |
Find the number of distinct gender for dorms. | create table dorm (gender varchar, PRIMARY KEY (gender)) | select count(distinct gender) from dorm |
Why did Geninho leave as manager? | create table table_29414946_3 (manner_of_departure varchar, outgoing_manager varchar, PRIMARY KEY (manner_of_departure)) | select manner_of_departure from table_29414946_3 where outgoing_manager = "geninho" |
List all media types. | create table media_types (name varchar, PRIMARY KEY (name)) | select name from media_types |
What was the original air date of the episode directed by gloria muzio? | create table table_25923164_1 (original_air_date varchar, directed_by varchar, PRIMARY KEY (original_air_date)) | select original_air_date from table_25923164_1 where directed_by = "gloria muzio" |
How many times was leather introduced before pedal steel guitars in episode 111? | create table table_15187735_9 (segment_c varchar, segment_d varchar, PRIMARY KEY (segment_c)) | select count(segment_c) from table_15187735_9 where segment_d = "pedal steel guitars" |
How many Barangays lived in the municipality with area coordinator of 110.95? | create table table_2402209_1 (no_of_barangays varchar, area_coordinator varchar, PRIMARY KEY (no_of_barangays)) | select no_of_barangays from table_2402209_1 where area_coordinator = "110.95" |
If the name is Timo Higgins, what is the total date of birth amount? | create table table_22344463_2 (date_of_birth varchar, name varchar, PRIMARY KEY (date_of_birth)) | select count(date_of_birth) from table_22344463_2 where name = "timo higgins" |
Who played 20 questions during the issue in which Pamela Horton is on the cover? | create table table_24425491_3 (cover_model varchar, PRIMARY KEY (cover_model)) | select 20 as _questions from table_24425491_3 where cover_model = "pamela horton" |
What market rank and city had the station KABC-TV? | create table table_22329326_1 (market_rank_ varchar, _city_of_license__market varchar, station varchar, PRIMARY KEY (market_rank_)) | select market_rank_ & _city_of_license__market from table_22329326_1 where station = "kabc-tv" |
Find all the songs performed by artist with last name "Heilo" | create table songs (title varchar, songid varchar, PRIMARY KEY (title)); create table performance (bandmate varchar, songid varchar, PRIMARY KEY (bandmate)); create table band (id varchar, lastname varchar, PRIMARY KEY (id)) | select t3.title from performance as t1 join band as t2 on t1.bandmate = t2.id join songs as t3 on t3.songid = t1.songid where t2.lastname = "heilo" |
Who directed the episode written by Lamont Ferrell? | create table table_11630008_5 (directed_by varchar, written_by varchar, PRIMARY KEY (directed_by)) | select directed_by from table_11630008_5 where written_by = "lamont ferrell" |
Which stadium has the date/year of Fri 06/25/82? | create table table_21436373_6 (stadium varchar, date_year varchar, PRIMARY KEY (stadium)) | select stadium from table_21436373_6 where date_year = "fri 06/25/82" |
List the name of singers whose citizenship is not "France". | create table singer (name varchar, citizenship varchar, PRIMARY KEY (name)) | select name from singer where citizenship <> "france" |
What model type has 97100 model designation? | create table table_20866024_2 (model_type varchar, model_designation varchar, PRIMARY KEY (model_type)) | select model_type from table_20866024_2 where model_designation = "97100" |
If you're a major general in the US air force then what ranking will you receive in the commonwealth's air force? | create table table_1015521_2 (commonwealth_equivalent varchar, us_air_force_equivalent varchar, PRIMARY KEY (commonwealth_equivalent)) | select commonwealth_equivalent from table_1015521_2 where us_air_force_equivalent = "major general" |
What is the university where the soccer stadium is terrain #2 of complexe sportif claude-robillard? | create table table_27369069_4 (university varchar, soccer_stadium varchar, PRIMARY KEY (university)) | select university from table_27369069_4 where soccer_stadium = "terrain #2 of complexe sportif claude-robillard" |
what's the chroma format with name being high profile | create table table_1376890_2 (chroma_format varchar, name varchar, PRIMARY KEY (chroma_format)) | select chroma_format from table_1376890_2 where name = "high profile" |
How many instruments does the song "Badlands" use? | create table instruments (songid varchar, PRIMARY KEY (songid)); create table songs (songid varchar, PRIMARY KEY (songid)) | select count(distinct instrument) from instruments as t1 join songs as t2 on t1.songid = t2.songid where title = "badlands" |
How many episodes had an original air date with 5.1 million viewers | create table table_15938543_1 (original_air_date varchar, us_viewers__million_ varchar, PRIMARY KEY (original_air_date)) | select count(original_air_date) from table_15938543_1 where us_viewers__million_ = "5.1" |
What are flight numbers of flights departing from Airport "APG"? | create table flights (flightno varchar, sourceairport varchar, PRIMARY KEY (flightno)) | select flightno from flights where sourceairport = "apg" |
What is the name when born is december 30, 1957 detroit, mi? | create table table_1198175_1 (name varchar, born varchar, PRIMARY KEY (name)) | select name from table_1198175_1 where born = "december 30, 1957 detroit, mi" |
What is Astrid Gruber's email and phone number? | create table customers (email varchar, phone varchar, first_name varchar, last_name varchar, PRIMARY KEY (email)) | select email, phone from customers where first_name = "astrid" and last_name = "gruber" |
List all episode air dates that auditioned at Nego Quirido Sambadrome? | create table table_27615445_1 (episode_air_date varchar, audition_venue varchar, PRIMARY KEY (episode_air_date)) | select episode_air_date from table_27615445_1 where audition_venue = "nego quirido sambadrome" |
What station is affiliated with kmgh-tv? | create table table_1847523_2 (affiliation varchar, station varchar, PRIMARY KEY (affiliation)) | select affiliation from table_1847523_2 where station = "kmgh-tv" |
Name the 20 questions when centerfold model is cherie witter | create table table_1566848_6 (centerfold_model varchar, PRIMARY KEY (centerfold_model)) | select 20 as _questions from table_1566848_6 where centerfold_model = "cherie witter" |
Show the id, the date of account opened, the account name, and other account detail for all accounts. | create table accounts (account_id varchar, date_account_opened varchar, account_name varchar, other_account_details varchar, PRIMARY KEY (account_id)) | select account_id, date_account_opened, account_name, other_account_details from accounts |
What's the whole range of united states where road race is ottawa marathon | create table table_26166836_2 (country varchar, road_race varchar, PRIMARY KEY (country)) | select count(country) from table_26166836_2 where road_race = "ottawa marathon" |
What is the Pinyin name for Dingyuan County? | create table table_1982739_2 (pinyin varchar, english_name varchar, PRIMARY KEY (pinyin)) | select pinyin from table_1982739_2 where english_name = "dingyuan county" |
How many episode air dates are there for auditioning city Rio De Janeiro? | create table table_27615445_1 (episode_air_date varchar, audition_city varchar, PRIMARY KEY (episode_air_date)) | select count(episode_air_date) from table_27615445_1 where audition_city = "rio de janeiro" |
What are all the school years where class AAAA is in Gregory-Portland? | create table table_14603212_5 (school_year varchar, class_aaaa varchar, gregory varchar, portland varchar, PRIMARY KEY (school_year)) | select school_year from table_14603212_5 where class_aaaa = gregory - portland |
Find the top 3 products which have the largest number of problems? | create table problems (product_id varchar, PRIMARY KEY (product_id)); create table product (product_name varchar, product_id varchar, PRIMARY KEY (product_name)) | select t2.product_name from problems as t1 join product as t2 on t1.product_id = t2.product_id group by t2.product_name order by count(*) desc limit 3 |
Name the net profit for eps beign 1.19 | create table table_20614109_1 (net_profit__€m_ varchar, earnings_per_share__€_ varchar, PRIMARY KEY (net_profit__€m_)) | select net_profit__€m_ from table_20614109_1 where earnings_per_share__€_ = "1.19" |
Find the number of records of each policy type and its type code. | create table policies (policy_type_code varchar, PRIMARY KEY (policy_type_code)) | select policy_type_code, count(*) from policies group by policy_type_code |
What are all the schools that use the colors maroon and white | create table table_15475116_1 (school varchar, colors varchar, PRIMARY KEY (school)) | select school from table_15475116_1 where colors = "maroon and white" |
which company uses pinborough, sarah sarah pinborough? | create table table_20174050_23 (company varchar, author varchar, PRIMARY KEY (company)) | select company from table_20174050_23 where author = "pinborough, sarah sarah pinborough" |
Name the arabic for ħamuʃte | create table table_26919_6 (arabic varchar, tigrinya varchar, PRIMARY KEY (arabic)) | select arabic from table_26919_6 where tigrinya = "ħamuʃte" |
Find the number of users who posted some tweets. | create table tweets (uid varchar, PRIMARY KEY (uid)) | select count(distinct uid) from tweets |
What are the prizes when 1 is the number of winning tickets? | create table table_20195922_3 (prize__eur_ varchar, number_of_winning_tickets varchar, PRIMARY KEY (prize__eur_)) | select prize__eur_ from table_20195922_3 where number_of_winning_tickets = 1 |
Show the apartment numbers, start dates, and end dates of all the apartment bookings. | create table apartment_bookings (booking_start_date varchar, apt_id varchar, PRIMARY KEY (booking_start_date)); create table apartments (apt_number varchar, apt_id varchar, PRIMARY KEY (apt_number)) | select t2.apt_number, t1.booking_start_date, t1.booking_start_date from apartment_bookings as t1 join apartments as t2 on t1.apt_id = t2.apt_id |
Show ids for all students who live in CHI. | create table student (stuid varchar, city_code varchar, PRIMARY KEY (stuid)) | select stuid from student where city_code = "chi" |
What is Ben-Tahir when Bello is 51? | create table table_11447995_2 (ben_tahir varchar, bello varchar, PRIMARY KEY (ben_tahir)) | select ben_tahir from table_11447995_2 where bello = "51" |
Who was the subject of the bronze sculpture who was a colonist and soldier in Ville Marie, New France? | create table table_20903658_1 (title_subject varchar, medium varchar, public_office varchar, PRIMARY KEY (title_subject)) | select title_subject from table_20903658_1 where medium = "bronze" and public_office = "colonist and soldier in ville marie, new france" |
What was the released date of Polarium? | create table table_1616608_2 (released_date varchar, western_title varchar, PRIMARY KEY (released_date)) | select released_date from table_1616608_2 where western_title = "polarium" |
Name the replaced by for august 9 | create table table_25361570_2 (replaced_by varchar, date_of_vacancy varchar, date_of_appointment varchar, PRIMARY KEY (replaced_by)) | select replaced_by from table_25361570_2 where date_of_vacancy = "august 9" and date_of_appointment = "august 9" |
How many mileposts are there on Anne Street? | create table table_10568553_1 (milepost varchar, street_names varchar, PRIMARY KEY (milepost)) | select count(milepost) from table_10568553_1 where street_names = "anne street" |
Show the ids of all employees who don't destroy any document. | create table employees (employee_id varchar, destroyed_by_employee_id varchar, PRIMARY KEY (employee_id)); create table documents_to_be_destroyed (employee_id varchar, destroyed_by_employee_id varchar, PRIMARY KEY (employee_id)) | select employee_id from employees except select destroyed_by_employee_id from documents_to_be_destroyed |
Which location belongs to the website, http://www.mudgeerabasoccer.com/? | create table table_11365528_2 (location varchar, website varchar, PRIMARY KEY (location)) | select location from table_11365528_2 where website = "http://www.mudgeerabasoccer.com/" |
Which months have more than 2 happy hours? | create table happy_hour (month varchar, PRIMARY KEY (month)) | select month from happy_hour group by month having count(*) > 2 |
Who is the winner where the losing hand is Ah 7s? | create table table_12454156_1 (winner varchar, losing_hand varchar, PRIMARY KEY (winner)) | select winner from table_12454156_1 where losing_hand = "ah 7s" |
Find the distinct first names of all the students who have vice president votes and whose city code is not PIT. | create table student (fname varchar, city_code varchar, PRIMARY KEY (fname)); create table student (fname varchar, stuid varchar, PRIMARY KEY (fname)); create table voting_record (vice_president_vote varchar, PRIMARY KEY (vice_president_vote)) | select distinct t1.fname from student as t1 join voting_record as t2 on t1.stuid = t2.vice_president_vote except select distinct fname from student where city_code = "pit" |
Name the listed owner for mike garvey | create table table_24535095_2 (listed_owner_s_ varchar, crew_chief varchar, PRIMARY KEY (listed_owner_s_)) | select listed_owner_s_ from table_24535095_2 where crew_chief = "mike garvey" |
List the names, color descriptions and product descriptions of products with category "Herbs". | create table ref_colors (color_description varchar, color_code varchar, PRIMARY KEY (color_description)); create table products (product_name varchar, product_description varchar, color_code varchar, PRIMARY KEY (product_name)) | select t1.product_name, t2.color_description, t1.product_description from products as t1 join ref_colors as t2 on t1.color_code = t2.color_code where product_category_code = "herbs" |
Name the sprint classification for michael barry | create table table_23944514_15 (sprint_classification varchar, aggressive_rider varchar, PRIMARY KEY (sprint_classification)) | select sprint_classification from table_23944514_15 where aggressive_rider = "michael barry" |
What is the title of series episode 11-05's segment d? | create table table_15187735_11 (segment_d varchar, series_ep varchar, PRIMARY KEY (segment_d)) | select segment_d from table_15187735_11 where series_ep = "11-05" |
The away team of Richmond played on what grounds? | create table table_16388230_1 (ground varchar, away_team varchar, PRIMARY KEY (ground)) | select ground from table_16388230_1 where away_team = "richmond" |
What is the position in table when the date of vacancy was 4 january 2011? | create table table_26914854_3 (position_in_table varchar, date_of_vacancy varchar, PRIMARY KEY (position_in_table)) | select position_in_table from table_26914854_3 where date_of_vacancy = "4 january 2011" |
List the name of teachers whose hometown is not `` Little Lever Urban District '' . | create table teacher (name varchar, hometown varchar, PRIMARY KEY (name)) | select name from teacher where hometown <> "little lever urban district" |
What type of school is in swarthmore, pennsylvania? | create table table_254776_1 (type varchar, location varchar, PRIMARY KEY (type)) | select type from table_254776_1 where location = "swarthmore, pennsylvania" |
Find Alice's friends of friends. | create table personfriend (name varchar, PRIMARY KEY (name)); create table personfriend (name varchar, friend varchar, PRIMARY KEY (name)); create table person (name varchar, PRIMARY KEY (name)) | select distinct t4.name from personfriend as t1 join person as t2 on t1.name = t2.name join personfriend as t3 on t1.friend = t3.name join personfriend as t4 on t3.friend = t4.name where t2.name = 'alice' and t4.name <> 'alice' |
What is the branding for stations located in Cebu? | create table table_17487395_1 (branding varchar, location varchar, PRIMARY KEY (branding)) | select branding from table_17487395_1 where location = "cebu" |
Who is the shirt sponsor for FC Bunyodkor? | create table table_25527255_2 (shirt_sponsor varchar, team varchar, PRIMARY KEY (shirt_sponsor)) | select shirt_sponsor from table_25527255_2 where team = "fc bunyodkor" |
how many drivers driving toyota corolla | create table table_20090682_4 (driver varchar, vehicle varchar, PRIMARY KEY (driver)) | select count(driver) from table_20090682_4 where vehicle = "toyota corolla" |
What is the capital of the district who's simplified name is 信州区? | create table table_1300525_1 (pinyin varchar, simplified varchar, PRIMARY KEY (pinyin)) | select count(pinyin) from table_1300525_1 where simplified = "信州区" |
How many dollars is the purse when the margin of victory is 8 strokes? | create table table_1529260_2 (purse___us varchar, margin_of_victory varchar, PRIMARY KEY (purse___us)) | select count(purse___us) as $__ from table_1529260_2 where margin_of_victory = "8 strokes" |
Name the total number of series sorted for when released is april 2010 | create table table_1620397_2 (series_sorted varchar, released varchar, PRIMARY KEY (series_sorted)) | select count(series_sorted) from table_1620397_2 where released = "april 2010" |
Name the most legs for steinlager 2 | create table table_256862_1 (legs integer, winning_yacht varchar, PRIMARY KEY (legs)) | select max(legs) from table_256862_1 where winning_yacht = "steinlager 2" |
Name the least capacity for persons hour for 1983 | create table table_17814458_1 (capacity_in_persons_hour integer, construction_year_s_ varchar, PRIMARY KEY (capacity_in_persons_hour)) | select min(capacity_in_persons_hour) from table_17814458_1 where construction_year_s_ = "1983" |
What is the winner in event number 15h? | create table table_22050544_1 (winner varchar, event__number varchar, PRIMARY KEY (winner)) | select winner from table_22050544_1 where event__number = "15h" |
What languages are spoken when call sign XEJAM is used? | create table table_14670060_1 (languages varchar, call_sign varchar, PRIMARY KEY (languages)) | select languages from table_14670060_1 where call_sign = "xejam" |
What's the language of classes in the school founded in 1874? | create table table_1930857_1 (language varchar, year_founded varchar, PRIMARY KEY (language)) | select language from table_1930857_1 where year_founded = "1874" |
What is the Android version is the code name is Lotus? | create table table_ (android_version varchar, code_name varchar, PRIMARY KEY (android_version)) | select android_version from table_ where code_name = "lotus" |
Find the id of the order which is shipped most recently. | create table shipments (order_id varchar, shipment_date integer, PRIMARY KEY (order_id)) | select order_id from shipments where shipment_date = (select max(shipment_date) from shipments) |
Name the other for chironius multiventris septentrionalis | create table table_1850282_7 (other varchar, species varchar, PRIMARY KEY (other)) | select other from table_1850282_7 where species = "chironius multiventris septentrionalis" |
What is the number of brand where the power is 5kw? | create table table_17822401_1 (branding varchar, power__kw_ varchar, PRIMARY KEY (branding)) | select count(branding) from table_17822401_1 where power__kw_ = "5kw" |
Who had the challenge of night driving? | create table table_10749367_3 (test_taker varchar, challenge varchar, PRIMARY KEY (test_taker)) | select test_taker from table_10749367_3 where challenge = "night driving" |
Name the leader battle for 4-3 vote | create table table_25920798_2 (leader_battle varchar, vote varchar, PRIMARY KEY (leader_battle)) | select leader_battle from table_25920798_2 where vote = "4-3" |
Where is the PPP 23164 million €? | create table table_2293510_1 (region___nuts_2006_ varchar, ppp__million_€_ varchar, PRIMARY KEY (region___nuts_2006_)) | select region___nuts_2006_ from table_2293510_1 where ppp__million_€_ = 23164 |
display all the information of those employees who did not have any job in the past. | create table job_history (employee_id varchar, PRIMARY KEY (employee_id)); create table employees (employee_id varchar, PRIMARY KEY (employee_id)) | select * from employees where not employee_id in (select employee_id from job_history) |
What is the Pinyin for the simplified 虞城县? | create table table_2135222_2 (pinyin varchar, simplified varchar, PRIMARY KEY (pinyin)) | select pinyin from table_2135222_2 where simplified = "虞城县" |
what is the name and nation of the singer who have a song having 'Hey' in its name? | create table singer (name varchar, country varchar, song_name varchar, PRIMARY KEY (name)) | select name, country from singer where song_name like '%hey%' |
What is the democratic coalation when together we can do more is sergio castro ( pc )? | create table table_2651755_1 (democratic_coalition varchar, together_we_can_do_more varchar, PRIMARY KEY (democratic_coalition)) | select democratic_coalition from table_2651755_1 where together_we_can_do_more = "sergio castro ( pc )" |
WHERE THE WEEK NUMBER WAS TOP 8, WHAT WAS THE THEME? | create table table_15778392_1 (theme varchar, week__number varchar, PRIMARY KEY (theme)) | select theme from table_15778392_1 where week__number = "top 8" |
Name the capacity for single cab size 2 medium tanker | create table table_2155350_2 (capacity__litres_ varchar, cab_size varchar, category varchar, PRIMARY KEY (capacity__litres_)) | select capacity__litres_ from table_2155350_2 where cab_size = "single" and category = "2 medium tanker" |
What year was the ceremony where the film 'Tummien Perhosten Koti' was submitted? | create table table_22020724_1 (year__ceremony_ varchar, title_in_the_original_language varchar, PRIMARY KEY (year__ceremony_)) | select year__ceremony_ from table_22020724_1 where title_in_the_original_language = "tummien perhosten koti" |
What was the minimum % funded of the project that was closed on 2012-05-18? | create table table_27155990_1 (_percentage_funded integer, closing_date varchar, PRIMARY KEY (_percentage_funded)) | select min(_percentage_funded) from table_27155990_1 where closing_date = "2012-05-18" |
How many games were played by the Vélez Sársfield team from 1989-90? | create table table_17968274_2 (team varchar, PRIMARY KEY (team)) | select 1989 as _90 from table_17968274_2 where team = "vélez sársfield" |
When dydek (8) has the highest rebounds who has the highest amount of points? | create table table_18904831_6 (high_points varchar, high_rebounds varchar, PRIMARY KEY (high_points)) | select high_points from table_18904831_6 where high_rebounds = "dydek (8)" |
What is the coinage metal for KM numbers of S45? | create table table_26336060_19 (coinage_metal varchar, km_number varchar, PRIMARY KEY (coinage_metal)) | select coinage_metal from table_26336060_19 where km_number = "s45" |
How many solar eclipse during August 21-22 where June 10-11 on June 11, 1983? | create table table_25287007_2 (august_21_22 varchar, june_10_11 varchar, PRIMARY KEY (august_21_22)) | select count(august_21_22) from table_25287007_2 where june_10_11 = "june 11, 1983" |
Show the names of products that are in at least two events in ascending alphabetical order of product name. | create table products (product_name varchar, product_id varchar, PRIMARY KEY (product_name)); create table products_in_events (product_id varchar, PRIMARY KEY (product_id)) | select t1.product_name from products as t1 join products_in_events as t2 on t1.product_id = t2.product_id group by t1.product_name having count(*) >= 2 order by t1.product_name |
What was the record in the game in which Jeff Green (14) did the most high rebounds? | create table table_23286112_6 (record varchar, high_rebounds varchar, PRIMARY KEY (record)) | select record from table_23286112_6 where high_rebounds = "jeff green (14)" |
Name the si prefix for thousand chuquet | create table table_260938_1 (si_prefix varchar, chuquet varchar, PRIMARY KEY (si_prefix)) | select si_prefix from table_260938_1 where chuquet = "thousand" |
Name the mens doubles for dimitrij ovtcharov | create table table_28138035_4 (mens_doubles varchar, mens_singles varchar, PRIMARY KEY (mens_doubles)) | select mens_doubles from table_28138035_4 where mens_singles = "dimitrij ovtcharov" |
If Socialist is at 46.1%, what are all percentages for social democratic? | create table table_1463383_1 (social_democratic varchar, socialist varchar, PRIMARY KEY (social_democratic)) | select social_democratic from table_1463383_1 where socialist = "46.1%" |
How many authors are there? | create table authors (id varchar, PRIMARY KEY (id)) | select count(*) from authors |
When interjection is the subject who are the lyrics by? | create table table_191105_2 (lyrics_by varchar, subject varchar, PRIMARY KEY (lyrics_by)) | select lyrics_by from table_191105_2 where subject = "interjection" |
Name the further cities for east romania | create table table_197286_4 (further_cities varchar, direction varchar, country varchar, PRIMARY KEY (further_cities)) | select further_cities from table_197286_4 where direction = "east" and country = "romania" |
What were the revising conventions commentary with a denunciation of 21? | create table table_2001348_1 (revising_convention_s_ varchar, denunciations__september_2011_ varchar, PRIMARY KEY (revising_convention_s_)) | select revising_convention_s_ from table_2001348_1 where denunciations__september_2011_ = 21 |
Subsets and Splits