question
stringlengths
14
216
context
stringlengths
45
458
answer
stringlengths
18
463
How many dollars is the revenue when the net profit is 55.4 million dollars?
create table table_18077713_1 (revenue__us_$million_ varchar, net_profit__us_$m_ varchar, PRIMARY KEY (revenue__us_$million_))
select revenue__us_$million_ from table_18077713_1 where net_profit__us_$m_ = "55.4"
what is the original air date for julie warner?
create table table_26561498_1 (original_air_date varchar, patient_portrayer varchar, PRIMARY KEY (original_air_date))
select original_air_date from table_26561498_1 where patient_portrayer = "julie warner"
What's the order number of the song originally performed by Rickie Lee Jones?
create table table_12310814_1 (order__number varchar, original_artist varchar, PRIMARY KEY (order__number))
select order__number from table_12310814_1 where original_artist = "rickie lee jones"
How many different total results are there for the model with parchment/black interior/roof?
create table table_2066296_5 (totals varchar, interior_roof varchar, PRIMARY KEY (totals))
select count(totals) from table_2066296_5 where interior_roof = "parchment/black"
Name the record for golden state
create table table_23186738_6 (record varchar, team varchar, PRIMARY KEY (record))
select record from table_23186738_6 where team = "golden state"
Find the payment method and phone of the party with email "[email protected]".
create table parties (payment_method_code varchar, party_phone varchar, party_email varchar, PRIMARY KEY (payment_method_code))
select payment_method_code, party_phone from parties where party_email = "[email protected]"
What week did the member who's original tribe was shark and who was sent to the third island on week 14 arrive on the main island?
create table table_11764007_2 (week_arrived_on_main_island varchar, original_tribe varchar, week_sent_to_third_island varchar, PRIMARY KEY (week_arrived_on_main_island))
select week_arrived_on_main_island from table_11764007_2 where original_tribe = "shark" and week_sent_to_third_island = "14"
what's the village with wine style being red wine and vineyard surface (2010) being hectares (acres)
create table table_13981938_1 (village varchar, wine_style varchar, vineyard_surface__2010_ varchar, PRIMARY KEY (village))
select village from table_13981938_1 where wine_style = "red wine" and vineyard_surface__2010_ = "hectares (acres)"
What is the fastest lap for the european grand prix?
create table table_1132588_3 (fastest_lap varchar, grand_prix varchar, PRIMARY KEY (fastest_lap))
select fastest_lap from table_1132588_3 where grand_prix = "european grand_prix"
For small patent type of protections, what type of PCT route is available?
create table table_2279413_1 (pct_route_available varchar, type_of_protection varchar, PRIMARY KEY (pct_route_available))
select pct_route_available from table_2279413_1 where type_of_protection = "small patent"
What's the title of the episode written by Harry Winkler?
create table table_2342078_5 (title varchar, written_by varchar, PRIMARY KEY (title))
select title from table_2342078_5 where written_by = "harry winkler"
How many submissions are there?
create table submission (id varchar, PRIMARY KEY (id))
select count(*) from submission
what type of school is the institution nicknamed seminoles?
create table table_28744929_1 (school_type varchar, nickname varchar, PRIMARY KEY (school_type))
select school_type from table_28744929_1 where nickname = "seminoles"
What are the register ids of electoral registries that have the cross reference source system code 'Electoral' or 'Tax'?
create table electoral_register (electoral_register_id varchar, cmi_cross_ref_id varchar, PRIMARY KEY (electoral_register_id)); create table cmi_cross_references (cmi_cross_ref_id varchar, source_system_code varchar, PRIMARY KEY (cmi_cross_ref_id))
select t1.electoral_register_id from electoral_register as t1 join cmi_cross_references as t2 on t1.cmi_cross_ref_id = t2.cmi_cross_ref_id where t2.source_system_code = 'electoral' or t2.source_system_code = 'tax'
What is the name of the column points against?
create table table_13564637_4 (id varchar, PRIMARY KEY (id))
select "points" as _against from table_13564637_4 where "points" = "points"
What date did the episode that had 1.023 million u.s. viewers originally air?
create table table_24223834_3 (original_air_date varchar, us_viewers__in_millions_ varchar, PRIMARY KEY (original_air_date))
select original_air_date from table_24223834_3 where us_viewers__in_millions_ = "1.023"
When Vincennes is the county seat what is the area sq mi (km 2 ) (rank) ?
create table table_14253123_1 (area_sq_mi__km_2____rank_ varchar, county_seat varchar, PRIMARY KEY (area_sq_mi__km_2____rank_))
select area_sq_mi__km_2____rank_ from table_14253123_1 where county_seat = "vincennes"
Which professional did not operate any treatment on dogs? List the professional's id, role and email.
create table professionals (professional_id varchar, role_code varchar, email_address varchar, PRIMARY KEY (professional_id)); create table treatments (professional_id varchar, PRIMARY KEY (professional_id))
select professional_id, role_code, email_address from professionals except select t1.professional_id, t1.role_code, t1.email_address from professionals as t1 join treatments as t2 on t1.professional_id = t2.professional_id
What's the original airdate of the episode directed by Pete Travis?
create table table_12919003_3 (original_airdate varchar, director varchar, PRIMARY KEY (original_airdate))
select original_airdate from table_12919003_3 where director = "pete travis"
How many seats were there in 2001 when there were 11 seats in 2006?
create table table_21132404_1 (seats_2001 integer, seats_2006 varchar, PRIMARY KEY (seats_2001))
select min(seats_2001) from table_21132404_1 where seats_2006 = 11
Find the number of web accelerators used for each Operating system.
create table web_client_accelerator (operating_system varchar, PRIMARY KEY (operating_system))
select operating_system, count(*) from web_client_accelerator group by operating_system
Who got high rebounds when Jordan Crawford (27) got high points?
create table table_27721131_10 (high_rebounds varchar, high_points varchar, PRIMARY KEY (high_rebounds))
select high_rebounds from table_27721131_10 where high_points = "jordan crawford (27)"
What is the Nationality when the club team is Peterborough Petes (OHL)?
create table table_11803648_20 (nationality varchar, club_team varchar, PRIMARY KEY (nationality))
select nationality from table_11803648_20 where club_team = "peterborough petes (ohl)"
Who directed the episode that had 12.88 million viewers?
create table table_25923164_1 (directed_by varchar, us_viewers__million_ varchar, PRIMARY KEY (directed_by))
select directed_by from table_25923164_1 where us_viewers__million_ = "12.88"
What is the protein name when the e-value is 2.50e-41?
create table table_26708105_5 (protein_name varchar, e_value varchar, PRIMARY KEY (protein_name))
select protein_name from table_26708105_5 where e_value = "2.50e-41"
Name the language for sopachuy 10
create table table_2509350_3 (language varchar, sopachuy_municipality varchar, PRIMARY KEY (language))
select language from table_2509350_3 where sopachuy_municipality = 10
Show each gender code and the corresponding count of guests sorted by the count in descending order.
create table guests (gender_code varchar, PRIMARY KEY (gender_code))
select gender_code, count(*) from guests group by gender_code order by count(*) desc
Where is the university located that's nicknamed the Wolves?
create table table_16078390_2 (location varchar, team_nickname varchar, PRIMARY KEY (location))
select location from table_16078390_2 where team_nickname = "wolves"
How many directors worked on the episode with 2.27m (5) is the ratings?
create table table_2430014_8 (directed_by varchar, uk_ratings__bbc2_rank_ varchar, PRIMARY KEY (directed_by))
select count(directed_by) from table_2430014_8 where uk_ratings__bbc2_rank_ = "2.27m (5)"
What is the category for trains numbered 16609/16610?
create table table_21716139_1 (category varchar, train_no varchar, PRIMARY KEY (category))
select category from table_21716139_1 where train_no = "16609/16610"
What is the name of the softball stadium for the school that has Eastern Baseball Stadium?
create table table_1974545_3 (softball_stadium varchar, baseball_stadium varchar, PRIMARY KEY (softball_stadium))
select softball_stadium from table_1974545_3 where baseball_stadium = "eastern baseball stadium"
What is the market income per capita in a county where the status is distressed and the unemployment rate is at 10.5%?
create table table_22815568_3 (market_income_per_capita varchar, status varchar, unemployment_rate varchar, PRIMARY KEY (market_income_per_capita))
select market_income_per_capita from table_22815568_3 where status = "distressed" and unemployment_rate = "10.5%"
When it's the 2nd round of the open cup what is the playoffs?
create table table_1939235_1 (playoffs varchar, open_cup varchar, PRIMARY KEY (playoffs))
select playoffs from table_1939235_1 where open_cup = "2nd round"
How many seats were forfeited in the revolutionary socialist party?
create table table_20728138_1 (seats_forfeited varchar, party varchar, PRIMARY KEY (seats_forfeited))
select count(seats_forfeited) from table_20728138_1 where party = "revolutionary socialist party"
List the number of different series names and contents in the TV Channel table.
create table tv_channel (series_name varchar, content varchar, PRIMARY KEY (series_name))
select count(distinct series_name), count(distinct content) from tv_channel
Who wrote the episode what had the rating 2.27m (5)?
create table table_2430014_8 (written_by varchar, uk_ratings__bbc2_rank_ varchar, PRIMARY KEY (written_by))
select written_by from table_2430014_8 where uk_ratings__bbc2_rank_ = "2.27m (5)"
What 2011 GDP (PPP) billions of USD does Israel have?
create table table_2248784_4 (country varchar, PRIMARY KEY (country))
select 2011 as _gdp__ppp__billions_of_usd from table_2248784_4 where country = "israel"
What was the maximum rank-final score on the floor exercise?
create table table_26681728_1 (rank_final integer, apparatus varchar, PRIMARY KEY (rank_final))
select max(rank_final) from table_26681728_1 where apparatus = "floor exercise"
What was the Tuesday episode if theThursday episode was 196 Buried?
create table table_18173916_6 (tuesday varchar, thursday varchar, PRIMARY KEY (tuesday))
select tuesday from table_18173916_6 where thursday = "196 buried"
How many episodes were written by Alison McDonald?
create table table_26961951_4 (directed_by varchar, written_by varchar, PRIMARY KEY (directed_by))
select count(directed_by) from table_26961951_4 where written_by = "alison mcdonald"
Find the title of course that is provided by Statistics but not Psychology departments.
create table course (title varchar, dept_name varchar, PRIMARY KEY (title))
select title from course where dept_name = 'statistics' except select title from course where dept_name = 'psychology'
wich were the events when bout 2 was zhang ( chn ) l 0-5?
create table table_19398910_4 (event varchar, bout_2 varchar, PRIMARY KEY (event))
select event from table_19398910_4 where bout_2 = "zhang ( chn ) l 0-5"
Where did adrian smith go to college?
create table table_26916717_1 (team_school varchar, name varchar, PRIMARY KEY (team_school))
select team_school from table_26916717_1 where name = "adrian smith"
What was the preliminary average for Miss Mississippi?
create table table_16323766_3 (preliminary_average varchar, state varchar, PRIMARY KEY (preliminary_average))
select preliminary_average from table_16323766_3 where state = "mississippi"
List the id and type of each thing, and the details of the organization that owns it.
create table organizations (organization_details varchar, organization_id varchar, PRIMARY KEY (organization_details)); create table things (thing_id varchar, type_of_thing_code varchar, organization_id varchar, PRIMARY KEY (thing_id))
select t1.thing_id, t1.type_of_thing_code, t2.organization_details from things as t1 join organizations as t2 on t1.organization_id = t2.organization_id
Which projects have no outcome? List the project details.
create table project_outcomes (project_details varchar, project_id varchar, PRIMARY KEY (project_details)); create table projects (project_details varchar, project_id varchar, PRIMARY KEY (project_details))
select project_details from projects where not project_id in (select project_id from project_outcomes)
What was the event when suárez ( tri ) w 16–6 was round of 32?
create table table_27294107_11 (event varchar, round_of_32 varchar, PRIMARY KEY (event))
select event from table_27294107_11 where round_of_32 = "suárez ( tri ) w 16–6"
Show the start dates and end dates of all the apartment bookings.
create table apartment_bookings (booking_start_date varchar, booking_end_date varchar, PRIMARY KEY (booking_start_date))
select booking_start_date, booking_end_date from apartment_bookings
Name the vacator for died august 13, 1826
create table table_225102_4 (vacator varchar, reason_for_change varchar, PRIMARY KEY (vacator))
select vacator from table_225102_4 where reason_for_change = "died august 13, 1826"
What is every construction date for the registration of HB-HOS?
create table table_22180353_1 (construction varchar, registration varchar, PRIMARY KEY (construction))
select construction as date from table_22180353_1 where registration = "hb-hos"
Name the total number of nicknames for andrew college
create table table_16734640_1 (nickname varchar, institution varchar, PRIMARY KEY (nickname))
select count(nickname) from table_16734640_1 where institution = "andrew college"
Which team appointed a person on 23 December 2008?
create table table_18788823_5 (team varchar, date_of_appointment varchar, PRIMARY KEY (team))
select team from table_18788823_5 where date_of_appointment = "23 december 2008"
how many party with candidates being alton lennon (d) 89.0% c. dana malpass (r) 11.0%
create table table_1341930_33 (party varchar, candidates varchar, PRIMARY KEY (party))
select count(party) from table_1341930_33 where candidates = "alton lennon (d) 89.0% c. dana malpass (r) 11.0%"
When 127 is on June 10th to 11th what is November 3rd?
create table table_25286976_2 (november_3 varchar, june_10_11 varchar, PRIMARY KEY (november_3))
select november_3 from table_25286976_2 where june_10_11 = "127"
what is kannada name ಕನ್ನಡ of tamil name தமிழ் anusham அனுஷம்
create table table_201400_2 (kannada_name_ಕನ್ನಡ varchar, tamil_name_தமிழ் varchar, PRIMARY KEY (kannada_name_ಕನ್ನಡ))
select kannada_name_ಕನ್ನಡ from table_201400_2 where tamil_name_தமிழ் = "anusham அனுஷம்"
List the document type code, document name, and document description for the document with name 'Noel CV' or name 'King Book'.
create table documents (document_type_code varchar, document_name varchar, document_description varchar, PRIMARY KEY (document_type_code))
select document_type_code, document_name, document_description from documents where document_name = 'noel cv' or document_name = 'king book'
What is the genre name of the film HUNGER ROOF?
create table film_category (category_id varchar, film_id varchar, PRIMARY KEY (category_id)); create table film (film_id varchar, title varchar, PRIMARY KEY (film_id)); create table category (name varchar, category_id varchar, PRIMARY KEY (name))
select t1.name from category as t1 join film_category as t2 on t1.category_id = t2.category_id join film as t3 on t2.film_id = t3.film_id where t3.title = 'hunger roof'
When tony kanaan is the driver what is the average speed miles per hour?
create table table_1771753_3 (average_speed__mph_ varchar, driver varchar, PRIMARY KEY (average_speed__mph_))
select average_speed__mph_ from table_1771753_3 where driver = "tony kanaan"
Who did the high rebounds in the game with a 19-6 record?
create table table_18894744_6 (high_rebounds varchar, record varchar, PRIMARY KEY (high_rebounds))
select high_rebounds from table_18894744_6 where record = "19-6"
What was the emission rating in California for the vehicle that was rated 80 g/mi (50 g/km) in Alaska and 250 g/mi (155 g/km) in the Southeast ?
create table table_16105186_2 (california__san_francisco_ varchar, alaska___juneau__ varchar, southeast__atlanta_ varchar, PRIMARY KEY (california__san_francisco_))
select california__san_francisco_ from table_16105186_2 where alaska___juneau__ = "80 g/mi (50 g/km)" and southeast__atlanta_ = "250 g/mi (155 g/km)"
What is the coding for hq021442 genbankid?
create table table_14332822_1 (coding varchar, genbank_id varchar, PRIMARY KEY (coding))
select coding from table_14332822_1 where genbank_id = "hq021442"
How many types are cardio?
create table table_27512025_1 (program varchar, type varchar, PRIMARY KEY (program))
select count(program) from table_27512025_1 where type = "cardio"
How many models do not have the wifi function?
create table chip_model (wifi varchar, PRIMARY KEY (wifi))
select count(*) from chip_model where wifi = 'no'
Did the I Brazilian Grand Prix have a report?
create table table_1140088_6 (report varchar, race_name varchar, PRIMARY KEY (report))
select report from table_1140088_6 where race_name = "i brazilian grand prix"
What was the type of ballot measure with the description of Department of Industry and Public Works Amendment?
create table table_256286_8 (type varchar, description varchar, PRIMARY KEY (type))
select type from table_256286_8 where description = "department of industry and public works amendment"
When north american record is the world record who is the denis nizhegorodov ( rus )?
create table table_24059973_3 (denis_nizhegorodov___rus__ varchar, world_record varchar, PRIMARY KEY (denis_nizhegorodov___rus__))
select denis_nizhegorodov___rus__ from table_24059973_3 where world_record = "north american record"
Who wrote the episode with 3.96 million US viewers?
create table table_2866514_1 (written_by varchar, us_viewers__million_ varchar, PRIMARY KEY (written_by))
select written_by from table_2866514_1 where us_viewers__million_ = "3.96"
What are the titles of segment c for series episode is 21-08?
create table table_15187735_21 (segment_c varchar, series_ep varchar, PRIMARY KEY (segment_c))
select segment_c from table_15187735_21 where series_ep = "21-08"
What is the home team where the San Jose state is the visiting team?
create table table_26842217_4 (home_team varchar, visiting_team varchar, PRIMARY KEY (home_team))
select home_team from table_26842217_4 where visiting_team = "san jose state"
What team appointed a manager on 12 June?
create table table_17327458_1 (team varchar, date_of_appointment varchar, PRIMARY KEY (team))
select team from table_17327458_1 where date_of_appointment = "12 june"
List the names, phone numbers, and emails of all customers sorted by their dates of becoming customers.
create table customers (customer_name varchar, customer_phone varchar, customer_email varchar, date_became_customer varchar, PRIMARY KEY (customer_name))
select customer_name, customer_phone, customer_email from customers order by date_became_customer
In what prefecture is Daito located?
create table table_2518850_4 (prefecture varchar, city_town varchar, PRIMARY KEY (prefecture))
select prefecture from table_2518850_4 where city_town = "daito"
How many metropolitan boroughs have dorridge as a station?
create table table_15366849_1 (c_ varchar, metropolitan_borough_ varchar, station varchar, PRIMARY KEY (c_))
select count(metropolitan_borough_)[c_] from table_15366849_1 where station = "dorridge"
Who were the candidates in the district where Charlie Norwood is the incumbent?
create table table_1341472_12 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates))
select candidates from table_1341472_12 where incumbent = "charlie norwood"
What is the record for the game against team @ Minnesota?
create table table_27713583_2 (record varchar, team varchar, PRIMARY KEY (record))
select record from table_27713583_2 where team = "@ minnesota"
Which countries has the most number of airlines?
create table airlines (country varchar, PRIMARY KEY (country))
select country from airlines group by country order by count(*) desc limit 1
when coverage is dumaguete central visayas region, what is the callsign?
create table table_24418525_1 (callsign varchar, coverage varchar, PRIMARY KEY (callsign))
select callsign from table_24418525_1 where coverage = "dumaguete central visayas region"
Who was featured in 20 questions when the subject of the interview was Mike Piazza?
create table table_1566852_4 (interview_subject varchar, PRIMARY KEY (interview_subject))
select 20 as _questions from table_1566852_4 where interview_subject = "mike piazza"
What is the GVW for model 97H00?
create table table_20866024_4 (gvw__kg_ton_ varchar, model_designation varchar, PRIMARY KEY (gvw__kg_ton_))
select gvw__kg_ton_ from table_20866024_4 where model_designation = "97h00"
List the names of all distinct wines in alphabetical order.
create table wine (name varchar, PRIMARY KEY (name))
select distinct name from wine order by name
What is the percentage of literate people where india is andaman and Nicobar Islands?
create table table_14598_9 (literate_persons___percentage_ varchar, india_state_ut varchar, PRIMARY KEY (literate_persons___percentage_))
select literate_persons___percentage_ from table_14598_9 where india_state_ut = "andaman and nicobar islands"
What are the numbers of constructors for different nationalities?
create table constructors (nationality varchar, PRIMARY KEY (nationality))
select count(*), nationality from constructors group by nationality
List all the information about course authors and tutors in alphabetical order of the personal name.
create table course_authors_and_tutors (personal_name varchar, PRIMARY KEY (personal_name))
select * from course_authors_and_tutors order by personal_name
How many results did the GT1 Winning Team No. 50 Larbre Compétition on the Algarve circuit?
create table table_24865763_2 (results varchar, circuit varchar, gt1_winning_team varchar, PRIMARY KEY (results))
select count(results) from table_24865763_2 where circuit = "algarve" and gt1_winning_team = "no. 50 larbre compétition"
What is the brightest star of the constellation that means archer?
create table table_287159_1 (brightest_star varchar, meaning varchar, PRIMARY KEY (brightest_star))
select brightest_star from table_287159_1 where meaning = "archer"
Which countries in europe have at least 3 car manufacturers?
create table countries (countryname varchar, continent varchar, countryid varchar, PRIMARY KEY (countryname)); create table continents (contid varchar, continent varchar, PRIMARY KEY (contid)); create table car_makers (country varchar, PRIMARY KEY (country))
select t1.countryname from countries as t1 join continents as t2 on t1.continent = t2.contid join car_makers as t3 on t1.countryid = t3.country where t2.continent = 'europe' group by t1.countryname having count(*) >= 3
For short patent type of protections, what type of PCT route is available?
create table table_2279413_1 (pct_route_available varchar, type_of_protection varchar, PRIMARY KEY (pct_route_available))
select pct_route_available from table_2279413_1 where type_of_protection = "short patent"
What is the air date for the episode written by Wendy Battles and directed by Oz Scott
create table table_11665016_2 (original_air_date varchar, written_by varchar, directed_by varchar, PRIMARY KEY (original_air_date))
select original_air_date from table_11665016_2 where written_by = "wendy battles" and directed_by = "oz scott"
Which nationality is kitchener rangers (ohl) college/junior/club team?
create table table_21721351_18 (nationality varchar, college_junior_club_team varchar, PRIMARY KEY (nationality))
select nationality from table_21721351_18 where college_junior_club_team = "kitchener rangers (ohl)"
What percentage is listed in column r1b1c (r-v88) for the 4.5% total percentage?
create table table_21481509_4 (r1b1c__r_v88_ varchar, total_percentage varchar, PRIMARY KEY (r1b1c__r_v88_))
select r1b1c__r_v88_ from table_21481509_4 where total_percentage = "4.5%"
When were the callback auditions for the audition city in the episode aired on February 9, 2011?
create table table_27455867_1 (callback_audition_date varchar, episode_air_date varchar, PRIMARY KEY (callback_audition_date))
select callback_audition_date from table_27455867_1 where episode_air_date = "february 9, 2011"
How many students attend course English?
create table student_course_attendance (course_id varchar, PRIMARY KEY (course_id)); create table courses (course_id varchar, course_name varchar, PRIMARY KEY (course_id))
select count(*) from courses as t1 join student_course_attendance as t2 on t1.course_id = t2.course_id where t1.course_name = "english"
What is the 2011 number (,000) when the status is separated?
create table table_273617_6 (status varchar, PRIMARY KEY (status))
select 2011 as _number__, 000 as _ from table_273617_6 where status = "separated"
What party was Lane Evans?
create table table_1341568_14 (party varchar, incumbent varchar, PRIMARY KEY (party))
select party from table_1341568_14 where incumbent = "lane evans"
Which club was originally named the newcastle falcons?
create table table_26218124_1 (original_club varchar, name varchar, PRIMARY KEY (original_club))
select original_club from table_26218124_1 where name = "newcastle falcons"
What is the reunion weight of the contestant who lost 74.4 lbs at the finale?
create table table_28654454_5 (reunion_weight varchar, lbs_lost_finale varchar, PRIMARY KEY (reunion_weight))
select reunion_weight from table_28654454_5 where lbs_lost_finale = "74.4"
How many sound engineers were there for law hakon '3er leek?
create table table_28005100_1 (sound_engineer varchar, title varchar, PRIMARY KEY (sound_engineer))
select count(sound_engineer) from table_28005100_1 where title = "law hakon '3er leek"
The fighting knights has what type of nickname?
create table table_1183842_1 (type varchar, nickname varchar, PRIMARY KEY (type))
select type from table_1183842_1 where nickname = "fighting knights"
Name the population for 2002 being ada
create table table_2562572_5 (population__2002_ integer, urban_settlement varchar, PRIMARY KEY (population__2002_))
select min(population__2002_) from table_2562572_5 where urban_settlement = "ada"
What are the product ids for the problems reported by Christop Berge with closure authorised by Ashley Medhurst?
create table problems (reported_by_staff_id varchar, closure_authorised_by_staff_id varchar, PRIMARY KEY (reported_by_staff_id)); create table staff (staff_id varchar, staff_first_name varchar, staff_last_name varchar, PRIMARY KEY (staff_id))
select product_id from problems as t1 join staff as t2 on t1.reported_by_staff_id = t2.staff_id where t2.staff_first_name = "christop" and t2.staff_last_name = "berge" intersect select product_id from problems as t1 join staff as t2 on t1.closure_authorised_by_staff_id = t2.staff_id where t2.staff_first_name = "ashley" and t2.staff_last_name = "medhurst"