question
stringlengths 14
216
| context
stringlengths 45
458
| answer
stringlengths 18
463
|
---|---|---|
Who were the directors of the film with the original title o.k.? | create table table_10874596_1 (director varchar, original_title varchar, PRIMARY KEY (director)) | select director from table_10874596_1 where original_title = "o.k." |
What is the sanskrit word for the color red? | create table table_180802_3 (sanskrit_word varchar, color varchar, PRIMARY KEY (sanskrit_word)) | select sanskrit_word from table_180802_3 where color = "red" |
How many songs have mi-chemin as their Japanese name and romanji name? | create table table_10979230_4 (romaji_title varchar, japanese_title varchar, PRIMARY KEY (romaji_title)) | select count(romaji_title) from table_10979230_4 where japanese_title = "mi-chemin" |
What is the lowest number of members lost when the net change is −1? | create table table_27671835_3 (members_lost integer, net_change varchar, PRIMARY KEY (members_lost)) | select min(members_lost) from table_27671835_3 where net_change = "−1" |
What is ithe range for married filing separately where head of household is $117,451–$190,200? | create table table_11647327_2 (married_filing_separately varchar, head_of_household varchar, PRIMARY KEY (married_filing_separately)) | select married_filing_separately from table_11647327_2 where head_of_household = "$117,451–$190,200" |
What were the interview subjects on those occasions where Bai Ling was the cover model? | create table table_1566852_6 (interview_subject varchar, cover_model varchar, PRIMARY KEY (interview_subject)) | select interview_subject from table_1566852_6 where cover_model = "bai ling" |
what are all the circuit for gtc winner graeme mundy jamie smyth and pole position bradley ellis alex mortimer | create table table_13079788_3 (circuit varchar, gtc_winner varchar, pole_position varchar, PRIMARY KEY (circuit)) | select circuit from table_13079788_3 where gtc_winner = "graeme mundy jamie smyth" and pole_position = "bradley ellis alex mortimer" |
What percentage did kennedy win while coakly won 37.9% | create table table_24115349_4 (kennedy__percentage varchar, coakley__percentage varchar, PRIMARY KEY (kennedy__percentage)) | select kennedy__percentage from table_24115349_4 where coakley__percentage = "37.9%" |
What was the founding university of the organization Tau Epsilon Phi 1? | create table table_2538117_5 (founding_university varchar, organization varchar, PRIMARY KEY (founding_university)) | select founding_university from table_2538117_5 where organization = "tau epsilon phi 1" |
The serial numbers 713096-713119 are in which country? | create table table_2351952_1 (country varchar, serial_numbers varchar, PRIMARY KEY (country)) | select country from table_2351952_1 where serial_numbers = "713096-713119" |
Show all allergies with type food. | create table allergy_type (allergy varchar, allergytype varchar, PRIMARY KEY (allergy)) | select distinct allergy from allergy_type where allergytype = "food" |
Which artist has the most albums? | create table album (artistid varchar, PRIMARY KEY (artistid)); create table artist (name varchar, artistid varchar, PRIMARY KEY (name)) | select t2.name from album as t1 join artist as t2 on t1.artistid = t2.artistid group by t2.name order by count(*) desc limit 1 |
What is the strongs words compounded when the english spelling is jonadab? | create table table_1242447_1 (strongs_words_compounded varchar, english_spelling varchar, PRIMARY KEY (strongs_words_compounded)) | select strongs_words_compounded from table_1242447_1 where english_spelling = "jonadab" |
Where is the University of North Carolina at Greensboro located? | create table table_255188_3 (location varchar, institution varchar, PRIMARY KEY (location)) | select location from table_255188_3 where institution = "university of north carolina at greensboro" |
How many mixed doubles were there in the year that Olga Koseli won the women's singles? | create table table_15002177_1 (mixed_doubles varchar, womens_singles varchar, PRIMARY KEY (mixed_doubles)) | select count(mixed_doubles) from table_15002177_1 where womens_singles = "olga koseli" |
Who was the incoming head coach after Wan Jamak Wan Hassan quit the coaching job? | create table table_29171931_3 (incoming_head_coach varchar, outgoing_head_coach varchar, PRIMARY KEY (incoming_head_coach)) | select incoming_head_coach from table_29171931_3 where outgoing_head_coach = "wan jamak wan hassan" |
Name the womens doubles for werner schlager | create table table_28138035_4 (womens_doubles varchar, mens_singles varchar, PRIMARY KEY (womens_doubles)) | select womens_doubles from table_28138035_4 where mens_singles = "werner schlager" |
Which song directed by datta naik had the ending stranza written by Johnny Walker? | create table table_2528382_1 (additional_info varchar, music_director varchar, PRIMARY KEY (additional_info)) | select additional_info from table_2528382_1 where music_director = "datta naik" |
When did the episode written by Abe Sylvia originally air? | create table table_26961951_6 (original_air_date varchar, written_by varchar, PRIMARY KEY (original_air_date)) | select original_air_date from table_26961951_6 where written_by = "abe sylvia" |
How many different counts of tue number of Barangays are there for the municipality with 13824 citizens in 2010? | create table table_2402209_1 (no_of_barangays varchar, population__2010_ varchar, PRIMARY KEY (no_of_barangays)) | select count(no_of_barangays) from table_2402209_1 where population__2010_ = 13824 |
What is the percentage of the Shivalik Zone where the percentage of the Mid-Hill Zone is 10%? | create table table_10638523_1 (shivalik_zone varchar, mid_hill_zone varchar, PRIMARY KEY (shivalik_zone)) | select shivalik_zone from table_10638523_1 where mid_hill_zone = "10%" |
When brive proceeded to quarter final what were the match points? | create table table_27987767_3 (match_points varchar, proceed_to_quarter_final varchar, PRIMARY KEY (match_points)) | select match_points from table_27987767_3 where proceed_to_quarter_final = "brive" |
What are the results of those elections for which Marcy Kaptur is the incumbent? | create table table_1805191_36 (results varchar, incumbent varchar, PRIMARY KEY (results)) | select results from table_1805191_36 where incumbent = "marcy kaptur" |
How many flights does airline 'JetBlue Airways' have? | create table flights (airline varchar, PRIMARY KEY (airline)); create table airlines (uid varchar, airline varchar, PRIMARY KEY (uid)) | select count(*) from flights as t1 join airlines as t2 on t1.airline = t2.uid where t2.airline = "jetblue airways" |
Who was the tournament winner in the Southwestern Athletic Conference? | create table table_28884880_4 (tournament_winner varchar, conference varchar, PRIMARY KEY (tournament_winner)) | select tournament_winner from table_28884880_4 where conference = "southwestern athletic conference" |
What is the total number of drivers who have cars constructed by Mercedes-Benz? | create table table_18893428_1 (driver varchar, constructor varchar, PRIMARY KEY (driver)) | select count(driver) from table_18893428_1 where constructor = "mercedes-benz" |
What are the titles of the episodes which had 1.10 million U.S. viewers? | create table table_23399481_4 (title varchar, us_viewers__in_millions_ varchar, PRIMARY KEY (title)) | select title from table_23399481_4 where us_viewers__in_millions_ = "1.10" |
Show the start dates and end dates of all the apartment bookings made by guests with gender code "Female". | create table apartment_bookings (booking_start_date varchar, guest_id varchar, PRIMARY KEY (booking_start_date)); create table guests (guest_id varchar, gender_code varchar, PRIMARY KEY (guest_id)) | select t1.booking_start_date, t1.booking_start_date from apartment_bookings as t1 join guests as t2 on t1.guest_id = t2.guest_id where t2.gender_code = "female" |
Find the papers which have "Olin Shivers" 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 = "olin" and t1.lname = "shivers" |
On June 30, 2008 who what was the Republican: Jeff Sessions percentage? | create table table_16751596_12 (republican varchar, dates_administered varchar, PRIMARY KEY (republican)) | select republican as :_jeff_sessions from table_16751596_12 where dates_administered = "june 30, 2008" |
Who won in the men singles group in the year when Yoshie Takada won in the women singles? | create table table_28138035_13 (mens_singles varchar, womens_singles varchar, PRIMARY KEY (mens_singles)) | select mens_singles from table_28138035_13 where womens_singles = "yoshie takada" |
Show the party and the number of drivers in each party. | create table driver (party varchar, PRIMARY KEY (party)) | select party, count(*) from driver group by party |
When the home attendance is 3.123, what's the highest away attendance? | create table table_1816947_2 (highest_attendance_away varchar, average_attendance_home varchar, PRIMARY KEY (highest_attendance_away)) | select highest_attendance_away from table_1816947_2 where average_attendance_home = "3.123" |
what are all the date withdrawn for koningin beatrix | create table table_11662133_3 (date_withdrawn varchar, ships_name varchar, PRIMARY KEY (date_withdrawn)) | select date_withdrawn from table_11662133_3 where ships_name = "koningin beatrix" |
What is the name of the stadium when the capacity percentage is 83.9% | create table table_28884858_1 (stadium varchar, capacity_percentage varchar, PRIMARY KEY (stadium)) | select stadium from table_28884858_1 where capacity_percentage = "83.9%" |
When cardboard boxes is segment c what is segment a? | create table table_15187735_5 (segment_a varchar, segment_c varchar, PRIMARY KEY (segment_a)) | select segment_a from table_15187735_5 where segment_c = "cardboard boxes" |
What is the hand number of the hand where player 1 is south and the east wind is prevailing? | create table table_26853172_1 (hand_number varchar, player_1 varchar, prevailing_wind varchar, PRIMARY KEY (hand_number)) | select count(hand_number) from table_26853172_1 where player_1 = "south" and prevailing_wind = "east" |
What sponsor has the head coach Samad Marfavi? | create table table_27383390_2 (shirt_sponsor varchar, head_coach varchar, PRIMARY KEY (shirt_sponsor)) | select shirt_sponsor from table_27383390_2 where head_coach = "samad marfavi" |
When was the date of appointment for St. Johnstone's manager? | create table table_16075179_6 (date_of_appointment varchar, team varchar, PRIMARY KEY (date_of_appointment)) | select date_of_appointment from table_16075179_6 where team = "st. johnstone" |
Name the number of song for scoreboard being 3rd | create table table_21234111_6 (song varchar, scoreboard varchar, PRIMARY KEY (song)) | select count(song) from table_21234111_6 where scoreboard = "3rd" |
How many winners had a debut album titled "mike"? | create table table_1646960_3 (winner varchar, debut_album varchar, PRIMARY KEY (winner)) | select winner from table_1646960_3 where debut_album = "mike" |
Where is the cunningham hill infant school located? | create table table_28523_2 (location varchar, school varchar, PRIMARY KEY (location)) | select location from table_28523_2 where school = "cunningham hill infant school" |
are in tobago species liophis cobellus cobellus? | create table table_1850282_5 (tobago varchar, species varchar, PRIMARY KEY (tobago)) | select tobago from table_1850282_5 where species = "liophis cobellus cobellus" |
In what division was there a population density in km2 of 4,491.8 in 2011? | create table table_24027047_1 (administrative_division varchar, population_density___km²_2011_ varchar, PRIMARY KEY (administrative_division)) | select administrative_division from table_24027047_1 where population_density___km²_2011_ = "4,491.8" |
Name the year for japanese | create table table_21790203_1 (year__ceremony_ varchar, language_s_ varchar, PRIMARY KEY (year__ceremony_)) | select year__ceremony_ from table_21790203_1 where language_s_ = "japanese" |
List the names of people that are not employed by any company | create table employment (name varchar, people_id varchar, PRIMARY KEY (name)); create table people (name varchar, people_id varchar, PRIMARY KEY (name)) | select name from people where not people_id in (select people_id from employment) |
Who and what were the high points player for the game against Detroit? | create table table_27756572_6 (high_points varchar, team varchar, PRIMARY KEY (high_points)) | select high_points from table_27756572_6 where team = "detroit" |
What are the conditions of access where access using a Croatian identity card is yes and the length of stay permitted is freedom of movement? | create table table_25965003_3 (conditions_of_access varchar, access_using_a_croatian_identity_card varchar, length_of_stay_permitted varchar, PRIMARY KEY (conditions_of_access)) | select conditions_of_access from table_25965003_3 where access_using_a_croatian_identity_card = "yes" and length_of_stay_permitted = "freedom of movement" |
When did the callbacks from rancho bernardo inn air | create table table_11129123_1 (episode_air_date varchar, callback_venue varchar, PRIMARY KEY (episode_air_date)) | select episode_air_date from table_11129123_1 where callback_venue = "rancho bernardo inn" |
What is the strongs # of the english spelling word jehojakin? | create table table_1242447_1 (strongs__number varchar, english_spelling varchar, PRIMARY KEY (strongs__number)) | select strongs__number from table_1242447_1 where english_spelling = "jehojakin" |
What is the final score when they played Frankfurt Galaxy? | create table table_24882796_2 (final_score varchar, opponent varchar, PRIMARY KEY (final_score)) | select final_score from table_24882796_2 where opponent = "frankfurt galaxy" |
How many games had an average of 12796? | create table table_27094070_4 (overall_gms varchar, overall_avg varchar, PRIMARY KEY (overall_gms)) | select count(overall_gms) from table_27094070_4 where overall_avg = 12796 |
What is the ε (m −1 cm −1 ) of the red dye? | create table table_26428602_1 (ε__m_−1_cm_−1__ varchar, color varchar, PRIMARY KEY (ε__m_−1_cm_−1__)) | select ε__m_−1_cm_−1__ from table_26428602_1 where color = "red" |
what is the name of the episode whose writers were jeff astrof & matt goldman? | create table table_27914606_1 (title varchar, written_by varchar, PRIMARY KEY (title)) | select title from table_27914606_1 where written_by = "jeff astrof & matt goldman" |
what's the opponent with stadium being jeppesen stadium | create table table_14102379_4 (opponent varchar, stadium varchar, PRIMARY KEY (opponent)) | select opponent from table_14102379_4 where stadium = "jeppesen stadium" |
For franklin of class aa, which school years does this occur? | create table table_14603212_1 (school_year varchar, class_aa varchar, franklin varchar, PRIMARY KEY (school_year)) | select school_year from table_14603212_1 where class_aa = franklin |
What round does Duncan Tappy drive in? | create table table_23293785_3 (sf_round integer, driver varchar, PRIMARY KEY (sf_round)) | select max(sf_round) from table_23293785_3 where driver = "duncan tappy" |
What is the highest number of dave viewers of an episode with 119000 dave ja vu viewers? | create table table_25721_3 (dave_viewers integer, dave_ja_vu_viewers varchar, PRIMARY KEY (dave_viewers)) | select max(dave_viewers) from table_25721_3 where dave_ja_vu_viewers = 119000 |
what's the permanence of the body where purity is apprehension | create table table_11609814_1 (permanence_of_the_body varchar, purity varchar, PRIMARY KEY (permanence_of_the_body)) | select permanence_of_the_body from table_11609814_1 where purity = "apprehension" |
Who is in the pole position for the French Grand Prix? | create table table_1132568_3 (pole_position varchar, grand_prix varchar, PRIMARY KEY (pole_position)) | select pole_position from table_1132568_3 where grand_prix = "french grand_prix" |
Where is every location where Nick is Bru? | create table table_2112260_1 (location varchar, nick varchar, PRIMARY KEY (location)) | select location from table_2112260_1 where nick = "bru" |
List the date of each treatment, together with the first name of the professional who operated it. | create table treatments (date_of_treatment varchar, professional_id varchar, PRIMARY KEY (date_of_treatment)); create table professionals (first_name varchar, professional_id varchar, PRIMARY KEY (first_name)) | select t1.date_of_treatment, t2.first_name from treatments as t1 join professionals as t2 on t1.professional_id = t2.professional_id |
How many different horse-powers does the Cochrane have? | create table table_23614702_1 (horse__power varchar, warship varchar, PRIMARY KEY (horse__power)) | select count(horse__power) from table_23614702_1 where warship = "cochrane" |
What are the market city/market(s) for Rapid City Alternative format? | create table table_134987_3 (target_city__market varchar, city_of_license varchar, format varchar, PRIMARY KEY (target_city__market)) | select target_city__market from table_134987_3 where city_of_license = "rapid city" and format = "alternative" |
What is the area of the province with a density of 533.59? | create table table_254234_1 (area³ integer, density² varchar, PRIMARY KEY (area³)) | select max(area³) from table_254234_1 where density² = "533.59" |
What was the 2nd leg for team #1 River Plate? | create table table_24426072_1 (team__number1 varchar, PRIMARY KEY (team__number1)) | select 2 as nd_leg from table_24426072_1 where team__number1 = "river plate" |
What is the first name and last name of the customer that has email "[email protected]"? | create table customer (firstname varchar, lastname varchar, email varchar, PRIMARY KEY (firstname)) | select firstname, lastname from customer where email = "[email protected]" |
How many students whose are playing the role of goalie? | create table tryout (ppos varchar, PRIMARY KEY (ppos)) | select count(*) from tryout where ppos = 'goalie' |
What is the highest cr number? | create table table_1886270_1 (cr_no integer, PRIMARY KEY (cr_no)) | select max(cr_no) from table_1886270_1 |
How many remaining places in finals when 1 team can still qualify and 0 teams have secured qualification? | create table table_23995075_2 (remaining_places_in_finals varchar, teams_that_can_still_qualify varchar, teams_that_have_secured_qualification varchar, PRIMARY KEY (remaining_places_in_finals)) | select remaining_places_in_finals from table_23995075_2 where teams_that_can_still_qualify = "1" and teams_that_have_secured_qualification = "0" |
What are the names of enzymes who does not produce 'Heme'? | create table enzyme (name varchar, product varchar, PRIMARY KEY (name)) | select name from enzyme where product <> 'heme' |
what is the material of the surface in noida , uttar pradesh, india | create table table_29127804_3 (surface varchar, location varchar, PRIMARY KEY (surface)) | select surface from table_29127804_3 where location = "noida , uttar pradesh, india" |
Who directed the episode aired on February 27, 2009? | create table table_18424435_3 (directed_by varchar, us_air_date varchar, PRIMARY KEY (directed_by)) | select directed_by from table_18424435_3 where us_air_date = "february 27, 2009" |
Name the control for albany | create table table_2076533_1 (control varchar, main_location varchar, PRIMARY KEY (control)) | select control from table_2076533_1 where main_location = "albany" |
Name the vacator for failure to elect | create table table_225205_3 (vacator varchar, reason_for_change varchar, PRIMARY KEY (vacator)) | select vacator from table_225205_3 where reason_for_change = "failure to elect" |
Who is the mix artist for the closing party setlist where artist 1 is Dillinja and Skibadee? | create table table_29264319_1 (mix_artist varchar, setlist varchar, artist_1 varchar, PRIMARY KEY (mix_artist)) | select mix_artist from table_29264319_1 where setlist = "closing party" and artist_1 = "dillinja and skibadee" |
How many of 3:26.00 have a championship record? | create table table_23987362_2 (world_record varchar, PRIMARY KEY (world_record)) | select count(3) as :2600 from table_23987362_2 where world_record = "championship record" |
Name the former codes for merged into panama ( pa , pan , 591 ) | create table table_222666_1 (former_codes varchar, new_country_names_and_codes varchar, PRIMARY KEY (former_codes)) | select former_codes from table_222666_1 where new_country_names_and_codes = "merged into panama ( pa , pan , 591 )" |
Show the budget type code and description and the corresponding document id. | create table ref_budget_codes (budget_type_code varchar, budget_type_description varchar, PRIMARY KEY (budget_type_code)); create table documents_with_expenses (document_id varchar, budget_type_code varchar, PRIMARY KEY (document_id)) | select t2.budget_type_code, t2.budget_type_description, t1.document_id from documents_with_expenses as t1 join ref_budget_codes as t2 on t1.budget_type_code = t2.budget_type_code |
Name the date of vacancy for 29 december 2008 being date of appointment | create table table_18522916_5 (date_of_vacancy varchar, date_of_appointment varchar, PRIMARY KEY (date_of_vacancy)) | select date_of_vacancy from table_18522916_5 where date_of_appointment = "29 december 2008" |
How many items were listed under world rank under the nation of Nigeria? | create table table_2248991_2 (world_rank varchar, nation varchar, PRIMARY KEY (world_rank)) | select count(world_rank) from table_2248991_2 where nation = "nigeria" |
Name the centennial for location | create table table_15977768_1 (centennial varchar, information varchar, PRIMARY KEY (centennial)) | select centennial from table_15977768_1 where information = "location" |
How many candidates are listed all together for the incumbent named bob clement? | create table table_1341577_43 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates)) | select count(candidates) from table_1341577_43 where incumbent = "bob clement" |
List the power output for Phoenix. | create table table_2523809_1 (power__kw_ varchar, coverage varchar, PRIMARY KEY (power__kw_)) | select power__kw_ from table_2523809_1 where coverage = "phoenix" |
Name the name for 15 yield | create table table_2189647_1 (name_or_number varchar, yield__megatons_ varchar, PRIMARY KEY (name_or_number)) | select name_or_number from table_2189647_1 where yield__megatons_ = "15" |
How many French words does zinnapòtamu in Central-Southern Calabrian translate to? | create table table_2077192_2 (french varchar, central_southern_calabrian varchar, PRIMARY KEY (french)) | select count(french) from table_2077192_2 where central_southern_calabrian = "zinnapòtamu" |
What is the name of the episode written by Ross Brown? | create table table_2468961_2 (title varchar, written_by varchar, PRIMARY KEY (title)) | select title from table_2468961_2 where written_by = "ross brown" |
What is the fewest number of shuttles where the shuttle time is 6.55 seconds? | create table table_1751142_2 (shuttles integer, shuttle_time__seconds_ varchar, PRIMARY KEY (shuttles)) | select min(shuttles) from table_1751142_2 where shuttle_time__seconds_ = "6.55" |
What brand is model G6xxx? | create table table_24018112_1 (brand_name varchar, model__list_ varchar, PRIMARY KEY (brand_name)) | select brand_name from table_24018112_1 where model__list_ = "g6xxx" |
when was the school/club team for grizzles was maryland | create table table_16494599_5 (years_for_grizzlies varchar, school_club_team varchar, PRIMARY KEY (years_for_grizzlies)) | select years_for_grizzlies from table_16494599_5 where school_club_team = "maryland" |
what's the incumbent with candidates being sam hobbs (d) 88.2% c. w. mckay (r) 11.8% | create table table_1342292_2 (incumbent varchar, candidates varchar, PRIMARY KEY (incumbent)) | select incumbent from table_1342292_2 where candidates = "sam hobbs (d) 88.2% c. w. mckay (r) 11.8%" |
What party does James Pleasants belong to? | create table table_2668352_19 (party varchar, incumbent varchar, PRIMARY KEY (party)) | select party from table_2668352_19 where incumbent = "james pleasants" |
how many division southwest was there when division east was babi | create table table_17881033_1 (division_southwest varchar, division_east varchar, PRIMARY KEY (division_southwest)) | select count(division_southwest) from table_17881033_1 where division_east = "babi" |
Where is the University at Albany located? | create table table_12936521_2 (location varchar, institution varchar, PRIMARY KEY (location)) | select location from table_12936521_2 where institution = "university at albany" |
What's the record of the @ miami team? | create table table_27734577_8 (record varchar, team varchar, PRIMARY KEY (record)) | select record from table_27734577_8 where team = "@ miami" |
Find the last names of teachers teaching in classroom 109. | create table teachers (lastname varchar, classroom varchar, PRIMARY KEY (lastname)) | select lastname from teachers where classroom = 109 |
How many air dates had 3.2 million viewers? | create table table_26448179_4 (original_air_date varchar, us_viewers__millions_ varchar, PRIMARY KEY (original_air_date)) | select count(original_air_date) from table_26448179_4 where us_viewers__millions_ = "3.2" |
Who was the team 2 that played against team 1 Atlético la Sabana? | create table table_27603010_14 (team__number2 varchar, team__number1 varchar, PRIMARY KEY (team__number2)) | select team__number2 from table_27603010_14 where team__number1 = "atlético la sabana" |
Which major has most number of students? | create table student (major varchar, PRIMARY KEY (major)) | select major from student group by major order by count(*) desc limit 1 |
What is the investor that has invested in the most number of entrepreneurs? | create table entrepreneur (investor varchar, PRIMARY KEY (investor)) | select investor from entrepreneur group by investor order by count(*) desc limit 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.