sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT Batting team FROM table WHERE Venue = karachi
CREATE TABLE INST, Here is a database schema( table schema);
What batting team played in Karachi?.It is not neccessary to use all the tables.
SELECT candidates FROM table_1342315_10 WHERE district = "Georgia 4"
CREATE TABLE INST, Here is a database schema( table schema);
Who ran for office at the Georgia 4 district in this election?It is not neccessary to use all the tables.
SELECT Winning constructor FROM table WHERE Circuit = parioli
CREATE TABLE INST, Here is a database schema( table schema);
Who was the winning constructor at the circuit of parioli?.It is not neccessary to use all the tables.
SELECT Standard cost (USD) FROM table WHERE Creator = kwin team
CREATE TABLE INST, Here is a database schema( table schema);
What is the Standard cost (USD) of Kwin team creator?.It is not neccessary to use all the tables.
SELECT Zodiac sign FROM table WHERE English name = march
CREATE TABLE INST, Here is a database schema( table schema);
What is the zodiac sign for the English March?.It is not neccessary to use all the tables.
SELECT tries_for FROM table_name_65 WHERE points_for = "0"
CREATE TABLE INST, Here is a database schema( table schema);
If the points were 0, what were the tries for?It is not neccessary to use all the tables.
SELECT MIN(games) FROM table_name_87 WHERE goal_ratio = 0 AND goals < 0
CREATE TABLE INST, Here is a database schema( table schema);
What lowest games have a Goal Ratio of 0 and Goals smaller than 0?It is not neccessary to use all the tables.
SELECT MAX(october) FROM table_name_54 WHERE record = "4-4-0" AND game > 8
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest date in october for a game number larger than 8 with a record of 4-4-0?It is not neccessary to use all the tables.
SELECT couple FROM table_name_20 WHERE rank_by_average > 3 AND average > 16.5 AND total < 195 AND number_of_dances > 3
CREATE TABLE INST, Here is a database schema( table schema);
Which Couple has a Rank by average larger than 3 and an Average larger than 16.5 and a Total smaller than 195 and a Number of dances larger than 3?It is not neccessary to use all the tables.
SELECT score FROM table_name_13 WHERE record = "33–25–9"
CREATE TABLE INST, Here is a database schema( table schema);
What was the score of the game with a record of 33–25–9?It is not neccessary to use all the tables.
SELECT Nationality FROM table WHERE Player = steven anthony
CREATE TABLE INST, Here is a database schema( table schema);
What nationality is Steven Anthony?.It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Surface = hard
CREATE TABLE INST, Here is a database schema( table schema);
What person was played against when the playing surface was hard?.It is not neccessary to use all the tables.
SELECT Years FROM table WHERE Ties > 1 AND Wins < 311 AND Losses = 174
CREATE TABLE INST, Here is a database schema( table schema);
What years did the person coach who had more than 1 tie, mess than 311 wins and 174 losses?.It is not neccessary to use all the tables.
SELECT distance FROM table_name_69 WHERE date = "1930-01-11"
CREATE TABLE INST, Here is a database schema( table schema);
Which Distance has a Date of 1930-01-11?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Venue = arden street oval
CREATE TABLE INST, Here is a database schema( table schema);
When did the game at Arden Street Oval occur?.It is not neccessary to use all the tables.
SELECT Pinyin FROM table WHERE Area = 487
CREATE TABLE INST, Here is a database schema( table schema);
Name the pinyin for 487 area.It is not neccessary to use all the tables.
SELECT Year FROM table WHERE Entrant = belond equa-flow / calif. muffler
CREATE TABLE INST, Here is a database schema( table schema);
Which year is that has a Entrant of belond equa-flow / calif. muffler?.It is not neccessary to use all the tables.
SELECT MIN(silver) FROM table_name_83 WHERE bronze < 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the least amount of silver when there is less than 0 bronze?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Away team = carlton
CREATE TABLE INST, Here is a database schema( table schema);
When did the away team carlton play?.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Away team = geelong
CREATE TABLE INST, Here is a database schema( table schema);
What day did Geelong play as the away team?.It is not neccessary to use all the tables.
SELECT COUNT(viewers__m_) FROM table_13110459_2 WHERE overall = "91/101"
CREATE TABLE INST, Here is a database schema( table schema);
how many viewers (m) with overall being 91/101It is not neccessary to use all the tables.
SELECT 1st leg FROM table WHERE Team #2 = bp. honvéd
CREATE TABLE INST, Here is a database schema( table schema);
What is the 1st leg of bp. honvéd team #2?.It is not neccessary to use all the tables.
SELECT COUNT(current_status) FROM table_25597136_1 WHERE date_first_lit = "1853"
CREATE TABLE INST, Here is a database schema( table schema);
The date first lit is 1853 total number of current status.It is not neccessary to use all the tables.
SELECT year FROM table_name_45 WHERE tournament_venue = "richmond arena" AND record = "12–1" AND regular_season_champion_s_ = "virginia tech"
CREATE TABLE INST, Here is a database schema( table schema);
When has a Tournament venue of richmond arena and a Record of 12–1 and a Regular Season Champion(s) of virginia tech?It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE City = zagreb
CREATE TABLE INST, Here is a database schema( table schema);
Who was the opposing team during the game in Zagreb?.It is not neccessary to use all the tables.
SELECT MIN(end_term) FROM table_name_39 WHERE start_term = 1913 AND name = "ludwig iii"
CREATE TABLE INST, Here is a database schema( table schema);
What is the smallest End term with a Start term of 1913 and a Name of ludwig iii?It is not neccessary to use all the tables.
SELECT game_site FROM table_name_75 WHERE opponent = "buffalo bills"
CREATE TABLE INST, Here is a database schema( table schema);
Which game site has an Opponent of buffalo bills?It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.diagnosis = "GUILLAIN BARRE SYNDROME" AND procedures.icd9_code = "5781"
CREATE TABLE INST, Here is a database schema( table schema);
what is the number of patients whose primary disease is guillain barre syndrome and procedure icd9 code is 5781?It is not neccessary to use all the tables.
SELECT percentage___percentage_ FROM table_name_35 WHERE males = "99"
CREATE TABLE INST, Here is a database schema( table schema);
What is the percentage where males equal 99?It is not neccessary to use all the tables.
SELECT SUM(burnley) FROM table_name_97 WHERE fylde < 1 AND rossendale > 0
CREATE TABLE INST, Here is a database schema( table schema);
How much Burnley has a Fylde smaller than 1 and a Rossendale larger than 0?It is not neccessary to use all the tables.
SELECT AVG(wins) FROM table_name_80 WHERE team = "great britain"
CREATE TABLE INST, Here is a database schema( table schema);
What are the average wins that have great britain as the team?It is not neccessary to use all the tables.
SELECT AVG Electorate FROM table WHERE Votes = 28,475 AND Spoilt < 5,779
CREATE TABLE INST, Here is a database schema( table schema);
WHAT IS AN AVERAGE ELECTORATE WITH VOTES OF 28,475 AND SPOILT SMALLER THAN 5,779?.It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Ulcer of heel & midfoot" AND prescriptions.drug_type = "BASE"
CREATE TABLE INST, Here is a database schema( table schema);
give the number of patients diagnosed with ulcer of heel and midfoot and drug type is base.It is not neccessary to use all the tables.
SELECT Away team FROM table WHERE Date = 31 january 1987 AND Home team = wimbledon
CREATE TABLE INST, Here is a database schema( table schema);
Who was the away team on 31 January 1987 when the home team was Wimbledon?.It is not neccessary to use all the tables.
SELECT COUNT First elected FROM table WHERE District = washington 8
CREATE TABLE INST, Here is a database schema( table schema);
What is the total of the first elected year of the incumbent from the washington 8 district?.It is not neccessary to use all the tables.
SELECT COUNT No. in series FROM table WHERE Vessel Operator = Canadian Coast Guard
CREATE TABLE INST, Here is a database schema( table schema);
How many times is the vessel operator canadian coast guard?.It is not neccessary to use all the tables.
SELECT t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE ...
CREATE TABLE INST, Here is a database schema( table schema);
what were the top four most commonly prescribed medications that patients were prescribed within 2 months after being diagnosed the last year with epilep nos w/o intr epil?It is not neccessary to use all the tables.
SELECT result FROM table_name_34 WHERE opponent = "bye"
CREATE TABLE INST, Here is a database schema( table schema);
What's the result of the game against Bye?It is not neccessary to use all the tables.
SELECT Most Laps Led FROM table WHERE Track = Chicagoland Speedway
CREATE TABLE INST, Here is a database schema( table schema);
Who had most laps led at Chicagoland speedway? .It is not neccessary to use all the tables.
SELECT "Location" FROM table_49331 WHERE "County" = 'platte'
CREATE TABLE INST, Here is a database schema( table schema);
What's the location for the country of platte?It is not neccessary to use all the tables.
SELECT Ratings FROM table WHERE Title = "Episode 6"
CREATE TABLE INST, Here is a database schema( table schema);
What were the ratings for "episode 6"?.It is not neccessary to use all the tables.
SELECT Audience FROM table WHERE Episode = 21
CREATE TABLE INST, Here is a database schema( table schema);
What was the audience for Episode 21?.It is not neccessary to use all the tables.
SELECT COUNT(sprint_classification) FROM table_25655781_17 WHERE winner = "Marco Frapporti"
CREATE TABLE INST, Here is a database schema( table schema);
How many sprint classifications are there where marco frapporti is the winner?It is not neccessary to use all the tables.
SELECT MAX Region FROM table WHERE Code < 66112 AND Name = l'île-dorval
CREATE TABLE INST, Here is a database schema( table schema);
What is the largest region with a Code smaller than 66112, and a Name of l'île-dorval?.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Year = 1993
CREATE TABLE INST, Here is a database schema( table schema);
What is the score of 1993?.It is not neccessary to use all the tables.
SELECT score_points FROM table_name_99 WHERE event = "wc kerrville" AND rank_points = "8"
CREATE TABLE INST, Here is a database schema( table schema);
What is the score points in WC Kerrville when rank was points of 8?It is not neccessary to use all the tables.
SELECT COUNT Silver FROM table WHERE Gold > 0 AND Rank = 14 AND Bronze > 4
CREATE TABLE INST, Here is a database schema( table schema);
What is number of silver for the country with more than 0 gold, rank of 14, and more than 4 bronze?.It is not neccessary to use all the tables.
SELECT place FROM table_name_78 WHERE player = "mark o'meara"
CREATE TABLE INST, Here is a database schema( table schema);
WHAT IS THE PLACE WITH PLAYER mark o'meara?It is not neccessary to use all the tables.
SELECT League Cup Apps FROM table WHERE League Cup Goals > 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the league cup app with league cup goals more than 0?.It is not neccessary to use all the tables.
SELECT MIN Attendance FROM table WHERE Date = october 11 AND Game > 4
CREATE TABLE INST, Here is a database schema( table schema);
Where Date is october 11, and game greater than 4 what is the lowest attendance?.It is not neccessary to use all the tables.
SELECT model_name FROM table_1147701_4 WHERE engine_code = "B5254 T4"
CREATE TABLE INST, Here is a database schema( table schema);
what's the model name with engine code being b5254 t4It is not neccessary to use all the tables.
SELECT home_ground_s_ FROM table_18752986_1 WHERE nickname = "Swans"
CREATE TABLE INST, Here is a database schema( table schema);
With the nickname the swans, what is the home ground?It is not neccessary to use all the tables.
SELECT SUM Roll FROM table WHERE Name = morrinsville school
CREATE TABLE INST, Here is a database schema( table schema);
Name the sum of roll for morrinsville school.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Opponent in the final = divij sharan
CREATE TABLE INST, Here is a database schema( table schema);
What was the score of the game against Divij Sharan?.It is not neccessary to use all the tables.
SELECT position FROM table_name_83 WHERE year = 1999
CREATE TABLE INST, Here is a database schema( table schema);
What position is 1999?It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Player = jay haas
CREATE TABLE INST, Here is a database schema( table schema);
What is the score of player jay haas?.It is not neccessary to use all the tables.
SELECT MIN S.no. FROM table WHERE State = jammu & kashmir AND Completion Schedule = 2016
CREATE TABLE INST, Here is a database schema( table schema);
When the completion schedule is 2016 for the state of jammu & kashmir, what is the smallest S.no.?.It is not neccessary to use all the tables.
SELECT nationality FROM table_name_73 WHERE college_junior_club_team__league_ = "guelph storm ( ohl )"
CREATE TABLE INST, Here is a database schema( table schema);
What is Nationality, when College/Junior/Club Team (League) is 'Guelph Storm ( OHL )'?It is not neccessary to use all the tables.
SELECT winner FROM table_name_58 WHERE edition = "23rd"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the winner of the 23rd Edition?It is not neccessary to use all the tables.
SELECT location_attendance FROM table_15872814_5 WHERE team = "New Orleans"
CREATE TABLE INST, Here is a database schema( table schema);
What is the location and total attendance for games played against New Orleans?It is not neccessary to use all the tables.
SELECT AVG Date FROM table WHERE 5 November 2010 = dragon oil 4.02%
CREATE TABLE INST, Here is a database schema( table schema);
5 November 2010 of dragon oil 4.02% has what average Date?.It is not neccessary to use all the tables.
SELECT COUNT(type_of_fare) FROM table_20803241_1 WHERE 31 - day_pass = "N/A" AND cash_fare = "N/A"
CREATE TABLE INST, Here is a database schema( table schema);
When n/a is the cash fate and n/a is the 31-day pass how many types of fare are there?It is not neccessary to use all the tables.
SELECT Report FROM table WHERE Round = 9
CREATE TABLE INST, Here is a database schema( table schema);
What is the report for round 9?.It is not neccessary to use all the tables.
SELECT Match points FROM table WHERE Proceed to Quarter-final = Brive
CREATE TABLE INST, Here is a database schema( table schema);
When brive proceeded to quarter final what were the match points?.It is not neccessary to use all the tables.
SELECT label FROM table_name_24 WHERE album = "cover version v"
CREATE TABLE INST, Here is a database schema( table schema);
What label shows an Album of cover version v?It is not neccessary to use all the tables.
SELECT SUM Avg/G FROM table WHERE Loss = 0 AND Name = dan dierking AND Gain > 34
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of Avg/G for Dan Dierking when the Loss is 0 and the Gain is more than 34?.It is not neccessary to use all the tables.
SELECT total FROM table_name_50 WHERE score_points = "olympic bronze medalist"
CREATE TABLE INST, Here is a database schema( table schema);
What is the total when the score points show Olympic bronze medalist?It is not neccessary to use all the tables.
SELECT monarchs_served FROM table_name_18 WHERE name = "stanley baldwin (1st ministry)"
CREATE TABLE INST, Here is a database schema( table schema);
What monarch(s) did Stanley Baldwin (1st ministry) serve?It is not neccessary to use all the tables.
SELECT Display Size FROM table WHERE Year Released = 1997
CREATE TABLE INST, Here is a database schema( table schema);
what is the display size for the calculator released in 1997?.It is not neccessary to use all the tables.
SELECT pba_team FROM table_name_35 WHERE pick = 4
CREATE TABLE INST, Here is a database schema( table schema);
What is the PBA team with a Pick that is 4?It is not neccessary to use all the tables.
SELECT "Term in office" FROM table_71587 WHERE "Member" = 'hon ralph hunt'
CREATE TABLE INST, Here is a database schema( table schema);
What term did hon ralph hunt serve in office?It is not neccessary to use all the tables.
SELECT SUM(floors) FROM table_name_52 WHERE name = "st. joseph church"
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of Floors at st. joseph church?It is not neccessary to use all the tables.
SELECT MAX No. FROM table WHERE Player = Al Harrington
CREATE TABLE INST, Here is a database schema( table schema);
What jersey number did Al Harrington wear.It is not neccessary to use all the tables.
SELECT COUNT(number) FROM table_name_28 WHERE name = "koppenberg" AND kilometer < 195
CREATE TABLE INST, Here is a database schema( table schema);
What is the Number of the Koppenberg course with less than 195 Kilometers?It is not neccessary to use all the tables.
SELECT MAX(capacity) FROM table_25129482_1
CREATE TABLE INST, Here is a database schema( table schema);
What is the largest capacity for a stadium?It is not neccessary to use all the tables.
SELECT COUNT Original air date FROM table WHERE No. in series = 102
CREATE TABLE INST, Here is a database schema( table schema);
Name the total number of air dates for 102 episode.It is not neccessary to use all the tables.
SELECT gauge FROM table_name_8 WHERE concessionaire = "ferrosur roca"
CREATE TABLE INST, Here is a database schema( table schema);
What was the guage of the concessionaire ferrosur roca?It is not neccessary to use all the tables.
SELECT 8:00 am FROM table WHERE 12:30 pm = port charles
CREATE TABLE INST, Here is a database schema( table schema);
WHAT IS THE 8:00AM WITH PORT CHARLES AT 12:30PM?.It is not neccessary to use all the tables.
SELECT previous_conference FROM table_name_93 WHERE year_joined = 2000 AND mascot = "millers"
CREATE TABLE INST, Here is a database schema( table schema);
What was the previous conference for the school that joined in 2000 with a millers mascot?It is not neccessary to use all the tables.
SELECT MAX Overall FROM table WHERE Slalom = 39 AND Season < 1996
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest overall prior to 1996 with a slalom of 39?.It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.age < "47" AND demographic.days_stay > "30"
CREATE TABLE INST, Here is a database schema( table schema);
what is the number of patients whose age is less than 47 and days of hospital stay is greater than 30?It is not neccessary to use all the tables.
SELECT tie_no FROM table_name_52 WHERE away_team = "wrexham"
CREATE TABLE INST, Here is a database schema( table schema);
WHAT'S THE TIE NUMBER WITH AN AWAY TEAM OF WREXHAM?It is not neccessary to use all the tables.
SELECT To par FROM table WHERE Place = t5 AND Score = 71-68-76=215
CREATE TABLE INST, Here is a database schema( table schema);
What is the To par of the T5 Place Player with a Score of 71-68-76=215?.It is not neccessary to use all the tables.
SELECT Tie no FROM table WHERE Away team = huddersfield town
CREATE TABLE INST, Here is a database schema( table schema);
Which tie did Huddersfield Town play as an away team?.It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "CHEST PAIN" AND demographic.dob_year < "1837"
CREATE TABLE INST, Here is a database schema( table schema);
what number of patients diagnosed primarily for chest pain were born before the year 1837?It is not neccessary to use all the tables.
SELECT Commercial Operation FROM table WHERE Gross capacity = 417 mw AND Electricity Grid = 27.12.1971
CREATE TABLE INST, Here is a database schema( table schema);
Which Commercial Operation has both a Gross Capacity of 417 mw and an Electricity Grid 27.12.1971?.It is not neccessary to use all the tables.
SELECT location_attendance FROM table_name_78 WHERE team = "@ milwaukee"
CREATE TABLE INST, Here is a database schema( table schema);
When the team is @ Milwaukee what is the name of the location where the game is played?It is not neccessary to use all the tables.
SELECT Jersey Number(s) FROM table WHERE From = notre dame
CREATE TABLE INST, Here is a database schema( table schema);
What are the Jersey numbers for Notre Dame?.It is not neccessary to use all the tables.
SELECT Album FROM table WHERE Song = "party like ur 18" feat. sway
CREATE TABLE INST, Here is a database schema( table schema);
what is the album with the song "party like ur 18" feat. sway?.It is not neccessary to use all the tables.
SELECT year FROM table_name_56 WHERE band = "snow patrol" AND lifetime_achievement_award = "aslan"
CREATE TABLE INST, Here is a database schema( table schema);
In what year did Aslan receive a Lifetime Achievement Award and Snow Patrol perform?It is not neccessary to use all the tables.
SELECT MIN No. FROM table WHERE Written by = Anthony Sparks
CREATE TABLE INST, Here is a database schema( table schema);
What episode number was written by Anthony Sparks?.It is not neccessary to use all the tables.
SELECT regular_season FROM table_2139111_1 WHERE year = 2005
CREATE TABLE INST, Here is a database schema( table schema);
Name the regular season for 2005It is not neccessary to use all the tables.
SELECT max_pressure FROM table_173103_1 WHERE cartridge = ".38 Long Colt"
CREATE TABLE INST, Here is a database schema( table schema);
What is the max pressure of the .38 long colt cartridge?It is not neccessary to use all the tables.
SELECT MIN(capacity) FROM table_name_96 WHERE city = "brisbane" AND rank < 1
CREATE TABLE INST, Here is a database schema( table schema);
Which Capacity is the lowest one that has a City of brisbane and a Rank smaller than 1?It is not neccessary to use all the tables.
SELECT Team 2 FROM table WHERE Team 1 = omonia
CREATE TABLE INST, Here is a database schema( table schema);
What was team 2 when team 1 was omonia?.It is not neccessary to use all the tables.
SELECT joined_tschl FROM table_16384648_2 WHERE institution = "University of Pittsburgh"
CREATE TABLE INST, Here is a database schema( table schema);
What year did the university of Pittsburgh school join the hockey league?It is not neccessary to use all the tables.
SELECT power FROM table_name_48 WHERE callsign = "dxll"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Power of the Frequency with a Callsign of DXLL?It is not neccessary to use all the tables.
SELECT game_site FROM table_14977592_1 WHERE date = "December 12, 1965"
CREATE TABLE INST, Here is a database schema( table schema);
Name the game site for december 12 1965It is not neccessary to use all the tables.
SELECT height FROM table_12962773_10 WHERE no = 10
CREATE TABLE INST, Here is a database schema( table schema);
How tall was Player #10?It is not neccessary to use all the tables.
SELECT platform FROM table_name_84 WHERE publisher = "mindark"
CREATE TABLE INST, Here is a database schema( table schema);
On what platform does Mindark publish?It is not neccessary to use all the tables.