sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT young_classification FROM table_name_26 WHERE general_classification = "christian vande velde" AND team_classification = "team columbia" AND sprint_classification = "mark cavendish"
CREATE TABLE INST, Here is a database schema( table schema);
Which young classification has general classification of Christian Vande Velde for Team Columbia and Mark Cavendish?It is not neccessary to use all the tables.
SELECT MAX(area_km_2) FROM table_name_45 WHERE status = "village" AND official_name = "drummond"
CREATE TABLE INST, Here is a database schema( table schema);
What is the area of drummond village?It is not neccessary to use all the tables.
SELECT COUNT(year) FROM table_name_7 WHERE composer = "mejo joseph"
CREATE TABLE INST, Here is a database schema( table schema);
What year was the composition by Mejo Joseph?It is not neccessary to use all the tables.
SELECT COUNT(touchdowns) FROM table_25647137_2 WHERE player = "Bill Culligan"
CREATE TABLE INST, Here is a database schema( table schema);
How many touchdowns did bill culligan have?It is not neccessary to use all the tables.
SELECT population_density__per_km²_ FROM table_name_31 WHERE gdp__ppp__$m_usd = "$188,112"
CREATE TABLE INST, Here is a database schema( table schema);
How much is the population density with a GDP at $188112?It is not neccessary to use all the tables.
SELECT MAX Administrative Panel FROM table WHERE Nominated by the Taoiseach > 3 AND Agricultural Panel = 5 AND Cultural and Educational Panel > 2
CREATE TABLE INST, Here is a database schema( table schema);
What is the biggest administrative panel with a nominated by the Taoiseach greater than 3 and an argricultural panel of 5, plust a cultural and educational panel larger than 2?.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Result = bulgarian victory AND Battle = battle of arcadiopolis
CREATE TABLE INST, Here is a database schema( table schema);
What is the Date of the Bulgarian Victory at the Battle of Arcadiopolis?.It is not neccessary to use all the tables.
SELECT digital_channel FROM table_name_31 WHERE network = "nbc"
CREATE TABLE INST, Here is a database schema( table schema);
Network of nbc is what digital channel?It is not neccessary to use all the tables.
SELECT skip FROM table_name_68 WHERE country = "canada"
CREATE TABLE INST, Here is a database schema( table schema);
What was Canada's skip?It is not neccessary to use all the tables.
SELECT location FROM table_name_26 WHERE owner = "johnson c. smith university"
CREATE TABLE INST, Here is a database schema( table schema);
What is the location of the venue owned by johnson c. smith university?It is not neccessary to use all the tables.
SELECT MIN(accounting_closure_date) FROM table_143352_1 WHERE agr_power_station = "Hunterston B"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Closure date of Hunterston BIt is not neccessary to use all the tables.
SELECT Fineness FROM table WHERE Year < 2007
CREATE TABLE INST, Here is a database schema( table schema);
What was the fineness prior to 2007?.It is not neccessary to use all the tables.
SELECT overall FROM table_name_72 WHERE position = "tight end"
CREATE TABLE INST, Here is a database schema( table schema);
What was the overall draft pick for the player selected for the tight end position?It is not neccessary to use all the tables.
SELECT MAX Points FROM table WHERE Record = 28-12-6
CREATE TABLE INST, Here is a database schema( table schema);
Calculate the highest points where the win,loss, tie ratio is 28-12-6.It is not neccessary to use all the tables.
SELECT per_capita_income FROM table_name_43 WHERE median_household_income = "$42,845"
CREATE TABLE INST, Here is a database schema( table schema);
How much is per capita income when median household income is $42845?It is not neccessary to use all the tables.
SELECT MIN Points FROM table WHERE Opponent = @ florida panthers AND Game > 58
CREATE TABLE INST, Here is a database schema( table schema);
Which Points have an Opponent of @ florida panthers, and a Game larger than 58?.It is not neccessary to use all the tables.
SELECT DISTINCT T1.name FROM physician AS T1 JOIN prescribes AS T2 ON T1.employeeid = T2.physician JOIN medication AS T3 ON T3.code = T2.medication WHERE T3.name = "Thesisin"
CREATE TABLE INST, Here is a database schema( table schema);
What is the names of the physicians who prescribe medication Thesisin?It is not neccessary to use all the tables.
SELECT MAX("Sales") FROM table_38375 WHERE "Album Title" = 'all saints'
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest sales All Saints had?It is not neccessary to use all the tables.
SELECT MAX(interview) FROM table_name_66 WHERE swimsuit = 8.857 AND average > 9.097
CREATE TABLE INST, Here is a database schema( table schema);
What was the highest Interview score from a contestant who had a swimsuit score of 8.857 and an Average score over 9.097?It is not neccessary to use all the tables.
SELECT away_team AS score FROM table_name_7 WHERE away_team = "geelong"
CREATE TABLE INST, Here is a database schema( table schema);
When the away team was geelong, what was the away team score?It is not neccessary to use all the tables.
SELECT AVG(round) FROM table_name_52 WHERE location = "bahia, brazil"
CREATE TABLE INST, Here is a database schema( table schema);
Which Round has a Location of bahia brazil?It is not neccessary to use all the tables.
SELECT date FROM table_name_53 WHERE record = "2-0"
CREATE TABLE INST, Here is a database schema( table schema);
What is the date of the game when the record is 2-0?It is not neccessary to use all the tables.
SELECT TagName, 'count', OwnerUserId AS "user_link", Score FROM (SELECT t.TagName, t.Count, a.OwnerUserId, SUM(a.Score) AS Score, RANK() OVER (PARTITION BY t.TagName ORDER BY SUM(a.Score) DESC) AS Rank FROM Posts AS a INNER JOIN Posts AS q ON a.ParentId = q.Id INNER JOIN PostTags AS pt ON q.Id = pt.PostId INNER JOIN Ta...
CREATE TABLE INST, Here is a database schema( table schema);
Top tags and their top users.It is not neccessary to use all the tables.
SELECT result FROM table_name_25 WHERE attendance = "64,104"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Result of the game with an Attendance of 64104?It is not neccessary to use all the tables.
SELECT Hometown FROM table WHERE Height = 6-0
CREATE TABLE INST, Here is a database schema( table schema);
What is the hometown of the player which has a height of 6-0?.It is not neccessary to use all the tables.
SELECT Nationality FROM table WHERE Round = 7
CREATE TABLE INST, Here is a database schema( table schema);
What is the nationality of the player in round 7?.It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Year < 2008 AND Tournament = world race walking cup
CREATE TABLE INST, Here is a database schema( table schema);
What Venue held the World Race Walking Cup tourney before 2008?.It is not neccessary to use all the tables.
SELECT medication.drugname FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.uniquepid = '009-7776') AND DATETIME(medication.drugstarttime, 'start of day') = DATETIME(CURRENT_TIME(), 'start of day', '-0 day') EXCEPT SELECT medication.drugname FROM medicat...
CREATE TABLE INST, Here is a database schema( table schema);
compare to yesterday what was new in the prescription of patient 009-7776 today?It is not neccessary to use all the tables.
SELECT Away team FROM table WHERE Home team = collingwood
CREATE TABLE INST, Here is a database schema( table schema);
Who faced Collingwood as an away team?.It is not neccessary to use all the tables.
SELECT may_2009 FROM table_23680576_2 WHERE jul_2009 = "7.2%"
CREATE TABLE INST, Here is a database schema( table schema);
If the polling average in July 2009 was 7.2% what was it in May 2009?It is not neccessary to use all the tables.
SELECT "Date" FROM table_79185 WHERE "Tie no" = '13'
CREATE TABLE INST, Here is a database schema( table schema);
On what date was Tie #13 played?It is not neccessary to use all the tables.
SELECT away_team AS score FROM table_name_41 WHERE away_team = "fitzroy"
CREATE TABLE INST, Here is a database schema( table schema);
I want the away team score for away team of fitzroyIt is not neccessary to use all the tables.
SELECT Directed by FROM table WHERE TV Broadcast = S03E19
CREATE TABLE INST, Here is a database schema( table schema);
Who directed the TV broadcast s03e19?.It is not neccessary to use all the tables.
SELECT score FROM table_17058226_7 WHERE date = "January 26"
CREATE TABLE INST, Here is a database schema( table schema);
Name the score for january 26It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Crowd > 11,000 AND Away team score = 11.10 (76)
CREATE TABLE INST, Here is a database schema( table schema);
At what venue did a crowd larger than 11,000 see the away team score 11.10 (76)?.It is not neccessary to use all the tables.
SELECT COUNT(*) > 0 FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '005-26011' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.ho...
CREATE TABLE INST, Here is a database schema( table schema);
in their last hospital encounter patient 005-26011 was diagnosed with a pleural effusion - etiology unknown?It is not neccessary to use all the tables.
SELECT AVG Top-25 FROM table WHERE Events = 20 AND Wins > 2
CREATE TABLE INST, Here is a database schema( table schema);
What is the Top-25 with an Events of 20, and a Wins larger than 2?.It is not neccessary to use all the tables.
SELECT Reign FROM table WHERE Days held = 35 AND Wrestler = super kendo
CREATE TABLE INST, Here is a database schema( table schema);
What is the reign for super kendo who held it for 35 days?.It is not neccessary to use all the tables.
SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id = t2.customer_id JOIN services AS t3 ON t2.service_id = t3.service_id WHERE t3.service_name = "Close a policy" OR t3.service_name = "Upgrade a policy"
CREATE TABLE INST, Here is a database schema( table schema);
Find the names of customers who have used either the service "Close a policy" or the service "Upgrade a policy".It is not neccessary to use all the tables.
SELECT frequency FROM table_21716139_1 WHERE train_no = "12671/12672"
CREATE TABLE INST, Here is a database schema( table schema);
What is the frequency of trains numbered 12671/12672?It is not neccessary to use all the tables.
SELECT player_name FROM table_10360823_1 WHERE round = 17
CREATE TABLE INST, Here is a database schema( table schema);
Which player was chosen in round 17?It is not neccessary to use all the tables.
SELECT Home team FROM table WHERE Visiting team = San Jose State
CREATE TABLE INST, Here is a database schema( table schema);
What is the home team where the San Jose state is the visiting team?.It is not neccessary to use all the tables.
SELECT Points FROM table WHERE Laps = 88 AND Grid = 14
CREATE TABLE INST, Here is a database schema( table schema);
How many points have 88 laps and a grid of 14?.It is not neccessary to use all the tables.
SELECT tournament FROM table_name_47 WHERE finalist = "marat safin (12)"
CREATE TABLE INST, Here is a database schema( table schema);
WHich Tournament has a Finalist of marat safin (12)?It is not neccessary to use all the tables.
SELECT cross_code_debut FROM table_name_87 WHERE year > 1958 AND player = "dick thornett"
CREATE TABLE INST, Here is a database schema( table schema);
What is the cross-code debut later than 1958 for Dick Thornett?It is not neccessary to use all the tables.
SELECT "Venue" FROM table_32230 WHERE "Result" = '7-1'
CREATE TABLE INST, Here is a database schema( table schema);
Which venue had the result 7-1?It is not neccessary to use all the tables.
SELECT power_output__kw_ FROM table_name_6 WHERE model = "hxd3d"
CREATE TABLE INST, Here is a database schema( table schema);
What is the power output (kw) of model hxd3d?It is not neccessary to use all the tables.
SELECT Division IV FROM table WHERE Division III = portsmouth
CREATE TABLE INST, Here is a database schema( table schema);
With a Division II of Portsmouth, what is the Division IV?.It is not neccessary to use all the tables.
SELECT game FROM table_name_33 WHERE date = "march 30"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Game number on March 30?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Partner = corrado barazzutti
CREATE TABLE INST, Here is a database schema( table schema);
What date shows corrado barazzutti's partner?.It is not neccessary to use all the tables.
SELECT Name FROM table WHERE Rank = 5
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of Rank 5?.It is not neccessary to use all the tables.
SELECT MAX FF FROM table WHERE Solo = 56
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest ff when solo is 56?.It is not neccessary to use all the tables.
SELECT Start FROM table WHERE Rank = 12
CREATE TABLE INST, Here is a database schema( table schema);
What place did Jimmy Reece start from when he ranked 12?.It is not neccessary to use all the tables.
SELECT date FROM table_name_42 WHERE home_team = "middlesbrough"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Date of the Middlesbrough Home game?It is not neccessary to use all the tables.
SELECT pc_intro FROM table_2490289_1 WHERE amiga_intro = "4k0 (Polka Brothers)"
CREATE TABLE INST, Here is a database schema( table schema);
What won est pc intro when 4k0 (polka brothers) won best amiga intro?It is not neccessary to use all the tables.
SELECT surface FROM table_name_57 WHERE date = "22 august 2006"
CREATE TABLE INST, Here is a database schema( table schema);
Which surface has a Date of 22 august 2006?It is not neccessary to use all the tables.
SELECT Withdrawn FROM table WHERE Name = lundy
CREATE TABLE INST, Here is a database schema( table schema);
When was the Lundy withdrawn?.It is not neccessary to use all the tables.
SELECT MIN Attendance FROM table WHERE Date = october 3, 1965
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest attendance on October 3, 1965?.It is not neccessary to use all the tables.
SELECT entrant FROM table_name_65 WHERE chassis = "m185b m186"
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the entrant with a chassis of m185b m186?It is not neccessary to use all the tables.
SELECT Draws % FROM table WHERE Wins > 1 AND Loses % = 0% AND Team = al-zawraa
CREATE TABLE INST, Here is a database schema( table schema);
Which Draws % has Wins larger than 1, and Loses % of 0%, and a Team of al-zawraa?.It is not neccessary to use all the tables.
SELECT D 42 FROM table WHERE R 51 = r 11
CREATE TABLE INST, Here is a database schema( table schema);
I want the D 42 with R 51 of r 11.It is not neccessary to use all the tables.
SELECT MAX(conceded) FROM table_name_4 WHERE played < 5
CREATE TABLE INST, Here is a database schema( table schema);
Please name the highest Conceded which has a Played smaller than 5?It is not neccessary to use all the tables.
SELECT Home team FROM table WHERE "Pick The Winners" score = newcastle 10 easts 25.5
CREATE TABLE INST, Here is a database schema( table schema);
What is the Home team when the "Pick The Winners" score was newcastle 10 easts 25.5?.It is not neccessary to use all the tables.
SELECT Gene Name FROM table WHERE Genus/Species = Methylobacterium nodulans
CREATE TABLE INST, Here is a database schema( table schema);
Name the gene name for methylobacterium nodulans.It is not neccessary to use all the tables.
SELECT McCain% FROM table WHERE Obama% = 36.47%
CREATE TABLE INST, Here is a database schema( table schema);
What are McCain's Percent when Obama has 36.47%?.It is not neccessary to use all the tables.
SELECT loss FROM table_name_29 WHERE record = "84-71"
CREATE TABLE INST, Here is a database schema( table schema);
What was the loss of the game with a record of 84-71?It is not neccessary to use all the tables.
SELECT NBA Draft FROM table WHERE School = northeast high school
CREATE TABLE INST, Here is a database schema( table schema);
What was the NBA draft status for Northeast High School?.It is not neccessary to use all the tables.
SELECT MIN # of reigns FROM table
CREATE TABLE INST, Here is a database schema( table schema);
In terms of reigns, what is the lowest number listed?.It is not neccessary to use all the tables.
SELECT division_record FROM table_name_78 WHERE school = "woodbridge"
CREATE TABLE INST, Here is a database schema( table schema);
What is the division record for Woodbridge?It is not neccessary to use all the tables.
SELECT Title FROM table WHERE Doctor = 1st AND Published = november 2001
CREATE TABLE INST, Here is a database schema( table schema);
What title was published on November 2001 and has a 1st Doctor?.It is not neccessary to use all the tables.
SELECT SUM Heat FROM table WHERE Nationality = macedonia AND Rank < 114
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of every heat for the nationality of Macedonia with a rank less than 114?.It is not neccessary to use all the tables.
SELECT AVG(works_number) FROM table_name_1 WHERE number > 807 AND type = "0-6-0" AND date = 1920
CREATE TABLE INST, Here is a database schema( table schema);
Which Works number has a Number larger than 807 and a Type of 0-6-0 and a Date of 1920?It is not neccessary to use all the tables.
SELECT MAX Bronze FROM table WHERE Total > 3 AND Rank > 1
CREATE TABLE INST, Here is a database schema( table schema);
What are the most bronze medals in a rank more than 1 with a total larger than 3?.It is not neccessary to use all the tables.
SELECT AVG(total_amount_purchased), AVG(total_value_purchased) FROM Product_Suppliers WHERE supplier_id = (SELECT supplier_id FROM Product_Suppliers GROUP BY supplier_id ORDER BY COUNT(*) DESC LIMIT 1)
CREATE TABLE INST, Here is a database schema( table schema);
What are the average amount purchased and value purchased for the supplier who supplies the most products.It is not neccessary to use all the tables.
SELECT Sponsor(s) FROM table WHERE # of cosponsors < 200 AND Date introduced = february 28, 2005
CREATE TABLE INST, Here is a database schema( table schema);
Who was the sponsor for the bill introduced February 28, 2005 with cosponsors less than 200?.It is not neccessary to use all the tables.
SELECT prize FROM table_name_53 WHERE country_region = "belgium"
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the prize for belgiumIt is not neccessary to use all the tables.
SELECT AVG(rank) FROM table_name_48 WHERE silver > 1 AND gold < 11 AND bronze = 2 AND nation = "west germany (frg)"
CREATE TABLE INST, Here is a database schema( table schema);
What is the average rank of west germany (frg) which has more than 1 silver less than 11 gold and 2 bronze medals?It is not neccessary to use all the tables.
SELECT MIN Final year FROM table WHERE Notes = replaced by i-75 and m-25 AND First year > 1926
CREATE TABLE INST, Here is a database schema( table schema);
What is the most minimal Final year that has a Notes of replaced by i-75 and m-25, and a First year larger than 1926?.It is not neccessary to use all the tables.
SELECT Country FROM table WHERE Area in m² = 3,170
CREATE TABLE INST, Here is a database schema( table schema);
What is the country with area of 3,170 in m²?.It is not neccessary to use all the tables.
SELECT Country FROM table WHERE Score = 72-70-75-72=289
CREATE TABLE INST, Here is a database schema( table schema);
What country has a 72-70-75-72=289 score?.It is not neccessary to use all the tables.
SELECT Team Classification FROM table WHERE Aggressive Rider = Richie Porte
CREATE TABLE INST, Here is a database schema( table schema);
What is aggressive rider Richie Porte's team classifaction?.It is not neccessary to use all the tables.
SELECT team FROM table_name_55 WHERE location_attendance = "boston garden" AND series = "1-0"
CREATE TABLE INST, Here is a database schema( table schema);
What team played at the Boston Garden when the series was 1-0?It is not neccessary to use all the tables.
SELECT publication.title FROM author AS AUTHOR_0, author AS AUTHOR_1, publication, writes AS WRITES_0, writes AS WRITES_1 WHERE AUTHOR_0.name = 'H. V. Jagadish' AND AUTHOR_1.name = 'Divesh Srivastava' AND publication.citation_num > 200 AND WRITES_0.aid = AUTHOR_0.aid AND WRITES_0.pid = publication.pid AND WRITES_1.aid ...
CREATE TABLE INST, Here is a database schema( table schema);
return me the papers written by ' H. V. Jagadish ' and ' Divesh Srivastava ' with more than 200 citations .It is not neccessary to use all the tables.
SELECT Table FROM table WHERE Team = Blackburn Rovers
CREATE TABLE INST, Here is a database schema( table schema);
What is the table for the team Blackburn Rovers?.It is not neccessary to use all the tables.
SELECT Station FROM table WHERE Number > 9 AND Distance (km) = 16.4
CREATE TABLE INST, Here is a database schema( table schema);
What is the station with a number greater than 9 and a distance of 16.4 km?.It is not neccessary to use all the tables.
SELECT frequency FROM table_name_95 WHERE name = "104.3 business radio"
CREATE TABLE INST, Here is a database schema( table schema);
What is the frequency of 104.3 business radio?It is not neccessary to use all the tables.
SELECT Time FROM table WHERE Winner = screen your friend
CREATE TABLE INST, Here is a database schema( table schema);
What was the time for Screen Your Friend?.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Distance = 3,000 m
CREATE TABLE INST, Here is a database schema( table schema);
Which Date has a Distance of 3,000 m?.It is not neccessary to use all the tables.
SELECT COUNT Original title FROM table WHERE Film title used in nomination = Marriage Italian-Style
CREATE TABLE INST, Here is a database schema( table schema);
How many original titles did Marriage Italian-Style have? .It is not neccessary to use all the tables.
SELECT Artist FROM table WHERE Actual Title = game of thrones
CREATE TABLE INST, Here is a database schema( table schema);
Game of Thrones was done by which artist?.It is not neccessary to use all the tables.
SELECT SUM(points) FROM table_name_98 WHERE player = "mike hyndman" AND assists > 119
CREATE TABLE INST, Here is a database schema( table schema);
How many total points does Mike Hyndman have with more than 119 assists?It is not neccessary to use all the tables.
SELECT record FROM table_name_60 WHERE date = "april 8"
CREATE TABLE INST, Here is a database schema( table schema);
Which record is dated April 8?It is not neccessary to use all the tables.
SELECT 1 AS st FROM table_27298240_28 WHERE present = "mogu"
CREATE TABLE INST, Here is a database schema( table schema);
What is in 1st place when present is mogu?It is not neccessary to use all the tables.
SELECT Glendale Principal FROM table WHERE M.S. Principal = greg smorel AND H.S. Principal = joleen reinholz AND Year = 2006-2007
CREATE TABLE INST, Here is a database schema( table schema);
Who is the Glendale principal with Greg Smorel as m.s. principal and Joleen Reinholz as H.S. principal during 2006-2007?.It is not neccessary to use all the tables.
SELECT Novick FROM table WHERE Source = surveyusa AND Neville = 8%
CREATE TABLE INST, Here is a database schema( table schema);
Which Novick has a Source of surveyusa, and a Neville of 8%?.It is not neccessary to use all the tables.
SELECT tongyong FROM table_17015_2 WHERE chinese = "湖內區"
CREATE TABLE INST, Here is a database schema( table schema);
Name the tongyong for chinese of 湖內區It is not neccessary to use all the tables.
SELECT Winners FROM table WHERE Venue = vojens
CREATE TABLE INST, Here is a database schema( table schema);
Who took the winning slot at the Vojens venue?.It is not neccessary to use all the tables.
SELECT "Probable Future" FROM table_48152 WHERE "!Simple Present/Future" = 'high grade'
CREATE TABLE INST, Here is a database schema( table schema);
What is the probable future word for the simple present/future word high grade?It is not neccessary to use all the tables.
SELECT MAX No. Disc FROM table WHERE Directed by = Bill Gereghty
CREATE TABLE INST, Here is a database schema( table schema);
Name the maximum number of disc for bill gereghty.It is not neccessary to use all the tables.
SELECT MAX(bronze) FROM table_name_94 WHERE total = 9
CREATE TABLE INST, Here is a database schema( table schema);
what is the most bronze when the total is 9?It is not neccessary to use all the tables.