question
stringlengths 14
216
| context
stringlengths 45
458
| answer
stringlengths 18
463
|
---|---|---|
How many technicians are there? | create table technician (id varchar, PRIMARY KEY (id)) | select count(*) from technician |
state the skating song of graeme & kristina | create table table_19744915_3 (skating_song varchar, couple varchar, PRIMARY KEY (skating_song)) | select skating_song from table_19744915_3 where couple = "graeme & kristina" |
Farr Yacht Design designed boats for how many country/flags? | create table table_19872699_1 (flag varchar, design_firm varchar, PRIMARY KEY (flag)) | select count(flag) from table_19872699_1 where design_firm = "farr yacht design" |
What is segment C in s07e05 | create table table_15187735_14 (segment_c varchar, netflix varchar, PRIMARY KEY (segment_c)) | select segment_c from table_15187735_14 where netflix = "s07e05" |
find the name of driver who is driving the school bus with the longest working history. | create table school_bus (driver_id varchar, PRIMARY KEY (driver_id)); create table driver (name varchar, driver_id varchar, PRIMARY KEY (name)) | select t1.name from driver as t1 join school_bus as t2 on t1.driver_id = t2.driver_id order by years_working desc limit 1 |
What is the song choice where the original artist is Gino Paoli? | create table table_25374338_1 (song_choice varchar, original_artist varchar, PRIMARY KEY (song_choice)) | select count(song_choice) from table_25374338_1 where original_artist = "gino paoli" |
Name the category for 50 totals | create table table_26611679_3 (category varchar, totals varchar, PRIMARY KEY (category)) | select category from table_26611679_3 where totals = "50" |
Show different teams in eliminations and the number of eliminations from each team. | create table elimination (team varchar, PRIMARY KEY (team)) | select team, count(*) from elimination group by team |
Show the medicine names and trade names that cannot interact with the enzyme with product 'Heme'. | create table medicine (name varchar, trade_name varchar, PRIMARY KEY (name)); create table medicine_enzyme_interaction (medicine_id varchar, enzyme_id varchar, PRIMARY KEY (medicine_id)); create table medicine (name varchar, trade_name varchar, id varchar, PRIMARY KEY (name)); create table enzyme (id varchar, product varchar, PRIMARY KEY (id)) | select name, trade_name from medicine except select t1.name, t1.trade_name from medicine as t1 join medicine_enzyme_interaction as t2 on t2.medicine_id = t1.id join enzyme as t3 on t3.id = t2.enzyme_id where t3.product = 'protoporphyrinogen ix' |
Find all the female members of club "Bootup Baltimore". Show the first name and last name. | create table club (clubid varchar, clubname varchar, PRIMARY KEY (clubid)); create table student (fname varchar, lname varchar, stuid varchar, sex varchar, PRIMARY KEY (fname)); create table member_of_club (clubid varchar, stuid varchar, PRIMARY KEY (clubid)) | select t3.fname, t3.lname from club as t1 join member_of_club as t2 on t1.clubid = t2.clubid join student as t3 on t2.stuid = t3.stuid where t1.clubname = "bootup baltimore" and t3.sex = "f" |
What is the debut album for the artist with the winning song kemenangan hati? | create table table_1646960_3 (debut_album varchar, winning_song varchar, PRIMARY KEY (debut_album)) | select debut_album from table_1646960_3 where winning_song = "kemenangan hati" |
How many high points occur with the team Umass? | create table table_29556461_9 (high_points varchar, team varchar, PRIMARY KEY (high_points)) | select count(high_points) from table_29556461_9 where team = "umass" |
What is the characteristic name used by most number of the products? | create table products (product_id varchar, PRIMARY KEY (product_id)); create table characteristics (characteristic_name varchar, characteristic_id varchar, PRIMARY KEY (characteristic_name)); create table product_characteristics (product_id varchar, characteristic_id varchar, PRIMARY KEY (product_id)) | select t3.characteristic_name from products as t1 join product_characteristics as t2 on t1.product_id = t2.product_id join characteristics as t3 on t2.characteristic_id = t3.characteristic_id group by t3.characteristic_name order by count(*) desc limit 1 |
The common of Chieri has what population density? | create table table_1449176_1 (density__inhabitants_km_2__ varchar, common_of varchar, PRIMARY KEY (density__inhabitants_km_2__)) | select density__inhabitants_km_2__ from table_1449176_1 where common_of = "chieri" |
What is the poor law union of the Ardacrow townland? | create table table_30121046_1 (poor_law_union varchar, townland varchar, PRIMARY KEY (poor_law_union)) | select poor_law_union from table_30121046_1 where townland = "ardacrow" |
How many customers have an active value of 1? | create table customer (active varchar, PRIMARY KEY (active)) | select count(*) from customer where active = '1' |
What area was damaged when King Khalid Military City was targeted? | create table table_23014685_1 (area_damaged varchar, target varchar, PRIMARY KEY (area_damaged)) | select area_damaged from table_23014685_1 where target = "king khalid military city" |
On November 14, 2007, how many different Republican: Jeff Sessions are there? | create table table_16751596_12 (republican varchar, dates_administered varchar, PRIMARY KEY (republican)) | select count(republican) as :_jeff_sessions from table_16751596_12 where dates_administered = "november 14, 2007" |
How did Stella Farentino die? | create table table_24143253_2 (cause_of_death varchar, name varchar, PRIMARY KEY (cause_of_death)) | select cause_of_death from table_24143253_2 where name = "stella farentino" |
Which room has the highest rate? List the room's full name, rate, check in and check out date. | create table rooms (roomname varchar, roomid varchar, PRIMARY KEY (roomname)); create table reservations (rate varchar, checkin varchar, checkout varchar, room varchar, PRIMARY KEY (rate)) | select t2.roomname, t1.rate, t1.checkin, t1.checkout from reservations as t1 join rooms as t2 on t1.room = t2.roomid group by t1.room order by t1.rate desc limit 1 |
What is the muzzle device on the colt model le1020? | create table table_12834315_5 (muzzle_device varchar, colt_model_no varchar, PRIMARY KEY (muzzle_device)) | select muzzle_device from table_12834315_5 where colt_model_no = "le1020" |
Which film had Charles Bickford as supporting actor? | create table table_24225238_1 (film varchar, supporting_actor varchar, PRIMARY KEY (film)) | select film from table_24225238_1 where supporting_actor = "charles bickford" |
What are the start and end dates for incidents with incident type code "NOISE"? | create table behavior_incident (date_incident_start varchar, date_incident_end varchar, incident_type_code varchar, PRIMARY KEY (date_incident_start)) | select date_incident_start, date_incident_end from behavior_incident where incident_type_code = "noise" |
What is the winning pct for jersey 15? | create table table_14389782_2 (winning_pct varchar, jersey_no varchar, PRIMARY KEY (winning_pct)) | select winning_pct from table_14389782_2 where jersey_no = "15" |
How many institutions do not have an associated protein in our record? | create table protein (institution_id varchar, PRIMARY KEY (institution_id)); create table institution (institution_id varchar, PRIMARY KEY (institution_id)) | select count(*) from institution where not institution_id in (select institution_id from protein) |
What is the name of the episode that had 2.02 million u.s. viewers? | create table table_27892955_1 (title varchar, us_viewers__million_ varchar, PRIMARY KEY (title)) | select title from table_27892955_1 where us_viewers__million_ = "2.02" |
Who did the high assists in the game against Portland? | create table table_23248869_6 (high_assists varchar, team varchar, PRIMARY KEY (high_assists)) | select high_assists from table_23248869_6 where team = "portland" |
List the first name of all the professionals along with the description of the treatment they have done. | create table treatments (professional_id varchar, treatment_type_code varchar, PRIMARY KEY (professional_id)); create table treatment_types (treatment_type_description varchar, treatment_type_code varchar, PRIMARY KEY (treatment_type_description)); create table professionals (first_name varchar, professional_id varchar, PRIMARY KEY (first_name)) | select distinct t1.first_name, t3.treatment_type_description from professionals as t1 join treatments as t2 on t1.professional_id = t2.professional_id join treatment_types as t3 on t2.treatment_type_code = t3.treatment_type_code |
In what laguage was Contotv 5? | create table table_15887683_19 (language varchar, television_service varchar, PRIMARY KEY (language)) | select language from table_15887683_19 where television_service = "contotv 5" |
who is the the winning driver with pole position being paul tracy and race name being miller genuine draft 200 | create table table_14638077_2 (winning_driver varchar, pole_position varchar, race_name varchar, PRIMARY KEY (winning_driver)) | select winning_driver from table_14638077_2 where pole_position = "paul tracy" and race_name = "miller genuine draft 200" |
How many semifinalists has Romania had? | create table table_30008638_1 (semifinalists varchar, country_territory varchar, PRIMARY KEY (semifinalists)) | select semifinalists from table_30008638_1 where country_territory = "romania" |
Who were the away teams when the competition was the 1st ``republic of srpska football day`` and the home team was u 14 republic of srpska? | create table table_29728596_2 (away_team varchar, competition varchar, home_team varchar, PRIMARY KEY (away_team)) | select away_team from table_29728596_2 where competition = "1st ``republic of srpska football day``" and home_team = "u 14 republic of srpska" |
For outgoing manager is alberto malesani mention all the applicable replaced by person | create table table_27114708_2 (replaced_by varchar, outgoing_manager varchar, PRIMARY KEY (replaced_by)) | select replaced_by from table_27114708_2 where outgoing_manager = "alberto malesani" |
what is the number of different channel owners? | create table channel (owner varchar, PRIMARY KEY (owner)) | select count(distinct owner) from channel |
The episode with the original airdate October 8, 2010, is directed by who? | create table table_26982362_2 (directed_by varchar, original_airdate varchar, PRIMARY KEY (directed_by)) | select directed_by from table_26982362_2 where original_airdate = "october 8, 2010" |
What is the percentage of total area in the ecozone that the percentage protected is 8.06? | create table table_15555661_2 (percentage_of_total_area varchar, percentage_protected varchar, PRIMARY KEY (percentage_of_total_area)) | select percentage_of_total_area from table_15555661_2 where percentage_protected = "8.06" |
How many members are there? | create table member (id varchar, PRIMARY KEY (id)) | select count(*) from member |
What is the hometown of Jarrid Famous? | create table table_29418619_1 (hometown varchar, name varchar, PRIMARY KEY (hometown)) | select hometown from table_29418619_1 where name = "jarrid famous" |
Who was the winner of the race at barbagallo raceway? | create table table_20884160_1 (winner varchar, circuit varchar, PRIMARY KEY (winner)) | select winner from table_20884160_1 where circuit = "barbagallo raceway" |
what's the founder where moderate is ether | create table table_11256021_1 (founder varchar, moderate varchar, PRIMARY KEY (founder)) | select founder from table_11256021_1 where moderate = "ether" |
Provide me with the name of all the village (German) that are part of the village (Slovenian) with sele borovnica. | create table table_10798421_1 (village__german_ varchar, village__slovenian_ varchar, PRIMARY KEY (village__german_)) | select village__german_ from table_10798421_1 where village__slovenian_ = "sele borovnica" |
Show the first names and last names of all the guests that have apartment bookings with status code "Confirmed". | create table apartment_bookings (guest_id varchar, booking_status_code varchar, PRIMARY KEY (guest_id)); create table guests (guest_first_name varchar, guest_last_name varchar, guest_id varchar, PRIMARY KEY (guest_first_name)) | select t2.guest_first_name, t2.guest_last_name from apartment_bookings as t1 join guests as t2 on t1.guest_id = t2.guest_id where t1.booking_status_code = "confirmed" |
Where the total trade is 14,954.86, what are the exports? | create table table_26160007_1 (exports varchar, total_trade varchar, PRIMARY KEY (exports)) | select exports from table_26160007_1 where total_trade = "14,954.86" |
What was the team's position when the new manager was Lucas Alcaraz? | create table table_17201869_3 (position_in_table varchar, replaced_by varchar, PRIMARY KEY (position_in_table)) | select position_in_table from table_17201869_3 where replaced_by = "lucas alcaraz" |
Where the height range is higher than 20000.0 and the shell weight is 12.5, what is the time to feet ratio at 25 degrees? | create table table_16439764_1 (time_to_ft__m__at_25°__seconds_ varchar, shell__lb_ varchar, max_height__ft_ varchar, PRIMARY KEY (time_to_ft__m__at_25°__seconds_)) | select time_to_ft__m__at_25°__seconds_ from table_16439764_1 where shell__lb_ = "12.5" and max_height__ft_ > 20000.0 |
Which location names contain the word "film"? | create table locations (location_name varchar, PRIMARY KEY (location_name)) | select location_name from locations where location_name like "%film%" |
List all club names in descending alphabetical order. | create table club (name varchar, PRIMARY KEY (name)) | select name from club order by name desc |
What is the title of the episode written by daniel sackheim? | create table table_2618061_1 (title varchar, directed_by varchar, PRIMARY KEY (title)) | select title from table_2618061_1 where directed_by = "daniel sackheim" |
How many members have the black membership card? | create table member (membership_card varchar, PRIMARY KEY (membership_card)) | select count(*) from member where membership_card = 'black' |
What was the game record if Marcus Camby (13) got the high rebounds? | create table table_27734769_9 (record varchar, high_rebounds varchar, PRIMARY KEY (record)) | select record from table_27734769_9 where high_rebounds = "marcus camby (13)" |
Find the number of routes operated by American Airlines. | create table routes (alid varchar, PRIMARY KEY (alid)); create table airlines (alid varchar, name varchar, PRIMARY KEY (alid)) | select count(*) from airlines as t1 join routes as t2 on t1.alid = t2.alid where t1.name = 'american airlines' |
List population when their car plates are 30-34. | create table table_11654169_1 (population_in_1000__1931_ varchar, car_plates__since_1937_ varchar, PRIMARY KEY (population_in_1000__1931_)) | select population_in_1000__1931_ from table_11654169_1 where car_plates__since_1937_ = "30-34" |
What is the song released by Travis? | create table table_25760427_2 (single varchar, artist varchar, PRIMARY KEY (single)) | select single from table_25760427_2 where artist = "travis" |
How many tourist arrivals occurred in 2011 in the country of Italy? | create table table_14752049_1 (international_tourist_arrivals__2011_ varchar, country varchar, PRIMARY KEY (international_tourist_arrivals__2011_)) | select international_tourist_arrivals__2011_ from table_14752049_1 where country = "italy" |
What are the title(s) of episodes directed by david solomon and written by marti noxon? | create table table_28195971_1 (title varchar, directed_by varchar, written_by varchar, PRIMARY KEY (title)) | select title from table_28195971_1 where directed_by = "david solomon" and written_by = "marti noxon" |
Name the most no votes | create table table_256286_14 (no_votes integer, PRIMARY KEY (no_votes)) | select max(no_votes) from table_256286_14 |
Who was the successor when the vacator was chester e. holifield (d)? | create table table_1134091_4 (successor varchar, vacator varchar, PRIMARY KEY (successor)) | select successor from table_1134091_4 where vacator = "chester e. holifield (d)" |
What is every value for Under-17 if Under-15 is Maria Elena Ubina? | create table table_26368963_2 (under_17 varchar, under_15 varchar, PRIMARY KEY (under_17)) | select under_17 from table_26368963_2 where under_15 = "maria elena ubina" |
What are the distinct payment method codes in all the invoices? | create table invoices (payment_method_code varchar, PRIMARY KEY (payment_method_code)) | select distinct payment_method_code from invoices |
How many opponents was a game with a record 17-6 played against? | create table table_18894744_6 (opponent varchar, record varchar, PRIMARY KEY (opponent)) | select count(opponent) from table_18894744_6 where record = "17-6" |
Name the employee real name for raw and superstar | create table table_26397277_3 (employee__real_name_ varchar, brand__from_ varchar, role_s_ varchar, PRIMARY KEY (employee__real_name_)) | select employee__real_name_ from table_26397277_3 where brand__from_ = "raw" and role_s_ = "superstar" |
What is the title of the course that was offered at building Chandler during the fall semester in the year of 2010? | create table course (title varchar, course_id varchar, PRIMARY KEY (title)); create table section (course_id varchar, PRIMARY KEY (course_id)) | select t1.title from course as t1 join section as t2 on t1.course_id = t2.course_id where building = 'chandler' and semester = 'fall' and year = 2010 |
How many standards are there, when the launch date was 17.04.2006? | create table table_19246_1 (standard varchar, launch_date__ddmmyyyy_ varchar, PRIMARY KEY (standard)) | select count(standard) from table_19246_1 where launch_date__ddmmyyyy_ = "17.04.2006" |
What was the outcome for Newcombe in the matches he played against Jan Kodeš? | create table table_23259077_1 (outcome varchar, opponent_in_the_final varchar, PRIMARY KEY (outcome)) | select outcome from table_23259077_1 where opponent_in_the_final = "jan kodeš" |
What are the headquarters and industries of all companies? | create table company (headquarters varchar, industry varchar, PRIMARY KEY (headquarters)) | select headquarters, industry from company |
How many type classifications are given to the measure with the description, calling convention to revise state constitution? | create table table_256286_5 (type varchar, description varchar, PRIMARY KEY (type)) | select count(type) from table_256286_5 where description = "calling convention to revise state constitution" |
How do you say the ukrainian word дякую (diakuju) in English? | create table table_28136_15 (english_word varchar, ukrainian varchar, PRIMARY KEY (english_word)) | select english_word from table_28136_15 where ukrainian = "дякую (diakuju)" |
Name the most released for the in crowd | create table table_24600706_1 (released integer, song varchar, PRIMARY KEY (released)) | select max(released) from table_24600706_1 where song = "the in crowd" |
Which branding has the format of southern country? | create table table_19131921_1 (branding varchar, format varchar, PRIMARY KEY (branding)) | select branding from table_19131921_1 where format = "southern country" |
What was the order # of the theme Male Singers? | create table table_27616663_1 (order__number varchar, theme varchar, PRIMARY KEY (order__number)) | select order__number from table_27616663_1 where theme = "male singers" |
Which headphone models have a driver-matched DB of 0.1 and a US MSRP of $49? | create table table_1601027_1 (headphone_model varchar, driver_matched_db varchar, us_msrp varchar, PRIMARY KEY (headphone_model)) | select headphone_model from table_1601027_1 where driver_matched_db = "0.1" and us_msrp = "$49" |
Show names for artists without any exhibition. | create table artist (name varchar, artist_id varchar, PRIMARY KEY (name)); create table exhibition (name varchar, artist_id varchar, PRIMARY KEY (name)) | select name from artist where not artist_id in (select artist_id from exhibition) |
what is the registration located on 31 january 1975 where first flew? | create table table_1997759_1 (registration varchar, first_flew varchar, PRIMARY KEY (registration)) | select registration from table_1997759_1 where first_flew = "31 january 1975" |
What are the template ids with template type description "Presentation". | create table templates (template_id varchar, template_type_code varchar, PRIMARY KEY (template_id)); create table ref_template_types (template_type_code varchar, template_type_description varchar, PRIMARY KEY (template_type_code)) | select t2.template_id from ref_template_types as t1 join templates as t2 on t1.template_type_code = t2.template_type_code where t1.template_type_description = "presentation" |
How many customers in state of CA? | create table customers (state varchar, PRIMARY KEY (state)) | select count(*) from customers where state = "ca" |
What were the results for round of 32 for Nicole Vaidišová? | create table table_17289604_38 (round_of_32 varchar, athlete varchar, PRIMARY KEY (round_of_32)) | select round_of_32 from table_17289604_38 where athlete = "nicole vaidišová" |
What model type has model designation 97500? | 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 = "97500" |
List all document ids and receipt dates of documents. | create table documents (document_id varchar, receipt_date varchar, PRIMARY KEY (document_id)) | select document_id, receipt_date from documents |
Who is the head coach for the team that plays at Altrincham Ice Dome? | create table table_2384331_1 (head_coach varchar, arena varchar, PRIMARY KEY (head_coach)) | select head_coach from table_2384331_1 where arena = "altrincham ice dome" |
What is the title of every song, and how many weeks was each song at #1 for One Direction? | create table table_19542477_9 (song_s__—_weeks varchar, artist_s_ varchar, PRIMARY KEY (song_s__—_weeks)) | select song_s__—_weeks from table_19542477_9 where artist_s_ = "one direction" |
what's the shuttle with primary payload(s) being united states microgravity laboratory-1 | create table table_14118521_1 (shuttle varchar, primary_payload_s_ varchar, PRIMARY KEY (shuttle)) | select shuttle from table_14118521_1 where primary_payload_s_ = "united states microgravity laboratory-1" |
What is shown for november 3 when june 10-11 is june 10, 1964? | create table table_25252080_3 (november_3 varchar, june_10_11 varchar, PRIMARY KEY (november_3)) | select november_3 from table_25252080_3 where june_10_11 = "june 10, 1964" |
What is the name of the episode that was written by Scott M. Gimple? | create table table_27450976_1 (title varchar, written_by varchar, PRIMARY KEY (title)) | select title from table_27450976_1 where written_by = "scott m. gimple" |
Who were the candidates when Henry Garland Dupré was incumbent? | create table table_1342451_16 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates)) | select candidates from table_1342451_16 where incumbent = "henry garland dupré" |
Show all flight numbers with aircraft Airbus A340-300. | create table flight (flno varchar, aid varchar, PRIMARY KEY (flno)); create table aircraft (aid varchar, name varchar, PRIMARY KEY (aid)) | select t1.flno from flight as t1 join aircraft as t2 on t1.aid = t2.aid where t2.name = "airbus a340-300" |
What is the name of the integrated where allied-related is shared? | create table table_11944282_1 (component varchar, allied_related varchar, PRIMARY KEY (component)) | select component from table_11944282_1 where allied_related = "shared" |
where title is beginning callanetics , what is the total of format ? | create table table_11222744_2 (format varchar, title varchar, PRIMARY KEY (format)) | select count(format) from table_11222744_2 where title = "beginning callanetics" |
Show the first year and last year of parties with theme "Spring" or "Teqnology". | create table party (first_year varchar, last_year varchar, party_theme varchar, PRIMARY KEY (first_year)) | select first_year, last_year from party where party_theme = "spring" or party_theme = "teqnology" |
How many different kinds of information sources are there for injury accidents? | create table injury_accident (source varchar, PRIMARY KEY (source)) | select count(distinct source) from injury_accident |
What was head count in 2010 where the farm production is 6.9? | create table table_13618358_1 (agri_culture_b varchar, PRIMARY KEY (agri_culture_b)) | select max(2010 as _population__000_) from table_13618358_1 where agri_culture_b = "6.9" |
What is the number of generators where the power capicity is 78.7? | create table table_11456251_5 (number_of_generators varchar, power_capacity__gw_ varchar, PRIMARY KEY (number_of_generators)) | select count(number_of_generators) from table_11456251_5 where power_capacity__gw_ = "78.7" |
What was the manner in which Petrik Sander departed? | create table table_17085981_2 (manner_of_departure varchar, outgoing_manager varchar, PRIMARY KEY (manner_of_departure)) | select manner_of_departure from table_17085981_2 where outgoing_manager = "petrik sander" |
In which civil parish is ballymacandrick? | create table table_30120605_1 (civil_parish varchar, townland varchar, PRIMARY KEY (civil_parish)) | select civil_parish from table_30120605_1 where townland = "ballymacandrick" |
When mixed doubles is danny bawa chrisnanta debby susanto what is the boys singles? | create table table_14319023_2 (boys_singles varchar, mixed_doubles varchar, PRIMARY KEY (boys_singles)) | select boys_singles from table_14319023_2 where mixed_doubles = "danny bawa chrisnanta debby susanto" |
How many years of introduction does the Neal Submachine Gun have? | create table table_29474407_11 (year_of_intro varchar, name__designation varchar, PRIMARY KEY (year_of_intro)) | select count(year_of_intro) from table_29474407_11 where name__designation = "neal submachine gun" |
what's the total number of south australia with victoria value of 2173 | create table table_1057262_2 (south_australia varchar, victoria varchar, PRIMARY KEY (south_australia)) | select count(south_australia) from table_1057262_2 where victoria = 2173 |
What party is Sanford Bishop a member of? | create table table_1341522_13 (party varchar, incumbent varchar, PRIMARY KEY (party)) | select party from table_1341522_13 where incumbent = "sanford bishop" |
@ Chicago had a high points of what? | create table table_17355408_7 (high_points varchar, team varchar, PRIMARY KEY (high_points)) | select high_points from table_17355408_7 where team = "@ chicago" |
What schools are accredited by COE? | create table table_2064747_1 (location_s_ varchar, accreditation varchar, PRIMARY KEY (location_s_)) | select location_s_ from table_2064747_1 where accreditation = "coe" |
Find the name of physicians who are in charge of more than one patient. | create table patient (pcp varchar, PRIMARY KEY (pcp)); create table physician (name varchar, employeeid varchar, PRIMARY KEY (name)) | select t1.name from physician as t1 join patient as t2 on t1.employeeid = t2.pcp group by t1.employeeid having count(*) > 1 |
Subsets and Splits