question
stringlengths 14
216
| context
stringlengths 45
458
| answer
stringlengths 18
463
|
---|---|---|
List the contestant numbers and names, ordered by contestant name descending.
|
create table contestants (contestant_number varchar, contestant_name varchar, PRIMARY KEY (contestant_number))
|
select contestant_number, contestant_name from contestants order by contestant_name desc
|
Show names of musicals and the number of actors who have appeared in the musicals.
|
create table actor (musical_id varchar, PRIMARY KEY (musical_id)); create table musical (name varchar, musical_id varchar, PRIMARY KEY (name))
|
select t2.name, count(*) from actor as t1 join musical as t2 on t1.musical_id = t2.musical_id group by t1.musical_id
|
who won mens doubles when zhou mi won womens singles
|
create table table_20361783_1 (mens_doubles varchar, womens_singles varchar, PRIMARY KEY (mens_doubles))
|
select mens_doubles from table_20361783_1 where womens_singles = "zhou mi"
|
How many episodes were directed by james quinn?
|
create table table_2618061_1 (written_by varchar, directed_by varchar, PRIMARY KEY (written_by))
|
select count(written_by) from table_2618061_1 where directed_by = "james quinn"
|
Who is on the David's Team for the episode with the Lees Team of Jack Dee and Peter Serafinowicz
|
create table table_23575917_4 (davids_team varchar, lees_team varchar, PRIMARY KEY (davids_team))
|
select davids_team from table_23575917_4 where lees_team = "jack dee and peter serafinowicz"
|
Which couple had a week 2 score of exactly 23?
|
create table table_28946565_2 (couple varchar, week_2 varchar, PRIMARY KEY (couple))
|
select couple from table_28946565_2 where week_2 = 23
|
How many times did Ron Artest (24) receive the record for high points?
|
create table table_17288825_7 (record varchar, high_points varchar, PRIMARY KEY (record))
|
select count(record) from table_17288825_7 where high_points = "ron artest (24)"
|
Name the aspect ratio for smpte 259m and interlaced scanning
|
create table table_272313_2 (aspect_ratio varchar, pixel_aspect_ratio varchar, scanning varchar, PRIMARY KEY (aspect_ratio))
|
select aspect_ratio from table_272313_2 where pixel_aspect_ratio = "smpte 259m" and scanning = "interlaced"
|
what is the first performance of the last performance on 03/29/1957
|
create table table_19189856_1 (first_performance varchar, last_performance varchar, PRIMARY KEY (first_performance))
|
select first_performance from table_19189856_1 where last_performance = "03/29/1957"
|
how many party classifications are there for the incumbent Mac Collins?
|
create table table_26336739_1 (party varchar, incumbent varchar, PRIMARY KEY (party))
|
select count(party) from table_26336739_1 where incumbent = "mac collins"
|
Name the format for quick callanetics: hips and behind
|
create table table_27303975_2 (format varchar, title varchar, PRIMARY KEY (format))
|
select format from table_27303975_2 where title = "quick callanetics: hips and behind"
|
How many millions of $ were spent in Iceland in 1948/49?
|
create table table_19766_1 (country varchar, PRIMARY KEY (country))
|
select max(1948 as _49__) as $_millions_ from table_19766_1 where country = "iceland"
|
Find the first names and last names of teachers in alphabetical order of last name.
|
create table teachers (first_name varchar, last_name varchar, PRIMARY KEY (first_name))
|
select first_name, last_name from teachers order by last_name
|
What are the titles and directors of the films were never presented in China?
|
create table film (title varchar, director varchar, film_id varchar, country varchar, PRIMARY KEY (title)); create table market (market_id varchar, PRIMARY KEY (market_id)); create table film_market_estimation (market_id varchar, PRIMARY KEY (market_id))
|
select title, director from film where not film_id in (select film_id from film_market_estimation as t1 join market as t2 on t1.market_id = t2.market_id where country = 'china')
|
Name the vote for thiago
|
create table table_24233848_2 (vote varchar, eliminated varchar, PRIMARY KEY (vote))
|
select vote from table_24233848_2 where eliminated = "thiago"
|
What was the original airdate of the episode with production number 2x03?
|
create table table_26293875_3 (original_airdate varchar, prod_no varchar, PRIMARY KEY (original_airdate))
|
select original_airdate from table_26293875_3 where prod_no = "2x03"
|
What is the report for the race name V Ulster Trophy?
|
create table table_1140117_5 (report varchar, race_name varchar, PRIMARY KEY (report))
|
select report from table_1140117_5 where race_name = "v ulster trophy"
|
Which template type code is used by most number of documents?
|
create table documents (template_id varchar, PRIMARY KEY (template_id)); create table templates (template_type_code varchar, template_id varchar, PRIMARY KEY (template_type_code))
|
select t1.template_type_code from templates as t1 join documents as t2 on t1.template_id = t2.template_id group by t1.template_type_code order by count(*) desc limit 1
|
What was the air date where there were 5.72 million viewers?
|
create table table_23483182_1 (original_air_date varchar, us_viewers__million_ varchar, PRIMARY KEY (original_air_date))
|
select original_air_date from table_23483182_1 where us_viewers__million_ = "5.72"
|
Which ring names are currently ranked f0 jūryō 3 west?
|
create table table_1557974_1 (ring_name varchar, current_rank varchar, PRIMARY KEY (ring_name))
|
select ring_name from table_1557974_1 where current_rank = "f0 jūryō 3 west"
|
what's the land area with seat of rcm being granby
|
create table table_1011906_1 (land_area varchar, seat_of_rcm varchar, PRIMARY KEY (land_area))
|
select land_area from table_1011906_1 where seat_of_rcm = "granby"
|
When was the order placed whose shipment tracking number is 3452? Give me the date.
|
create table shipments (order_id varchar, shipment_tracking_number varchar, PRIMARY KEY (order_id)); create table orders (date_order_placed varchar, order_id varchar, PRIMARY KEY (date_order_placed))
|
select t1.date_order_placed from orders as t1 join shipments as t2 on t1.order_id = t2.order_id where t2.shipment_tracking_number = 3452
|
How many templates have template type code CV?
|
create table templates (template_type_code varchar, PRIMARY KEY (template_type_code))
|
select count(*) from templates where template_type_code = "cv"
|
Who were the candidates when Shirley Chisholm was the incumbent?
|
create table table_1341663_33 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates))
|
select candidates from table_1341663_33 where incumbent = "shirley chisholm"
|
Who wrote the sorry of the episode directed by Dan Attias?
|
create table table_13755296_1 (story_by varchar, directed_by varchar, PRIMARY KEY (story_by))
|
select story_by from table_13755296_1 where directed_by = "dan attias"
|
How many accounts are there in total?
|
create table accounts (id varchar, PRIMARY KEY (id))
|
select count(*) from accounts
|
What is the Pixie and Dixie skit in episode 7?
|
create table table_19860361_3 (pixie_and_dixie varchar, ep varchar, PRIMARY KEY (pixie_and_dixie))
|
select pixie_and_dixie from table_19860361_3 where ep = 7
|
What candidates ran in the election that included john shelley?
|
create table table_1341973_6 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates))
|
select candidates from table_1341973_6 where incumbent = "john shelley"
|
Name the calcium for fat being 6.5
|
create table table_2493389_1 (calcium__mg_ varchar, fat__g_ varchar, PRIMARY KEY (calcium__mg_))
|
select calcium__mg_ from table_2493389_1 where fat__g_ = "6.5"
|
List the name of playlist which has number of tracks greater than 100.
|
create table playlist_tracks (playlist_id varchar, track_id varchar, PRIMARY KEY (playlist_id)); create table playlists (name varchar, id varchar, PRIMARY KEY (name))
|
select t2.name from playlist_tracks as t1 join playlists as t2 on t2.id = t1.playlist_id group by t1.playlist_id having count(t1.track_id) > 100
|
Name the deployable military 2011 for denmark
|
create table table_17971449_2 (deployable_military__2011 varchar, _thousands_ varchar, country varchar, PRIMARY KEY (deployable_military__2011))
|
select deployable_military__2011, _thousands_ from table_17971449_2 where country = "denmark"
|
Find the first and last names of all the female (sex is F) students who have president votes.
|
create table student (fname varchar, lname varchar, stuid varchar, sex varchar, PRIMARY KEY (fname)); create table voting_record (president_vote varchar, PRIMARY KEY (president_vote))
|
select distinct t1.fname, t1.lname from student as t1 join voting_record as t2 on t1.stuid = t2.president_vote where t1.sex = "f"
|
Find the total number of students in each department.
|
create table student (dept_name varchar, PRIMARY KEY (dept_name))
|
select count(*), dept_name from student group by dept_name
|
What was the percentage of votes for coakley when kennedy won 1.6%
|
create table table_24115349_4 (coakley__percentage varchar, kennedy__percentage varchar, PRIMARY KEY (coakley__percentage))
|
select coakley__percentage from table_24115349_4 where kennedy__percentage = "1.6%"
|
Which general election had a vote swing of 1.69?
|
create table table_149330_1 (general_election varchar, votes_swing varchar, PRIMARY KEY (general_election))
|
select general_election from table_149330_1 where votes_swing = "1.69"
|
How many schools are there?
|
create table school (id varchar, PRIMARY KEY (id))
|
select count(*) from school
|
what is writtenand directed by shannon flynn?
|
create table table_24018430_3 (written_by varchar, directed_by varchar, PRIMARY KEY (written_by))
|
select written_by from table_24018430_3 where directed_by = "shannon flynn"
|
What actor was nominted for an award in the film Anastasiya Slutskaya?
|
create table table_10236830_6 (actors_name varchar, film_name varchar, PRIMARY KEY (actors_name))
|
select actors_name from table_10236830_6 where film_name = "anastasiya slutskaya"
|
Please show the employee first names and ids of employees who serve at least 10 customers.
|
create table customer (firstname varchar, supportrepid varchar, PRIMARY KEY (firstname)); create table employee (employeeid varchar, PRIMARY KEY (employeeid))
|
select t1.firstname, t1.supportrepid from customer as t1 join employee as t2 on t1.supportrepid = t2.employeeid group by t1.supportrepid having count(*) >= 10
|
What was the 09-10 oi best of the player with 949 points?
|
create table table_24990183_5 (ws_points varchar, PRIMARY KEY (ws_points))
|
select count(09 as _10_oi_best) from table_24990183_5 where ws_points = 949
|
what is the subtrate for enzyme ala dehydratase
|
create table table_182499_1 (substrate varchar, enzyme varchar, PRIMARY KEY (substrate))
|
select substrate from table_182499_1 where enzyme = "ala dehydratase"
|
How many coaches does each club has? List the club id, name and the number of coaches.
|
create table club (club_id varchar, club_name varchar, PRIMARY KEY (club_id)); create table coach (club_id varchar, PRIMARY KEY (club_id))
|
select t1.club_id, t1.club_name, count(*) from club as t1 join coach as t2 on t1.club_id = t2.club_id group by t1.club_id
|
How many had a length of 455?
|
create table table_16654785_2 (name varchar, length__m_ varchar, PRIMARY KEY (name))
|
select count(name) from table_16654785_2 where length__m_ = 455
|
How many times was Robert Gesink a winner?
|
create table table_27573848_18 (mountains_classification varchar, winner varchar, PRIMARY KEY (mountains_classification))
|
select count(mountains_classification) from table_27573848_18 where winner = "robert gesink"
|
How many times did Keith Downing depart a position?
|
create table table_18788823_5 (position_in_table varchar, outgoing_manager varchar, PRIMARY KEY (position_in_table))
|
select count(position_in_table) from table_18788823_5 where outgoing_manager = "keith downing"
|
What are all the distinct payment types?
|
create table payments (payment_type_code varchar, PRIMARY KEY (payment_type_code))
|
select distinct payment_type_code from payments
|
What is the film title and inventory id of the item in the inventory which was rented most frequently?
|
create table film (title varchar, film_id varchar, PRIMARY KEY (title)); create table inventory (inventory_id varchar, film_id varchar, PRIMARY KEY (inventory_id)); create table rental (inventory_id varchar, PRIMARY KEY (inventory_id))
|
select t1.title, t2.inventory_id from film as t1 join inventory as t2 on t1.film_id = t2.film_id join rental as t3 on t2.inventory_id = t3.inventory_id group by t2.inventory_id order by count(*) desc limit 1
|
Name the vacator for resigned february 26, 1836 because of ill health
|
create table table_225200_4 (vacator varchar, reason_for_change varchar, PRIMARY KEY (vacator))
|
select vacator from table_225200_4 where reason_for_change = "resigned february 26, 1836 because of ill health"
|
What was the timeslot for the episode that aired on May 12, 2009?
|
create table table_11274401_3 (timeslot varchar, air_date varchar, PRIMARY KEY (timeslot))
|
select timeslot from table_11274401_3 where air_date = "may 12, 2009"
|
Show all statement id and the number of accounts for each statement.
|
create table accounts (statement_id varchar, PRIMARY KEY (statement_id))
|
select statement_id, count(*) from accounts group by statement_id
|
what is the name of the episode whose writer is philippe browning?
|
create table table_2791668_1 (title varchar, written_by varchar, PRIMARY KEY (title))
|
select title from table_2791668_1 where written_by = "philippe browning"
|
Name the number of semi final results for 12 performance order
|
create table table_26267849_11 (semi_finals_result varchar, performance_order varchar, PRIMARY KEY (semi_finals_result))
|
select count(semi_finals_result) from table_26267849_11 where performance_order = 12
|
How many stadiums are there?
|
create table stadium (id varchar, PRIMARY KEY (id))
|
select count(*) from stadium
|
Name the total number of monarchs for 23 may 1059 crowned
|
create table table_24046134_1 (monarch varchar, crowned varchar, PRIMARY KEY (monarch))
|
select count(monarch) from table_24046134_1 where crowned = "23 may 1059"
|
How many books are there?
|
create table book (id varchar, PRIMARY KEY (id))
|
select count(*) from book
|
What is the Yogi Bear that aired on 1959.12.21?
|
create table table_19860361_3 (yogi_bear varchar, air_date varchar, PRIMARY KEY (yogi_bear))
|
select yogi_bear from table_19860361_3 where air_date = "1959.12.21"
|
How many votes in Brooklyn were won by the candidate who won 321 votes in Manhattan?
|
create table table_1108394_47 (brooklyn varchar, manhattan varchar, PRIMARY KEY (brooklyn))
|
select brooklyn from table_1108394_47 where manhattan = "321"
|
what's the software executable space protection with dbeingtribution being gentoo
|
create table table_1357052_6 (software_executable_space_protection varchar, distribution varchar, PRIMARY KEY (software_executable_space_protection))
|
select software_executable_space_protection from table_1357052_6 where distribution = "gentoo"
|
What is the release price for a processor with part number cy80632007227ab?
|
create table table_16729930_18 (release_price___usd__ varchar, part_number_s_ varchar, PRIMARY KEY (release_price___usd__))
|
select release_price___usd__ from table_16729930_18 where part_number_s_ = "cy80632007227ab"
|
What is the nationality of the player from Buffalo Sabres?
|
create table table_1213511_2 (nationality varchar, nhl_team varchar, PRIMARY KEY (nationality))
|
select nationality from table_1213511_2 where nhl_team = "buffalo sabres"
|
How many seasons featured 29 conversions?
|
create table table_20505342_1 (penalties varchar, conversions varchar, PRIMARY KEY (penalties))
|
select count(penalties) from table_20505342_1 where conversions = 29
|
How many miles were driven in the race where the winner finished in 2:47:11?
|
create table table_22648285_1 (miles__km_ varchar, race_time varchar, PRIMARY KEY (miles__km_))
|
select miles__km_ from table_22648285_1 where race_time = "2:47:11"
|
who is the the fastest lap with grand prix being european grand prix
|
create table table_12161822_5 (fastest_lap varchar, grand_prix varchar, PRIMARY KEY (fastest_lap))
|
select fastest_lap from table_12161822_5 where grand_prix = "european grand_prix"
|
Find the number of routes for each source airport and the airport name.
|
create table airports (name varchar, apid varchar, PRIMARY KEY (name)); create table routes (src_apid varchar, PRIMARY KEY (src_apid))
|
select count(*), t1.name from airports as t1 join routes as t2 on t1.apid = t2.src_apid group by t1.name
|
List the document ids of documents with the status done and type Paper, which not shipped by the shipping agent named USPS.
|
create table ref_shipping_agents (document_id varchar, document_status_code varchar, document_type_code varchar, PRIMARY KEY (document_id)); create table documents (document_id varchar, document_status_code varchar, document_type_code varchar, PRIMARY KEY (document_id))
|
select document_id from documents where document_status_code = "done" and document_type_code = "paper" except select document_id from documents join ref_shipping_agents on documents.shipping_agent_code = ref_shipping_agents.shipping_agent_code where ref_shipping_agents.shipping_agent_name = "usps"
|
Who won best amiga demo when tribes ( pulse & melon dezign) won best pc demo?
|
create table table_2490289_1 (amiga_demo varchar, pc_demo varchar, PRIMARY KEY (amiga_demo))
|
select amiga_demo from table_2490289_1 where pc_demo = "tribes ( pulse & melon dezign)"
|
What are the electric companies drawing power from Itaipu?
|
create table table_19001916_2 (entities varchar, supply_point varchar, PRIMARY KEY (entities))
|
select entities from table_19001916_2 where supply_point = "itaipu"
|
List all payment methods and number of payments using each payment methods.
|
create table customer_payments (payment_method_code varchar, PRIMARY KEY (payment_method_code))
|
select payment_method_code, count(*) from customer_payments group by payment_method_code
|
How many different finales had the English title "Beyond the Realm of Conscience"?
|
create table table_19210674_1 (finale varchar, english_title varchar, PRIMARY KEY (finale))
|
select count(finale) from table_19210674_1 where english_title = "beyond the realm of conscience"
|
Name the vice captain for melbourne victory
|
create table table_1301373_7 (vice varchar, captain varchar, club varchar, PRIMARY KEY (vice))
|
select vice - captain from table_1301373_7 where club = "melbourne victory"
|
Who wrote the episode that originally aired on January 15, 1993?
|
create table table_2409041_5 (written_by varchar, original_air_date varchar, PRIMARY KEY (written_by))
|
select written_by from table_2409041_5 where original_air_date = "january 15, 1993"
|
When was jack watson appointed?
|
create table table_24490665_1 (appointed varchar, name varchar, PRIMARY KEY (appointed))
|
select appointed from table_24490665_1 where name = "jack watson"
|
Return the number of routes with destination airport in Italy operated by the airline with name 'American Airlines'.
|
create table routes (dst_apid varchar, alid varchar, PRIMARY KEY (dst_apid)); create table airports (apid varchar, country varchar, PRIMARY KEY (apid)); create table airlines (alid varchar, name varchar, PRIMARY KEY (alid))
|
select count(*) from routes as t1 join airports as t2 on t1.dst_apid = t2.apid join airlines as t3 on t1.alid = t3.alid where t2.country = 'italy' and t3.name = 'american airlines'
|
In which townlands is the civil parish Monkstown?
|
create table table_30120619_1 (townland varchar, civil_parish varchar, PRIMARY KEY (townland))
|
select townland from table_30120619_1 where civil_parish = "monkstown"
|
Who has the high assists when the team is Oklahoma City?
|
create table table_23285805_8 (high_assists varchar, team varchar, PRIMARY KEY (high_assists))
|
select high_assists from table_23285805_8 where team = "oklahoma city"
|
What was the Weds 25 Aug time for the driver whose Aug 27 time was 22' 23.97 101.065mph?
|
create table table_26986076_6 (wed_25_aug varchar, fri_27_aug varchar, PRIMARY KEY (wed_25_aug))
|
select wed_25_aug from table_26986076_6 where fri_27_aug = "22' 23.97 101.065mph"
|
How many persons are not body builders?
|
create table body_builder (people_id varchar, people_id varchar, PRIMARY KEY (people_id)); create table people (people_id varchar, people_id varchar, PRIMARY KEY (people_id))
|
select count(*) from people where not people_id in (select people_id from body_builder)
|
What was the women's singles were men's doubles were steen fladberg jens peter nierhoff?
|
create table table_12186309_1 (womens_singles varchar, mens_doubles varchar, PRIMARY KEY (womens_singles))
|
select womens_singles from table_12186309_1 where mens_doubles = "steen fladberg jens peter nierhoff"
|
Name the premiere for 8 episodes
|
create table table_22951646_1 (premiere varchar, number_of_episodes varchar, PRIMARY KEY (premiere))
|
select premiere from table_22951646_1 where number_of_episodes = 8
|
How many schools are listed for the player who played the years for Jazz in 2010-11?
|
create table table_11545282_5 (school_club_team varchar, years_for_jazz varchar, PRIMARY KEY (school_club_team))
|
select count(school_club_team) from table_11545282_5 where years_for_jazz = "2010-11"
|
Name the total number of opponets venue for oklahoma
|
create table table_16201038_3 (at_opponents_venue varchar, missouri_vs varchar, PRIMARY KEY (at_opponents_venue))
|
select count(at_opponents_venue) from table_16201038_3 where missouri_vs = "oklahoma"
|
Show the authors who have submissions to more than one workshop.
|
create table submission (author varchar, submission_id varchar, PRIMARY KEY (author)); create table acceptance (submission_id varchar, workshop_id varchar, PRIMARY KEY (submission_id))
|
select t2.author from acceptance as t1 join submission as t2 on t1.submission_id = t2.submission_id group by t2.author having count(distinct t1.workshop_id) > 1
|
At which location did Rick Mears drive?
|
create table table_15736385_1 (location varchar, driver varchar, PRIMARY KEY (location))
|
select location from table_15736385_1 where driver = "rick mears"
|
Show the ids and names of all documents.
|
create table documents (document_id varchar, document_name varchar, PRIMARY KEY (document_id))
|
select document_id, document_name from documents
|
For each country and airline name, how many routes are there?
|
create table airlines (country varchar, name varchar, alid varchar, PRIMARY KEY (country)); create table routes (alid varchar, PRIMARY KEY (alid))
|
select t1.country, t1.name, count(*) from airlines as t1 join routes as t2 on t1.alid = t2.alid group by t1.country, t1.name
|
When mike bibby (8) had the highest amount of assists what is the record?
|
create table table_17311759_9 (record varchar, high_assists varchar, PRIMARY KEY (record))
|
select record from table_17311759_9 where high_assists = "mike bibby (8)"
|
Who were all the candidates in elections in which Steve Chabot was a candidate?
|
create table table_1805191_36 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates))
|
select candidates from table_1805191_36 where incumbent = "steve chabot"
|
How many episodes were written by seth hoffman, russel friend & garrett lerner?
|
create table table_28026156_1 (rank__week_ varchar, written_by varchar, PRIMARY KEY (rank__week_))
|
select count(rank__week_) from table_28026156_1 where written_by = "seth hoffman, russel friend & garrett lerner"
|
Who was the SS when jim lefebvre was at 2nd, willie davis at CF, and don drysdale was the SP.
|
create table table_12142298_2 (shortstop varchar, starting_pitcher varchar, second_baseman varchar, centerfielder varchar, PRIMARY KEY (shortstop))
|
select shortstop from table_12142298_2 where second_baseman = "jim lefebvre" and centerfielder = "willie davis" and starting_pitcher = "don drysdale"
|
How many authors are present when the original was Carry On?
|
create table table_19523708_1 (authors varchar, original varchar, PRIMARY KEY (authors))
|
select count(authors) from table_19523708_1 where original = "carry on"
|
What was the status of the election featuring incumbent margaret kaiser?
|
create table table_26416704_2 (status varchar, incumbent varchar, PRIMARY KEY (status))
|
select status from table_26416704_2 where incumbent = "margaret kaiser"
|
Who replaced the outgoing manager Hüsnü Özkara?
|
create table table_27091128_3 (replaced_by varchar, outgoing_manager varchar, PRIMARY KEY (replaced_by))
|
select replaced_by from table_27091128_3 where outgoing_manager = "hüsnü özkara"
|
Who played against team 1 Liverpool?
|
create table table_17282875_2 (team__number2 varchar, team__number1 varchar, PRIMARY KEY (team__number2))
|
select team__number2 from table_17282875_2 where team__number1 = "liverpool"
|
What's the content of the Tutti i Pacchetti + Sky HD package?
|
create table table_15887683_3 (content varchar, package_option varchar, PRIMARY KEY (content))
|
select content from table_15887683_3 where package_option = "tutti i pacchetti + sky hd"
|
What location(s) did patrick mckenna lead the most laps?
|
create table table_25668203_2 (location varchar, most_laps_led varchar, PRIMARY KEY (location))
|
select location from table_25668203_2 where most_laps_led = "patrick mckenna"
|
Who directed the second episode of "The Homecoming" which was written by Tommy Thompson?
|
create table table_11075747_3 (directed_by varchar, written_by varchar, PRIMARY KEY (directed_by))
|
select directed_by from table_11075747_3 where written_by = "tommy thompson"
|
What was the stadium that had the regular season game?
|
create table table_21436373_4 (stadium varchar, type_of_record varchar, PRIMARY KEY (stadium))
|
select stadium from table_21436373_4 where type_of_record = "regular season game"
|
What branch was involved when the term began in January 3, 1985?
|
create table table_197446_1 (branch varchar, term_began varchar, PRIMARY KEY (branch))
|
select branch from table_197446_1 where term_began = "january 3, 1985"
|
What's the total number of directors who've directed episodes seen by 11.34 million US viewers?
|
create table table_12159115_2 (directed_by varchar, us_viewers__millions_ varchar, PRIMARY KEY (directed_by))
|
select count(directed_by) from table_12159115_2 where us_viewers__millions_ = "11.34"
|
What is the description of the color for most products?
|
create table ref_colors (color_description varchar, color_code varchar, PRIMARY KEY (color_description)); create table products (color_code varchar, PRIMARY KEY (color_code))
|
select t2.color_description from products as t1 join ref_colors as t2 on t1.color_code = t2.color_code group by t2.color_description 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.