sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT COUNT(peak_position) FROM table_23180638_1 WHERE oricon_albums_chart = "Weekly Charts"
CREATE TABLE INST, Here is a database schema( table schema);
How many peak positions were there on the weekly charts?It is not neccessary to use all the tables.
SELECT MAX Season # FROM table WHERE Writer(s) = Denne Bart Petitclerc
CREATE TABLE INST, Here is a database schema( table schema);
From writer Denne Bart Petitclerc, what is the maximum season number?.It is not neccessary to use all the tables.
SELECT attendance FROM table_name_82 WHERE score = "0:1"
CREATE TABLE INST, Here is a database schema( table schema);
How many were in attendance with a score of 0:1?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Score = 6-2, 6-4
CREATE TABLE INST, Here is a database schema( table schema);
On what Date was the match with a Score of 6-2, 6-4?.It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Year = 2013
CREATE TABLE INST, Here is a database schema( table schema);
What was the Result in 2013?.It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT Currency_Code) FROM Drama_Workshop_Groups
CREATE TABLE INST, Here is a database schema( table schema);
How many distinct currency codes are there for all drama workshop groups?It is not neccessary to use all the tables.
SELECT "Venue" FROM table_61814 WHERE "Status" = 'five nations' AND "Against" = '0'
CREATE TABLE INST, Here is a database schema( table schema);
What Venue has a Status of five nations, and Against of 0?It is not neccessary to use all the tables.
SELECT nationality FROM table_name_51 WHERE player = "rudolf vercik"
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the nationality for rudolf vercikIt is not neccessary to use all the tables.
SELECT Artist FROM table WHERE Issue Price = $8,159.95
CREATE TABLE INST, Here is a database schema( table schema);
Which Artist has an Issue Price of $8,159.95?.It is not neccessary to use all the tables.
SELECT HP -hr/Gal FROM table WHERE GGE % = 111.11%
CREATE TABLE INST, Here is a database schema( table schema);
What's the HP -hr/Gal of the fuel with 111.11% GGE?.It is not neccessary to use all the tables.
SELECT MIN Attendance FROM table WHERE Week = 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the smallest attendance in week 1?.It is not neccessary to use all the tables.
SELECT MAX(total) FROM table_name_35 WHERE e_score > 9.35 AND t_score < 4
CREATE TABLE INST, Here is a database schema( table schema);
How large was the total when the E Score was greater than 9.35 and T Score was less than 4?It is not neccessary to use all the tables.
SELECT home_team AS score FROM table_name_24 WHERE venue = "junction oval"
CREATE TABLE INST, Here is a database schema( table schema);
In the game that took place at junction oval how much did the home team score?It is not neccessary to use all the tables.
SELECT pole_position FROM table_27913160_3 WHERE race = "Milwaukee"
CREATE TABLE INST, Here is a database schema( table schema);
Who had the pole position in Milwaukee?It is not neccessary to use all the tables.
SELECT MAX(laps) FROM table_name_75 WHERE manufacturer = "aprilia" AND time = "+1:36.557"
CREATE TABLE INST, Here is a database schema( table schema);
Which manufacturer of aprilia wth time of +1:36.557 has the highest lap?It is not neccessary to use all the tables.
SELECT townland FROM table_30120619_1 WHERE area__acres__ = 165
CREATE TABLE INST, Here is a database schema( table schema);
Which townland has an area of 165 acres?It is not neccessary to use all the tables.
SELECT nation FROM table_name_37 WHERE record = "7.39"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Nation with a Record that is 7.39?It is not neccessary to use all the tables.
SELECT grades FROM table WHERE students < 430 AND 2007 API = 510
CREATE TABLE INST, Here is a database schema( table schema);
Which grades have students smaller than 430, and a 2007 API of 510?.It is not neccessary to use all the tables.
SELECT events_won_by_kcl FROM table_name_74 WHERE winner = "kclms" AND events_won_by_kclMS < 10 AND year = 2008
CREATE TABLE INST, Here is a database schema( table schema);
Which event won by KCLMS in 2008 has KCLMS as the winner and less than 10 wins by KCL?It is not neccessary to use all the tables.
SELECT Product_Type_Code, COUNT(*) FROM Products GROUP BY Product_Type_Code ORDER BY COUNT(*)
CREATE TABLE INST, Here is a database schema( table schema);
Give me a bar chart for the total number of each product type code, order by the Y in asc.It is not neccessary to use all the tables.
SELECT set_5 FROM table_name_93 WHERE date = "jun 29"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Set 5 with a Date that is jun 29?It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Team 2 = club valencia
CREATE TABLE INST, Here is a database schema( table schema);
What was the score of the game when team 2 was club valencia?.It is not neccessary to use all the tables.
SELECT Round FROM table WHERE Date = march 22
CREATE TABLE INST, Here is a database schema( table schema);
What was the round number for March 22?.It is not neccessary to use all the tables.
SELECT date_announced FROM table_1373542_1 WHERE reported_cost = "US$9 million"
CREATE TABLE INST, Here is a database schema( table schema);
On what date was it announced that an asset was acquired for US$9 Million?It is not neccessary to use all the tables.
SELECT District FROM table WHERE Incumbent = Curt Weldon
CREATE TABLE INST, Here is a database schema( table schema);
What districts does incumbent Curt Weldon hold?.It is not neccessary to use all the tables.
SELECT arabic_capital_name FROM table_15694696_1 WHERE english_capital_name = "Beirut"
CREATE TABLE INST, Here is a database schema( table schema);
what is the arabic capital name where the english capital name is beirut?It is not neccessary to use all the tables.
SELECT date FROM table_name_48 WHERE score = "2–2" AND away_team = "aylesbury united"
CREATE TABLE INST, Here is a database schema( table schema);
Which Date has a Score of 2–2 and an Away team of aylesbury united?It is not neccessary to use all the tables.
SELECT Points FROM table WHERE Points for = points for
CREATE TABLE INST, Here is a database schema( table schema);
What points has points for as points for?.It is not neccessary to use all the tables.
SELECT MIN(Shared) AS titles FROM table_2869837_1 WHERE last_final = 2006
CREATE TABLE INST, Here is a database schema( table schema);
What is the minimum number of shared titles for the club whose last final was in 2006?It is not neccessary to use all the tables.
SELECT COUNT(production_code) FROM table_1876825_2 WHERE written_by = "David Richardson" AND directed_by = "Todd Holland"
CREATE TABLE INST, Here is a database schema( table schema);
Name the total number of production code by david richardson and todd hollandIt is not neccessary to use all the tables.
SELECT COUNT(blackberry_os) FROM table_14260687_3 WHERE other = "0.1" AND quarter = "2012 Q2"
CREATE TABLE INST, Here is a database schema( table schema);
During the quarter of 2012 Q2 how many millions of Blackberry OS phones where shipped when 0.1 million others were shipped?It is not neccessary to use all the tables.
SELECT MAX Late 1943 FROM table WHERE Late 1944 > 22,000 AND Late 1942 > 1,000 AND ! Late 1941 = slovenia AND Sept. 1943 < 4000
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest late 1943 with a late 1944 bigger than 22,000, a late 1942 bigger than 1,000, a late 1941 slovenia, and less than 4000 in september 1943?.It is not neccessary to use all the tables.
SELECT wins FROM table_name_20 WHERE stadium = "richmond cricket ground"
CREATE TABLE INST, Here is a database schema( table schema);
How many wins did they have at Richmond Cricket Ground Stadium?It is not neccessary to use all the tables.
SELECT MIN Avg/G FROM table WHERE Effic > 34.36 AND Name = wesley carroll
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest avg/g that has an effic greater than 34.36, with wesley carroll as the name?.It is not neccessary to use all the tables.
SELECT COUNT("Week") FROM table_24604 WHERE "Location" = 'Ivor Wynne Stadium'
CREATE TABLE INST, Here is a database schema( table schema);
What was the total number of weeks where the game played Ivor Wynne Stadium?It is not neccessary to use all the tables.
SELECT Builder FROM table WHERE Name (Translation) = ikazuchi "thunder"
CREATE TABLE INST, Here is a database schema( table schema);
Which builder is associated with ikazuchi "thunder"?.It is not neccessary to use all the tables.
SELECT opponent FROM table_name_93 WHERE date = "april 21"
CREATE TABLE INST, Here is a database schema( table schema);
what team played on april 21It is not neccessary to use all the tables.
SELECT Release date FROM table WHERE Product = glassfish
CREATE TABLE INST, Here is a database schema( table schema);
When was Glassfish released?.It is not neccessary to use all the tables.
SELECT previous_conference FROM table_name_88 WHERE size > 287 AND location = "fountain city"
CREATE TABLE INST, Here is a database schema( table schema);
What's the previous conference of Fountain City with a size more than 287?It is not neccessary to use all the tables.
SELECT Service FROM table WHERE Train name = Pune Duronto AND Departure = 21:35
CREATE TABLE INST, Here is a database schema( table schema);
What's the service number of the Pune Duronto train that departures at 21:35?.It is not neccessary to use all the tables.
SELECT COUNT(fastest_lap) FROM table_25668203_2 WHERE rnd = "10"
CREATE TABLE INST, Here is a database schema( table schema);
How many races went for 10 rounds?It is not neccessary to use all the tables.
SELECT Magnitude FROM table WHERE Epicenter = biskra province
CREATE TABLE INST, Here is a database schema( table schema);
What is the magnitude of the earthquake with an epicenter in biskra province?.It is not neccessary to use all the tables.
SELECT conference FROM table_name_29 WHERE awards = "vancouver grizzlies"
CREATE TABLE INST, Here is a database schema( table schema);
Where the Vancouver Grizzlies is the awards what is the conference?It is not neccessary to use all the tables.
SELECT result FROM table_name_13 WHERE location = "london 2012 women's olympic football tournament"
CREATE TABLE INST, Here is a database schema( table schema);
What is the result of the London 2012 Women's Olympic Football Tournament?It is not neccessary to use all the tables.
SELECT PCI-Express FROM table WHERE Memory = ddr 266/333/400 registered/ecc AND Sound = enhanced ac'97 2.3
CREATE TABLE INST, Here is a database schema( table schema);
Which PCI-Express has a DDR 266/333/400 Registered/ECC memory and Enhanced AC'97 2.3 sound?.It is not neccessary to use all the tables.
SELECT MIN(laps) FROM table_name_96 WHERE manufacturer = "gilera" AND rider = "marco simoncelli" AND grid < 8
CREATE TABLE INST, Here is a database schema( table schema);
what is the smallest number of laps marco simoncelli has with grid less than 8 and gilera as the manufacturer?It is not neccessary to use all the tables.
SELECT province FROM table_27592654_2 WHERE electorate = "Collingwood"
CREATE TABLE INST, Here is a database schema( table schema);
What was the province if the electorate was Collingwood?It is not neccessary to use all the tables.
SELECT opponent FROM table_26360571_2 WHERE date = "February 15, 2003"
CREATE TABLE INST, Here is a database schema( table schema);
List the opposing team on february 15 2003.It is not neccessary to use all the tables.
SELECT MIN Points FROM table
CREATE TABLE INST, Here is a database schema( table schema);
Name the least points.It is not neccessary to use all the tables.
SELECT date FROM table_name_85 WHERE score = "1–2"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Date of the Competition with a Score of 1 2?It is not neccessary to use all the tables.
SELECT Year FROM table WHERE Chassis = surtees ts19
CREATE TABLE INST, Here is a database schema( table schema);
What's the year of the Chassis surtees ts19?.It is not neccessary to use all the tables.
SELECT Name FROM table WHERE Lost = 2 AND Position > 1
CREATE TABLE INST, Here is a database schema( table schema);
Who lost 2 and had a position bigger than 1?.It is not neccessary to use all the tables.
SELECT COUNT Directed by FROM table WHERE Written by = Joe Toplyn
CREATE TABLE INST, Here is a database schema( table schema);
How many people directed the episode that Joe Toplyn wrote?.It is not neccessary to use all the tables.
SELECT "Place" FROM table_12501 WHERE "Score" = '69-72-72=213'
CREATE TABLE INST, Here is a database schema( table schema);
What is the Place of the Player with a Score of 69-72-72=213?It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Away team score = 10.11 (71)
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the venue where the away team scored 10.11 (71)?.It is not neccessary to use all the tables.
SELECT athlete FROM table_name_82 WHERE rank > 15 AND result < 7.68 AND group = "b" AND nationality = "great britain"
CREATE TABLE INST, Here is a database schema( table schema);
Which athlete's rank is more than 15 when the result is less than 7.68 the group is b and the nationality listed is Great Britain?It is not neccessary to use all the tables.
SELECT T2.firstname, T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = "Badlands" AND T1.StagePosition = "back"
CREATE TABLE INST, Here is a database schema( table schema);
Who is performing in the back stage position for the song "Badlands"? Show the first name and the last name.It is not neccessary to use all the tables.
SELECT T1.emp_fname FROM employee AS T1 JOIN CLASS AS T2 ON T1.emp_num = T2.prof_num WHERE crs_code = 'CIS-220' INTERSECT SELECT T1.emp_fname FROM employee AS T1 JOIN CLASS AS T2 ON T1.emp_num = T2.prof_num WHERE crs_code = 'QM-261'
CREATE TABLE INST, Here is a database schema( table schema);
Find the first name of the professor who is teaching two courses with code CIS-220 and QM-261.It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Record = 5-2
CREATE TABLE INST, Here is a database schema( table schema);
Which opponent led to a 5-2 record?.It is not neccessary to use all the tables.
SELECT gnu_linux FROM table_name_60 WHERE haiku = "no" AND client = "airdc++"
CREATE TABLE INST, Here is a database schema( table schema);
Which GNU/Linux had no haiku and a client of airdc++?It is not neccessary to use all the tables.
SELECT Entrant FROM table WHERE Year = 1965 AND Chassis = ferrari 158
CREATE TABLE INST, Here is a database schema( table schema);
What was the name of the team in 1965 driving the Ferrari 158?.It is not neccessary to use all the tables.
SELECT MIN Silver FROM table WHERE Rank = 4 AND Total > 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest number of silver medals with a rank of 4 and total medals greater than 1?.It is not neccessary to use all the tables.
SELECT MAX(rank) FROM table_name_97 WHERE location = "dresden" AND fastest_time__s_ < 10.88
CREATE TABLE INST, Here is a database schema( table schema);
what is the highest rank in dresden with a time faster than 10.88?It is not neccessary to use all the tables.
SELECT "name" FROM table_204_489 ORDER BY "floors" DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
which building has the most floors according to this chart ?It is not neccessary to use all the tables.
SELECT MIN(goals) FROM table_name_92 WHERE player = "andy williams"
CREATE TABLE INST, Here is a database schema( table schema);
What is the smallest number of goals for andy williams?It is not neccessary to use all the tables.
SELECT winner FROM table_12454156_1 WHERE losing_hand = "Ah 7s"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the winner where the losing hand is Ah 7s?It is not neccessary to use all the tables.
SELECT COUNT Total FROM table WHERE Bronze > 1 AND Nation = west germany AND Gold > 2
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of medals for West Germany with more than 1 bronze medal and more than 2 gold medals?.It is not neccessary to use all the tables.
SELECT origin FROM program ORDER BY origin
CREATE TABLE INST, Here is a database schema( table schema);
List all program origins in the alphabetical order.It is not neccessary to use all the tables.
SELECT COUNT Result FROM table WHERE Incumbent = James Shannon
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of results for james shannon?.It is not neccessary to use all the tables.
SELECT 1991 FROM table WHERE 2002 = 2r
CREATE TABLE INST, Here is a database schema( table schema);
What shows for 1991 when 2002 is 2R?.It is not neccessary to use all the tables.
SELECT MIN(year) FROM table_name_8 WHERE structure = "mercury city tower"
CREATE TABLE INST, Here is a database schema( table schema);
What year was the Mercury City Tower?It is not neccessary to use all the tables.
SELECT Game FROM table WHERE October > 24 AND Record = 6-2-1
CREATE TABLE INST, Here is a database schema( table schema);
Which game was after October 24 and had a record of 6-2-1?.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Away team = essendon
CREATE TABLE INST, Here is a database schema( table schema);
When did essendon play away?.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Tie no = replay AND Away team = watford
CREATE TABLE INST, Here is a database schema( table schema);
What was the score of the replay game when watford was the away team?.It is not neccessary to use all the tables.
SELECT SUM(attendance) FROM table_name_24 WHERE games < 6 AND w_l_t = "3-2-0" AND season < 1948
CREATE TABLE INST, Here is a database schema( table schema);
How much Attendance has Games smaller than 6, and a W-L-T of 3-2-0, and a Season smaller than 1948?It is not neccessary to use all the tables.
SELECT Category FROM table WHERE Opponent = matthew barton
CREATE TABLE INST, Here is a database schema( table schema);
What category is Matthew Barton?.It is not neccessary to use all the tables.
SELECT MAX Lead Pitch/mm FROM table WHERE Part Number = tsop24/28
CREATE TABLE INST, Here is a database schema( table schema);
Which Lead Pitch/mm has a Part Number of tsop24/28?.It is not neccessary to use all the tables.
SELECT COUNT Race Name FROM table WHERE Location = College Station, Texas AND Winning Driver = Johnny Rutherford
CREATE TABLE INST, Here is a database schema( table schema);
How many races are in College Station, Texas and won by Johnny Rutherford? .It is not neccessary to use all the tables.
SELECT Position FROM table WHERE Pick > 28
CREATE TABLE INST, Here is a database schema( table schema);
Which position has a pick greater than 28?.It is not neccessary to use all the tables.
SELECT To par FROM table WHERE Score = 70-72-73=215
CREATE TABLE INST, Here is a database schema( table schema);
What is the To par of the Player with a Score of 70-72-73=215?.It is not neccessary to use all the tables.
SELECT Opponents FROM table WHERE Round = final
CREATE TABLE INST, Here is a database schema( table schema);
Which opponent made it to the final round?.It is not neccessary to use all the tables.
SELECT report FROM table_name_43 WHERE venue = "state sports centre"
CREATE TABLE INST, Here is a database schema( table schema);
What was the report at State Sports Centre?It is not neccessary to use all the tables.
SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", DisplayName, Id, Reputation FROM Users WHERE LOWER(Location) LIKE '%gujarat%' ORDER BY Reputation DESC LIMIT 1000
CREATE TABLE INST, Here is a database schema( table schema);
Top 100 Highest reputation holder from Ahmedabad.It is not neccessary to use all the tables.
SELECT MAX Lost FROM table WHERE Points < 14 AND Played < 18
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest lost number of the team with less than 14 points and less than 18 played?.It is not neccessary to use all the tables.
SELECT date FROM table_name_14 WHERE score = "4–2"
CREATE TABLE INST, Here is a database schema( table schema);
Which Date has a Score of 4–2?It is not neccessary to use all the tables.
SELECT finish FROM table_name_8 WHERE wins = "28"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Finish of 28 Wins?It is not neccessary to use all the tables.
SELECT outcome FROM table_name_22 WHERE score = "6–1, 6–1"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Outcome of the match with a Score of 6–1 6–1?It is not neccessary to use all the tables.
SELECT score FROM table_name_43 WHERE date = "10 april 2007" AND opponent = "selima sfar"
CREATE TABLE INST, Here is a database schema( table schema);
Name the score for 10 april 2007 and opponent of selima sfarIt is not neccessary to use all the tables.
SELECT STATE_PROVINCE, COUNT(STATE_PROVINCE) FROM locations GROUP BY STATE_PROVINCE ORDER BY STATE_PROVINCE
CREATE TABLE INST, Here is a database schema( table schema);
Give me a bar chart to compare the number of state provinces located in different cities, show from low to high by the bar.It is not neccessary to use all the tables.
SELECT SUM(silver) FROM table_name_41 WHERE bronze = 8
CREATE TABLE INST, Here is a database schema( table schema);
What is the silver medal count of the team that finished with 8 bronze medals?It is not neccessary to use all the tables.
SELECT MAX(points) FROM table_14342592_7 WHERE position = "Left tackle" AND extra_points = 5
CREATE TABLE INST, Here is a database schema( table schema);
How many maximum points were there when the left tackle was played and there were 5 extra points?It is not neccessary to use all the tables.
SELECT us_viewers__millions_ FROM table_21313327_1 WHERE written_by = "Brad Kern"
CREATE TABLE INST, Here is a database schema( table schema);
when the writer is Brad Kern how many u.s viewers (in millions) had the episode?It is not neccessary to use all the tables.
SELECT AVG(yards) FROM table_name_53 WHERE average < 4 AND long = 12 AND attempts < 29
CREATE TABLE INST, Here is a database schema( table schema);
What is the average Yards with an average of less than 4 and the long is 12 with less than 29 attempts?It is not neccessary to use all the tables.
SELECT Position FROM table WHERE Overall < 128 AND College = brigham young
CREATE TABLE INST, Here is a database schema( table schema);
What is the position with an overall less than 128 for Brigham Young college?.It is not neccessary to use all the tables.
SELECT TV Time FROM table WHERE Date = december 22, 1996
CREATE TABLE INST, Here is a database schema( table schema);
What is TV Time, when Date is December 22, 1996?.It is not neccessary to use all the tables.
SELECT Detroit (DTW) FROM table WHERE Grand Rapids (GRR) = $377.29
CREATE TABLE INST, Here is a database schema( table schema);
When Grand Rapids's fare was $377.29, what is the fare to Detroit?.It is not neccessary to use all the tables.
SELECT COUNT(attendance) FROM table_name_92 WHERE week > 1 AND opponent = "philadelphia eagles"
CREATE TABLE INST, Here is a database schema( table schema);
What is the total attendance in a week greater than 1 with an opponent of Philadelphia Eagles?It is not neccessary to use all the tables.
SELECT score FROM table_name_63 WHERE set_3 = "29–27"
CREATE TABLE INST, Here is a database schema( table schema);
What was the overall score when the score of set 3 was 29–27?It is not neccessary to use all the tables.
SELECT Hosts FROM farm_competition WHERE Theme <> 'Aliens'
CREATE TABLE INST, Here is a database schema( table schema);
What are the hosts of competitions whose theme is not "Aliens"?It is not neccessary to use all the tables.
SELECT Method FROM table WHERE Opponent = stanislav nuschik
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the method for stanislav nuschik.It is not neccessary to use all the tables.