sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT COUNT(runner_up) FROM table_178242_7 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 tonnage_grt FROM table_name_40 WHERE ship = "author"
CREATE TABLE INST, Here is a database schema( table schema);
what is the tonnage grt of the ship author?It is not neccessary to use all the tables.
SELECT Yeast Ortholog FROM table WHERE Subpathway = ggr AND GeneCards Entry = cetn2
CREATE TABLE INST, Here is a database schema( table schema);
What is the yeast ortholog that has a subpathway of GGR and GeneCards entry CETN2?.It is not neccessary to use all the tables.
SELECT Height ft / m FROM table WHERE Floors = 9
CREATE TABLE INST, Here is a database schema( table schema);
Name the height with 9 floors.It is not neccessary to use all the tables.
SELECT MAX(gold) FROM table_name_57 WHERE nation = "lithuania (ltu)" AND total > 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of gold medals for Lithuania (ltu) when the total is more than 1?It is not neccessary to use all the tables.
SELECT Original air date FROM table WHERE Setting = 1544
CREATE TABLE INST, Here is a database schema( table schema);
What was the original air date of an episode set in 1544?.It is not neccessary to use all the tables.
SELECT gdp FROM city ORDER BY Regional_Population DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
what is the GDP of the city with the largest population.It is not neccessary to use all the tables.
SELECT Prefixes FROM table WHERE Scheme = Pence per minute, fixed at all times AND Approx premium = 3p/min
CREATE TABLE INST, Here is a database schema( table schema);
What prefixes are priced at pence per minute, fixed at all times with a premium of 3p/min?.It is not neccessary to use all the tables.
SELECT time FROM table_name_35 WHERE round < 3
CREATE TABLE INST, Here is a database schema( table schema);
What was the time for a round less than 3?It is not neccessary to use all the tables.
SELECT Name FROM table WHERE Longitude > 103.8 AND Latitude = -11.4
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the name for longitude more than 103.8 and latitude of -11.4.It is not neccessary to use all the tables.
SELECT MAX Released FROM table WHERE Song = The In Crowd
CREATE TABLE INST, Here is a database schema( table schema);
Name the most released for the in crowd.It is not neccessary to use all the tables.
SELECT actor_in_london, _2002 FROM table_name_78 WHERE shipwreck = "leonty ibayev"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the actor in London in 2002 with the shipwreck of Leonty Ibayev?It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Attendance = 702
CREATE TABLE INST, Here is a database schema( table schema);
where was the venue where the attendance was 702?.It is not neccessary to use all the tables.
SELECT team FROM table_name_85 WHERE fin_pos = "7"
CREATE TABLE INST, Here is a database schema( table schema);
Which team had a driver with a finish position of 7?It is not neccessary to use all the tables.
SELECT 1973 FROM table WHERE 1978 = 75%
CREATE TABLE INST, Here is a database schema( table schema);
What 1973 has a 1978 of 75%?.It is not neccessary to use all the tables.
SELECT DEPT_NAME, COUNT(*) FROM STUDENT AS T1 JOIN DEPARTMENT AS T2 ON T1.DEPT_CODE = T2.DEPT_CODE GROUP BY T1.DEPT_CODE ORDER BY COUNT(*) DESC LIMIT 3
CREATE TABLE INST, Here is a database schema( table schema);
Which departments have the top 3 highest number of students? Show the department name and number of students with a bar chart.It is not neccessary to use all the tables.
SELECT dept_name FROM course GROUP BY dept_name ORDER BY COUNT(*) DESC LIMIT 3
CREATE TABLE INST, Here is a database schema( table schema);
Find the names of the top 3 departments that provide the largest amount of courses?It is not neccessary to use all the tables.
SELECT COUNT 1961 FROM table WHERE Number 1971 = 3325 AND 1991 > 3177
CREATE TABLE INST, Here is a database schema( table schema);
What is the 1961 total of the Macedonian population with a 1971 number of 3325 and a 1991 value greater than 3177?.It is not neccessary to use all the tables.
SELECT high_points FROM table_28768469_7 WHERE high_rebounds = "Nick Collison (10)"
CREATE TABLE INST, Here is a database schema( table schema);
What is listed in hight points when the high rebounds is listed as Nick Collison (10)?It is not neccessary to use all the tables.
SELECT Location FROM table WHERE Founded = 1957
CREATE TABLE INST, Here is a database schema( table schema);
What is the location when founded was 1957?.It is not neccessary to use all the tables.
SELECT SUM(T1.salary) FROM salary AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year = 2010
CREATE TABLE INST, Here is a database schema( table schema);
What is the total salary paid by team Boston Red Stockings in 2010?It is not neccessary to use all the tables.
SELECT Winner FROM table WHERE Country = scotland
CREATE TABLE INST, Here is a database schema( table schema);
What is Scotland's winner?.It is not neccessary to use all the tables.
SELECT SUM Broadsound FROM table WHERE Belyando > 11,362 AND Total Region = 5,016 AND Year < 1947
CREATE TABLE INST, Here is a database schema( table schema);
Before the Year 1947, what is the sum of Broadsound that have a Belyando greater than 11,362, and a Total Region equal to 5,016?.It is not neccessary to use all the tables.
SELECT competition FROM table_name_71 WHERE venue = "klfa stadium, cheras" AND score = "3-3"
CREATE TABLE INST, Here is a database schema( table schema);
Venue of klfa stadium, cheras, and a Score of 3-3 had what competition?It is not neccessary to use all the tables.
SELECT edition FROM table_27877656_7 WHERE outcome = "Loser" AND score = "6–2, 6–3"
CREATE TABLE INST, Here is a database schema( table schema);
For score 6–2 6–3 and outcome is loser mention all the edition.It is not neccessary to use all the tables.
SELECT Nationality FROM table WHERE Player = john crawford
CREATE TABLE INST, Here is a database schema( table schema);
What is John Crawford's Nationality?.It is not neccessary to use all the tables.
SELECT MAX Year FROM table WHERE Category = best original song (รอเธอหันมา – โฟกัส จิระกุล)
CREATE TABLE INST, Here is a database schema( table schema);
Which Year has a Category of best original song (รอเธอหันมา – โฟกัส จิระกุล)?.It is not neccessary to use all the tables.
SELECT MIN Runs FROM table WHERE Average = 42.36
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest value for runs when the average is 42.36?.It is not neccessary to use all the tables.
SELECT Qual 1 FROM table WHERE Team = rusport AND Best = 58.665
CREATE TABLE INST, Here is a database schema( table schema);
What is the qual 1 for rusport and had a best of 58.665?.It is not neccessary to use all the tables.
SELECT Home FROM table WHERE Date = october 13
CREATE TABLE INST, Here is a database schema( table schema);
Which team was home on October 13?.It is not neccessary to use all the tables.
SELECT COUNT(loss) FROM table_name_37 WHERE avg_g = 8.4
CREATE TABLE INST, Here is a database schema( table schema);
Name the total of Loss which has an Avg/G of 8.4?It is not neccessary to use all the tables.
SELECT High points FROM table WHERE Date = November 17
CREATE TABLE INST, Here is a database schema( table schema);
Who scored the most points on November 17?.It is not neccessary to use all the tables.
SELECT MIN(gold) FROM table_name_52 WHERE silver = 0 AND bronze = 2
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest Gold when Silver is 0 and when Bronze is 2?It is not neccessary to use all the tables.
SELECT country FROM table_1529260_2 WHERE margin_of_victory = "6 strokes"
CREATE TABLE INST, Here is a database schema( table schema);
What countries have a margin of victory at 6 strokes?It is not neccessary to use all the tables.
SELECT Gillingham career FROM table WHERE Goals = 0 AND Apps. < 37 AND Nationality = england AND Position = mf
CREATE TABLE INST, Here is a database schema( table schema);
When did the mf from England play for Gillingham that made 0 goals and less than 37 appearances?.It is not neccessary to use all the tables.
SELECT "Tamil" FROM table_47559 WHERE "Hindi" = 'sukravar'
CREATE TABLE INST, Here is a database schema( table schema);
WHAT IS THE TAMIL WITH A SUKRAVAR ?It is not neccessary to use all the tables.
SELECT COUNT(population__2000_) FROM table_2004733_2 WHERE barangay = "San Gabriel"
CREATE TABLE INST, Here is a database schema( table schema);
How many people lived in san gabriel in the year 2000?It is not neccessary to use all the tables.
SELECT COUNT(votes) FROM table_name_48 WHERE rank = "3rd" AND candidate = "mary louise lorefice"
CREATE TABLE INST, Here is a database schema( table schema);
How many votes did 3rd ranking candidate Mary Louise Lorefice receive?It is not neccessary to use all the tables.
SELECT COUNT Population density 2010 (/km²) FROM table WHERE Administrative division = Duque de Caxias
CREATE TABLE INST, Here is a database schema( table schema);
Name the number of population density 2010 for duque de caxias.It is not neccessary to use all the tables.
SELECT To par FROM table WHERE Player = k. j. choi
CREATE TABLE INST, Here is a database schema( table schema);
What's k. j. choi's to par?.It is not neccessary to use all the tables.
SELECT COUNT Byes FROM table WHERE Draws < 1 AND Wins < 8
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of byes associated with fewer than 8 wins and fewer than 1 draw?.It is not neccessary to use all the tables.
SELECT Sail number FROM table WHERE LOA (Metres) = 13.68
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of the sail with an overall length of 13.68?.It is not neccessary to use all the tables.
SELECT AVG March FROM table WHERE Record = 25–30–13 AND Points < 63
CREATE TABLE INST, Here is a database schema( table schema);
What day has a record of 25–30–13 and less than 63 points?.It is not neccessary to use all the tables.
SELECT MAX(bronze) FROM table_name_86 WHERE total < 3 AND silver < 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest Bronze when Total is less than 3 and when Silver is less than 0?It is not neccessary to use all the tables.
SELECT Indication FROM table WHERE Status = phase 2b
CREATE TABLE INST, Here is a database schema( table schema);
What did the phase 2b status target?.It is not neccessary to use all the tables.
SELECT MAX Year FROM table WHERE Title = loves lost and found
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest year for the title, "loves lost and found"?.It is not neccessary to use all the tables.
SELECT emp_fname FROM employee WHERE emp_jobcode = 'PROF' ORDER BY emp_dob
CREATE TABLE INST, Here is a database schema( table schema);
List the first name of all employees with job code PROF ordered by their date of birth.It is not neccessary to use all the tables.
SELECT Attendance FROM table WHERE Score = 3-5
CREATE TABLE INST, Here is a database schema( table schema);
Which attendance has a Score of 3-5?.It is not neccessary to use all the tables.
SELECT events_won__uk_series_ FROM table_name_45 WHERE events_won__us_series_ < 1
CREATE TABLE INST, Here is a database schema( table schema);
How many UK events won for the contestant that won under 1 US event?It is not neccessary to use all the tables.
SELECT manufacturer FROM table_name_25 WHERE quantity_made = "2" AND year_made = "1884"
CREATE TABLE INST, Here is a database schema( table schema);
What is Manufacturer when Quantity Made is 2 and when Year Made is 1884?It is not neccessary to use all the tables.
SELECT MIN Year FROM table WHERE Town = gray court, south carolina
CREATE TABLE INST, Here is a database schema( table schema);
What was the earliest year that a structure was located in gray court, south carolina?.It is not neccessary to use all the tables.
SELECT Density (hab/ km² ) FROM table WHERE Population under 1 year-old Censo 2007(hab) = * data from the census taken by the inei
CREATE TABLE INST, Here is a database schema( table schema);
What is the density (hab/km²) with a population under 1 year-old censo 2007(hab) of * data from the census taken by the Inei?.It is not neccessary to use all the tables.
SELECT Original Name FROM table WHERE Language = swedish
CREATE TABLE INST, Here is a database schema( table schema);
What is the original name of the song performed in Swedish?.It is not neccessary to use all the tables.
SELECT attendance FROM table_name_10 WHERE week = 4
CREATE TABLE INST, Here is a database schema( table schema);
What is the attendance of the game on week 4?It is not neccessary to use all the tables.
SELECT director_s_ FROM table_11715748_2 WHERE season__number = 13
CREATE TABLE INST, Here is a database schema( table schema);
Who was the dirctor for season 13?It is not neccessary to use all the tables.
SELECT builder FROM table_name_71 WHERE br_no = 30782
CREATE TABLE INST, Here is a database schema( table schema);
Which Builder has BR No. 30782?It is not neccessary to use all the tables.
SELECT home FROM table_name_58 WHERE ground = "humber college north" AND time = "15:00"
CREATE TABLE INST, Here is a database schema( table schema);
What is Home, when Ground is Humber College North, and when Time is 15:00?It is not neccessary to use all the tables.
SELECT MAX(days) FROM table_name_16 WHERE launch_date = "23 january 2010"
CREATE TABLE INST, Here is a database schema( table schema);
What is Highest Days when Launch Date is 23 January 2010?It is not neccessary to use all the tables.
SELECT COUNT Year of intro FROM table WHERE Country of origin = soviet union AND Type = reusable AND Primary cartridge = 40mm AND Name/ designation = rpg-29
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of Year of Intro(s), when Country of Origin is Soviet Union, when Type is Reusable, when Primary Cartridge is 40mm, and when Name/ Designation is RPG-29?.It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Date = 14/12/1996
CREATE TABLE INST, Here is a database schema( table schema);
What is Venue, when Date is "14/12/1996"?.It is not neccessary to use all the tables.
SELECT record FROM table_name_43 WHERE location = "hemisfair arena"
CREATE TABLE INST, Here is a database schema( table schema);
Location of hemisfair arena had what record?It is not neccessary to use all the tables.
SELECT eid FROM Employee EXCEPT SELECT eid FROM Certificate
CREATE TABLE INST, Here is a database schema( table schema);
Show ids for all employees who don't have a certificate.It is not neccessary to use all the tables.
SELECT COUNT(viewers) FROM table_16072430_1 WHERE share = 7 AND weekly_rank = "64"
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of viewers where the share is 7 and the week rank is 64?It is not neccessary to use all the tables.
SELECT date FROM table_name_32 WHERE venue = "weserstadion , bremen"
CREATE TABLE INST, Here is a database schema( table schema);
What is Date, when Venue is 'Weserstadion , Bremen'?It is not neccessary to use all the tables.
SELECT Agg. FROM table WHERE Team 2 = vantour club mangoungou
CREATE TABLE INST, Here is a database schema( table schema);
What is the agg of team 2 for Vantour Club Mangoungou?.It is not neccessary to use all the tables.
SELECT Gender FROM table WHERE Name = elsthorpe school
CREATE TABLE INST, Here is a database schema( table schema);
Name the gender for elsthorpe school.It is not neccessary to use all the tables.
SELECT MAX Founded FROM table WHERE School = East Carolina University
CREATE TABLE INST, Here is a database schema( table schema);
When east carolina university is the school what is the highest year founded?.It is not neccessary to use all the tables.
SELECT "Coronie" FROM table_21149 WHERE "Marowijne" = '6.8%'
CREATE TABLE INST, Here is a database schema( table schema);
Name the coronie for marowijne being 6.8%It is not neccessary to use all the tables.
SELECT score FROM table_name_81 WHERE date = "april 10"
CREATE TABLE INST, Here is a database schema( table schema);
what team scored on april 10It is not neccessary to use all the tables.
SELECT high_assists FROM table_22871316_11 WHERE series = "0-1"
CREATE TABLE INST, Here is a database schema( table schema);
Who has the high assists when 0-1 is the series?It is not neccessary to use all the tables.
SELECT home_team FROM table_26842217_4 WHERE time = "7:30pm" AND broadcast = "ESPN"
CREATE TABLE INST, Here is a database schema( table schema);
What home team is at 7:30pm in ESPN?It is not neccessary to use all the tables.
SELECT player FROM table_name_24 WHERE school = "seton hall university"
CREATE TABLE INST, Here is a database schema( table schema);
What player is from Seton Hall University?It is not neccessary to use all the tables.
SELECT AVG Points FROM table WHERE Chassis = dallara 3087 lola t88/50 AND Year < 1988
CREATE TABLE INST, Here is a database schema( table schema);
Name the average points for dallara 3087 lola t88/50 and year before 1988.It is not neccessary to use all the tables.
SELECT SUM(year) FROM table_name_67 WHERE award = "tony award" AND nominee = "bernadette peters"
CREATE TABLE INST, Here is a database schema( table schema);
What was the year Bernadette Peters was a nominee for the Tony award?It is not neccessary to use all the tables.
SELECT MAX Top 10 FROM table WHERE Position = 63rd
CREATE TABLE INST, Here is a database schema( table schema);
What is the maximum number of top 10s when he finished in 63rd?.It is not neccessary to use all the tables.
SELECT Att-Cmp FROM table WHERE TD-INT = 7-8
CREATE TABLE INST, Here is a database schema( table schema);
Which Att-Cmp has a TD-INT of 7-8?.It is not neccessary to use all the tables.
SELECT AVG(points) FROM table_name_54 WHERE driver = "ryan hunter-reay"
CREATE TABLE INST, Here is a database schema( table schema);
What is the average points that the driver Ryan Hunter-Reay has?It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Attendance = 60,705
CREATE TABLE INST, Here is a database schema( table schema);
Which Result has an Attendance of 60,705?.It is not neccessary to use all the tables.
SELECT written_by FROM table_27905664_1 WHERE us_viewers__million_ = "3.74"
CREATE TABLE INST, Here is a database schema( table schema);
Who wrote the episode having a US viewership of 3.74 million?It is not neccessary to use all the tables.
SELECT 2008 FROM table_name_38 WHERE 2011 = "2r" AND 2010 = "a"
CREATE TABLE INST, Here is a database schema( table schema);
What is the 2008 of the 2r 2011 and A 2010?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Venue = gold coast convention centre
CREATE TABLE INST, Here is a database schema( table schema);
what is the date when the venue is gold coast convention centre?.It is not neccessary to use all the tables.
SELECT speed___iops__ FROM table_27615520_1 WHERE storage_medium = "eMLC Flash"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Input/output operations per second for the emlc flash?It is not neccessary to use all the tables.
SELECT MAX(rna_segment__gene_) FROM table_name_20 WHERE protein = "vp2" AND size___s_base_pair__ > 2690
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest RNA segment having a protein of vp2 and a base pair size over 2690?It is not neccessary to use all the tables.
SELECT points_difference FROM table_name_37 WHERE points_for = "554"
CREATE TABLE INST, Here is a database schema( table schema);
When there were 554 points what was the point difference?It is not neccessary to use all the tables.
SELECT AVG Bronze FROM table WHERE Nation = kyrgyzstan AND Silver > 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the bronze for Kyrgyzstan nation with a silver record of greater than 0?.It is not neccessary to use all the tables.
SELECT winner__male_ FROM table_name_40 WHERE winner__female_ = "marleen renders" AND year > 1998
CREATE TABLE INST, Here is a database schema( table schema);
Who is the male winner the year after 1998 with Marleen Renders as the female winner?It is not neccessary to use all the tables.
SELECT 1971 FROM table_name_65 WHERE 1969 = "30"
CREATE TABLE INST, Here is a database schema( table schema);
What is the value in 1971 when 30 is the value for 1969?It is not neccessary to use all the tables.
SELECT opponent FROM table_name_99 WHERE date = "september 9, 1979"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the opponent on September 9 1979?It is not neccessary to use all the tables.
SELECT margin FROM table_name_88 WHERE year > 1981 AND runner_s__up = "roberto de vicenzo"
CREATE TABLE INST, Here is a database schema( table schema);
What margin was in after 1981 and was Roberto De Vicenzo runner-up?It is not neccessary to use all the tables.
SELECT MAX Rank FROM table WHERE Tues 1 June = 20' 59.60 107.834mph
CREATE TABLE INST, Here is a database schema( table schema);
If Tuesday 1 June is 20' 59.60 107.834mph, what is the rank maximum?.It is not neccessary to use all the tables.
SELECT 2004 FROM table_name_49 WHERE tournament = "paris masters"
CREATE TABLE INST, Here is a database schema( table schema);
what is 2004 when the tournament is paris masters?It is not neccessary to use all the tables.
SELECT award FROM table_name_40 WHERE producer_s_ = "andrew ryder"
CREATE TABLE INST, Here is a database schema( table schema);
What award did Andrew Ryder win as producer?It is not neccessary to use all the tables.
SELECT U.S. viewers (millions) FROM table WHERE Story by = David Simon & Mari Kornhauser
CREATE TABLE INST, Here is a database schema( table schema);
How many viewers watched the episode with a story by david simon & mari kornhauser?.It is not neccessary to use all the tables.
SELECT DisplayName, Location, 'https://stackoverflow.com/users/' + CAST(Id AS TEXT), Reputation FROM Users WHERE LOWER(Location) LIKE '%saudi%' OR LOWER(Location) LIKE '%saudi arabia%' ORDER BY 4 DESC LIMIT 10
CREATE TABLE INST, Here is a database schema( table schema);
Top 10 Stackoverflow Users in Saudi Arabia.It is not neccessary to use all the tables.
SELECT COUNT(*) FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '018-20179')) AND medication.drugname = 'levaquin' AND DATETIME(medication.drug...
CREATE TABLE INST, Here is a database schema( table schema);
the number of times that patient 018-20179 had been prescribed levaquin since 121 months ago.It is not neccessary to use all the tables.
SELECT COUNT("Sales") FROM table_14994 WHERE "Song Title" = '21 seconds'
CREATE TABLE INST, Here is a database schema( table schema);
What were the total number of sales for the song 21 Seconds?It is not neccessary to use all the tables.
SELECT MIN Crowd FROM table WHERE Away team = st kilda
CREATE TABLE INST, Here is a database schema( table schema);
In games where st kilda was the away team, what was the smallest crowd?.It is not neccessary to use all the tables.
SELECT points FROM table_17369472_2 WHERE tries_for = "84"
CREATE TABLE INST, Here is a database schema( table schema);
How many points were there when tries for were 84?It is not neccessary to use all the tables.
SELECT COUNT(heat) FROM table_name_38 WHERE name = "gregor tait" AND lane > 6
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of heats with a finisher named Gregor Tait in lanes over 6?It is not neccessary to use all the tables.
SELECT Id AS Id, CreationDate, (Title + Body) AS Content FROM Posts WHERE LENGTH(Body) > 10 AND LENGTH(Title) > 5 ORDER BY NEWID()
CREATE TABLE INST, Here is a database schema( table schema);
Get CSV of posts by ID.It is not neccessary to use all the tables.