answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT date FROM table_name_70 WHERE score_in_final = "6–3, 6–3"
On what Date was the Score in Final 6–3, 6–3?
CREATE TABLE table_name_70 (date VARCHAR, score_in_final VARCHAR)
SELECT last_match FROM table_name_26 WHERE date_of_vacancy = "round 2" AND outgoing_manager = "ney franco"
What is the last match with a vacancy date of round 2 and Ney Franco as outgoing manager?
CREATE TABLE table_name_26 ( last_match VARCHAR, date_of_vacancy VARCHAR, outgoing_manager VARCHAR )
SELECT COUNT(name_of_film) FROM table_25926120_3 WHERE language = "Hindi"
How many films were in hindi?
CREATE TABLE table_25926120_3 (name_of_film VARCHAR, language VARCHAR)
SELECT opponents_in_final FROM table_name_5 WHERE score_in_final = "6–4, 3–6, 5–7"
What was the Opponents in Final during the match with a Score in Final of 6–4, 3–6, 5–7?
CREATE TABLE table_name_5 (opponents_in_final VARCHAR, score_in_final VARCHAR)
SELECT "Title" FROM table_2987 WHERE "Production code" = '446913'
Name the title for 446913
CREATE TABLE table_2987 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" real )
SELECT COUNT(name_of_film) FROM table_25926120_3 WHERE language = "Assamese"
How many films were in assamese?
CREATE TABLE table_25926120_3 (name_of_film VARCHAR, language VARCHAR)
SELECT COUNT(season) FROM table_name_34 WHERE location = "aspen, usa"
How many seasons took place in aspen, usa?
CREATE TABLE table_name_34 (season VARCHAR, location VARCHAR)
SELECT AVG(decile) FROM table_name_64 WHERE authority = "state" AND name = "ruapehu college"
What is the average decile of Ruapehu college, which has a state authority?
CREATE TABLE table_name_64 ( decile INTEGER, authority VARCHAR, name VARCHAR )
SELECT awardee_s_ FROM table_25926120_3 WHERE name_of_award = "Best Actor"
Who won best actor?
CREATE TABLE table_25926120_3 (awardee_s_ VARCHAR, name_of_award VARCHAR)
SELECT place FROM table_name_93 WHERE date = "12 feb 2012"
Which place was earned on 12 feb 2012?
CREATE TABLE table_name_93 (place VARCHAR, date VARCHAR)
SELECT COUNT(team) FROM table_27700530_9 WHERE game = 13
How many games were numbered 13?
CREATE TABLE table_27700530_9 ( team VARCHAR, game VARCHAR )
SELECT winner FROM table_25938117_1 WHERE date = "Jan 24"
Name the winner for jan 24
CREATE TABLE table_25938117_1 (winner VARCHAR, date VARCHAR)
SELECT location FROM table_name_69 WHERE date = "28 dec 2010"
Where was the race on 28 dec 2010 held?
CREATE TABLE table_name_69 (location VARCHAR, date VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.ethnicity = "WHITE" AND lab.itemid = "51269"
how many patients whose ethnicity is white and item id is 51269?
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 ) 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 )
SELECT COUNT(date) FROM table_25938117_1 WHERE tournament = "Toshiba Classic"
Name the total number of dates for toshiba classic
CREATE TABLE table_25938117_1 (date VARCHAR, tournament VARCHAR)
SELECT length_overall FROM table_name_38 WHERE designation = "s-8ko"
What is the overall length with a designation of s-8ko?
CREATE TABLE table_name_38 (length_overall VARCHAR, designation VARCHAR)
SELECT to_par FROM table_name_81 WHERE country = "spain"
What is the To par of the Player from Spain?
CREATE TABLE table_name_81 ( to_par VARCHAR, country VARCHAR )
SELECT tournament FROM table_25938117_1 WHERE location = "Dominican Republic"
Name the tournament for dominican republic
CREATE TABLE table_25938117_1 (tournament VARCHAR, location VARCHAR)
SELECT designation FROM table_name_37 WHERE launch_weight = "11.3kg"
What designation has a launch weight of 11.3kg?
CREATE TABLE table_name_37 (designation VARCHAR, launch_weight VARCHAR)
SELECT MIN(crowd) FROM table_name_77 WHERE venue = "windy hill"
What was the lowest attendance at Windy Hill?
CREATE TABLE table_name_77 ( crowd INTEGER, venue VARCHAR )
SELECT COUNT(winner) FROM table_25938117_1 WHERE tournament = "Allianz Championship"
Name the total number of winners for allianz championship
CREATE TABLE table_25938117_1 (winner VARCHAR, tournament VARCHAR)
SELECT type FROM table_name_92 WHERE length_overall = "1.605 m"
What type has an overall length of 1.605 m?
CREATE TABLE table_name_92 (type VARCHAR, length_overall VARCHAR)
SELECT date_address_to, AVG(monthly_rental) FROM Student_Addresses GROUP BY other_details ORDER BY monthly_rental DESC
Draw a bar chart about the distribution of date_address_to and the average of monthly_rental , and group by attribute other_details and bin date_address_to by weekday.
CREATE TABLE Students ( student_id INTEGER, address_id INTEGER, first_name VARCHAR(80), middle_name VARCHAR(40), last_name VARCHAR(40), cell_mobile_number VARCHAR(40), email_address VARCHAR(40), date_first_rental DATETIME, date_left_university DATETIME, other_student_details VARCHAR(255) ) CREATE TABLE Behavior_Incident ( incident_id INTEGER, incident_type_code VARCHAR(10), student_id INTEGER, date_incident_start DATETIME, date_incident_end DATETIME, incident_summary VARCHAR(255), recommendations VARCHAR(255), other_details VARCHAR(255) ) CREATE TABLE Students_in_Detention ( student_id INTEGER, detention_id INTEGER, incident_id INTEGER ) CREATE TABLE Ref_Incident_Type ( incident_type_code VARCHAR(10), incident_type_description VARCHAR(80) ) CREATE TABLE Assessment_Notes ( notes_id INTEGER, student_id INTEGER, teacher_id INTEGER, date_of_notes DATETIME, text_of_notes VARCHAR(255), other_details VARCHAR(255) ) CREATE TABLE Teachers ( teacher_id INTEGER, address_id INTEGER, first_name VARCHAR(80), middle_name VARCHAR(80), last_name VARCHAR(80), gender VARCHAR(1), cell_mobile_number VARCHAR(40), email_address VARCHAR(40), other_details VARCHAR(255) ) CREATE TABLE Student_Addresses ( student_id INTEGER, address_id INTEGER, date_address_from DATETIME, date_address_to DATETIME, monthly_rental DECIMAL(19,4), other_details VARCHAR(255) ) CREATE TABLE Addresses ( address_id INTEGER, line_1 VARCHAR(120), line_2 VARCHAR(120), line_3 VARCHAR(120), city VARCHAR(80), zip_postcode VARCHAR(20), state_province_county VARCHAR(50), country VARCHAR(50), other_address_details VARCHAR(255) ) CREATE TABLE Ref_Detention_Type ( detention_type_code VARCHAR(10), detention_type_description VARCHAR(80) ) CREATE TABLE Detention ( detention_id INTEGER, detention_type_code VARCHAR(10), teacher_id INTEGER, datetime_detention_start DATETIME, datetime_detention_end DATETIME, detention_summary VARCHAR(255), other_details VARCHAR(255) ) CREATE TABLE Ref_Address_Types ( address_type_code VARCHAR(15), address_type_description VARCHAR(80) )
SELECT 1 AS st_prize___$__ FROM table_25938117_1 WHERE tournament = "Senior PGA Championship"
Name the 1st prize for senior pga championship
CREATE TABLE table_25938117_1 (tournament VARCHAR)
SELECT SUM(touchdowns) FROM table_name_81 WHERE field_goals < 0
How many touchdowns were made where field goals were less than 0?
CREATE TABLE table_name_81 (touchdowns INTEGER, field_goals INTEGER)
SELECT laps FROM table_name_46 WHERE driver = "dario franchitti"
How many laps does driver dario franchitti have?
CREATE TABLE table_name_46 ( laps VARCHAR, driver VARCHAR )
SELECT place FROM table_25931938_1 WHERE aggregate = 35
What was the place for the celebrity whose aggregate was 35?
CREATE TABLE table_25931938_1 (place VARCHAR, aggregate VARCHAR)
SELECT AVG(points) FROM table_name_86 WHERE field_goals = 0 AND touchdowns > 9 AND extra_points = 0 AND player = "duncan thompson"
While Duncan Thompson played, how many points did he have where there were 0 field goals, 0 extra points, and more than 9 touchdowns?
CREATE TABLE table_name_86 (points INTEGER, player VARCHAR, extra_points VARCHAR, field_goals VARCHAR, touchdowns VARCHAR)
SELECT Left AS office FROM table_name_94 WHERE location = "washington"
What left office date happened in Washington?
CREATE TABLE table_name_94 ( Left VARCHAR, location VARCHAR )
SELECT MIN(dances) FROM table_25931938_1 WHERE celebrity = "John Barnes"
How many dances did John Barnes have?
CREATE TABLE table_25931938_1 (dances INTEGER, celebrity VARCHAR)
SELECT AVG(field_goals) FROM table_name_87 WHERE points > 50 AND extra_points > 0 AND player = "herb graver" AND touchdowns < 15
When Herb Graver played, how many field goals were made when there were more than 50 points, less than 15 touchdowns, and more than 0 extra points?
CREATE TABLE table_name_87 (field_goals INTEGER, touchdowns VARCHAR, player VARCHAR, points VARCHAR, extra_points VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.flag = "abnormal" AND lab.label = "Uric Acid"
What is the number of patients with an abnormal uric acid lab test?
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 MAX(age) FROM table_25931938_1 WHERE aggregate = 402
What is the age of the celebrity who had a 402 aggregate?
CREATE TABLE table_25931938_1 (age INTEGER, aggregate VARCHAR)
SELECT AVG(field_goals) FROM table_name_79 WHERE touchdowns < 15 AND points < 45
How many field goals were there, where the points where less than 45 and there were less than 15 touchdowns?
CREATE TABLE table_name_79 (field_goals INTEGER, touchdowns VARCHAR, points VARCHAR)
SELECT date_of_replacement FROM table_name_98 WHERE date_outgoing = "august 20, 2008"
When did the manager take over for the manager that left on August 20, 2008?
CREATE TABLE table_name_98 ( date_of_replacement VARCHAR, date_outgoing VARCHAR )
SELECT MAX(aggregate) FROM table_25931938_1 WHERE celebrity = "Ricky Groves"
What was the aggregate for Ricky Groves?
CREATE TABLE table_25931938_1 (aggregate INTEGER, celebrity VARCHAR)
SELECT position FROM table_name_70 WHERE points = "test driver"
What is the position of the race with a point of test driver?
CREATE TABLE table_name_70 (position VARCHAR, points VARCHAR)
SELECT "Date" FROM table_11478 WHERE "Margin of victory" = '5 strokes'
What is the date of the tournament with 5 strokes as the margin of victory?
CREATE TABLE table_11478 ( "Date" text, "Tournament" text, "Winning score" text, "To par" text, "Margin of victory" text )
SELECT aggregate FROM table_25931938_1 WHERE dances = 7 AND known_for = "Singer"
What was the aggregate for the celebrity who was known for being a singer and had 7 dances?
CREATE TABLE table_25931938_1 (aggregate VARCHAR, dances VARCHAR, known_for VARCHAR)
SELECT wins FROM table_name_16 WHERE f_laps = "0" AND series = "formula three euroseries" AND team = "kolles & heinz union"
How many wins did team Kolles & Heinz union, with f/laps of 0, have in the Formula Three Euroseries?
CREATE TABLE table_name_16 (wins VARCHAR, team VARCHAR, f_laps VARCHAR, series VARCHAR)
SELECT COUNT(*) > 0 FROM course, course_offering, semester WHERE course_offering.start_time < '12:00:00' AND course_offering.start_time >= '08:00:00' AND course.course_id = course_offering.course_id AND course.department = 'ARMENIAN' AND course.number = 171 AND semester.semester = 'WN' AND semester.semester_id = course_offering.semester AND semester.year = 2016
Any morning classes for ARMENIAN 171 ?
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 ( program_id int, name varchar, college varchar, introduction varchar ) 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 program_requirement ( program_id int, category varchar, min_credit int, additional_req varchar ) CREATE TABLE jobs ( job_id int, job_title varchar, description varchar, requirement varchar, city varchar, state varchar, country varchar, zip int ) CREATE TABLE gsi ( course_offering_id int, student_id int ) CREATE TABLE course_prerequisite ( pre_course_id int, course_id int ) CREATE TABLE offering_instructor ( offering_instructor_id int, offering_id int, instructor_id int ) CREATE TABLE program_course ( program_id int, course_id int, workload int, category varchar ) CREATE TABLE semester ( semester_id int, semester varchar, year int ) 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 requirement ( requirement_id int, requirement varchar, college varchar ) CREATE TABLE area ( course_id int, area varchar ) CREATE TABLE comment_instructor ( instructor_id int, student_id int, score int, comment_text varchar ) CREATE TABLE ta ( campus_job_id int, student_id int, location 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 instructor ( instructor_id int, name varchar, uniqname varchar )
SELECT conditions_of_access FROM table_25965003_3 WHERE access_using_a_croatian_identity_card = "Yes" AND length_of_stay_permitted = "Freedom of movement"
What are the conditions of access where access using a Croatian identity card is yes and the length of stay permitted is freedom of movement?
CREATE TABLE table_25965003_3 (conditions_of_access VARCHAR, access_using_a_croatian_identity_card VARCHAR, length_of_stay_permitted VARCHAR)
SELECT series FROM table_name_58 WHERE f_laps = "4"
Which series has 4 f/laps?
CREATE TABLE table_name_58 (series VARCHAR, f_laps VARCHAR)
SELECT "Date" FROM table_34346 WHERE "Score" = '199 (–17)'
What is the Date of the tournament with a score of 199 ( 17)?
CREATE TABLE table_34346 ( "Date" text, "Tournament" text, "Location" text, "Winner" text, "Score" text, "1st prize ( $ )" real )
SELECT access_using_a_croatian_identity_card FROM table_25965003_3 WHERE countries_and_territories = "Jersey"
Can one access the Jersey territory using a Croatian identity card?
CREATE TABLE table_25965003_3 (access_using_a_croatian_identity_card VARCHAR, countries_and_territories VARCHAR)
SELECT wins FROM table_name_82 WHERE podiums = "0" AND team = "team autotecnica"
How many wins did Team Autotecnica, with 0 podiums, have?
CREATE TABLE table_name_82 (wins VARCHAR, podiums VARCHAR, team 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 = 'PITTSBURGH' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRANCISCO' 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 would be cost of a round trip from PITTSBURGH to SAN FRANCISCO
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 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 compartment_class ( compartment varchar, class_type varchar ) CREATE TABLE date_day ( month_number int, day_number int, year int, day_name varchar ) CREATE TABLE flight_leg ( flight_id int, leg_number int, leg_flight int ) CREATE TABLE airport_service ( city_code varchar, airport_code varchar, miles_distant int, direction varchar, minutes_distant int ) CREATE TABLE time_zone ( time_zone_code text, time_zone_name text, hours_from_gmt int ) CREATE TABLE city ( city_code varchar, city_name varchar, state_code varchar, country_name varchar, time_zone_code varchar ) 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 ground_service ( city_code text, airport_code text, transport_type text, ground_fare int ) CREATE TABLE dual_carrier ( main_airline varchar, low_flight_number int, high_flight_number int, dual_airline varchar, service_name text ) CREATE TABLE class_of_service ( booking_class varchar, rank int, class_description text ) CREATE TABLE time_interval ( period text, begin_time int, end_time int ) CREATE TABLE code_description ( code varchar, description 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 food_service ( meal_code text, meal_number int, compartment text, meal_description varchar ) CREATE TABLE flight_fare ( flight_id int, fare_id int ) CREATE TABLE airline ( airline_code varchar, airline_name text, note 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 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 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 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 )
SELECT fee__if_applicable_ FROM table_25965003_3 WHERE countries_and_territories = "Norway"
What is the fee (if applicable) for Norway?
CREATE TABLE table_25965003_3 (fee__if_applicable_ VARCHAR, countries_and_territories VARCHAR)
SELECT races FROM table_name_99 WHERE points = "10.5"
How many races had 10.5 points?
CREATE TABLE table_name_99 (races VARCHAR, points VARCHAR)
SELECT COUNT(goals_for) FROM table_name_48 WHERE ties > 0 AND goals_against > 35 AND wins < 2
what is the total number of goals for when the ties is more than 0, the goals against is more than 35 and the wins is less than 2?
CREATE TABLE table_name_48 ( goals_for VARCHAR, wins VARCHAR, ties VARCHAR, goals_against VARCHAR )
SELECT length_of_stay_permitted FROM table_25965003_3 WHERE countries_and_territories = "Jersey"
What is the permitted length of stay in the Jersey territory?
CREATE TABLE table_25965003_3 (length_of_stay_permitted VARCHAR, countries_and_territories VARCHAR)
SELECT wins FROM table_name_15 WHERE podiums = "5"
How many wins did the team with 5 podiums have?
CREATE TABLE table_name_15 (wins VARCHAR, podiums VARCHAR)
SELECT "College" FROM table_65742 WHERE "Conf." = 'swc' AND "Pos." = 'wr'
What is the College of the WR Player from SWC Conf?
CREATE TABLE table_65742 ( "Original NFL team" text, "Player" text, "Pos." text, "College" text, "Conf." text )
SELECT access_using_a_croatian_identity_card FROM table_25965003_3 WHERE countries_and_territories = "Faroe Islands"
Can one access the Faroe Islands using a Croatian identity card?
CREATE TABLE table_25965003_3 (access_using_a_croatian_identity_card VARCHAR, countries_and_territories VARCHAR)
SELECT MIN(round) FROM table_name_26 WHERE player = "jim thompson"
What is recorded as the lowest Round for the Player Jim Thompson?
CREATE TABLE table_name_26 (round INTEGER, player VARCHAR)
SELECT player FROM table_name_21 WHERE to_par = 12 AND country = "fiji"
Which Player has a To par of 12, and a Country of fiji?
CREATE TABLE table_name_21 ( player VARCHAR, to_par VARCHAR, country VARCHAR )
SELECT length_of_stay_permitted FROM table_25965003_3 WHERE countries_and_territories = "European Union"
What length of stay is permitted in the European Union?
CREATE TABLE table_25965003_3 (length_of_stay_permitted VARCHAR, countries_and_territories VARCHAR)
SELECT MAX(round) FROM table_name_91 WHERE position = "tackle" AND player = "fred neilsen"
What is the highest Round that has a Position of Tackle and the Player Fred Neilsen?
CREATE TABLE table_name_91 (round INTEGER, position VARCHAR, player VARCHAR)
SELECT date FROM table_name_17 WHERE tie_no = "15"
When has a Tie no of 15?
CREATE TABLE table_name_17 ( date VARCHAR, tie_no VARCHAR )
SELECT complement FROM table_2596811_12 WHERE killed = "3 off 37 men"
What was the complement for the unit that had 3 off 37 men killed?
CREATE TABLE table_2596811_12 (complement VARCHAR, killed VARCHAR)
SELECT position FROM table_name_95 WHERE round = 27
What Position has a Round of 27?
CREATE TABLE table_name_95 (position VARCHAR, round 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 = 'SAN FRANCISCO' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'LOS ANGELES' 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 = 'SAN FRANCISCO' AND CITYalias3.city_code = AIRPORT_SERVICEalias3.city_code AND CITYalias3.city_name = 'LOS ANGELES' 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 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
lowest fare from SAN FRANCISCO to LOS ANGELES
CREATE TABLE state ( state_code text, state_name text, country_name text ) CREATE TABLE date_day ( month_number int, day_number int, year int, day_name varchar ) 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 time_interval ( period text, begin_time int, end_time int ) CREATE TABLE ground_service ( city_code text, airport_code text, transport_type text, ground_fare 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 airline ( airline_code varchar, airline_name text, note text ) CREATE TABLE month ( month_number int, month_name text ) CREATE TABLE flight_leg ( flight_id int, leg_number int, leg_flight int ) CREATE TABLE airport_service ( city_code varchar, airport_code varchar, miles_distant int, direction varchar, minutes_distant int ) 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 class_of_service ( booking_class varchar, rank int, class_description text ) CREATE TABLE dual_carrier ( main_airline varchar, low_flight_number int, high_flight_number int, dual_airline varchar, service_name 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 equipment_sequence ( aircraft_code_sequence varchar, aircraft_code 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 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 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 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 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 food_service ( meal_code text, meal_number int, compartment text, meal_description varchar ) CREATE TABLE compartment_class ( compartment varchar, class_type varchar ) CREATE TABLE flight_fare ( flight_id int, fare_id int )
SELECT COUNT(wounded) FROM table_2596811_12 WHERE complement = "22 off 637 men"
What is the number of wounded figures associated with a complement of 22 off 637 men?
CREATE TABLE table_2596811_12 (wounded VARCHAR, complement VARCHAR)
SELECT SUM(drawn) FROM table_name_85 WHERE points < 6 AND games > 8
Name the sum of drawn for points less than 6 and games more than 8
CREATE TABLE table_name_85 (drawn INTEGER, points VARCHAR, games VARCHAR)
SELECT card_type_code, COUNT(*) FROM Financial_Transactions AS T1 JOIN Customers_Cards AS T2 ON T1.card_id = T2.card_id GROUP BY T2.card_type_code ORDER BY COUNT(*)
Return a bar chart on what are the different card types, and how many transactions have been made with each?, sort Y-axis in asc order please.
CREATE TABLE Financial_Transactions ( transaction_id INTEGER, previous_transaction_id INTEGER, account_id INTEGER, card_id INTEGER, transaction_type VARCHAR(15), transaction_date DATETIME, transaction_amount DOUBLE, transaction_comment VARCHAR(255), other_transaction_details VARCHAR(255) ) CREATE TABLE Customers_Cards ( card_id INTEGER, customer_id INTEGER, card_type_code VARCHAR(15), card_number VARCHAR(80), date_valid_from DATETIME, date_valid_to DATETIME, other_card_details VARCHAR(255) ) CREATE TABLE Customers ( customer_id INTEGER, customer_first_name VARCHAR(20), customer_last_name VARCHAR(20), customer_address VARCHAR(255), customer_phone VARCHAR(255), customer_email VARCHAR(255), other_customer_details VARCHAR(255) ) CREATE TABLE Accounts ( account_id INTEGER, customer_id INTEGER, account_name VARCHAR(50), other_account_details VARCHAR(255) )
SELECT COUNT(commander) FROM table_2596811_12 WHERE killed = "0 off 63 men"
What is the number of commanders that had 0 off 63 men killed?
CREATE TABLE table_2596811_12 (commander VARCHAR, killed VARCHAR)
SELECT COUNT(displacement__tons_) FROM table_name_52 WHERE armament = "2 x -inch (mm), 16 x -inch (mm)"
How much Displacement (tons) has an Armament of 2 x -inch (mm), 16 x -inch (mm)?
CREATE TABLE table_name_52 (displacement__tons_ VARCHAR, armament VARCHAR)
SELECT COUNT(date) FROM table_1140103_6 WHERE circuit = "Silverstone"
How many dates have silverstone circuit
CREATE TABLE table_1140103_6 ( date VARCHAR, circuit VARCHAR )
SELECT complement FROM table_2596811_12 WHERE killed = "0 off 3 men" AND wounded = "0 off 2 men"
What was the complement associated with 0 off 3 men killed and 0 off 2 men wounded?
CREATE TABLE table_2596811_12 (complement VARCHAR, killed VARCHAR, wounded VARCHAR)
SELECT opponent FROM table_name_3 WHERE round > 1 AND event = "king of the cage 31"
Which Opponent has a Round larger than 1, and an Event of king of the cage 31?
CREATE TABLE table_name_3 (opponent VARCHAR, round VARCHAR, event VARCHAR)
SELECT grand_prix FROM table_12161822_5 WHERE winning_driver = "Jenson Button"
what's the grand prix with winning driver being jenson button
CREATE TABLE table_12161822_5 ( grand_prix VARCHAR, winning_driver VARCHAR )
SELECT COUNT(rainfall_by_depth__mm_year_) FROM table_25983027_1 WHERE infiltration__km_3__year_ = "9.3"
How many regions had rainfall infiltration (km 3/year) of 9.3?
CREATE TABLE table_25983027_1 (rainfall_by_depth__mm_year_ VARCHAR, infiltration__km_3__year_ VARCHAR)
SELECT time FROM table_name_21 WHERE round > 1 AND event = "total fighting alliance 2"
Which Time has a Round larger than 1, and an Event of total fighting alliance 2?
CREATE TABLE table_name_21 (time VARCHAR, round VARCHAR, event VARCHAR)
SELECT name FROM table_name_69 WHERE year = "junior" AND home_town = "fayetteville, nc"
What is the Name of the Junior from Fayetteville, NC?
CREATE TABLE table_name_69 ( name VARCHAR, year VARCHAR, home_town VARCHAR )
SELECT rainfall_by_volume__km_3__year_ FROM table_25983027_1 WHERE rainfall_by_depth__mm_year_ = 3527
What was the rainfall by volume in Huetar Atlantico where the rainfall depth (mm/year) was 3527?
CREATE TABLE table_25983027_1 (rainfall_by_volume__km_3__year_ VARCHAR, rainfall_by_depth__mm_year_ VARCHAR)
SELECT res FROM table_name_35 WHERE record = "3-0"
Which res has a Record of 3-0?
CREATE TABLE table_name_35 (res VARCHAR, record VARCHAR)
SELECT "district" FROM table_204_579 WHERE "district" IN ('dehradun', 'nainital') ORDER BY "population (as of 2011)" DESC LIMIT 1
which has a larger population , dehradun or nainital ?
CREATE TABLE table_204_579 ( id number, "code" text, "district" text, "headquarters" text, "population (as of 2011)" number, "area (km2)" number, "density (/km2)" number )
SELECT rainfall_by_volume__km_3__year_ FROM table_25983027_1 WHERE rainfall_by_depth__mm_year_ = 2801
In Pacifico Central where the rainfall by depth (mm/year) was 2801 what was the rainfall by volume?
CREATE TABLE table_25983027_1 (rainfall_by_volume__km_3__year_ VARCHAR, rainfall_by_depth__mm_year_ VARCHAR)
SELECT location FROM table_name_16 WHERE event = "king of the cage: flash point"
Which Location has an Event of king of the cage: flash point?
CREATE TABLE table_name_16 (location VARCHAR, event VARCHAR)
SELECT "Date" FROM table_53248 WHERE "Circuit" = 'indianapolis'
What was the date of the Circuit of Indianapolis?
CREATE TABLE table_53248 ( "Race" text, "Circuit" text, "Date" text, "Pole position" text, "Winning driver" text, "Constructor" text, "Tyre" text, "Report" text )
SELECT evapotranspiration__km_3__year_ FROM table_25983027_1 WHERE rainfall_by_volume__km_3__year_ = "13.2"
In the region where the rainfall by volume (km 3 /year) was 13.2, what was the evapotranspiration (km 3 /year)?
CREATE TABLE table_25983027_1 (evapotranspiration__km_3__year_ VARCHAR, rainfall_by_volume__km_3__year_ VARCHAR)
SELECT opponent FROM table_name_63 WHERE loss = "lowe (1-4)"
Who were the opposing team when a Loss was listed with Lowe (1-4)?
CREATE TABLE table_name_63 (opponent VARCHAR, loss VARCHAR)
SELECT COUNT("Records") FROM table_72667 WHERE "#" = '2'
How many teams are #2 on the list?
CREATE TABLE table_72667 ( "#" real, "Minnesota River Conference" text, "Records" text, "Pct." text, "MRC Championships" real, "Solo" real, "Co-Champions" real, "State Champions" real )
SELECT infiltration__km_3__year_ FROM table_25983027_1 WHERE region = "Central"
In the Central region, what was the infiltration (km 3 /year)?
CREATE TABLE table_25983027_1 (infiltration__km_3__year_ VARCHAR, region VARCHAR)
SELECT body_styles FROM table_name_4 WHERE model = "6/75"
What body styles have 6/75 as the model?
CREATE TABLE table_name_4 (body_styles VARCHAR, model VARCHAR)
SELECT away_team FROM table_name_63 WHERE home_team = "solon"
What is the away team when solon was the home team?
CREATE TABLE table_name_63 ( away_team VARCHAR, home_team VARCHAR )
SELECT rainfall_by_depth__mm_year_ FROM table_25983027_1 WHERE land_area__km_2__ = "8,543.2"
In the Central region, where the land area (km 2) is 8,543.2, what was the rainfall by depth (mm/year)?
CREATE TABLE table_25983027_1 (rainfall_by_depth__mm_year_ VARCHAR, land_area__km_2__ VARCHAR)
SELECT body_styles FROM table_name_9 WHERE engine = "devaux-hall inline 6"
What body styles have devaux-hall inline 6 as the engine?
CREATE TABLE table_name_9 (body_styles VARCHAR, engine VARCHAR)
SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.CLASS_President_VOTE
Find the distinct last names of the students who have class president votes.
CREATE TABLE VOTING_RECORD ( CLASS_President_VOTE VARCHAR ) CREATE TABLE STUDENT ( LName VARCHAR, StuID VARCHAR )
SELECT MAX(wins) FROM table_2597876_1 WHERE winnings = "$90,700"
How many wins did Parsons have in the year where his winnings were $90,700?
CREATE TABLE table_2597876_1 (wins INTEGER, winnings VARCHAR)
SELECT model FROM table_name_50 WHERE make = "de vaux continental"
What model has de vaux continental as the make?
CREATE TABLE table_name_50 (model VARCHAR, make VARCHAR)
SELECT COUNT(entrants) FROM table_name_21 WHERE year = 2011
How many entrants were there in 2011?
CREATE TABLE table_name_21 ( entrants VARCHAR, year VARCHAR )
SELECT position FROM table_2597876_1 WHERE year = 1992
What position was Parsons in for 1992?
CREATE TABLE table_2597876_1 (position VARCHAR, year VARCHAR)
SELECT wheelbase FROM table_name_20 WHERE body_styles = "sport coupe (4p.)"
What wheelbase has sport coupe (4p.) as the body style?
CREATE TABLE table_name_20 (wheelbase VARCHAR, body_styles VARCHAR)
SELECT AVG("Chart no.") FROM table_37629 WHERE "Date" = '11/1965'
What is the average chart number for 11/1965?
CREATE TABLE table_37629 ( "Date" text, "Title" text, "Origin" text, "Label & Cat. no." text, "Chart no." real )
SELECT young_rider_classification FROM table_25999087_2 WHERE winner = "Jelle Vanendert"
Who is every young rider classification when Jelle Vanendert is the winner?
CREATE TABLE table_25999087_2 (young_rider_classification VARCHAR, winner VARCHAR)
SELECT score FROM table_name_89 WHERE home = "toronto"
What was the score when the home team was Toronto?
CREATE TABLE table_name_89 (score VARCHAR, home VARCHAR)
SELECT "Score in the final" FROM table_25823 WHERE "Outcome" = 'Runner-up' AND "Championship" = 'Wimbledon'
What were the scores of the Wimbledon final matches where Newcombe was the runner-up?
CREATE TABLE table_25823 ( "Outcome" text, "Year" real, "Championship" text, "Surface" text, "Opponent in the final" text, "Score in the final" text )
SELECT young_rider_classification FROM table_25999087_2 WHERE combativity_award = "Yannick Talabardon"
Who is every young rider classification if combativity award is Yannick Talabardon?
CREATE TABLE table_25999087_2 (young_rider_classification VARCHAR, combativity_award VARCHAR)
SELECT record FROM table_name_64 WHERE home = "minnesota"
What was the record when Minnesota was the home team?
CREATE TABLE table_name_64 (record VARCHAR, home VARCHAR)