answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT MAX(joined) FROM table_1973729_2 WHERE current_conference = "Dropped athletics"
What joined year does Dropped Athletics have?
CREATE TABLE table_1973729_2 (joined INTEGER, current_conference VARCHAR)
SELECT "Time (CST)" FROM table_41823 WHERE "NFL Recap" = 'recap' AND "Date" = 'october 19, 2008'
What time (cst) has and NFL recap of recap with october 19, 2008 as the date?
CREATE TABLE table_41823 ( "Week" real, "Date" text, "Time (CST)" text, "Opponent" text, "Result" text, "Game site" text, "Record" text, "NFL Recap" text )
SELECT market_income_per_capita FROM table_22815568_13 WHERE county = "Hancock"
what is the market income per capita where the county is hancock?
CREATE TABLE table_22815568_13 (market_income_per_capita VARCHAR, county VARCHAR)
SELECT MAX(founded) FROM table_1973729_2
What is the latest founded year?
CREATE TABLE table_1973729_2 (founded INTEGER)
SELECT "Fastest lap" FROM table_74411 WHERE "Pole position" = 'Stefan Wilson'
Who had the fastest lap(s) when stefan wilson had the pole?
CREATE TABLE table_74411 ( "Rd." text, "Race" text, "Pole position" text, "Fastest lap" text, "Most laps led" text, "Winning driver" text, "Winning team" text )
SELECT county FROM table_22815568_13 WHERE market_income_per_capita = "$25,006"
what is the county where the market income per capita is $25,006?
CREATE TABLE table_22815568_13 (county VARCHAR, market_income_per_capita VARCHAR)
SELECT institution FROM table_1974443_1 WHERE location = "Watertown, Wisconsin"
What institution is located in Watertown, Wisconsin?
CREATE TABLE table_1974443_1 (institution VARCHAR, location VARCHAR)
SELECT high_checkout FROM table_20351295_2 WHERE player = "Trina Gulliver"
What's Trina Gulliver's high checkout?
CREATE TABLE table_20351295_2 ( high_checkout VARCHAR, player VARCHAR )
SELECT unemployment_rate FROM table_22815568_13 WHERE market_income_per_capita = "$16,406"
what is the unemployment rate where the market income per capita is $16,406?
CREATE TABLE table_22815568_13 (unemployment_rate VARCHAR, market_income_per_capita VARCHAR)
SELECT MIN(enrollment) FROM table_1974443_1 WHERE founded = 1880
What is the smallest enrollment for institutions founded in exactly 1880?
CREATE TABLE table_1974443_1 (enrollment INTEGER, founded VARCHAR)
SELECT score FROM table_name_39 WHERE place = "t9" AND player = "jeff sluman"
What is Score, when Place is 'T9', and when Player is 'Jeff Sluman'?
CREATE TABLE table_name_39 ( score VARCHAR, place VARCHAR, player VARCHAR )
SELECT unemployment_rate FROM table_22815568_13 WHERE county = "Wayne"
what is the unemployment rate for wayne county?
CREATE TABLE table_22815568_13 (unemployment_rate VARCHAR, county VARCHAR)
SELECT enrollment FROM table_1974443_1 WHERE institution = "Lakeland College"
What is the enrollment for Lakeland College?
CREATE TABLE table_1974443_1 (enrollment VARCHAR, institution VARCHAR)
SELECT COUNT(car_no) FROM table_17319931_1 WHERE time_retired = "+4.0019"
How many car numbers were recorded when the time/retired is +4.0019?
CREATE TABLE table_17319931_1 ( car_no VARCHAR, time_retired VARCHAR )
SELECT original_air_date FROM table_22815870_1 WHERE prod_code = 105
What is the original air date of the episode with a production code of 105?
CREATE TABLE table_22815870_1 (original_air_date VARCHAR, prod_code VARCHAR)
SELECT MAX(enrollment) FROM table_1974443_1 WHERE institution = "Concordia University"
What is the maximum enrollment for Concordia University?
CREATE TABLE table_1974443_1 (enrollment INTEGER, institution VARCHAR)
SELECT "Swimsuit" FROM table_7808 WHERE "Semifinal Average" = '8.367 (10)'
what is the swimsuit score when the semifinal average score is 8.367 (10)?
CREATE TABLE table_7808 ( "State" text, "Preliminary Average" text, "Interview" text, "Swimsuit" text, "Evening Gown" text, "Semifinal Average" text )
SELECT COUNT(county) FROM table_22815568_3 WHERE population = 2266
How many counties have a population of 2266?
CREATE TABLE table_22815568_3 (county VARCHAR, population VARCHAR)
SELECT couple FROM table_19744915_15 WHERE total = 6
What couple had a total score of 6?
CREATE TABLE table_19744915_15 (couple VARCHAR, total VARCHAR)
SELECT current_march_20, _2010 FROM table_19487922_2 WHERE country = "Denmark"
How many current drivers, as of March 20, 2010 does Denmark have?
CREATE TABLE table_19487922_2 ( current_march_20 VARCHAR, _2010 VARCHAR, country VARCHAR )
SELECT COUNT(status) FROM table_22815568_3 WHERE county = "Wayne"
How many statuses are listed for Wayne county?
CREATE TABLE table_22815568_3 (status VARCHAR, county VARCHAR)
SELECT MIN(rank) FROM table_19744915_15
What is the lowest rank?
CREATE TABLE table_19744915_15 (rank INTEGER)
SELECT marks FROM table_name_89 WHERE season = "2005"
How many marks did he get in 2005?
CREATE TABLE table_name_89 ( marks VARCHAR, season VARCHAR )
SELECT market_income_per_capita FROM table_22815568_3 WHERE status = "Distressed" AND unemployment_rate = "10.5%"
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)
SELECT couple FROM table_19744915_15 WHERE vote_percentage = "7.691%"
What couple had a vote percentage of 7.691%
CREATE TABLE table_19744915_15 (couple VARCHAR, vote_percentage VARCHAR)
SELECT longitude FROM table_18600760_20 WHERE township = "Tatman"
What longitude is tatman township?
CREATE TABLE table_18600760_20 ( longitude VARCHAR, township VARCHAR )
SELECT status FROM table_22815568_3 WHERE poverty_rate = "36.6%"
What is the status for all the counties that have a poverty rate of 36.6%?
CREATE TABLE table_22815568_3 (status VARCHAR, poverty_rate VARCHAR)
SELECT COUNT(result) FROM table_19744915_15 WHERE couple = "Ellery and Frankie"
How many results do Ellery and Frankie have?
CREATE TABLE table_19744915_15 (result VARCHAR, couple VARCHAR)
SELECT "Adelaide" FROM table_67953 WHERE "Sydney" = 'yes' AND "Perth" = 'yes'
Name the Adelaide for Sydney of yes and Perth of yes
CREATE TABLE table_67953 ( "Sydney" text, "Melbourne" text, "Perth" text, "Adelaide" text, "Gold Coast" text, "Auckland" text )
SELECT status FROM table_22815568_6 WHERE poverty_rate = "11.4%"
What is the status if the poverty rate is 11.4%?
CREATE TABLE table_22815568_6 (status VARCHAR, poverty_rate VARCHAR)
SELECT rank FROM table_19744915_15 WHERE couple = "Michael and Melanie"
What is Michael and Melanie's rank?
CREATE TABLE table_19744915_15 (rank VARCHAR, couple VARCHAR)
SELECT MIN("2nd (m)") FROM table_34345 WHERE "Name" = 'gregor schlierenzauer'
What is the 2nd (m) value for Gregor Schlierenzauer?
CREATE TABLE table_34345 ( "Rank" real, "Name" text, "Nationality" text, "1st (m)" real, "2nd (m)" real, "Points" real, "Overall WC points (Rank)" text )
SELECT county FROM table_22815568_6 WHERE poverty_rate = "12.9%"
If the poverty rate is 12.9%, what is the county?
CREATE TABLE table_22815568_6 (county VARCHAR, poverty_rate VARCHAR)
SELECT rank FROM table_19744915_16 WHERE couple = "Zoe and Matt"
What is Zoe and Matt's rank?
CREATE TABLE table_19744915_16 (rank VARCHAR, couple VARCHAR)
SELECT microbiologyevents.charttime FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 14836 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1) AND microbiologyevents.spec_type_desc = 'urine' ORDER BY microbiologyevents.charttime LIMIT 1
when has patient 14836 first received the urine microbiology test in the first hospital visit?
CREATE TABLE patients ( row_id number, subject_id number, gender text, dob time, dod time ) CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE admissions ( row_id number, subject_id number, hadm_id number, admittime time, dischtime time, admission_type text, admission_location text, discharge_location text, insurance text, language text, marital_status text, ethnicity text, age number ) CREATE TABLE transfers ( row_id number, subject_id number, hadm_id number, icustay_id number, eventtype text, careunit text, wardid number, intime time, outtime time ) CREATE TABLE d_items ( row_id number, itemid number, label text, linksto text ) CREATE TABLE icustays ( row_id number, subject_id number, hadm_id number, icustay_id number, first_careunit text, last_careunit text, first_wardid number, last_wardid number, intime time, outtime time ) CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, amount number ) CREATE TABLE d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE d_labitems ( row_id number, itemid number, label text ) CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE chartevents ( row_id number, subject_id number, hadm_id number, icustay_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE prescriptions ( row_id number, subject_id number, hadm_id number, startdate time, enddate time, drug text, dose_val_rx text, dose_unit_rx text, route text ) CREATE TABLE microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, org_name text ) CREATE TABLE outputevents ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, value number ) CREATE TABLE procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE cost ( row_id number, subject_id number, hadm_id number, event_type text, event_id number, chargetime time, cost number )
SELECT MAX(population) FROM table_22815568_6
What is the population maximum?
CREATE TABLE table_22815568_6 (population INTEGER)
SELECT judges FROM table_19744915_16 WHERE couple = "Roxanne and Daniel"
What is the judge's total for Roxanne and Daniel?
CREATE TABLE table_19744915_16 (judges VARCHAR, couple VARCHAR)
SELECT "State" FROM table_46862 WHERE "Name" = 'li' AND "Title" = 'marquis'
In which state did Marquis Li rule?
CREATE TABLE table_46862 ( "State" text, "Type" text, "Name" text, "Title" text, "Royal house" text, "From" text )
SELECT county FROM table_22815568_6 WHERE unemployment_rate = "4.8%"
What county is the unemployment rate 4.8%?
CREATE TABLE table_22815568_6 (county VARCHAR, unemployment_rate VARCHAR)
SELECT result FROM table_19744915_16 WHERE couple = "Zoe and Matt"
What is Zoe and Matt's result?
CREATE TABLE table_19744915_16 (result VARCHAR, couple VARCHAR)
SELECT "Name" FROM table_64816 WHERE "Ref#" > '8' AND "Location" = 'anawan street'
What is the name of the mill located on Anawan Street with a reference number larger than 8?
CREATE TABLE table_64816 ( "Ref#" real, "Name" text, "Built" real, "Location" text, "Construction" text )
SELECT market_income_per_capita FROM table_22815568_6 WHERE poverty_rate = "12.9%"
If the poverty rate is 12.9%, what is the market income per capita?
CREATE TABLE table_22815568_6 (market_income_per_capita VARCHAR, poverty_rate VARCHAR)
SELECT result FROM table_19744915_16 WHERE judges = 6
What is the result of judge 6?
CREATE TABLE table_19744915_16 (result VARCHAR, judges VARCHAR)
SELECT "To par" FROM table_60502 WHERE "Country" = 'united states' AND "Place" = 't1'
What is the to par of the player from the United States with a t1 place?
CREATE TABLE table_60502 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text, "Money ( \u00a3 )" text )
SELECT viewers__millions_ FROM table_22822468_2 WHERE rating = "2.1"
Name the viewers for 2.1 rating
CREATE TABLE table_22822468_2 (viewers__millions_ VARCHAR, rating VARCHAR)
SELECT order FROM table_19744915_3 WHERE public_vote = "18.155%"
what is the order when public vote was 18.155%
CREATE TABLE table_19744915_3 (order VARCHAR, public_vote VARCHAR)
SELECT T1.name, T1.partitionid FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid GROUP BY T2.uid HAVING COUNT(*) < 2
Find the name and partition id for users who tweeted less than twice.
CREATE TABLE user_profiles ( uid number, name text, email text, partitionid number, followers number ) CREATE TABLE tweets ( id number, uid number, text text, createdate time ) CREATE TABLE follows ( f1 number, f2 number )
SELECT MAX(share) FROM table_22822468_2 WHERE viewers__millions_ = "2.76"
Name the most share for 2.76 million viewers
CREATE TABLE table_22822468_2 (share INTEGER, viewers__millions_ VARCHAR)
SELECT public_vote FROM table_19744915_3 WHERE couple = "Graeme & Kristina"
what is the public vote on graeme & kristina
CREATE TABLE table_19744915_3 (public_vote VARCHAR, couple VARCHAR)
SELECT COUNT("school name") FROM table_203_416 WHERE "charter" = 'charter'
how many schools are only charter ?
CREATE TABLE table_203_416 ( id number, "school name" text, "city" text, "grades" text, "establishment" number, "charter" text )
SELECT viewers__millions_ FROM table_22822468_2 WHERE rating / SHARE(18 AS –49) = 1.2 / 4
Name the viewers for 1.2/4 rating
CREATE TABLE table_22822468_2 (viewers__millions_ VARCHAR, rating VARCHAR)
SELECT robin FROM table_19744915_3 WHERE jason = "2.5"
what is robin's stat when jason was 2.5
CREATE TABLE table_19744915_3 (robin VARCHAR, jason VARCHAR)
SELECT date_of_birth__age_ FROM table_name_41 WHERE caps = 11 AND position = "prop"
What is the date of birth of the player that has 11 caps and plays the prop position?
CREATE TABLE table_name_41 ( date_of_birth__age_ VARCHAR, caps VARCHAR, position VARCHAR )
SELECT rating / SHARE(18 AS –49) FROM table_22822468_2 WHERE viewers__millions_ = "3.79"
Name the rating for 3.79 viewers
CREATE TABLE table_22822468_2 (rating VARCHAR, viewers__millions_ VARCHAR)
SELECT skating_song FROM table_19744915_3 WHERE couple = "Graeme & Kristina"
state the skating song of graeme & kristina
CREATE TABLE table_19744915_3 (skating_song VARCHAR, couple VARCHAR)
SELECT DISTINCT course.department, course.name, course.number, program_course.workload, program_course.workload FROM course, program_course WHERE program_course.category LIKE '%PreMajor%' AND program_course.course_id = course.course_id AND program_course.workload = (SELECT MIN(PROGRAM_COURSEalias1.workload) FROM program_course AS PROGRAM_COURSEalias1 WHERE PROGRAM_COURSEalias1.category LIKE '%PreMajor%')
Which is the easiest class that fulfills the PreMajor requirement ?
CREATE TABLE program_course ( program_id int, course_id int, workload int, category 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 instructor ( instructor_id int, name varchar, uniqname varchar ) CREATE TABLE ta ( campus_job_id int, student_id int, location varchar ) CREATE TABLE program_requirement ( program_id int, category varchar, min_credit int, additional_req varchar ) CREATE TABLE requirement ( requirement_id int, requirement varchar, college varchar ) CREATE TABLE comment_instructor ( instructor_id int, student_id int, score int, comment_text varchar ) CREATE TABLE program ( program_id int, name varchar, college varchar, introduction varchar ) CREATE TABLE gsi ( course_offering_id int, student_id int ) CREATE TABLE jobs ( job_id int, job_title varchar, description varchar, requirement varchar, city varchar, state varchar, country varchar, zip int ) CREATE TABLE semester ( semester_id int, semester varchar, year 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 area ( course_id int, area varchar ) 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 offering_instructor ( offering_instructor_id int, offering_id int, instructor_id int ) CREATE TABLE course_prerequisite ( pre_course_id int, course_id int ) 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 )
SELECT MIN(europa_league) FROM table
Name the least europa league
CREATE TABLE table (europa_league INTEGER)
SELECT scoreboard FROM table_19744915_3 WHERE karen = "4.5"
what is the scoreboard when karen was 4.5
CREATE TABLE table_19744915_3 (scoreboard VARCHAR, karen VARCHAR)
SELECT nfl_team FROM table_name_33 WHERE college = "washington"
Which NFL team has a player that came from a college in Washington?
CREATE TABLE table_name_33 ( nfl_team VARCHAR, college VARCHAR )
SELECT COUNT(high_rebounds) FROM table_22822559_4 WHERE date = "November 27"
What was the total number of rebounds on november 27?
CREATE TABLE table_22822559_4 (high_rebounds VARCHAR, date VARCHAR)
SELECT COUNT(couple) FROM table_19744915_3 WHERE total = "14.5"
how many coupless totalled 14.5
CREATE TABLE table_19744915_3 (couple VARCHAR, total VARCHAR)
SELECT SUM("Wins") FROM table_33457 WHERE "Points" = '48' AND "Year" < '2007'
Before 2007, how many wins were there when the point total was 48?
CREATE TABLE table_33457 ( "Year" real, "Drivers" text, "Wins" real, "Points" text, "D.C." text )
SELECT date FROM table_22822559_4 WHERE team = "@ Toronto"
On what date did the Pistons play @ toronto?
CREATE TABLE table_22822559_4 (date VARCHAR, team VARCHAR)
SELECT nickname FROM table_1974545_1 WHERE enrollment = 9000
Name the nickname for enrollment being 9000
CREATE TABLE table_1974545_1 (nickname VARCHAR, enrollment VARCHAR)
SELECT "Chassis" FROM table_42846 WHERE "Entrant" = 'patrick racing' AND "Start" > '6'
What chassis has patrick racing as an entrant, with a start greater than 6?
CREATE TABLE table_42846 ( "Year" real, "Chassis" text, "Engine" text, "Start" real, "Finish" real, "Entrant" text )
SELECT COUNT(location_attendance) FROM table_22822559_4 WHERE game = 7
List the location and number of fans in attendance for game 7/
CREATE TABLE table_22822559_4 (location_attendance VARCHAR, game VARCHAR)
SELECT type FROM table_1974632_1 WHERE enrollment = 2102
what type is the institute that enrolled 2102
CREATE TABLE table_1974632_1 (type VARCHAR, enrollment VARCHAR)
SELECT MIN("Silver") FROM table_54758 WHERE "Gold" < '0'
What is the least amount of silver medals a team with less than 0 gold medals has?
CREATE TABLE table_54758 ( "Rank" text, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real )
SELECT steals FROM table_22824302_3 WHERE games_played = 31
How many interceptions for the team who played 31 games?
CREATE TABLE table_22824302_3 (steals VARCHAR, games_played VARCHAR)
SELECT location FROM table_1974632_1 WHERE type = "Private/Presbyterian"
where is the private/presbyterian institute
CREATE TABLE table_1974632_1 (location VARCHAR, type VARCHAR)
SELECT "Became Consort" FROM table_68308 WHERE "Spouse" = 'christian ix'
Name the became consort for christian ix spouse
CREATE TABLE table_68308 ( "Name" text, "Birth" text, "Marriage" text, "Became Consort" text, "Ceased to be Consort" text, "Spouse" text )
SELECT MIN(steals) FROM table_22824302_3 WHERE rebounds = 121
How many steals for the player who had 121 rebounds?
CREATE TABLE table_22824302_3 (steals INTEGER, rebounds VARCHAR)
SELECT type FROM table_1974632_1 WHERE institution = "Alvernia University"
what type of institution is alvernia university
CREATE TABLE table_1974632_1 (type VARCHAR, institution VARCHAR)
SELECT inf_stem FROM table_name_10 WHERE subj_pres = "ou"
What is the infinitive stem that has a subjunctive present of ou?
CREATE TABLE table_name_10 ( inf_stem VARCHAR, subj_pres VARCHAR )
SELECT date FROM table_22822559_8 WHERE record = "23-47"
What date was the Piston's record at 23-47?
CREATE TABLE table_22822559_8 (date VARCHAR, record VARCHAR)
SELECT institution FROM table_1974632_1 WHERE location = "Glenside, Pennsylvania"
state the institution in glenside, pennsylvania
CREATE TABLE table_1974632_1 (institution VARCHAR, location VARCHAR)
SELECT SUM(week) FROM table_name_30 WHERE date = "december 4, 1976" AND attendance > 57 OFFSET 366
How many weeks have a Date of december 4, 1976, and an Attendance larger than 57,366?
CREATE TABLE table_name_30 ( week INTEGER, date VARCHAR, attendance VARCHAR )
SELECT high_rebounds FROM table_22822559_8 WHERE record = "23-47"
Who had the highest rebounds during the game with a record of 23-47?
CREATE TABLE table_22822559_8 (high_rebounds VARCHAR, record VARCHAR)
SELECT result FROM table_19753079_13 WHERE first_elected = 2004 AND incumbent = "John Barrow"
What was the result when John Barrow was the incumbent first elected in 2004?
CREATE TABLE table_19753079_13 (result VARCHAR, first_elected VARCHAR, incumbent VARCHAR)
SELECT COUNT("Played") FROM table_43629 WHERE "Goal Difference" = '11' AND "Goals against" > '44'
What is the total number of played for the goals against over 44 and a goal difference of 11?
CREATE TABLE table_43629 ( "Position" real, "Played" real, "Points" real, "Wins" real, "Draws" real, "Losses" real, "Goals for" real, "Goals against" real, "Goal Difference" real )
SELECT COUNT(rebounds) FROM table_22824199_1 WHERE points = 147
How many rebound did the person who scored 147 points have?
CREATE TABLE table_22824199_1 (rebounds VARCHAR, points VARCHAR)
SELECT COUNT(incumbent) FROM table_19753079_13 WHERE party = "Democratic" AND district = "Georgia 8"
How many incumbents are there in the georgia 8 district when the party is democratic?
CREATE TABLE table_19753079_13 (incumbent VARCHAR, party VARCHAR, district VARCHAR)
SELECT asset_make, COUNT(asset_make) FROM Assets GROUP BY asset_make ORDER BY asset_make DESC
Show the number of assets and group by asset make in a bar chart, and display in desc by the asset_make.
CREATE TABLE Part_Faults ( part_fault_id INTEGER, part_id INTEGER, fault_short_name VARCHAR(20), fault_description VARCHAR(255), other_fault_details VARCHAR(255) ) CREATE TABLE Fault_Log ( fault_log_entry_id INTEGER, asset_id INTEGER, recorded_by_staff_id INTEGER, fault_log_entry_datetime DATETIME, fault_description VARCHAR(255), other_fault_details VARCHAR(255) ) CREATE TABLE Fault_Log_Parts ( fault_log_entry_id INTEGER, part_fault_id INTEGER, fault_status VARCHAR(10) ) CREATE TABLE Engineer_Visits ( engineer_visit_id INTEGER, contact_staff_id INTEGER, engineer_id INTEGER, fault_log_entry_id INTEGER, fault_status VARCHAR(10), visit_start_datetime DATETIME, visit_end_datetime DATETIME, other_visit_details VARCHAR(255) ) CREATE TABLE Assets ( asset_id INTEGER, maintenance_contract_id INTEGER, supplier_company_id INTEGER, asset_details VARCHAR(255), asset_make VARCHAR(20), asset_model VARCHAR(20), asset_acquired_date DATETIME, asset_disposed_date DATETIME, other_asset_details VARCHAR(255) ) CREATE TABLE Third_Party_Companies ( company_id INTEGER, company_type VARCHAR(5), company_name VARCHAR(255), company_address VARCHAR(255), other_company_details VARCHAR(255) ) CREATE TABLE Maintenance_Engineers ( engineer_id INTEGER, company_id INTEGER, first_name VARCHAR(50), last_name VARCHAR(50), other_details VARCHAR(255) ) CREATE TABLE Skills ( skill_id INTEGER, skill_code VARCHAR(20), skill_description VARCHAR(255) ) CREATE TABLE Skills_Required_To_Fix ( part_fault_id INTEGER, skill_id INTEGER ) CREATE TABLE Staff ( staff_id INTEGER, staff_name VARCHAR(255), gender VARCHAR(1), other_staff_details VARCHAR(255) ) CREATE TABLE Engineer_Skills ( engineer_id INTEGER, skill_id INTEGER ) CREATE TABLE Asset_Parts ( asset_id INTEGER, part_id INTEGER ) CREATE TABLE Maintenance_Contracts ( maintenance_contract_id INTEGER, maintenance_contract_company_id INTEGER, contract_start_date DATETIME, contract_end_date DATETIME, other_contract_details VARCHAR(255) ) CREATE TABLE Parts ( part_id INTEGER, part_name VARCHAR(255), chargeable_yn VARCHAR(1), chargeable_amount VARCHAR(20), other_part_details VARCHAR(255) )
SELECT MIN(three_pointers) FROM table_22824199_1 WHERE free_throws = 50
Of the players with 50 free throws, what is the lowest number of three pointers?
CREATE TABLE table_22824199_1 (three_pointers INTEGER, free_throws VARCHAR)
SELECT district FROM table_19753079_13 WHERE incumbent = "John Linder"
In what district is the incumbent John Linder?
CREATE TABLE table_19753079_13 (district VARCHAR, incumbent VARCHAR)
SELECT COUNT(setting) FROM table_10413597_5 WHERE no_in_series = 29
How many settings where there for episode 29 of the season?
CREATE TABLE table_10413597_5 ( setting VARCHAR, no_in_series VARCHAR )
SELECT player FROM table_22824199_1 WHERE rebounds = 156
Who are all the players with 156 rebounds?
CREATE TABLE table_22824199_1 (player VARCHAR, rebounds VARCHAR)
SELECT result FROM table_19753079_13 WHERE district = "Georgia 8"
What was the result of the Georgia 8 district?
CREATE TABLE table_19753079_13 (result VARCHAR, district VARCHAR)
SELECT AVG("Crowd") FROM table_57312 WHERE "Venue" = 'brunswick street oval'
What is the average crowd size for Brunswick street oval?
CREATE TABLE table_57312 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT MAX(games_played) FROM table_22824199_1 WHERE three_pointers = 5
Of the players who scored 5 three pointers, what is the highest number of games played?
CREATE TABLE table_22824199_1 (games_played INTEGER, three_pointers VARCHAR)
SELECT mind FROM table_19760_1 WHERE reason = "qut"
What is the mind of the one that has qut reason?
CREATE TABLE table_19760_1 (mind VARCHAR, reason VARCHAR)
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight, food_service WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRANCISCO' AND flight.to_airport = AIRPORT_SERVICE_1.airport_code AND food_service.meal_code = flight.meal_code AND food_service.meal_description = 'BREAKFAST') AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BOSTON' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code
list flights between BOSTON and SAN FRANCISCO that serve BREAKFAST
CREATE TABLE class_of_service ( booking_class varchar, rank int, class_description text ) 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 airline ( airline_code varchar, airline_name text, note text ) CREATE TABLE state ( state_code text, state_name text, country_name text ) 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 ground_service ( city_code text, airport_code text, transport_type text, ground_fare int ) 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 compartment_class ( compartment varchar, class_type varchar ) CREATE TABLE food_service ( meal_code text, meal_number int, compartment text, meal_description varchar ) CREATE TABLE time_interval ( period text, begin_time int, end_time int ) CREATE TABLE flight_leg ( flight_id int, leg_number int, leg_flight int ) 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 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 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 month ( month_number int, month_name text ) CREATE TABLE equipment_sequence ( aircraft_code_sequence varchar, aircraft_code varchar ) CREATE TABLE days ( days_code varchar, day_name varchar ) CREATE TABLE time_zone ( time_zone_code text, time_zone_name text, hours_from_gmt 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 airport_service ( city_code varchar, airport_code varchar, miles_distant int, direction varchar, minutes_distant int ) CREATE TABLE dual_carrier ( main_airline varchar, low_flight_number int, high_flight_number int, dual_airline varchar, service_name text ) 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 ) CREATE TABLE date_day ( month_number int, day_number int, year int, day_name varchar ) CREATE TABLE code_description ( code varchar, description text )
SELECT no FROM table_22824297_1 WHERE hometown = "Canton, Illinois"
What is every number for the hometown of Canton, Illinois?
CREATE TABLE table_22824297_1 (no VARCHAR, hometown VARCHAR)
SELECT understanding FROM table_19760_1 WHERE reason = "νοῦς Nous"
What is the understanding of the one that has νοῦς nous reasoning?
CREATE TABLE table_19760_1 (understanding VARCHAR, reason VARCHAR)
SELECT team FROM table_name_27 WHERE name = "sue bird"
Name of sue bird that involves what team?
CREATE TABLE table_name_27 ( team VARCHAR, name VARCHAR )
SELECT player FROM table_22824297_1 WHERE height = "6-5"
Who is every player with a height of 6-5?
CREATE TABLE table_22824297_1 (player VARCHAR, height VARCHAR)
SELECT MIN(1949 AS _50__) AS $_millions_ FROM table_19766_1 WHERE cumulative__$_millions_ = 376
How much was spent in 1949/50 (in $ millions) in the country where the cumulative expenditure is $376 millions?
CREATE TABLE table_19766_1 (cumulative__$_millions_ VARCHAR)
SELECT JOB_ID, AVG(SALARY) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' GROUP BY JOB_ID ORDER BY AVG(SALARY)
For all employees who have the letters D or S in their first name, return a bar chart about the distribution of job_id and the average of salary , and group by attribute job_id, show y-axis in asc order.
CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE job_history ( EMPLOYEE_ID decimal(6,0), START_DATE date, END_DATE date, JOB_ID varchar(10), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varchar(12), CITY varchar(30), STATE_PROVINCE varchar(25), COUNTRY_ID varchar(2) ) CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) ) CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER varchar(20), HIRE_DATE date, JOB_ID varchar(10), SALARY decimal(8,2), COMMISSION_PCT decimal(2,2), MANAGER_ID decimal(6,0), DEPARTMENT_ID decimal(4,0) )
SELECT player FROM table_22824297_1 WHERE hometown = "Carbondale, Illinois"
Who are all players from hometown of Carbondale, Illinois?
CREATE TABLE table_22824297_1 (player VARCHAR, hometown VARCHAR)
SELECT MAX(1948 AS _49__) AS $_millions_ FROM table_19766_1 WHERE country = "Iceland"
How many millions of $ were spent in Iceland in 1948/49?
CREATE TABLE table_19766_1 (country VARCHAR)