sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT AVG(pick) FROM table_name_38 WHERE nationality = "canada" AND year < 1974 AND player = "yvon bouillon"
CREATE TABLE INST, Here is a database schema( table schema);
What was the pic for Canada for player Yvon Bouillon earlier than 1974?It is not neccessary to use all the tables.
SELECT COUNt AS season FROM table_2233872_1 WHERE gp = 64 AND result = "lost in round 1"
CREATE TABLE INST, Here is a database schema( table schema);
How many season did the team lost in round 1 with a GP of 64?It is not neccessary to use all the tables.
SELECT location_attendance FROM table_name_66 WHERE opponent = "at denver nuggets"
CREATE TABLE INST, Here is a database schema( table schema);
What Location Attendance has an Opponent of at denver nuggets?It is not neccessary to use all the tables.
SELECT COUNT(public) FROM table_26375386_23 WHERE vote_percentage = "22.9%"
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of public that was there when the vote percentage was 22.9%?It is not neccessary to use all the tables.
SELECT "Country" FROM table_42861 WHERE "Content" = 'tematico' AND "Package/Option" = 'sky tv' AND "Television service" = 'lei'
CREATE TABLE INST, Here is a database schema( table schema);
What country has Tematico Content, and a package with sky TV and the Lei television service?It is not neccessary to use all the tables.
SELECT MIN(pages) FROM table_name_39 WHERE title = "al-jiniral fi matahatihi"
CREATE TABLE INST, Here is a database schema( table schema);
What's the fewest number of pages for the title al-jiniral fi matahatihi?It is not neccessary to use all the tables.
SELECT COUNT(surface) FROM table_23944006_4 WHERE score = "4-6, 2-6"
CREATE TABLE INST, Here is a database schema( table schema);
Name the number of surfaces for 4-6 2-6It is not neccessary to use all the tables.
SELECT transmitting_from FROM table_name_15 WHERE coverage = "yucatán quintana roo campeche"
CREATE TABLE INST, Here is a database schema( table schema);
Where is the station with a coverage of yucatán quintana roo campeche transmitting from?It is not neccessary to use all the tables.
SELECT MIN Week FROM table WHERE Game Site = ralph wilson stadium AND Date = october 7, 2001
CREATE TABLE INST, Here is a database schema( table schema);
What was the lowest week at Ralph Wilson Stadium on October 7, 2001?.It is not neccessary to use all the tables.
SELECT Cage dive FROM table WHERE 3-person dive = none
CREATE TABLE INST, Here is a database schema( table schema);
Which cage dive has none as a 3-person dive?.It is not neccessary to use all the tables.
SELECT radical__variants_ FROM table_name_81 WHERE pīnyīn = "gǔ" AND stroke_count = 7
CREATE TABLE INST, Here is a database schema( table schema);
WHAT IS THE RADICAL WITH gǔ AND STROKE COUNT OF 7?It is not neccessary to use all the tables.
SELECT "population (2011 census)" FROM table_203_465 WHERE "name" = 'predeal'
CREATE TABLE INST, Here is a database schema( table schema);
how many people lived in predeal in 2011 ?It is not neccessary to use all the tables.
SELECT score_in_the_final FROM table_name_41 WHERE date = 1981
CREATE TABLE INST, Here is a database schema( table schema);
What is Score in The Final when Date is "1981"?It is not neccessary to use all the tables.
SELECT primary_sponsor_s_ FROM table_name_55 WHERE driver_s_ = "austin dillon"
CREATE TABLE INST, Here is a database schema( table schema);
Who is Austin Dillon's primary sponsor(s)?It is not neccessary to use all the tables.
SELECT Voice actor (Harmony Gold OVA Dub) FROM table WHERE Japanese voice actor = yoku shioya
CREATE TABLE INST, Here is a database schema( table schema);
Who is the voice actor of the character with the Japanese voice actor Yoku Shioya?.It is not neccessary to use all the tables.
SELECT Partnered with FROM table WHERE Score in Final = 4–6, 3–6
CREATE TABLE INST, Here is a database schema( table schema);
Who was Alicja Rosolska Partnered with when the Score in Final was 4–6, 3–6?.It is not neccessary to use all the tables.
SELECT SUM(silver) FROM table_name_8 WHERE nation = "japan" AND total < 1
CREATE TABLE INST, Here is a database schema( table schema);
what is the silver when the nation is japan and the total is less than 1?It is not neccessary to use all the tables.
SELECT Event FROM table WHERE Skip = john morris AND Second = matt st. louis
CREATE TABLE INST, Here is a database schema( table schema);
Which event shows Matt St. Louis in second and a skip of John Morris?.It is not neccessary to use all the tables.
SELECT sport FROM table_name_17 WHERE site = "iowa city" AND date = "february 14, 2009"
CREATE TABLE INST, Here is a database schema( table schema);
What is the sport played in Iowa City on February 14 2009?It is not neccessary to use all the tables.
SELECT team FROM table_name_5 WHERE circuit = "winton motor raceway"
CREATE TABLE INST, Here is a database schema( table schema);
Which team won at winton motor raceway?It is not neccessary to use all the tables.
SELECT record FROM table_name_51 WHERE date = "november 16"
CREATE TABLE INST, Here is a database schema( table schema);
Which Record is on november 16?It is not neccessary to use all the tables.
SELECT Common of FROM table WHERE Rank = 9th
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the 9th ranked common?.It is not neccessary to use all the tables.
SELECT COUNT Runner-up FROM table WHERE International destination = Japan
CREATE TABLE INST, Here is a database schema( table schema);
How many runner-ups were there when the show went to Japan?.It is not neccessary to use all the tables.
SELECT SUM Murder and Non-Negligent Manslaughter FROM table WHERE Larceny-Theft = 3,693.9 AND Burglary > 1,027.0
CREATE TABLE INST, Here is a database schema( table schema);
What is the total rate of murder and non-negligent manslaughter when larceny-theft is 3,693.9 and burglary is more than 1,027.0?.It is not neccessary to use all the tables.
SELECT payload__kg_ FROM table_name_35 WHERE weight__kg_ = "12,000"
CREATE TABLE INST, Here is a database schema( table schema);
Name the payload that has a weight of 12000It is not neccessary to use all the tables.
SELECT location FROM table_name_96 WHERE opponenent = "germany"
CREATE TABLE INST, Here is a database schema( table schema);
Where was the opponent Germany?It is not neccessary to use all the tables.
SELECT Away team FROM table WHERE Home team score = 10.8 (68)
CREATE TABLE INST, Here is a database schema( table schema);
Who was the away team when the home team scored 10.8 (68)?.It is not neccessary to use all the tables.
SELECT Position FROM table WHERE School/Country = tulsa
CREATE TABLE INST, Here is a database schema( table schema);
What position does the player from tulsa play?.It is not neccessary to use all the tables.
SELECT AVG(chartevents.valuenum) FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 18677)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arte...
CREATE TABLE INST, Here is a database schema( table schema);
indicate the yearly average arterial bp [systolic] of patient 18677 until 44 months ago.It is not neccessary to use all the tables.
SELECT MAX(established) FROM table_1414702_3 WHERE high_school = "Mount Tahoma"
CREATE TABLE INST, Here is a database schema( table schema);
When was Mount Tahoma established?It is not neccessary to use all the tables.
SELECT surface FROM table_name_50 WHERE partner = "paula ormaechea"
CREATE TABLE INST, Here is a database schema( table schema);
What was the surface made of in the contest where Paula Ormaechea was the partner?It is not neccessary to use all the tables.
SELECT mID FROM Rating EXCEPT SELECT T1.mID FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T2.name = "Brittany Harris"
CREATE TABLE INST, Here is a database schema( table schema);
What are the ids of the movies that are not reviewed by Brittany Harris.It is not neccessary to use all the tables.
SELECT MAX(series__number) FROM table_29087004_2 WHERE united_states_original_airdate = "December 24, 2010"
CREATE TABLE INST, Here is a database schema( table schema);
What number episode in the series had and original United States air date of December 24 2010?It is not neccessary to use all the tables.
SELECT length___ft__ FROM table_name_47 WHERE length___m__ = "64.2"
CREATE TABLE INST, Here is a database schema( table schema);
What is the length in feet when the length in meters is 64.2?It is not neccessary to use all the tables.
SELECT nationality FROM table_name_14 WHERE team = "montreal impact" AND player = "justin mapp category:articles with hcards"
CREATE TABLE INST, Here is a database schema( table schema);
What's the nationality of Montreal Impact with Justin Mapp Category:articles with hcards as the player?It is not neccessary to use all the tables.
SELECT chairman FROM table_27631756_2 WHERE captain = "Fawzi Bashir"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the chairman when teh captain is fawzi bashir?It is not neccessary to use all the tables.
SELECT COUNT(original_air_date) FROM table_23255941_1 WHERE episode__number = 12
CREATE TABLE INST, Here is a database schema( table schema);
How many original air dates did episode 12 have?hIt is not neccessary to use all the tables.
SELECT time_of_broadcast FROM table_name_23 WHERE picture_format = "4:3" AND hours = "20:30" AND days_of_the_week = "monday, wednesday, friday"
CREATE TABLE INST, Here is a database schema( table schema);
Name the Time of broadcast has a Picture format of 4:3 and Hours of 20:30 and Days of the week of monday wednesday friday?It is not neccessary to use all the tables.
SELECT COUNT Games FROM table WHERE Goals against > 288 AND Lost < 34
CREATE TABLE INST, Here is a database schema( table schema);
How many games have more than 288 goals and less than 34 losses?.It is not neccessary to use all the tables.
SELECT date_address_to, COUNT(date_address_to) FROM Student_Addresses ORDER BY monthly_rental DESC
CREATE TABLE INST, Here is a database schema( table schema);
Show me about the distribution of date_address_to and the amount of date_address_to bin date_address_to by weekday in a bar chart.It is not neccessary to use all the tables.
SELECT MAX(blocks) FROM table_19722664_5 WHERE rebounds = 35
CREATE TABLE INST, Here is a database schema( table schema);
What is the maximum number of blocks where rebounds equal 35?It is not neccessary to use all the tables.
SELECT AVG(lane) FROM table_name_8 WHERE time > 22.57 AND react < 0.245 AND country = "cuba"
CREATE TABLE INST, Here is a database schema( table schema);
What is the average lane of the athlete from cuba who has a time greater than 22.57 and react less than 0.245?It is not neccessary to use all the tables.
SELECT MAX(effic) FROM table_name_68 WHERE avg_g = 91.9
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest effic with an avg/g of 91.9?It is not neccessary to use all the tables.
SELECT home FROM table_name_91 WHERE date = "april 15"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the home team on April 15?It is not neccessary to use all the tables.
SELECT MAX Top-25 FROM table WHERE Top-10 > 9 AND Events < 29
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest top-25 with more than 9 top-10 but less than 29 events?.It is not neccessary to use all the tables.
SELECT AVG(ddr3_speed) FROM table_name_15 WHERE model = "e-350"
CREATE TABLE INST, Here is a database schema( table schema);
Name the average DDR3 speed for model e-350It is not neccessary to use all the tables.
SELECT written_by FROM table_20360535_2 WHERE television_order = "S01E06"
CREATE TABLE INST, Here is a database schema( table schema);
who wrote s01e06It is not neccessary to use all the tables.
SELECT home_team FROM table_name_75 WHERE venue = "punt road oval"
CREATE TABLE INST, Here is a database schema( table schema);
Which team plays at Punt Road Oval?It is not neccessary to use all the tables.
SELECT SUM(points_gained) FROM table_name_36 WHERE fans_took = "403 [sunday]"
CREATE TABLE INST, Here is a database schema( table schema);
What is the points gained of the match where fans took 403 [sunday]?It is not neccessary to use all the tables.
SELECT COUNT(total) FROM table_name_38 WHERE silver < 0
CREATE TABLE INST, Here is a database schema( table schema);
How much Total has a Silver smaller than 0?It is not neccessary to use all the tables.
SELECT party FROM table_2668416_7 WHERE incumbent = "Samuel Smith"
CREATE TABLE INST, Here is a database schema( table schema);
What is the party when the incumbent is samuel smith?It is not neccessary to use all the tables.
SELECT Athlete FROM table WHERE Gold < 7 AND Total = 14
CREATE TABLE INST, Here is a database schema( table schema);
What athlete has less than 7 gold and 14 total medals?.It is not neccessary to use all the tables.
SELECT MIN Crowd FROM table WHERE Away team = footscray
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest attendance when footscray is the away team?.It is not neccessary to use all the tables.
SELECT Site FROM table WHERE Date = november 13
CREATE TABLE INST, Here is a database schema( table schema);
What is Site, when Date is "November 13"?.It is not neccessary to use all the tables.
SELECT Teleplay FROM table WHERE Season > 1.1 AND First Broadcast = february 20, 1981
CREATE TABLE INST, Here is a database schema( table schema);
What is Teleplay, when Season is greater than 1.1, and when First Broadcast is "February 20, 1981"?.It is not neccessary to use all the tables.
SELECT SUM(round) FROM table_name_65 WHERE nationality = "sweden" AND overall = 199
CREATE TABLE INST, Here is a database schema( table schema);
What is the total round with an overall of 199 with sweden?It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Player = mark hayes
CREATE TABLE INST, Here is a database schema( table schema);
What is the score of player mark hayes?.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Tournament = zürich, switzerland
CREATE TABLE INST, Here is a database schema( table schema);
What date is the zürich, switzerland tournament?.It is not neccessary to use all the tables.
SELECT number_of_votes FROM table_name_79 WHERE election = 1941
CREATE TABLE INST, Here is a database schema( table schema);
How many people voted in the election of 1941?It is not neccessary to use all the tables.
SELECT Surface FROM table WHERE Finalist = justine henin
CREATE TABLE INST, Here is a database schema( table schema);
What was the surface for finalist Justine Henin?.It is not neccessary to use all the tables.
SELECT res FROM table_name_7 WHERE record = "3–1"
CREATE TABLE INST, Here is a database schema( table schema);
Record of 3–1 had what Res?It is not neccessary to use all the tables.
SELECT AVG Events FROM table WHERE Top-10 < 4
CREATE TABLE INST, Here is a database schema( table schema);
I want the average events for top 10 less than 4.It is not neccessary to use all the tables.
SELECT date FROM table_name_16 WHERE rocket = "tbd" AND satellite = "gps iiia-1"
CREATE TABLE INST, Here is a database schema( table schema);
On what date was the rocket a TBD with a satellite of GPS IIIA-1?It is not neccessary to use all the tables.
SELECT SUM Date FROM table WHERE Score = 3–6, 6–4, 3–6, 6–1, 6–2
CREATE TABLE INST, Here is a database schema( table schema);
On what Date was the Score of 3–6, 6–4, 3–6, 6–1, 6–2.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 WHERE demographic.marital_status = "SINGLE" AND diagnoses.icd9_code = "70724"
CREATE TABLE INST, Here is a database schema( table schema);
how many unmarried patients have diagnoses icd9 code 70724?It is not neccessary to use all the tables.
SELECT constructor FROM table_name_28 WHERE laps = 45 AND qual < 142.29 AND driver = "chuck weyant"
CREATE TABLE INST, Here is a database schema( table schema);
Which constructor has Chuck Weyant as a driver 45 laps and a qual of less than 142.29?It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Opponent = Army
CREATE TABLE INST, Here is a database schema( table schema);
What was the record for the Orangemen when they played against Army?.It is not neccessary to use all the tables.
SELECT chassis FROM table_name_32 WHERE engine = "climax straight-4"
CREATE TABLE INST, Here is a database schema( table schema);
What chassis was paired with climax straight-4?It is not neccessary to use all the tables.
SELECT COUNT(college) FROM table_28059992_2 WHERE player = "Jerome Pathon"
CREATE TABLE INST, Here is a database schema( table schema);
Name the number of colleges for jerome pathonIt is not neccessary to use all the tables.
SELECT Rank points FROM table WHERE Event = wc beijing AND Score points = 11
CREATE TABLE INST, Here is a database schema( table schema);
What Rank points has an Event of wc beijing, and Score points of 11?.It is not neccessary to use all the tables.
SELECT AVG(games) FROM table_name_5 WHERE years_at_club = "1977" AND goals = 17 AND debut_year < 1977
CREATE TABLE INST, Here is a database schema( table schema);
Which Games have Years at club of 1977 and Goals of 17 and a Debut year smaller than 1977?It is not neccessary to use all the tables.
SELECT MAX(grid) FROM table_name_90 WHERE time = "+0.283"
CREATE TABLE INST, Here is a database schema( table schema);
What driver had the highest grid position with a time of +0.283?It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Date = april 14, 2007
CREATE TABLE INST, Here is a database schema( table schema);
Who was the opponent on the game on April 14, 2007?.It is not neccessary to use all the tables.
SELECT Co-Drivers FROM table WHERE Laps > 377 AND Pos. = 1st
CREATE TABLE INST, Here is a database schema( table schema);
Who were the co-drivers with more than 377 laps in 1st position?.It is not neccessary to use all the tables.
SELECT MAX Round FROM table WHERE College = penn state
CREATE TABLE INST, Here is a database schema( table schema);
what is the highest round when the college is penn state?.It is not neccessary to use all the tables.
SELECT constructor FROM table_name_20 WHERE chassis = "tg181" AND driver = "derek warwick"
CREATE TABLE INST, Here is a database schema( table schema);
Who constructed the car that Derek Warwick raced in with a TG181 chassis?It is not neccessary to use all the tables.
SELECT location FROM table_28794440_1 WHERE frequency = "1485kHz"
CREATE TABLE INST, Here is a database schema( table schema);
Where are all the 1485khz frequency located?It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT complaint_type_code) FROM complaints
CREATE TABLE INST, Here is a database schema( table schema);
How many distinct complaint type codes are there in the database?It is not neccessary to use all the tables.
SELECT record FROM table_name_11 WHERE home = "mavericks"
CREATE TABLE INST, Here is a database schema( table schema);
What was the record in the competition in which the home team was the Mavericks?It is not neccessary to use all the tables.
SELECT country FROM table_17521433_1 WHERE swimsuit = "8.788"
CREATE TABLE INST, Here is a database schema( table schema);
What country had a swimsuit score of 8.788?It is not neccessary to use all the tables.
SELECT MIN(year) FROM table_2402864_1 WHERE regular_season = "3rd, Southeast" AND league = "USL PDL"
CREATE TABLE INST, Here is a database schema( table schema);
What was the earliest year where USL PDL played in 3rd Southeast season?It is not neccessary to use all the tables.
SELECT Height FROM table WHERE Rank < 20 AND Floors > 9 AND Built = 2005 AND Name = the edge (c)
CREATE TABLE INST, Here is a database schema( table schema);
What is Height, when Rank is less than 20, when Floors is greater than 9, when Built is 2005, and when Name is The Edge (C)?.It is not neccessary to use all the tables.
SELECT DISTINCT paper.paperid FROM author, paper, writes WHERE author.authorname = 'mirella lapata' AND paper.year = 2016 AND writes.authorid = author.authorid AND writes.paperid = paper.paperid
CREATE TABLE INST, Here is a database schema( table schema);
mirella lapata 's papers in 2016 ?It is not neccessary to use all the tables.
SELECT MAX Annual CO2 emissions (in thousands of metric tons) FROM table WHERE GDP per Emissions (in US dollars per ton) = 3903
CREATE TABLE INST, Here is a database schema( table schema);
when the gdp per emissions (in us dollars per ton) is 3903, what is the maximum annual co2 emissions (in thousands of metric tons)?.It is not neccessary to use all the tables.
SELECT Party FROM table WHERE Leader = timothy kirkhope
CREATE TABLE INST, Here is a database schema( table schema);
Which party does Timothy Kirkhope lead?.It is not neccessary to use all the tables.
SELECT COUNT(binibining_pilipinas_international) FROM table_1825751_4 WHERE binibining_pilipinas_world = "Maria Karla Bautista"
CREATE TABLE INST, Here is a database schema( table schema);
How many winners of binibining pilipinas-International when Maria Karla Bautista won binibining pilipinas-world?It is not neccessary to use all the tables.
SELECT MAX(losses) FROM table_name_65 WHERE wins = 5 AND against < 1607
CREATE TABLE INST, Here is a database schema( table schema);
What is the most number of losses for teams with 5 wins and an against value under 1607?It is not neccessary to use all the tables.
SELECT Title FROM table WHERE Directed by = Jessica Yu
CREATE TABLE INST, Here is a database schema( table schema);
What was the name of the episode directed by Jessica Yu?.It is not neccessary to use all the tables.
SELECT Representative FROM table WHERE Termination of Mission = mar 25, 1976
CREATE TABLE INST, Here is a database schema( table schema);
Which representative has a Termination of MIssion date Mar 25, 1976?.It is not neccessary to use all the tables.
SELECT stroke__mm_ FROM table_23722304_2 WHERE vehicle_code = "T211"
CREATE TABLE INST, Here is a database schema( table schema);
what is the stroke where the vehicle code is t211?It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Score = 56-4
CREATE TABLE INST, Here is a database schema( table schema);
What is the Venue, when the Score is 56-4?.It is not neccessary to use all the tables.
SELECT surface FROM table_name_80 WHERE date = "13 february 1994"
CREATE TABLE INST, Here is a database schema( table schema);
On what type of surface did they play on 13 February 1994?It is not neccessary to use all the tables.
SELECT AVG(february) FROM table_name_35 WHERE opponent = "st. louis blues" AND game < 58
CREATE TABLE INST, Here is a database schema( table schema);
What is the February number of the game played against the St. Louis Blues with a game number less than 58?It is not neccessary to use all the tables.
SELECT Low_Estimate, High_Estimate FROM film_market_estimation
CREATE TABLE INST, Here is a database schema( table schema);
Return the low and high estimates for all film markets. Show scatter chart.It is not neccessary to use all the tables.
SELECT Team 2 FROM table WHERE 2nd leg = 0-0
CREATE TABLE INST, Here is a database schema( table schema);
What was Team 2 with a 2nd leg of 0-0?.It is not neccessary to use all the tables.
SELECT team FROM table_name_47 WHERE tournament > 1 AND regular_season = "0" AND total = 2
CREATE TABLE INST, Here is a database schema( table schema);
What team has over 1 tournament title 0 in the regular season and 2 total?It is not neccessary to use all the tables.
SELECT Semifinalists FROM table WHERE Tournament = cincinnati
CREATE TABLE INST, Here is a database schema( table schema);
Who are the semifinalists when the tournament is in Cincinnati?.It is not neccessary to use all the tables.
SELECT Name FROM GENRE
CREATE TABLE INST, Here is a database schema( table schema);
List the names of all music genres.It is not neccessary to use all the tables.
SELECT date FROM table_name_10 WHERE status = "five nations" AND against = 23
CREATE TABLE INST, Here is a database schema( table schema);
On what date is there a status of Five Nations and an against of 23?It is not neccessary to use all the tables.
SELECT engine FROM table_name_44 WHERE driver = "luigi villoresi"
CREATE TABLE INST, Here is a database schema( table schema);
I want the engine for luigi villoresiIt is not neccessary to use all the tables.