answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT COUNT(game) FROM table_name_24 WHERE score = "l 91–95 (ot)"
How many games had a score of l 91–95 (ot)?
CREATE TABLE table_name_24 (game VARCHAR, score VARCHAR)
SELECT T1.source_system_code, T2.council_tax_id FROM CMI_Cross_References AS T1 JOIN Benefits_Overpayments AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id ORDER BY T2.council_tax_id
What is the tax source system code related to the benefits and overpayments? List the code and the benifit id, order by benifit id.
CREATE TABLE Benefits_Overpayments ( council_tax_id VARCHAR, cmi_cross_ref_id VARCHAR ) CREATE TABLE CMI_Cross_References ( source_system_code VARCHAR, cmi_cross_ref_id VARCHAR )
SELECT record FROM table_27882867_4 WHERE location_attendance = "Oakland-Alameda County Coliseum Arena 15,025"
Name the record for oakland-alameda county coliseum arena 15,025
CREATE TABLE table_27882867_4 (record VARCHAR, location_attendance VARCHAR)
SELECT name FROM table_name_13 WHERE season = "2010-2011" AND acquisition_via = "free agency" AND number = "14"
What is the name of the player for the 2010-2011 season, from a Free Agency and is Number 14?
CREATE TABLE table_name_13 (name VARCHAR, number VARCHAR, season VARCHAR, acquisition_via VARCHAR)
SELECT COUNT(silver) FROM table_name_9 WHERE rank = "3" AND gold < 2
What kind of Silver has a Rank of 3, and a Gold smaller than 2?
CREATE TABLE table_name_9 ( silver VARCHAR, rank VARCHAR, gold VARCHAR )
SELECT COUNT(game) FROM table_27882867_4 WHERE score = "W 112-94"
Name the total number of games for w 112-94
CREATE TABLE table_27882867_4 (game VARCHAR, score VARCHAR)
SELECT season FROM table_name_5 WHERE acquisition_via = "trade" AND school_club_team = "la salle"
Which season had a trade with the school/club team La Salle?
CREATE TABLE table_name_5 (season VARCHAR, acquisition_via VARCHAR, school_club_team VARCHAR)
SELECT MAX("Played") FROM table_8894 WHERE "Points" = '16' AND "Position" > '4'
What is the largest number played with 16 points in a position over 4?
CREATE TABLE table_8894 ( "Position" real, "Name" text, "Played" real, "Drawn" real, "Lost" real, "Points" real )
SELECT clubs FROM table_27876486_2 WHERE round = "Sixth round proper"
what is the club in the sixth round proper
CREATE TABLE table_27876486_2 (clubs VARCHAR, round VARCHAR)
SELECT position FROM table_name_26 WHERE season = "2009-2010" AND number = "1"
Who is the position for the 2009-2010 season, number 1?
CREATE TABLE table_name_26 (position VARCHAR, season VARCHAR, number VARCHAR)
SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'EECS' AND course.number BETWEEN 300 AND 300 + 100 AND semester.semester = 'FA' AND semester.semester_id = course_offering.semester AND semester.year = 2016
Next semester , what classes are offered at 300 -level ?
CREATE TABLE program_course ( program_id int, course_id int, workload int, category varchar ) CREATE TABLE jobs ( job_id int, job_title varchar, description varchar, requirement varchar, city varchar, state varchar, country varchar, zip int ) CREATE TABLE course ( course_id int, name varchar, department varchar, number varchar, credits varchar, advisory_requirement varchar, enforced_requirement varchar, description varchar, num_semesters int, num_enrolled int, has_discussion varchar, has_lab varchar, has_projects varchar, has_exams varchar, num_reviews int, clarity_score int, easiness_score int, helpfulness_score int ) CREATE TABLE course_offering ( offering_id int, course_id int, semester int, section_number int, start_time time, end_time time, monday varchar, tuesday varchar, wednesday varchar, thursday varchar, friday varchar, saturday varchar, sunday varchar, has_final_project varchar, has_final_exam varchar, textbook varchar, class_address varchar, allow_audit varchar ) CREATE TABLE program_requirement ( program_id int, category varchar, min_credit int, additional_req varchar ) CREATE TABLE program ( program_id int, name varchar, college varchar, introduction varchar ) CREATE TABLE ta ( campus_job_id int, student_id int, location varchar ) CREATE TABLE offering_instructor ( offering_instructor_id int, offering_id int, instructor_id int ) CREATE TABLE student_record ( student_id int, course_id int, semester int, grade varchar, how varchar, transfer_source varchar, earn_credit varchar, repeat_term varchar, test_id varchar ) CREATE TABLE course_tags_count ( course_id int, clear_grading int, pop_quiz int, group_projects int, inspirational int, long_lectures int, extra_credit int, few_tests int, good_feedback int, tough_tests int, heavy_papers int, cares_for_students int, heavy_assignments int, respected int, participation int, heavy_reading int, tough_grader int, hilarious int, would_take_again int, good_lecture int, no_skip int ) CREATE TABLE area ( course_id int, area varchar ) CREATE TABLE gsi ( course_offering_id int, student_id int ) CREATE TABLE instructor ( instructor_id int, name varchar, uniqname varchar ) CREATE TABLE course_prerequisite ( pre_course_id int, course_id int ) CREATE TABLE semester ( semester_id int, semester varchar, year int ) CREATE TABLE requirement ( requirement_id int, requirement varchar, college varchar ) CREATE TABLE student ( student_id int, lastname varchar, firstname varchar, program_id int, declare_major varchar, total_credit int, total_gpa float, entered_as varchar, admit_term int, predicted_graduation_semester int, degree varchar, minor varchar, internship varchar ) CREATE TABLE comment_instructor ( instructor_id int, student_id int, score int, comment_text varchar )
SELECT surface FROM table_27877656_7 WHERE score = "6–4, 6–1" AND edition = "2011 Europe/Africa Group IIIB"
For edition is 2011 europe/africa group iiib and surface where score is 6–4, 6–1 please specify all the surface
CREATE TABLE table_27877656_7 (surface VARCHAR, score VARCHAR, edition VARCHAR)
SELECT name FROM table_name_63 WHERE position = "forward" AND season = "2009-2010"
What is the name for the forward in the 2009-2010 season?
CREATE TABLE table_name_63 (name VARCHAR, position VARCHAR, season VARCHAR)
SELECT place FROM table_name_47 WHERE player = "david graham"
What place is David Graham in?
CREATE TABLE table_name_47 ( place VARCHAR, player VARCHAR )
SELECT opponent_team FROM table_27877656_7 WHERE edition = "2009 Europe/Africa Group IIIB" AND outcome = "Winner" AND opponent = "Sandra Kristjánsdóttir"
For opponent is sandra kristjánsdóttir, outcome is winner and edition is 2009 europe/africa group iiib mention all the opponent team.
CREATE TABLE table_27877656_7 (opponent_team VARCHAR, opponent VARCHAR, edition VARCHAR, outcome VARCHAR)
SELECT number FROM table_name_90 WHERE position = "forward" AND school_club_team = "la salle"
What is the number for the forward position from the school/club team La Salle?
CREATE TABLE table_name_90 (number VARCHAR, position VARCHAR, school_club_team VARCHAR)
SELECT COUNT(sat_21_aug) FROM table_26986076_1 WHERE thurs_26_aug = "20' 05.19 112.703mph"
How many times was the time 20' 05.19 112.703mph on Thurs Aug 26th?
CREATE TABLE table_26986076_1 ( sat_21_aug VARCHAR, thurs_26_aug VARCHAR )
SELECT COUNT(outcome) FROM table_27877656_7 WHERE score = "7–6 (7–3) , 6–4"
For score 7–6 (7–3) , 6–4 please mention total number of outcome
CREATE TABLE table_27877656_7 (outcome VARCHAR, score VARCHAR)
SELECT position FROM table_name_73 WHERE school_club_team = "far eastern"
Who is the position from the school/club Far Eastern?
CREATE TABLE table_name_73 (position VARCHAR, school_club_team VARCHAR)
SELECT "Publication date" FROM table_80032 WHERE "Reported price" = '$500,000' AND "Publisher(s)" = 'people' AND "Person(s)" = 'sean preston federline'
What was the publication date of the photos of Sean Preston Federline that cost $500,000 and were published by People?
CREATE TABLE table_80032 ( "Type" text, "Person(s)" text, "Publisher(s)" text, "Publication date" text, "Reported price" text )
SELECT opponent FROM table_27877656_7 WHERE edition = "2009 Europe/Africa Group IIIB" AND opponent_team = "Armenia"
For armenia as opponent team and edition is 2009 europe/africa group iiib mention all the opponent
CREATE TABLE table_27877656_7 (opponent VARCHAR, edition VARCHAR, opponent_team VARCHAR)
SELECT MAX(games_played) FROM table_name_64 WHERE draws = 3 AND loses = 5 AND points < 39
What is the highest number of games played for teams with 3 draws, 5 losses, and under 39 points?
CREATE TABLE table_name_64 (games_played INTEGER, points VARCHAR, draws VARCHAR, loses VARCHAR)
SELECT "Result" FROM table_18184 WHERE "District" = 'Washington 7'
what's the result with district being washington 7
CREATE TABLE table_18184 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text, "Candidates" text )
SELECT edition FROM table_27877656_7 WHERE outcome = "Loser" AND score = "6–2, 6–3"
For score 6–2, 6–3 and outcome is loser mention all the edition.
CREATE TABLE table_27877656_7 (edition VARCHAR, outcome VARCHAR, score VARCHAR)
SELECT MAX(loses) FROM table_name_49 WHERE draws < 3 AND points = 51
What is the highest number of losses for teams with under 3 draws and 51 points?
CREATE TABLE table_name_49 (loses INTEGER, draws VARCHAR, points VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "WHITE - RUSSIAN" AND demographic.dob_year < "2103"
Get me the number of white russian patients born before year 2103.
CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text )
SELECT winner FROM table_27887723_1 WHERE uci_rating = "CN"
who was the winner of uci rating cn?
CREATE TABLE table_27887723_1 (winner VARCHAR, uci_rating VARCHAR)
SELECT record FROM table_name_45 WHERE time__seconds_ < 5.22
Tell me the record for a time in seconds smaller than 5.22.
CREATE TABLE table_name_45 (record VARCHAR, time__seconds_ INTEGER)
SELECT procedures.long_title FROM procedures WHERE procedures.subject_id = "2560"
what is procedure long title of subject id 2560?
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text )
SELECT race_name FROM table_27887723_1 WHERE uci_rating = "CN"
what race name had a uci rating of cn?
CREATE TABLE table_27887723_1 (race_name VARCHAR, uci_rating VARCHAR)
SELECT sport FROM table_name_27 WHERE date = "november 14, 2009"
What sport was played on November 14, 2009?
CREATE TABLE table_name_27 (sport VARCHAR, date VARCHAR)
SELECT AVG(october) FROM table_name_2 WHERE record = "5–1–0" AND game > 6
Which October has a Record of 5 1 0, and a Game larger than 6?
CREATE TABLE table_name_2 ( october INTEGER, record VARCHAR, game VARCHAR )
SELECT location FROM table_27887723_1 WHERE team = "Trek-Livestrong"
what location has team trek-livestrong?
CREATE TABLE table_27887723_1 (location VARCHAR, team VARCHAR)
SELECT visitor FROM table_name_20 WHERE record = "3–18"
Whose Visitor has a Record of 3–18?
CREATE TABLE table_name_20 (visitor VARCHAR, record VARCHAR)
SELECT winner FROM table_11622562_1 WHERE tournament = "PaineWebber Invitational"
What's the winner of the Painewebber Invitational tournament?
CREATE TABLE table_11622562_1 ( winner VARCHAR, tournament VARCHAR )
SELECT winner FROM table_27887723_1 WHERE location = "Souderton, PA"
who was the winner for souderton, pa?
CREATE TABLE table_27887723_1 (winner VARCHAR, location VARCHAR)
SELECT date FROM table_name_48 WHERE leading_scorer = "ricky davis (20)"
When has a Leading scorer of ricky davis (20)?
CREATE TABLE table_name_48 (date VARCHAR, leading_scorer VARCHAR)
SELECT platform FROM table WHERE weight = "131.5g"
What is the platform if the weight is 131.5g?
CREATE TABLE table ( platform VARCHAR, weight VARCHAR )
SELECT title FROM table_27892955_1 WHERE directed_by = "Mike Rohl" AND no_in_series = 120
What is the name of episode 120 in the series that Mike Rohl directed?
CREATE TABLE table_27892955_1 (title VARCHAR, directed_by VARCHAR, no_in_series VARCHAR)
SELECT home FROM table_name_79 WHERE leading_scorer = "dajuan wagner (25)" AND score = "89–82"
Which Home has a Leading scorer of dajuan wagner (25) and a Score of 89–82? Question 3
CREATE TABLE table_name_79 (home VARCHAR, leading_scorer VARCHAR, score VARCHAR)
SELECT "Player" FROM table_4885 WHERE "Club" = 'balmain tigers'
What player played for the Balmain Tigers?
CREATE TABLE table_4885 ( "Year" text, "Player" text, "Nationality" text, "Position" text, "Club" text )
SELECT written_by FROM table_27892955_1 WHERE us_viewers__million_ = "1.97"
Who wrote episode that had 1.97 million u.s. viewers?
CREATE TABLE table_27892955_1 (written_by VARCHAR, us_viewers__million_ VARCHAR)
SELECT date FROM table_name_1 WHERE visitor = "bulls"
When has a Visitor of bulls?
CREATE TABLE table_name_1 (date VARCHAR, visitor VARCHAR)
SELECT author FROM table_22464685_1 WHERE english_name = "Histories and Eulogies of the Sovereigns"
Who is the auther when the english name was histories and eulogies of the sovereigns?
CREATE TABLE table_22464685_1 ( author VARCHAR, english_name VARCHAR )
SELECT title FROM table_27892955_1 WHERE us_viewers__million_ = "2.02"
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)
SELECT visitor FROM table_name_64 WHERE home = "bulls"
Which Visitor has a Home of bulls?
CREATE TABLE table_name_64 (visitor VARCHAR, home VARCHAR)
SELECT ACC_Regular_Season, Team_ID FROM basketball_match ORDER BY Team_ID
Visualize a bar chart about the distribution of ACC_Regular_Season and Team_ID , show by the y axis in asc.
CREATE TABLE university ( School_ID int, School text, Location text, Founded real, Affiliation text, Enrollment real, Nickname text, Primary_conference text ) CREATE TABLE basketball_match ( Team_ID int, School_ID int, Team_Name text, ACC_Regular_Season text, ACC_Percent text, ACC_Home text, ACC_Road text, All_Games text, All_Games_Percent int, All_Home text, All_Road text, All_Neutral text )
SELECT COUNT(location_attendance) FROM table_27882867_6 WHERE date = "January 11"
How many games did they play on january 11?
CREATE TABLE table_27882867_6 (location_attendance VARCHAR, date VARCHAR)
SELECT home FROM table_name_18 WHERE date = "14 december 2002"
WHich Home is on 14 december 2002?
CREATE TABLE table_name_18 (home VARCHAR, date VARCHAR)
SELECT "Group" FROM table_6034 WHERE "Year" < '2010' AND "Film/Series" = 'thirst'
Which group nominated Kim in years before 2010 for Thirst?
CREATE TABLE table_6034 ( "Year" real, "Group" text, "Award" text, "Film/Series" text, "Result" text )
SELECT team FROM table_27902171_5 WHERE record = "9-7"
What is every team with a record of 9-7?
CREATE TABLE table_27902171_5 (team VARCHAR, record VARCHAR)
SELECT profession FROM table_name_1 WHERE entered_the_house = "day 1" AND evicted = "day 29" AND name = "skaj vikler"
What is the profession of Skaj Vikler, who entered the house on day 1 and was evicted on day 29?
CREATE TABLE table_name_1 (profession VARCHAR, name VARCHAR, entered_the_house VARCHAR, evicted VARCHAR)
SELECT "Title" FROM table_9571 WHERE "Imprint" = 'dengeki bunko' AND "Artist" = 'kiyotaka haimura'
what is the title when the imprint is dengeki bunko and the artist is kiyotaka haimura?
CREATE TABLE table_9571 ( "Year" real, "Character" text, "Title" text, "Author" text, "Artist" text, "Imprint" text )
SELECT COUNT(high_assists) FROM table_27902171_5 WHERE location_attendance = "Seattle Center Coliseum 14,180"
How many people are high assists when location attendance is Seattle Center Coliseum 14,180?
CREATE TABLE table_27902171_5 (high_assists VARCHAR, location_attendance VARCHAR)
SELECT profession FROM table_name_90 WHERE city = "leskovac"
What is the profession of the housemate from Leskovac city?
CREATE TABLE table_name_90 (profession VARCHAR, city VARCHAR)
SELECT "Opponent" FROM table_66230 WHERE "Result" = 'iván navarro'
Who is iv n navarro's opponent?
CREATE TABLE table_66230 ( "!Event" real, "Round" text, "Surface" text, "Winner" text, "Opponent" text, "Result" text )
SELECT date FROM table_27902171_5 WHERE game = 23
What is every date with game 23?
CREATE TABLE table_27902171_5 (date VARCHAR, game VARCHAR)
SELECT entered_the_house FROM table_name_82 WHERE evicted = "day 29" AND name = "slađana pejić"
When did slađana pejić, who was evicted on day 29, enter the house?
CREATE TABLE table_name_82 (entered_the_house VARCHAR, evicted VARCHAR, name VARCHAR)
SELECT DISTINCT fare.fare_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, fare, flight, flight_fare WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BOSTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'ATLANTA' AND fare.one_direction_cost = (SELECT MIN(FAREalias1.one_direction_cost) FROM airport_service AS AIRPORT_SERVICEalias2, airport_service AS AIRPORT_SERVICEalias3, city AS CITYalias2, city AS CITYalias3, fare AS FAREalias1, flight AS FLIGHTalias1, flight_fare AS FLIGHT_FAREalias1 WHERE CITYalias2.city_code = AIRPORT_SERVICEalias2.city_code AND CITYalias2.city_name = 'BOSTON' AND CITYalias3.city_code = AIRPORT_SERVICEalias3.city_code AND CITYalias3.city_name = 'ATLANTA' AND FAREalias1.round_trip_required = 'NO' AND FLIGHT_FAREalias1.fare_id = FAREalias1.fare_id AND FLIGHTalias1.flight_id = FLIGHT_FAREalias1.flight_id AND FLIGHTalias1.from_airport = AIRPORT_SERVICEalias2.airport_code AND FLIGHTalias1.to_airport = AIRPORT_SERVICEalias3.airport_code) AND fare.round_trip_required = 'NO' AND flight_fare.fare_id = fare.fare_id AND flight.flight_id = flight_fare.flight_id AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code
what is the cheapest fare for a one way flight from BOSTON to ATLANTA
CREATE TABLE time_zone ( time_zone_code text, time_zone_name text, hours_from_gmt int ) CREATE TABLE aircraft ( aircraft_code varchar, aircraft_description varchar, manufacturer varchar, basic_type varchar, engines int, propulsion varchar, wide_body varchar, wing_span int, length int, weight int, capacity int, pay_load int, cruising_speed int, range_miles int, pressurized varchar ) CREATE TABLE class_of_service ( booking_class varchar, rank int, class_description text ) CREATE TABLE code_description ( code varchar, description text ) CREATE TABLE city ( city_code varchar, city_name varchar, state_code varchar, country_name varchar, time_zone_code varchar ) CREATE TABLE flight_fare ( flight_id int, fare_id int ) CREATE TABLE time_interval ( period text, begin_time int, end_time int ) CREATE TABLE airline ( airline_code varchar, airline_name text, note text ) CREATE TABLE flight_leg ( flight_id int, leg_number int, leg_flight int ) CREATE TABLE equipment_sequence ( aircraft_code_sequence varchar, aircraft_code varchar ) CREATE TABLE compartment_class ( compartment varchar, class_type varchar ) CREATE TABLE fare_basis ( fare_basis_code text, booking_class text, class_type text, premium text, economy text, discounted text, night text, season text, basis_days text ) CREATE TABLE dual_carrier ( main_airline varchar, low_flight_number int, high_flight_number int, dual_airline varchar, service_name text ) CREATE TABLE ground_service ( city_code text, airport_code text, transport_type text, ground_fare int ) CREATE TABLE airport ( airport_code varchar, airport_name text, airport_location text, state_code varchar, country_name varchar, time_zone_code varchar, minimum_connect_time int ) CREATE TABLE date_day ( month_number int, day_number int, year int, day_name varchar ) CREATE TABLE flight ( aircraft_code_sequence text, airline_code varchar, airline_flight text, arrival_time int, connections int, departure_time int, dual_carrier text, flight_days text, flight_id int, flight_number int, from_airport varchar, meal_code text, stops int, time_elapsed int, to_airport varchar ) CREATE TABLE food_service ( meal_code text, meal_number int, compartment text, meal_description varchar ) CREATE TABLE days ( days_code varchar, day_name varchar ) CREATE TABLE month ( month_number int, month_name text ) CREATE TABLE flight_stop ( flight_id int, stop_number int, stop_days text, stop_airport text, arrival_time int, arrival_airline text, arrival_flight_number int, departure_time int, departure_airline text, departure_flight_number int, stop_time int ) CREATE TABLE state ( state_code text, state_name text, country_name text ) CREATE TABLE airport_service ( city_code varchar, airport_code varchar, miles_distant int, direction varchar, minutes_distant int ) CREATE TABLE fare ( fare_id int, from_airport varchar, to_airport varchar, fare_basis_code text, fare_airline text, restriction_code text, one_direction_cost int, round_trip_cost int, round_trip_required varchar ) CREATE TABLE restriction ( restriction_code text, advance_purchase int, stopovers text, saturday_stay_required text, minimum_stay int, maximum_stay int, application text, no_discounts text )
SELECT team FROM table_27902171_5 WHERE location_attendance = "Seattle Center Coliseum 14,180"
What is every team with location attendance of Seattle Center Coliseum 14,180?
CREATE TABLE table_27902171_5 (team VARCHAR, location_attendance VARCHAR)
SELECT profession FROM table_name_4 WHERE name = "slađana pejić"
What is slađana pejić's profession?
CREATE TABLE table_name_4 (profession VARCHAR, name VARCHAR)
SELECT MAX(demographic.age) FROM demographic WHERE demographic.insurance = "Private" AND demographic.discharge_location = "HOME HEALTH CARE"
what is maximum age of patients whose insurance is private and discharge location is home health care?
CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text )
SELECT team FROM table_27902171_5 WHERE location_attendance = "ARCO Arena 17,014"
What is every team with location attendance of Arco Arena 17,014?
CREATE TABLE table_27902171_5 (team VARCHAR, location_attendance VARCHAR)
SELECT city FROM table_name_84 WHERE entered_the_house = "day 1" AND profession = "tv presenter"
What city is the housemate who entered the house on day 1 and whose profession was a tv presenter from?
CREATE TABLE table_name_84 (city VARCHAR, entered_the_house VARCHAR, profession VARCHAR)
SELECT "La Crescenta- Montrose" FROM table_78544 WHERE "Pasadena" = '10%'
When Pasadena is at 10%, what is La Crescenta-Montrose?
CREATE TABLE table_78544 ( "Tujunga" text, "La Crescenta- Montrose" text, "Glendale" text, "La Ca\u00f1ada Flintridge" text, "Pasadena" text )
SELECT opponent FROM table_27893892_2 WHERE game_site = "Waldstadion" AND week = 6
what was the opposition where the field is waldstadion during time 6
CREATE TABLE table_27893892_2 (opponent VARCHAR, game_site VARCHAR, week VARCHAR)
SELECT profession FROM table_name_87 WHERE city = "leskovac"
What is the profession of the housemate from Leskovac city?
CREATE TABLE table_name_87 (profession VARCHAR, city VARCHAR)
SELECT "Notes" FROM table_12387 WHERE "Bronze" = 'pasi ikonen'
What is Notes, when Bronze is 'Pasi Ikonen'?
CREATE TABLE table_12387 ( "Year" real, "Gold" text, "Silver" text, "Bronze" text, "Notes" text )
SELECT game_site FROM table_27893892_2 WHERE date = "Saturday, April 21"
what is the location for saturday, april 21
CREATE TABLE table_27893892_2 (game_site VARCHAR, date VARCHAR)
SELECT home FROM table_name_93 WHERE competition = "uefa cup" AND season = "2000-2001" AND round = "second round"
What is the home team of the UEFA cup in the 2000-2001 season with a second round?
CREATE TABLE table_name_93 (home VARCHAR, round VARCHAR, competition VARCHAR, season VARCHAR)
SELECT COUNT("Vacator") FROM table_73389 WHERE "District" = 'Pennsylvania 33rd'
How many vacators were in the Pennsylvania 33rd district?
CREATE TABLE table_73389 ( "District" text, "Vacator" text, "Reason for change" text, "Successor" text, "Date successor seated" text )
SELECT MAX(attendance) FROM table_27893892_2 WHERE date = "Saturday, May 12"
what was the participation for saturday, may 12
CREATE TABLE table_27893892_2 (attendance INTEGER, date VARCHAR)
SELECT away FROM table_name_67 WHERE competition = "uefa champions league"
What is the away team of the UEFA champions league?
CREATE TABLE table_name_67 (away VARCHAR, competition VARCHAR)
SELECT COUNT(wheel_arrangement) FROM table_15608800_2 WHERE class = "D14"
Name the number of wheel arrangement when class is d14
CREATE TABLE table_15608800_2 ( wheel_arrangement VARCHAR, class VARCHAR )
SELECT team_record FROM table_27893892_2 WHERE opponent = "at Scottish Claymores"
what was the achievement for the rival at scottish claymores
CREATE TABLE table_27893892_2 (team_record VARCHAR, opponent VARCHAR)
SELECT position FROM table_name_90 WHERE league = "southern league premier division" AND season = "2004–05"
Which Position has a League of southern league premier division, and a Season of 2004–05?
CREATE TABLE table_name_90 (position VARCHAR, league VARCHAR, season VARCHAR)
SELECT MAX("2011 number (,000)") FROM table_74105 WHERE "2001 %" = '28.1'
What si the 2011 number (,000) when 2001 % is 28.1?
CREATE TABLE table_74105 ( "Status" text, "2001 number (,000)" real, "2001 %" text, "2011 number (,000)" real, "2011 %" text )
SELECT COUNT(legs_lost) FROM table_27906667_2 WHERE high_checkout = 101
How many legs were lost when the high checkout was 101?
CREATE TABLE table_27906667_2 (legs_lost VARCHAR, high_checkout VARCHAR)
SELECT SUM(draw) FROM table_name_45 WHERE season = "2001–02" AND points > 47
Which Draw has a Season of 2001–02, and Points larger than 47?
CREATE TABLE table_name_45 (draw INTEGER, season VARCHAR, points VARCHAR)
SELECT MAX("Total votes") FROM table_45694 WHERE "% of popular vote" = '0.86%' AND "# of seats won" > '0'
Can you tell me the highest Total votes that has the % of popular vote of 0.86%, and the # of seats won larger than 0?
CREATE TABLE table_45694 ( "Election" real, "Candidates fielded" real, "# of seats won" real, "Total votes" real, "% of popular vote" text, "Place" text )
SELECT MAX(legs_won) FROM table_27906667_2 WHERE player = "Alan Tabern"
How many legs were own by alan tabern?
CREATE TABLE table_27906667_2 (legs_won INTEGER, player VARCHAR)
SELECT MAX(lost) FROM table_name_58 WHERE season = "2001–02" AND points > 47
Which Lost is the highest one that has a Season of 2001–02, and Points larger than 47?
CREATE TABLE table_name_58 (lost INTEGER, season VARCHAR, points VARCHAR)
SELECT "Venue" FROM table_62618 WHERE "Date" = '14/12/1996'
What is Venue, when Date is '14/12/1996'?
CREATE TABLE table_62618 ( "Opposing Teams" text, "Against" real, "Date" text, "Venue" text, "Status" text )
SELECT team FROM table_27902171_8 WHERE record = "36-29"
name the team for 36-29 record
CREATE TABLE table_27902171_8 (team VARCHAR, record VARCHAR)
SELECT COUNT(bronze) FROM table_name_67 WHERE total > 4 AND rank < 4 AND nation = "germany" AND silver < 5
How many bronze numbers had a total of more than 4 when the rank is less than four, germany is involved, and there's less than 5 silver?
CREATE TABLE table_name_67 (bronze VARCHAR, silver VARCHAR, nation VARCHAR, total VARCHAR, rank VARCHAR)
SELECT COUNT("Result") FROM table_714 WHERE "Incumbent" = 'James Shannon'
What is the number of results for james shannon?
CREATE TABLE table_714 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text, "Candidates" text )
SELECT COUNT(high_assists) FROM table_27902171_8 WHERE record = "34-27"
Name the total number of high asists for 34-27
CREATE TABLE table_27902171_8 (high_assists VARCHAR, record VARCHAR)
SELECT place FROM table_name_67 WHERE player = "phil mickelson"
Which Place has Phil Mickelson as the Player?
CREATE TABLE table_name_67 (place VARCHAR, player VARCHAR)
SELECT SUM(played) FROM table_name_4 WHERE lost > 4 AND team = "américa" AND points < 5
Which Played has a Lost larger than 4, and a Team of am rica, and Points smaller than 5?
CREATE TABLE table_name_4 ( played INTEGER, points VARCHAR, lost VARCHAR, team VARCHAR )
SELECT date FROM table_27902171_8 WHERE score = "W 112-91"
Name the date for score of w 112-91
CREATE TABLE table_27902171_8 (date VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_62 WHERE player = "chris riley"
What is the To Par for Player Chris Riley?
CREATE TABLE table_name_62 (to_par VARCHAR, player VARCHAR)
SELECT yacht AS type FROM table_25561560_2 WHERE yacht = "ICAP Leopard"
What is the yacht type of Icap Leopard?
CREATE TABLE table_25561560_2 ( yacht VARCHAR )
SELECT COUNT(location_attendance) FROM table_27902171_8 WHERE record = "36-29"
Name the number of location attendance for 36-29 record
CREATE TABLE table_27902171_8 (location_attendance VARCHAR, record VARCHAR)
SELECT player FROM table_name_33 WHERE place = "t2" AND country = "fiji"
Which Player has a Place of T2 and a Country listed as Fiji?
CREATE TABLE table_name_33 (player VARCHAR, place VARCHAR, country VARCHAR)
SELECT "Set 5" FROM table_42319 WHERE "Date" = 'jun 29'
What is the Set 5 with a Date that is jun 29?
CREATE TABLE table_42319 ( "Date" text, "Score" text, "Set 1" text, "Set 2" text, "Set 3" text, "Set 4" text, "Set 5" text, "Total" text )
SELECT written_by FROM table_27905664_1 WHERE us_viewers__million_ = "3.74"
Who wrote the episode having a US viewership of 3.74 million?
CREATE TABLE table_27905664_1 (written_by VARCHAR, us_viewers__million_ VARCHAR)
SELECT AVG(height__cm_) FROM table_name_66 WHERE weight__kg_ < 91 AND position = "d" AND birthdate = "july 4, 1975"
What is the average Height when the weight is less than 91 and the position is d, and a Birthdate of july 4, 1975?
CREATE TABLE table_name_66 (height__cm_ INTEGER, birthdate VARCHAR, weight__kg_ VARCHAR, position VARCHAR)
SELECT MIN(long) FROM table_name_81 WHERE name = "kass, rob" AND avg_g < -0.30000000000000004
What is the lowest Long, when Name is Kass, Rob, and when Avg/g is less than -0.30000000000000004?
CREATE TABLE table_name_81 ( long INTEGER, name VARCHAR, avg_g VARCHAR )
SELECT directed_by FROM table_27905664_1 WHERE production_code = "3X6116"
Who directed production code 3x6116?
CREATE TABLE table_27905664_1 (directed_by VARCHAR, production_code VARCHAR)
SELECT SUM(weight__kg_) FROM table_name_39 WHERE birthplace = "virginia, minnesota"
What is the sum of Weight for the person born in virginia, minnesota?
CREATE TABLE table_name_39 (weight__kg_ INTEGER, birthplace VARCHAR)