sql stringlengths 9 2.37k | table stringclasses 9
values | query stringlengths 51 503 |
|---|---|---|
SELECT MAX(titles) FROM table_name_9 WHERE current_run_since < 2013 AND club = "järve" | CREATE TABLE INST, Here is a database schema( table schema); | What is the highest number of titles won by the Järve club before 2013?It is not neccessary to use all the tables. |
SELECT COUNT(goal_difference) FROM table_name_49 WHERE position > 20 | CREATE TABLE INST, Here is a database schema( table schema); | Name the total number of goal difference when the position is more than 20It is not neccessary to use all the tables. |
SELECT away_team FROM table_name_60 WHERE venue = "victoria park" | CREATE TABLE INST, Here is a database schema( table schema); | What away team plays at Victoria Park?It is not neccessary to use all the tables. |
SELECT american_labor_ticket FROM table_name_51 WHERE democratic_ticket = "robert f. wagner" | CREATE TABLE INST, Here is a database schema( table schema); | Which American Labor candidate ran against Democratic candidate Robert F. Wagner?It is not neccessary to use all the tables. |
SELECT AVG(year) FROM table_name_50 WHERE play = "much ado about nothing" AND recipient = "ray virta" | CREATE TABLE INST, Here is a database schema( table schema); | Name the average year for much ado about nothing and recipient of ray virtaIt is not neccessary to use all the tables. |
SELECT City FROM table WHERE Name in English = socialist party of the extremadurian people | CREATE TABLE INST, Here is a database schema( table schema); | What is the name of the city with the Socialist Party of the Extremadurian People?.It is not neccessary to use all the tables. |
SELECT Season FROM table WHERE Acquisition via = free agency AND Number > 9 | CREATE TABLE INST, Here is a database schema( table schema); | What season had an acquisition of free agency, and was higher than 9?.It is not neccessary to use all the tables. |
SELECT venue FROM table_name_45 WHERE group = "g1" | CREATE TABLE INST, Here is a database schema( table schema); | What venue has g1 as the group?It is not neccessary to use all the tables. |
SELECT MAX(rank) FROM table_name_20 WHERE name = "nat lofthouse" AND goals > 255 | CREATE TABLE INST, Here is a database schema( table schema); | What is the highest rank for Nat Lofthouse and goals more than 255?It is not neccessary to use all the tables. |
SELECT Broadband AS penetration FROM table_name_31 WHERE number_of_broadband_subscribers = "~355,100" | CREATE TABLE INST, Here is a database schema( table schema); | What is the broadband penetration where there are ~355100 broadband subscribers?It is not neccessary to use all the tables. |
SELECT Record_Company FROM orchestra WHERE Year_of_Founded < 2003 INTERSECT SELECT Record_Company FROM orchestra WHERE Year_of_Founded > 2003 | CREATE TABLE INST, Here is a database schema( table schema); | Show the record companies shared by orchestras founded before 2003 and after 2003.It is not neccessary to use all the tables. |
SELECT film_title_used_in_nomination FROM table_12842068_1 WHERE submitting_country = "Lebanon" | CREATE TABLE INST, Here is a database schema( table schema); | What was the title of the movie from lebanon?It is not neccessary to use all the tables. |
SELECT "Tournament" FROM table_4357 WHERE "Date" = 'october 11, 2013' | CREATE TABLE INST, Here is a database schema( table schema); | What tournament took place on October 11, 2013?It is not neccessary to use all the tables. |
SELECT 1995 FROM table_name_36 WHERE tournament = "miami" | CREATE TABLE INST, Here is a database schema( table schema); | What is 1995 when Tournament is "Miami"?It is not neccessary to use all the tables. |
SELECT Date FROM table WHERE Score = 3-0 | CREATE TABLE INST, Here is a database schema( table schema); | When was the competition that had a score of 3-0?.It is not neccessary to use all the tables. |
SELECT score FROM table_name_67 WHERE away_team = "spennymoor united" | CREATE TABLE INST, Here is a database schema( table schema); | What was the score when Spennymoor United as the away team?It is not neccessary to use all the tables. |
SELECT Built FROM table WHERE Name = gila bend overpass | CREATE TABLE INST, Here is a database schema( table schema); | In what year was the Gila Bend Overpass built?.It is not neccessary to use all the tables. |
SELECT Years FROM table WHERE From = connecticut | CREATE TABLE INST, Here is a database schema( table schema); | What years were from Connecticut?.It is not neccessary to use all the tables. |
SELECT project_id FROM Documents GROUP BY project_id HAVING COUNT(*) >= 2 | CREATE TABLE INST, Here is a database schema( table schema); | Show the ids for projects with at least 2 documents.It is not neccessary to use all the tables. |
SELECT candidates FROM table_1341865_45 WHERE incumbent = "Jack Brooks" | CREATE TABLE INST, Here is a database schema( table schema); | Who ran in the race for Jack Brooks' seat?It is not neccessary to use all the tables. |
SELECT COUNT 2002 Population FROM table WHERE No. of Communes < 3 AND Area > 11,919.5 AND Capital = putre | CREATE TABLE INST, Here is a database schema( table schema); | What is the total 2002 population of the province with putre as the capital, less than 3 communes, and an area larger than 11,919.5?.It is not neccessary to use all the tables. |
SELECT Set 3 FROM table WHERE Score = 3–1 AND Set 2 = 13–15 | CREATE TABLE INST, Here is a database schema( table schema); | What is the Set 3 with a Score of 3–1, and has a Set 2 of 13–15?.It is not neccessary to use all the tables. |
SELECT Name FROM table WHERE Location = mcville | CREATE TABLE INST, Here is a database schema( table schema); | What bridge is in Mcville?.It is not neccessary to use all the tables. |
SELECT Result FROM table WHERE Year = 2008 | CREATE TABLE INST, Here is a database schema( table schema); | What was the result in 2008?.It is not neccessary to use all the tables. |
SELECT Model FROM table WHERE GFLOPS(@ 200MHz) = 3.2 | CREATE TABLE INST, Here is a database schema( table schema); | Which models can perform flops(@ 200mhz) is 3.2.It is not neccessary to use all the tables. |
SELECT place FROM table_name_37 WHERE player = "claude harmon" | CREATE TABLE INST, Here is a database schema( table schema); | What is Claude Harmon's Place?It is not neccessary to use all the tables. |
SELECT microlab.culturetakentime FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-9128')) AND DATETIME(microlab.culturetakentime, 'start of yea... | CREATE TABLE INST, Here is a database schema( table schema); | when did patient 031-9128 last undergo a microbiology test in 11/last year?It is not neccessary to use all the tables. |
SELECT MAX Obama# FROM table WHERE McCain% = 64.4% | CREATE TABLE INST, Here is a database schema( table schema); | What is the Obama# when McCain% is 64.4%?.It is not neccessary to use all the tables. |
SELECT Kitmaker FROM table WHERE Head coach = uwe rapolder | CREATE TABLE INST, Here is a database schema( table schema); | Who is the kitmaker for the team that Uwe Rapolder is the head coach of..It is not neccessary to use all the tables. |
SELECT MIN(int) AS yards FROM table_15581223_8 | CREATE TABLE INST, Here is a database schema( table schema); | Name the least amount of int yardsIt is not neccessary to use all the tables. |
SELECT MIN Finish FROM table WHERE Year > 1978 AND Manufacturer = buick AND Start < 3 | CREATE TABLE INST, Here is a database schema( table schema); | What is the smallest finish time for a race where start was less than 3, buick was the manufacturer, and the race was held after 1978?.It is not neccessary to use all the tables. |
SELECT Label FROM table WHERE Region = us AND Catalog = 10008-2 | CREATE TABLE INST, Here is a database schema( table schema); | Tell me the label for US region and catalog of 10008-2.It is not neccessary to use all the tables. |
SELECT "Actor" FROM table_72163 WHERE "Character" = 'Judge Joseph Ratner' | CREATE TABLE INST, Here is a database schema( table schema); | what's the actor with character being judge joseph ratnerIt is not neccessary to use all the tables. |
SELECT chassis FROM table_name_26 WHERE entrant = "cooper car company" AND year = 1963 | CREATE TABLE INST, Here is a database schema( table schema); | Which Chassis has an Entrant of cooper car company and a Year of 1963?It is not neccessary to use all the tables. |
SELECT nation FROM table_name_22 WHERE team = "discovery channel" | CREATE TABLE INST, Here is a database schema( table schema); | What nation is the cyclist from team discovery channel?It is not neccessary to use all the tables. |
SELECT rider FROM table_name_43 WHERE bike = "honda cbr1000rr" AND laps < 22 AND time = "+2 laps" | CREATE TABLE INST, Here is a database schema( table schema); | Who rode a Honda CBR1000rr had fewer than 22 laps and a time of +2 laps?It is not neccessary to use all the tables. |
SELECT AVG(attendance) FROM table_name_58 WHERE week > 16 | CREATE TABLE INST, Here is a database schema( table schema); | What was the average attendance in weeks after 16?It is not neccessary to use all the tables. |
SELECT Original air date FROM table WHERE No. in season = 7 | CREATE TABLE INST, Here is a database schema( table schema); | What is every original air date for the number in season of 7?.It is not neccessary to use all the tables. |
SELECT Date FROM table WHERE Catalog = 887 195-2 AND Format = cd maxi | CREATE TABLE INST, Here is a database schema( table schema); | Which Date has a Catalog of 887 195-2, and a Format of cd maxi?.It is not neccessary to use all the tables. |
SELECT SUM(match) FROM table_name_39 WHERE opponent = "fcr 2001 duisburg" | CREATE TABLE INST, Here is a database schema( table schema); | Which match did FCR 2001 Duisburg participate as the opponent?It is not neccessary to use all the tables. |
SELECT Division One FROM table WHERE Division Two = hereford lads club colts | CREATE TABLE INST, Here is a database schema( table schema); | What Division One team were champions at the same time the Division Two Hereford Lads Club Colts were champs?.It is not neccessary to use all the tables. |
SELECT score FROM table_name_12 WHERE tournament = "cordenons" | CREATE TABLE INST, Here is a database schema( table schema); | What is the score for the Tournament of Cordenons?It is not neccessary to use all the tables. |
SELECT MIN Laps FROM table WHERE Driver = mika salo | CREATE TABLE INST, Here is a database schema( table schema); | Which is least lap is mika salo in?.It is not neccessary to use all the tables. |
SELECT T2.type, COUNT(*) FROM school_bus AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id GROUP BY T2.type | CREATE TABLE INST, Here is a database schema( table schema); | Show the type of school and the number of buses for each type.It is not neccessary to use all the tables. |
SELECT brand_name FROM table_24099628_1 WHERE model__list_ = "4x0" | CREATE TABLE INST, Here is a database schema( table schema); | What is the brand name associated with the model 4x0?It is not neccessary to use all the tables. |
SELECT "Elector" FROM table_56640 WHERE "Faction" = 'roman' AND "Elevated" = '1244, may 28' | CREATE TABLE INST, Here is a database schema( table schema); | What is the Elector with a Faction of roman, and an Elevated with 1244, may 28?It is not neccessary to use all the tables. |
SELECT SUM(pick) FROM table_name_28 WHERE player = "june longalong" | CREATE TABLE INST, Here is a database schema( table schema); | What's the total number of picks of a team that had june longalong?It is not neccessary to use all the tables. |
SELECT D 50 FROM table WHERE D 41 = d 41 | CREATE TABLE INST, Here is a database schema( table schema); | What is the D 50 when the D 41 is d 41?.It is not neccessary to use all the tables. |
SELECT tournament FROM table_name_17 WHERE opponents_in_the_final = "maria lindström maria strandlund" | CREATE TABLE INST, Here is a database schema( table schema); | Which Tournament has Opponents in the final of maria lindström maria strandlund?It is not neccessary to use all the tables. |
SELECT Date FROM table WHERE Goal = 3 | CREATE TABLE INST, Here is a database schema( table schema); | What was the date of the game that had a goal of 3?.It is not neccessary to use all the tables. |
SELECT COUNT First elected FROM table WHERE Incumbent = Diane Watson | CREATE TABLE INST, Here is a database schema( table schema); | How many people were first elected with an incument of diane watson?.It is not neccessary to use all the tables. |
SELECT "Opponent" FROM table_51776 WHERE "Score" = '5–4' | CREATE TABLE INST, Here is a database schema( table schema); | Who is the opponent with a score of 5 4?It is not neccessary to use all the tables. |
SELECT Episode No. FROM table WHERE Region No. > 1 AND No. of DVDs = 32 | CREATE TABLE INST, Here is a database schema( table schema); | WHAT EPISODE HAS A REGION NUMBER BIGGER THAN 1, AND 32 DVDS?.It is not neccessary to use all the tables. |
SELECT home_team FROM table_name_38 WHERE crowd > 22 OFFSET 449 | CREATE TABLE INST, Here is a database schema( table schema); | Which home team has a crowd that is bigger than 22449?It is not neccessary to use all the tables. |
SELECT episodes FROM table_name_37 WHERE actor = "david faustino" | CREATE TABLE INST, Here is a database schema( table schema); | How many episodes did the actor David Faustino appear in?It is not neccessary to use all the tables. |
SELECT MIN Last Year FROM table WHERE Hosted > 176 | CREATE TABLE INST, Here is a database schema( table schema); | What is the lowest attendance last year when more than 176 were hosted?.It is not neccessary to use all the tables. |
SELECT Date FROM table WHERE Score = 270 (–18) AND Location = scotland | CREATE TABLE INST, Here is a database schema( table schema); | What was the date of the tournament in Scotland with a score of 270 (–18)?.It is not neccessary to use all the tables. |
SELECT rebounds FROM table_25352324_5 WHERE steals = 19 | CREATE TABLE INST, Here is a database schema( table schema); | What is every value for rebounds when steals is 19?It is not neccessary to use all the tables. |
SELECT AVG Total FROM table WHERE Gold < 1 AND Rank < 5 | CREATE TABLE INST, Here is a database schema( table schema); | Name the average total for gold less than 1 and rank less than 5.It is not neccessary to use all the tables. |
SELECT MIN No. in series FROM table WHERE Written by = Rob Wright & Debra J. Fisher & Erica Messer | CREATE TABLE INST, Here is a database schema( table schema); | what is the No in series when Rob wright & Debra j. Fisher & Erica Messer were the writers?.It is not neccessary to use all the tables. |
SELECT Tracks FROM table WHERE Catalog = ba 222304 AND Length = 2:57 | CREATE TABLE INST, Here is a database schema( table schema); | What is the Tracks of the release in Catalog BA 222304 with a Length of 2:57?.It is not neccessary to use all the tables. |
SELECT MIN(national_rank) FROM table_21926985_2 WHERE company_name = "Windstream" | CREATE TABLE INST, Here is a database schema( table schema); | What is the national rank of Windstream?It is not neccessary to use all the tables. |
SELECT Home FROM table WHERE Visitor = minnesota | CREATE TABLE INST, Here is a database schema( table schema); | Who was the home team that played against the visiting team Minnesota?.It is not neccessary to use all the tables. |
SELECT Repeatairdate(s) FROM table WHERE Originalairdate = 22/12/1968 | CREATE TABLE INST, Here is a database schema( table schema); | What is the repeat date of the episode that aired 22/12/1968?.It is not neccessary to use all the tables. |
SELECT exit_date FROM table_name_58 WHERE to_club = "portsmouth" | CREATE TABLE INST, Here is a database schema( table schema); | What is the exit date of the player who transferred to Portsmouth?It is not neccessary to use all the tables. |
SELECT MIN(week) FROM table_name_37 WHERE attendance = "60,894" | CREATE TABLE INST, Here is a database schema( table schema); | Tell me the lowest week for attendance of 60894It is not neccessary to use all the tables. |
SELECT SUM 1952 FROM table WHERE 1954 > 4.2 | CREATE TABLE INST, Here is a database schema( table schema); | What is the 1952 rate when the 1954 is more than 4.2?.It is not neccessary to use all the tables. |
SELECT candidates FROM table_19753079_12 WHERE district = "Florida 10" | CREATE TABLE INST, Here is a database schema( table schema); | Who were candidates in Florida 10 district?It is not neccessary to use all the tables. |
SELECT Opponent FROM table WHERE Week < 11 AND Game Site = sullivan stadium | CREATE TABLE INST, Here is a database schema( table schema); | Who was the opponent at the game at Sullivan Stadium before week 11?.It is not neccessary to use all the tables. |
SELECT name FROM table_name_77 WHERE kanji = "朧" | CREATE TABLE INST, Here is a database schema( table schema); | Which name has a Kanji of 朧?It is not neccessary to use all the tables. |
SELECT July 1, 2011 density (/mi²) FROM table WHERE July 1, 2010 official estimate = 800,482 | CREATE TABLE INST, Here is a database schema( table schema); | What is the July 1, 2011 density if the July 1, 2010 official estimate is 800,482?.It is not neccessary to use all the tables. |
SELECT DirectX FROM table WHERE Code name = RV770 PRO AND Core ( MHz ) > 650.0 | CREATE TABLE INST, Here is a database schema( table schema); | What's the directx of the model with code name RV770 PRO and a core bigger than 650.0 MHz?.It is not neccessary to use all the tables. |
SELECT Parish (Prestegjeld) FROM table WHERE Church Name = Askrova bedehuskapell | CREATE TABLE INST, Here is a database schema( table schema); | In what parish is the Askrova Bedehuskapell church?.It is not neccessary to use all the tables. |
SELECT COUNT(producer__s_) FROM table_28232443_1 WHERE song__s_ = "Calling Out to Marlboro" | CREATE TABLE INST, Here is a database schema( table schema); | how many producers are responsible for the song 'calling out to marlboro?It is not neccessary to use all the tables. |
SELECT COUNT ministries FROM table WHERE Nº = 3 | CREATE TABLE INST, Here is a database schema( table schema); | When nº is 3, what are all the ministires?.It is not neccessary to use all the tables. |
SELECT Nature of Role FROM table WHERE Year = 2009 | CREATE TABLE INST, Here is a database schema( table schema); | What is every nature of role with year as 2009?.It is not neccessary to use all the tables. |
SELECT AVG Laps FROM table WHERE Time/Retired = +48.325 | CREATE TABLE INST, Here is a database schema( table schema); | What is the average number of laps that were made when the race took a time of +48.325?.It is not neccessary to use all the tables. |
SELECT COUNT(fin_pos) FROM table_17304308_1 WHERE points = "12" AND time_retired = "Accident" | CREATE TABLE INST, Here is a database schema( table schema); | Name the total number of fin pos for 12 points of accidentIt is not neccessary to use all the tables. |
SELECT SUM Goals scored FROM table WHERE Club = utenis utena AND Wins < 8 | CREATE TABLE INST, Here is a database schema( table schema); | How many goals scored have utenis utena as the club, with wins less than 8?.It is not neccessary to use all the tables. |
SELECT Home team FROM table WHERE Away team score = 7.13 (55) | CREATE TABLE INST, Here is a database schema( table schema); | When the away team scored 7.13 (55), what was the home team?.It is not neccessary to use all the tables. |
SELECT COUNT Frequency FROM table WHERE Destination = Jaipur | CREATE TABLE INST, Here is a database schema( table schema); | What is the number of frequencies that have a destination of Jaipur?.It is not neccessary to use all the tables. |
SELECT Title FROM table WHERE No. in series = 28 | CREATE TABLE INST, Here is a database schema( table schema); | What is the title for episode number in series of 28?.It is not neccessary to use all the tables. |
SELECT Opponent FROM table WHERE Result = w 19–10 | CREATE TABLE INST, Here is a database schema( table schema); | Which Opponent has a Result of w 19–10?.It is not neccessary to use all the tables. |
SELECT details FROM table_name_55 WHERE name = "marisa ferretti barth" | CREATE TABLE INST, Here is a database schema( table schema); | What are the details for Marisa Ferretti Barth?It is not neccessary to use all the tables. |
SELECT to_par FROM table_name_9 WHERE place = "4" | CREATE TABLE INST, Here is a database schema( table schema); | What is the To par of the 4 Place Player?It is not neccessary to use all the tables. |
SELECT position FROM table_15817998_5 WHERE college = "Alberta" | CREATE TABLE INST, Here is a database schema( table schema); | What are the positions in the college of Alberta?It is not neccessary to use all the tables. |
SELECT COUNT Losses FROM table WHERE Name = alex wilkinson | CREATE TABLE INST, Here is a database schema( table schema); | How many losses does Alex Wilkinson have?.It is not neccessary to use all the tables. |
SELECT MIN Decile FROM table WHERE Name = ohau school | CREATE TABLE INST, Here is a database schema( table schema); | What is the lowest decile that Ohau School has?.It is not neccessary to use all the tables. |
SELECT MIN Attempts FROM table WHERE Rank > 3 AND Start > 1984 AND Yds/Att < 6.1 | CREATE TABLE INST, Here is a database schema( table schema); | What is the lowest number of attempts for the player with a rank number larger than 3, who started after 1984 and had less than 6.1 yds/att?.It is not neccessary to use all the tables. |
SELECT record FROM table_name_26 WHERE res = "loss" AND event = "ufc 62" | CREATE TABLE INST, Here is a database schema( table schema); | What is the record for the loss in UFC 62?It is not neccessary to use all the tables. |
SELECT "Title" FROM table_3705 WHERE "Written by" = 'Phil Klemmer' AND "Production code" = '3T6455' | CREATE TABLE INST, Here is a database schema( table schema); | Phil Klemmer wrote all titles and production code is 3t6455.It is not neccessary to use all the tables. |
SELECT t1.treatmentname FROM (SELECT treatment.treatmentname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.age BETWEEN 50 AND 59) AND STRFTIME('%y', treatment.treatmenttime) <= '2101' GROUP BY treatment.... | CREATE TABLE INST, Here is a database schema( table schema); | what are the top five most common surgeries of patients 50s until 2101?It is not neccessary to use all the tables. |
SELECT player FROM table_name_19 WHERE goals = 0 AND tries = 1 AND points = 4 AND position = "prop" | CREATE TABLE INST, Here is a database schema( table schema); | Which player has 0 goals 1 tries 4 points and plays in the Prop position?It is not neccessary to use all the tables. |
SELECT coverage FROM table_23915973_1 WHERE power_kw = "25kW" | CREATE TABLE INST, Here is a database schema( table schema); | What is the coverage when power kw is 25kw?It is not neccessary to use all the tables. |
SELECT County FROM table WHERE Longitude = -102.302775 | CREATE TABLE INST, Here is a database schema( table schema); | What was the county with a longitude of -102.302775?.It is not neccessary to use all the tables. |
SELECT Name FROM table WHERE Rank = 27= AND Year < 1964 | CREATE TABLE INST, Here is a database schema( table schema); | Tell me the name for rank of 27= and years before 1964.It is not neccessary to use all the tables. |
SELECT District FROM table WHERE Result = Re-elected AND Incumbent = Richard Kelly | CREATE TABLE INST, Here is a database schema( table schema); | what is the district where the result is re-elected and the incumbent is richard kelly?.It is not neccessary to use all the tables. |
SELECT Round FROM table WHERE Fixtures = 2 | CREATE TABLE INST, Here is a database schema( table schema); | What is the Round when the value for Fixtures is 2?.It is not neccessary to use all the tables. |
SELECT Tongyong FROM table 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 manufacturer FROM table_name_21 WHERE finish < 42 AND start = 19 | CREATE TABLE INST, Here is a database schema( table schema); | Who was the maufacturer of the vehicle during the race where Cale Yarborough started at 19 and finished earlier than 42?It is not neccessary to use all the tables. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.