answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "HOME HEALTH CARE" AND demographic.days_stay > "29"
provide the number of patients who have been in the hospital for more than 29 days and whose discharge location was home health care.
CREATE TABLE diagnoses ( 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 ) C...
SELECT MAX(swimsuit) FROM table_name_13 WHERE average < 8.073 AND evening_gown < 8.31 AND interview > 8.23 AND state = "georgia"
What's the highest swimsuit for an average less than 8.073, evening gown less than 8.31, and an interview over 8.23 in georgia?
CREATE TABLE table_name_13 (swimsuit INTEGER, state VARCHAR, interview VARCHAR, average VARCHAR, evening_gown VARCHAR)
SELECT COUNT(county) FROM table_20799587_1 WHERE mccain_percentage = "65.72%"
In how many counties did McCain get 65.72% of the votes?
CREATE TABLE table_20799587_1 (county VARCHAR, mccain_percentage VARCHAR)
SELECT q.ViewCount AS "views", ROUND(q.ViewCount / q.AnswerCount, 2) AS "views_per_answer", q.AnswerCount AS "answer_count", q.Id AS "post_link", a.Score AS "answer_score", (CASE WHEN q.AcceptedAnswerId = a.Id THEN 'Yes' ELSE NULL END) AS "accepted" FROM Posts AS q INNER JOIN Posts AS a ON q.Id = a.ParentId WHERE a.Own...
Which of my answers have helped the internet?. Shows you which questions you've answered that have significant view counts.
CREATE TABLE PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number ) CREATE TABLE PostTypes ( Id number, Name text ) CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE Po...
SELECT MIN(swimsuit) FROM table_name_43 WHERE state = "utah" AND interview > 8.53
What's utah's lowest swimsuit with an interview over 8.53?
CREATE TABLE table_name_43 (swimsuit INTEGER, state VARCHAR, interview VARCHAR)
SELECT MIN(obama_number) FROM table_20799587_1 WHERE mccain_percentage = "72.75%"
How many people voted for Obama in the county where McCain got 72.75% of the votes?
CREATE TABLE table_20799587_1 (obama_number INTEGER, mccain_percentage VARCHAR)
SELECT COUNT(*) > 0 FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'ORTHO' AND course.number = 763 AND semester.semester = 'FA' AND semester.semester_id = course_offering.semester AND semester.year = 2016
IS ORTHO 763 available next semester ?
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,...
SELECT COUNT(week) FROM table_name_66 WHERE date = "october 9, 1938"
What week was October 9, 1938?
CREATE TABLE table_name_66 (week VARCHAR, date VARCHAR)
SELECT mccain_percentage FROM table_20799587_1 WHERE county = "Hinds"
What percentage of the votes did McCain get in Hinds?
CREATE TABLE table_20799587_1 (mccain_percentage VARCHAR, county VARCHAR)
SELECT Manager_Name, COUNT(Manager_Name) FROM gas_station GROUP BY Manager_Name ORDER BY COUNT(Manager_Name)
Show the number of gas stations for each manager in a bar chart, I want to rank by the Y from low to high.
CREATE TABLE gas_station ( Station_ID int, Open_Year int, Location text, Manager_Name text, Vice_Manager_Name text, Representative_Name text ) CREATE TABLE station_company ( Station_ID int, Company_ID int, Rank_of_the_Year int ) CREATE TABLE company ( Company_ID int, Rank i...
SELECT home_team FROM table_name_42 WHERE away_team = "collingwood"
What home team played Collingwood as the away team?
CREATE TABLE table_name_42 (home_team VARCHAR, away_team VARCHAR)
SELECT MIN(mccain_number) FROM table_20799587_1 WHERE county = "Scott"
How many votes did McCain get in Scott?
CREATE TABLE table_20799587_1 (mccain_number INTEGER, county VARCHAR)
SELECT chassis FROM table_name_1 WHERE year = 1971
Which chassis was used in 1971?
CREATE TABLE table_name_1 ( chassis VARCHAR, year VARCHAR )
SELECT away_team AS score FROM table_name_77 WHERE venue = "junction oval"
What was the score of the away team at Junction Oval?
CREATE TABLE table_name_77 (away_team VARCHAR, venue VARCHAR)
SELECT obama_percentage FROM table_20799587_1 WHERE county = "Tippah"
What percentage of the votes in Tippah did Obama get?
CREATE TABLE table_20799587_1 (obama_percentage VARCHAR, county VARCHAR)
SELECT MAX("Founded") FROM table_30008 WHERE "Nickname" = 'Titans'
When was the Titans founded?
CREATE TABLE table_30008 ( "Institution" text, "Location" text, "Founded" real, "Type" text, "Enrollment" real, "Nickname" text, "Current Conference" text, "Pac-12 Sports" text )
SELECT constructor FROM table_name_96 WHERE driver = "giancarlo fisichella"
Who built giancarlo fisichella's car?
CREATE TABLE table_name_96 (constructor VARCHAR, driver VARCHAR)
SELECT mccain_percentage FROM table_20799587_1 WHERE county = "Copiah"
What percentage of the votes in Copiah did McCain get?
CREATE TABLE table_20799587_1 (mccain_percentage VARCHAR, county VARCHAR)
SELECT COUNT(semi_finalist__number2) FROM table_11214772_1 WHERE runner_up = "East Carolina"
what is the total number of semi-finalist #2 where runner-up is east carolina
CREATE TABLE table_11214772_1 ( semi_finalist__number2 VARCHAR, runner_up VARCHAR )
SELECT MAX(laps) FROM table_name_66 WHERE driver = "mika salo" AND grid > 17
What is the high lap total for mika salo with a grid greater than 17?
CREATE TABLE table_name_66 (laps INTEGER, driver VARCHAR, grid VARCHAR)
SELECT COUNT(type_of_fare) FROM table_20803241_1 WHERE 31 - day_pass = "N/A" AND cash_fare = "N/A"
When n/a is the cash fate and n/a is the 31-day pass how many types of fare are there?
CREATE TABLE table_20803241_1 (type_of_fare VARCHAR, cash_fare VARCHAR, day_pass VARCHAR)
SELECT "driver" FROM table_203_644 ORDER BY "time" LIMIT 1
who finished with the least time ?
CREATE TABLE table_203_644 ( id number, "pos." number, "driver" text, "co-driver" text, "car" text, "time" text, "difference" text, "points" number )
SELECT location FROM table_name_4 WHERE country = "scotland" AND name = "muirfield"
Where was the location with Muirfield in Scotland?
CREATE TABLE table_name_4 (location VARCHAR, country VARCHAR, name VARCHAR)
SELECT 31 - day_pass FROM table_20803241_1 WHERE type_of_fare = "Fixed Route"
When fixed route is the type of fare how much is the 31-day pass?
CREATE TABLE table_20803241_1 (day_pass VARCHAR, type_of_fare VARCHAR)
SELECT city FROM table_name_61 WHERE stadium = "don valley stadium"
In what city is the Don Valley Stadium located?
CREATE TABLE table_name_61 ( city VARCHAR, stadium VARCHAR )
SELECT country FROM table_name_46 WHERE name = "pieroni"
Name the country for pieroni
CREATE TABLE table_name_46 (country VARCHAR, name VARCHAR)
SELECT cash_fare FROM table_20803241_1 WHERE type_of_fare = "Mega Pass* (Senior/Disabled)"
When mega pass* (senior/disabled) is the type of fare what is the cash fare?
CREATE TABLE table_20803241_1 (cash_fare VARCHAR, type_of_fare VARCHAR)
SELECT began_play FROM table_name_50 WHERE club = "western new york flash"
When did the Club of western new york flash begin to play?
CREATE TABLE table_name_50 ( began_play VARCHAR, club VARCHAR )
SELECT country FROM table_name_90 WHERE type = "6-month loan" AND moving_from = "lens"
Name the country for 6-month loan and moving from of lens
CREATE TABLE table_name_90 (country VARCHAR, type VARCHAR, moving_from VARCHAR)
SELECT day_pass FROM table_20803241_1 WHERE type_of_fare = "Mega Pass* (Senior/Disabled)"
When mega pass* (senior/disabled) is the type of fare what is the day pass?
CREATE TABLE table_20803241_1 (day_pass VARCHAR, type_of_fare VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.marital_status = "SINGLE" AND diagnoses.long_title = "Malignant neoplasm of descending colon"
count the number of patients whose marital status is single and diagnoses long title is malignant neoplasm of descending colon?
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 transfer_fee FROM table_name_88 WHERE transfer_window = "summer" AND name = "schollen"
Name the transfer fee with a transfer window of summer for schollen
CREATE TABLE table_name_88 (transfer_fee VARCHAR, transfer_window VARCHAR, name VARCHAR)
SELECT cash_fare FROM table_20803241_1 WHERE type_of_fare = "Fort Irwin-Barstow/Victorville"
When fort irwin-barstow/victorville is the type of fare what is the cash fare?
CREATE TABLE table_20803241_1 (cash_fare VARCHAR, type_of_fare VARCHAR)
SELECT COUNT(wheels) FROM table_15412381_5 WHERE lms_nos = "16377-9"
How many figures are there for wheels for LMS numbers 16377-9?
CREATE TABLE table_15412381_5 ( wheels VARCHAR, lms_nos VARCHAR )
SELECT name FROM table_name_9 WHERE moving_from = "1. fc nürnberg"
Name the name that has moving of 1. fc nürnberg.
CREATE TABLE table_name_9 (name VARCHAR, moving_from VARCHAR)
SELECT MIN(no) FROM table_20848569_9 WHERE total_goals = 1 AND total_apps = 33
Where total goals is 1 and total apps is 33, what is the smallest no.?
CREATE TABLE table_20848569_9 (no INTEGER, total_goals VARCHAR, total_apps VARCHAR)
SELECT "Circuit" FROM table_49880 WHERE "Winning Team" = 'carlin motorsport' AND "Winning Driver" = 'oliver turvey' AND "Date" = '24 march'
Which Circuit has the Winning Team of carlin motorsport, and the Winning Driver of oliver turvey, and a Date of 24 march?
CREATE TABLE table_49880 ( "Round" real, "Circuit" text, "Date" text, "Pole Position" text, "Fastest Lap" text, "Winning Driver" text, "Winning Team" text )
SELECT country FROM table_name_4 WHERE name = "polák"
Name the country with polák
CREATE TABLE table_name_4 (country VARCHAR, name VARCHAR)
SELECT MAX(position) FROM table_20854943_2 WHERE loa__metres_ = "20.12"
What position is the boat with 20.12 LOA (metres)?
CREATE TABLE table_20854943_2 (position INTEGER, loa__metres_ VARCHAR)
SELECT "Number of PNC votes" FROM table_44645 WHERE "Election" < '1996'
How many PNC votes did the election before 1996 have?
CREATE TABLE table_44645 ( "Election" real, "Number of PNC votes" text, "Share of votes" text, "Seats" text, "Outcome of election" text )
SELECT home_team AS score FROM table_name_11 WHERE away_team = "north melbourne"
What was the home team score at North Melbourne's away game?
CREATE TABLE table_name_11 (home_team VARCHAR, away_team VARCHAR)
SELECT loa__metres_ FROM table_20854943_2 WHERE sail_number = "M10"
What are the LOA (metres) of boat with sail number M10?
CREATE TABLE table_20854943_2 (loa__metres_ VARCHAR, sail_number VARCHAR)
SELECT (SELECT SUM(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '010-32430') AND NOT patient.unitdischarg...
calculate the difference between the total amount of input and the total output of patient 010-32430 on the first intensive care unit visit.
CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) CRE...
SELECT home_team AS score FROM table_name_47 WHERE away_team = "richmond"
What was Collingwood's score at the home match against Richmond?
CREATE TABLE table_name_47 (home_team VARCHAR, away_team VARCHAR)
SELECT COUNT(loa__metres_) FROM table_20854943_2 WHERE yacht = "Black Jack"
How many LOA (metres) reported for Black Jack?
CREATE TABLE table_20854943_2 (loa__metres_ VARCHAR, yacht VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.marital_status = "MARRIED" AND procedures.long_title = "Pericardiocentesis"
give me the number of patients whose marital status is married and procedure long title is pericardiocentesis?
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 lab ( subject_id text, hadm_id text, ...
SELECT MIN(laps) FROM table_name_14 WHERE grid > 24
What is the lowest number of laps with a grid larger than 24?
CREATE TABLE table_name_14 (laps INTEGER, grid INTEGER)
SELECT race_number FROM table_20854943_2 WHERE sail_number = "AUS 98888"
What race number had sail number AUS 98888?
CREATE TABLE table_20854943_2 (race_number VARCHAR, sail_number VARCHAR)
SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_id = course_offering.semester WHERE course.department = 'PATH' AND semester.semester = 'Fall'
What Fall PATH classes are offered ?
CREATE TABLE comment_instructor ( instructor_id int, student_id int, score int, comment_text varchar ) CREATE TABLE instructor ( instructor_id int, name varchar, uniqname varchar ) CREATE TABLE gsi ( course_offering_id int, student_id int ) CREATE TABLE ta ( campus_job_id int,...
SELECT MAX(grid) FROM table_name_5 WHERE driver = "jo siffert" AND laps > 12
For Jo Siffert, what was the highest grid with the number of laps above 12?
CREATE TABLE table_name_5 (grid INTEGER, driver VARCHAR, laps VARCHAR)
SELECT COUNT(sail_number) FROM table_20854943_2 WHERE skipper = "Geoff Ross"
How many sail numbers for boat skippered by Geoff Ross?
CREATE TABLE table_20854943_2 (sail_number VARCHAR, skipper VARCHAR)
SELECT SUM("Crowd") FROM table_52690 WHERE "Away team score" = '12.11 (83)'
What is the sum of the crowd when the away team score was 12.11 (83)?
CREATE TABLE table_52690 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT AVG(laps) FROM table_name_23 WHERE driver = "gerhard berger"
What is the average number of laps when Gerhard Berger is the driver?
CREATE TABLE table_name_23 (laps INTEGER, driver VARCHAR)
SELECT date FROM table_20850339_1 WHERE opponent = "West Virginia"
When did they play against West Virginia?
CREATE TABLE table_20850339_1 (date VARCHAR, opponent VARCHAR)
SELECT "Heat/Semifinal/Final" FROM table_64705 WHERE "Time" = '25.00'
What heat, semifinal or final has a time of 25.00?
CREATE TABLE table_64705 ( "Date" text, "Event" text, "Heat/Semifinal/Final" text, "Nation" text, "Time" text )
SELECT constructor FROM table_name_9 WHERE laps > 50 AND grid = 7
What is the name of the constructor who has more than 50 laps and a grid of 7?
CREATE TABLE table_name_9 (constructor VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT season FROM table_20833768_4 WHERE l__ot_so_ = "22 (3/4)"
When l (ot/so) is 22 (3/4), what is the season?
CREATE TABLE table_20833768_4 (season VARCHAR, l__ot_so_ VARCHAR)
SELECT document_type_code FROM documents WHERE document_name = "David CV"
Return the type code of the document named 'David CV'.
CREATE TABLE images ( image_id number, image_alt_text text, image_name text, image_url text ) CREATE TABLE roles ( role_code text, role_description text ) CREATE TABLE document_sections ( section_id number, document_code text, section_sequence number, section_code text, sec...
SELECT title FROM table_name_50 WHERE production_code = "ad1b04"
What is the title of the episode with a production code of ad1b04?
CREATE TABLE table_name_50 (title VARCHAR, production_code VARCHAR)
SELECT w__ot_so_ FROM table_20833768_4 WHERE season = "2008–09"
In season is 2008–09, how many wins did they have?
CREATE TABLE table_20833768_4 (w__ot_so_ VARCHAR, season VARCHAR)
SELECT "NATO/U.S DOD code" FROM table_24197 WHERE "NATO reporting name" = 'SABBOT'
Name the nato/ us dod code for sabbot
CREATE TABLE table_24197 ( "Chinese industrial designation" text, "Export type designation" text, "NATO reporting name" text, "NATO/U.S DOD code" text, "Remarks" text )
SELECT time FROM table_name_22 WHERE event = "tfc 21"
Name the time for event of tfc 21
CREATE TABLE table_name_22 (time VARCHAR, event VARCHAR)
SELECT MAX(weight) FROM table_20860739_1 WHERE player = "Eben Britton"
What is the weight of Eben Britton?
CREATE TABLE table_20860739_1 (weight INTEGER, player VARCHAR)
SELECT SUM(pick) FROM table_name_30 WHERE player = "john jones"
What was John Jones's pick#?
CREATE TABLE table_name_30 ( pick INTEGER, player VARCHAR )
SELECT sport FROM table_name_7 WHERE gold > 0 AND silver = 2
What sport has a Gold larger than 0, and a Silver of 2?
CREATE TABLE table_name_7 (sport VARCHAR, gold VARCHAR, silver VARCHAR)
SELECT round FROM table_20860739_1 WHERE college = "Virginia"
How many rounds did Virginia have?
CREATE TABLE table_20860739_1 (round VARCHAR, college VARCHAR)
SELECT MAX("Round") FROM table_75527 WHERE "Res." = 'loss' AND "Time" = '40:00'
What round has the highest Res loss, and a time of 40:00?
CREATE TABLE table_75527 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" real, "Time" text )
SELECT MIN(bronze) FROM table_name_29 WHERE "total" > 18 AND sport = "total" AND silver < 143
What is the lowest Bronze that has a Total larger than 18 and a Silver smaller than 143?
CREATE TABLE table_name_29 (bronze INTEGER, silver VARCHAR, sport VARCHAR)
SELECT round FROM table_20860739_1 WHERE height = "6'5"
How many rounds were there a height of 6'5?
CREATE TABLE table_20860739_1 (round VARCHAR, height VARCHAR)
SELECT round FROM table_name_15 WHERE opponent = "blackburn"
What is the Round with a Opponent with blackburn?
CREATE TABLE table_name_15 ( round VARCHAR, opponent VARCHAR )
SELECT SUM(silver) FROM table_name_13 WHERE bronze > 19 AND total < 125
How many total Silver has a Bronze larger than 19 and a Total smaller than 125?
CREATE TABLE table_name_13 (silver INTEGER, bronze VARCHAR, total VARCHAR)
SELECT college FROM table_20860739_1 WHERE height = "6'1"
What college has a player that is 6'1?
CREATE TABLE table_20860739_1 (college VARCHAR, height VARCHAR)
SELECT COUNT(DISTINCT t1.subject_id) FROM (SELECT admissions.subject_id, procedures_icd.charttime FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'venous cath...
how many patients the previous year were prescribed fluoxetine hcl after venous cath nec during the same month?
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 ...
SELECT MAX(total) FROM table_name_7 WHERE bronze > 10 AND silver > 28 AND gold = 58
What is the highest total Bronze larger than 10, Silver larger than 28, and a Gold of 58?
CREATE TABLE table_name_7 (total INTEGER, gold VARCHAR, bronze VARCHAR, silver VARCHAR)
SELECT COUNT(position) FROM table_20860739_1 WHERE player = "Mike Thomas"
What is the number of Mike Thomas?
CREATE TABLE table_20860739_1 (position VARCHAR, player VARCHAR)
SELECT region FROM table_name_28 WHERE icao = "vmmc"
I want the region for ICAO of vmmc
CREATE TABLE table_name_28 ( region VARCHAR, icao VARCHAR )
SELECT MIN(total) FROM table_name_97 WHERE gold > 0 AND silver < 4 AND sport = "football" AND bronze > 1
What is the lowest Total that has a Gold larger than 0, Silver smaller than 4, Sport of football, and a Bronze larger than 1?
CREATE TABLE table_name_97 (total INTEGER, bronze VARCHAR, sport VARCHAR, gold VARCHAR, silver VARCHAR)
SELECT college FROM table_20861261_4 WHERE player = "Terrance Taylor"
What college did Terrance Taylor play for?
CREATE TABLE table_20861261_4 (college VARCHAR, player VARCHAR)
SELECT labevents.charttime FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 31300) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'tacrofk') AND STRFTIME('%y-%m', labevents.charttime) <= '2103-11' ORDER BY labe...
what time did patient 31300 first had the minimum tacrofk value until 11/2103?
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_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) ...
SELECT time_retired FROM table_name_77 WHERE grid = 9
what is the time/retired when the grid is 9?
CREATE TABLE table_name_77 (time_retired VARCHAR, grid VARCHAR)
SELECT position FROM table_20861261_4 WHERE player = "Curtis Painter"
What's Curtis Painter's position?
CREATE TABLE table_20861261_4 (position VARCHAR, player VARCHAR)
SELECT SUM(year) FROM table_name_36 WHERE championship = "australian open" AND outcome = "runner-up" AND score_in_final = "3-6, 6-3, 6-2"
What is the sum of Year(s), when Championship is 'Australian Open', when Outcome is 'Runner-Up', and when Score in Final is 3-6, 6-3, 6-2?
CREATE TABLE table_name_36 ( year INTEGER, score_in_final VARCHAR, championship VARCHAR, outcome VARCHAR )
SELECT COUNT(laps) FROM table_name_5 WHERE driver = "ron flockhart"
what is the number of laps when the driver is ron flockhart?
CREATE TABLE table_name_5 (laps VARCHAR, driver VARCHAR)
SELECT weight FROM table_20861261_4 WHERE college = "Southern California"
How much does the player from Southern California weight?
CREATE TABLE table_20861261_4 (weight VARCHAR, college VARCHAR)
SELECT "Player" FROM table_49646 WHERE "Score" > '67'
What player has a score larger than 67?
CREATE TABLE table_49646 ( "Place" text, "Player" text, "Country" text, "Score" real, "To par" text )
SELECT engine FROM table_name_72 WHERE power = "114hp (85kw)"
What Engine has a Power of 114hp (85kw)?
CREATE TABLE table_name_72 (engine VARCHAR, power VARCHAR)
SELECT MAX(round) FROM table_20861261_4 WHERE weight = "192lb (87kg)"
In what round did the player who weights 192lb (87kg) play?
CREATE TABLE table_20861261_4 (round INTEGER, weight VARCHAR)
SELECT date FROM table_name_97 WHERE country = "united states"
What was the Date of Country of United States?
CREATE TABLE table_name_97 ( date VARCHAR, country VARCHAR )
SELECT torque FROM table_name_68 WHERE engine = "amc power tech i6"
What Torque has an AMC Power Tech I6 Engine?
CREATE TABLE table_name_68 (torque VARCHAR, engine VARCHAR)
SELECT MIN(choice) FROM table_20861261_4 WHERE weight = "303lb (137kg)"
What's the choice score of the player who weights 303lb (137kg)?
CREATE TABLE table_20861261_4 (choice INTEGER, weight VARCHAR)
SELECT "date joined" FROM table_204_883 ORDER BY "date joined" LIMIT 1
what is the date of the lst player that joined ?
CREATE TABLE table_204_883 ( id number, "pos." text, "name" text, "place of birth" text, "date of birth" text, "previous club" text, "date joined" text, "fee" text )
SELECT displacement FROM table_name_57 WHERE power = "185hp (138kw)"
What Displacement has 185hp (138kw) Power o
CREATE TABLE table_name_57 (displacement VARCHAR, power VARCHAR)
SELECT COUNT(engine) FROM table_20866024_2 WHERE model_designation = "97G00"
How many different engines are there for the model with model designation 97G00?
CREATE TABLE table_20866024_2 (engine VARCHAR, model_designation VARCHAR)
SELECT "3rd runner-up" FROM table_31430 WHERE "Country/Territory" = 'Croatia'
How many first place participants where from croatia?
CREATE TABLE table_31430 ( "Rank" real, "Country/Territory" text, "Manhunt International" real, "1st runner-up" real, "2nd runner-up" real, "3rd runner-up" real, "4th runner-up" real, "Semifinalists" real, "Total" real )
SELECT venue FROM table_name_47 WHERE home_team = "collingwood"
What venue features collingwood as the home side?
CREATE TABLE table_name_47 (venue VARCHAR, home_team VARCHAR)
SELECT engine FROM table_20866024_2 WHERE gvw__kg_ton_ = "2500/2.46" AND model_designation = "97G00"
What's the engine for the model model designation 97G00 and GVW of 2500/2.46 kg/ton?
CREATE TABLE table_20866024_2 (engine VARCHAR, gvw__kg_ton_ VARCHAR, model_designation VARCHAR)
SELECT "Tie no" FROM table_44771 WHERE "Home team" = 'gillingham'
What is the tie number when the home team was gillingham?
CREATE TABLE table_44771 ( "Tie no" text, "Home team" text, "Score" text, "Away team" text, "Date" text )
SELECT attendance FROM table_name_17 WHERE game_site = "veterans stadium"
What's the attendance numbers for veterans stadium?
CREATE TABLE table_name_17 (attendance VARCHAR, game_site VARCHAR)
SELECT model_type FROM table_20866024_2 WHERE model_designation = "97500"
What model type has model designation 97500?
CREATE TABLE table_20866024_2 (model_type VARCHAR, model_designation VARCHAR)
SELECT Location, COUNT(*) FROM performance GROUP BY Location
Show different locations and the number of performances at each location.
CREATE TABLE member_attendance ( Member_ID int, Performance_ID int, Num_of_Pieces int ) CREATE TABLE performance ( Performance_ID real, Date text, Host text, Location text, Attendance int ) CREATE TABLE member ( Member_ID text, Name text, Nationality text, Role text )