sql stringlengths 9 2.37k | table stringclasses 9
values | query stringlengths 51 503 |
|---|---|---|
SELECT Left office FROM table WHERE Province = Seville | CREATE TABLE INST, Here is a database schema( table schema); | What are the dates of leaving office for politician from the province of Seville?.It is not neccessary to use all the tables. |
SELECT 1st member FROM table WHERE Elected = 1541/42 | CREATE TABLE INST, Here is a database schema( table schema); | Who was the 1st member that was elected in 1541/42?.It is not neccessary to use all the tables. |
SELECT MAX Top-10s FROM table WHERE Starts = 14 | CREATE TABLE INST, Here is a database schema( table schema); | Which of the top-10s has a starts value of 14?.It is not neccessary to use all the tables. |
SELECT Name FROM table WHERE Type = loan AND Moving to = apollon kalamaria | CREATE TABLE INST, Here is a database schema( table schema); | Which Name has a Type of loan, and a Moving to of apollon kalamaria?.It is not neccessary to use all the tables. |
SELECT player FROM table_name_90 WHERE nationality = "turkey" AND height < 183 AND shirt_no < 19 AND birth_date = "june 27, 1993 (age20)" | CREATE TABLE INST, Here is a database schema( table schema); | What player that has a Nationality of Turkey a Height smaller than 183 a shirt no smaller than 19 and a birth date of June 27 1993 (age20)?It is not neccessary to use all the tables. |
SELECT venue FROM table_name_85 WHERE away_team = "north melbourne" | CREATE TABLE INST, Here is a database schema( table schema); | Tell me the venue for north melbourneIt is not neccessary to use all the tables. |
SELECT Man of the Match FROM table WHERE Date = 24th | CREATE TABLE INST, Here is a database schema( table schema); | Name the man of the match for 24th.It is not neccessary to use all the tables. |
SELECT Borough or Census Area FROM table WHERE Median household income = $59,596 | CREATE TABLE INST, Here is a database schema( table schema); | Which borough or census area has a $59,596 median household income?.It is not neccessary to use all the tables. |
SELECT COUNT Year FROM table WHERE Surface = clay AND Score = 4 : 0 | CREATE TABLE INST, Here is a database schema( table schema); | How many years have a Surface of clay, and a Score of 4 : 0?.It is not neccessary to use all the tables. |
SELECT demographic.age, procedures.icd9_code FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.subject_id = "2560" | CREATE TABLE INST, Here is a database schema( table schema); | what is age and procedure icd9 code of subject id 2560?It is not neccessary to use all the tables. |
SELECT "Player" FROM table_6431 WHERE "Year" > '2010' AND "Pick" = '2' | CREATE TABLE INST, Here is a database schema( table schema); | Which player was pick 2 later than 2010?It is not neccessary to use all the tables. |
SELECT Record FROM table WHERE Hurricanes points = 24 | CREATE TABLE INST, Here is a database schema( table schema); | What was the record after the game in which the Hurricanes scored 24 points?.It is not neccessary to use all the tables. |
SELECT MIN No. in season FROM table WHERE Written by = Brad Markowitz, William N. Fordes & René Balcer | CREATE TABLE INST, Here is a database schema( table schema); | Name the least number in season for brad markowitz, william n. fordes & rené balcer.It is not neccessary to use all the tables. |
SELECT Rank FROM table WHERE Premiere = september 12, 1979 | CREATE TABLE INST, Here is a database schema( table schema); | What is the rank for the episode that premiered on September 12, 1979?.It is not neccessary to use all the tables. |
SELECT COUNT Top-25 FROM table WHERE Top-10 = 0 AND Tournament = masters tournament AND Top-5 > 0 | CREATE TABLE INST, Here is a database schema( table schema); | What is the total number of top-25 in the Masters Tournament, which has 0 top-10 and more than 0 top-5?.It is not neccessary to use all the tables. |
SELECT position FROM table_name_22 WHERE round < 6 AND nationality = "denmark" | CREATE TABLE INST, Here is a database schema( table schema); | What is Position when Round is less than 6 and when Nationality is "Denmark"?It is not neccessary to use all the tables. |
SELECT MIN(pick) FROM table_name_7 WHERE draft < 1991 AND player = "tom sasso category:articles with hcards" | CREATE TABLE INST, Here is a database schema( table schema); | What is the lowest Pick, when Draft is less than 1991, and when Player is 'Tom Sasso Category:Articles with hCards'?It is not neccessary to use all the tables. |
SELECT SUM(year) FROM table_name_39 WHERE album___song = "speaking louder than before" | CREATE TABLE INST, Here is a database schema( table schema); | What year was the Album/Song Speaking louder than before?It is not neccessary to use all the tables. |
SELECT Lead FROM table WHERE Home = saskatoon, saskatchewan | CREATE TABLE INST, Here is a database schema( table schema); | Who is the lead for the team from Saskatoon, Saskatchewan?.It is not neccessary to use all the tables. |
SELECT AVG Silver FROM table WHERE Gold > 17 | CREATE TABLE INST, Here is a database schema( table schema); | What is the Average for Silver medals that have more than 17 Golds?.It is not neccessary to use all the tables. |
SELECT SUM Week FROM table WHERE Date = october 30, 1983 | CREATE TABLE INST, Here is a database schema( table schema); | Which week was on october 30, 1983?.It is not neccessary to use all the tables. |
SELECT COUNT(*) FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE DEPT_NAME = "Accounting" | CREATE TABLE INST, Here is a database schema( table schema); | Find the number of professors in accounting department.It is not neccessary to use all the tables. |
SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE NOT patient.hospitaldischargetime IS NULL AND STRFTIME('%y', patient.hospitaldischargetime) <= '2101' | CREATE TABLE INST, Here is a database schema( table schema); | count the number of patients until 2101 that had been discharged from the hospital.It is not neccessary to use all the tables. |
SELECT time_retired FROM table_name_92 WHERE driver = "thierry boutsen" | CREATE TABLE INST, Here is a database schema( table schema); | What is the time/retired for thierry boutsen?It is not neccessary to use all the tables. |
SELECT Rank FROM table WHERE Gold > 0 AND Bronze = 0 AND Nation = germany (ger) | CREATE TABLE INST, Here is a database schema( table schema); | What rank has a gold greater than 0, 0 as the bronze, with germany (ger) as the nation?.It is not neccessary to use all the tables. |
SELECT "Thurs 25 Aug" FROM table_31468 WHERE "Fri 26 Aug" = '19'' 30.70 116.023mph' | CREATE TABLE INST, Here is a database schema( table schema); | What shows for thurs 25 aug when fri 26 aug is 19' 30.70 116.023mph?It is not neccessary to use all the tables. |
SELECT date FROM table_name_35 WHERE year = "2004" | CREATE TABLE INST, Here is a database schema( table schema); | Tell me the date for 2004It is not neccessary to use all the tables. |
SELECT Nationality FROM table WHERE Group = b AND Result = 4.30 AND Name = alana boyd | CREATE TABLE INST, Here is a database schema( table schema); | Alana Boyd of group B with a 4.30 result has what nationality?.It is not neccessary to use all the tables. |
SELECT u15_3rd_iv FROM table_11318462_5 WHERE u15_4th_iv = "BBC" | CREATE TABLE INST, Here is a database schema( table schema); | what are all the u15 3rd iv with u15 4th iv being bbcIt is not neccessary to use all the tables. |
SELECT Venue FROM table WHERE Opposing Teams = argentina AND Status = test match | CREATE TABLE INST, Here is a database schema( table schema); | What is the venue where Argentina was the opposing team in a test match?.It is not neccessary to use all the tables. |
SELECT COUNT(first_elected) FROM table_name_80 WHERE counties_represented = "baltimore county" AND district = "06.0 6" AND committee = "economic matters" | CREATE TABLE INST, Here is a database schema( table schema); | What is the total number of First elected that has a country represented in Baltimore county a district of 06.0 6 and a committee of economic matters?It is not neccessary to use all the tables. |
SELECT COUNT("1999 Broadway") FROM table_16037 WHERE "Character" = 'Mrs. Darling' | CREATE TABLE INST, Here is a database schema( table schema); | How many playerd Mrs. Darling in the 1999 Broadway?It is not neccessary to use all the tables. |
SELECT city FROM table_name_99 WHERE founded = 1857 | CREATE TABLE INST, Here is a database schema( table schema); | What city was founded in 1857?It is not neccessary to use all the tables. |
SELECT player_name FROM table_name_42 WHERE position = "cornerback" AND year = 1997 | CREATE TABLE INST, Here is a database schema( table schema); | What is the name of the cornerback from 1997?It is not neccessary to use all the tables. |
SELECT opponent FROM table_23453931_4 WHERE points = 9 | CREATE TABLE INST, Here is a database schema( table schema); | What team did the Maple Leafs score 9 points against?It is not neccessary to use all the tables. |
SELECT date FROM table_name_43 WHERE loss = "sparks (0–1)" | CREATE TABLE INST, Here is a database schema( table schema); | What date was the loss of sparks (0–1)?It is not neccessary to use all the tables. |
SELECT Record FROM table WHERE Score = 98-99 | CREATE TABLE INST, Here is a database schema( table schema); | What is the Cavaliers Record in the game with a Score of 98-99?.It is not neccessary to use all the tables. |
SELECT Duration FROM table WHERE Actor = Christian de la Fuente | CREATE TABLE INST, Here is a database schema( table schema); | What duration is listed for Christian de la Fuente?.It is not neccessary to use all the tables. |
SELECT score_in_the_final FROM table_name_46 WHERE date = "february 19, 2012" | CREATE TABLE INST, Here is a database schema( table schema); | What was the final score on the February 19 2012 final?It is not neccessary to use all the tables. |
SELECT Pinyin FROM table WHERE Simplified = 南山区 | CREATE TABLE INST, Here is a database schema( table schema); | What is the pinyin when the simplified shows 南山区?.It is not neccessary to use all the tables. |
SELECT MIN Different holders FROM table WHERE Country = ireland AND Giro wins < 1 | CREATE TABLE INST, Here is a database schema( table schema); | what is the least different holders when the country is ireland and giro wins is less than 1?.It is not neccessary to use all the tables. |
SELECT AVG Series # FROM table WHERE Directed by = matthew penn | CREATE TABLE INST, Here is a database schema( table schema); | What is the average of the Series #s that were directed by Matthew Penn?.It is not neccessary to use all the tables. |
SELECT COUNT League of Communists FROM table WHERE Municipality = Bar | CREATE TABLE INST, Here is a database schema( table schema); | How many league of communists have the municipality of bar?.It is not neccessary to use all the tables. |
SELECT "Constructor" FROM table_55691 WHERE "Grid" = '8' | CREATE TABLE INST, Here is a database schema( table schema); | Who is the constructor with the grid of 8?It is not neccessary to use all the tables. |
SELECT State FROM table WHERE Royal house = ji AND Name = wu | CREATE TABLE INST, Here is a database schema( table schema); | What state had the name of wu for the royal house of ji?.It is not neccessary to use all the tables. |
SELECT winner FROM table_name_42 WHERE finalist = "lindsay davenport" | CREATE TABLE INST, Here is a database schema( table schema); | Who was the winner against Lindsay Davenport?It is not neccessary to use all the tables. |
SELECT DISTINCT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id WHERE t1.policy_type_code = "Deputy" | CREATE TABLE INST, Here is a database schema( table schema); | Find the names of the customers who have an deputy policy.It is not neccessary to use all the tables. |
SELECT MAX Top-25 FROM table WHERE Wins < 0 | CREATE TABLE INST, Here is a database schema( table schema); | What is the highest number of top-25s for events with 0 wins?.It is not neccessary to use all the tables. |
SELECT League FROM table WHERE Year = 1996 | CREATE TABLE INST, Here is a database schema( table schema); | Name the league for 1996.It is not neccessary to use all the tables. |
SELECT Date FROM table WHERE Visitor = bulls | CREATE TABLE INST, Here is a database schema( table schema); | What's the date of the game that has the Bulls as a visiting team?.It is not neccessary to use all the tables. |
SELECT home_team FROM table_name_24 WHERE game = "game 1" | CREATE TABLE INST, Here is a database schema( table schema); | Which Home Team has a Game of game 1?It is not neccessary to use all the tables. |
SELECT official_name FROM table_176529_2 WHERE area_km_2 = "582.20" | CREATE TABLE INST, Here is a database schema( table schema); | What is the name of the place with 582.20 square km area?It is not neccessary to use all the tables. |
SELECT Position FROM table WHERE NHL team = New Jersey Devils | CREATE TABLE INST, Here is a database schema( table schema); | Which position has new Jersey Devils as the nhl team?.It is not neccessary to use all the tables. |
SELECT type FROM table_name_74 WHERE name = "espn international sports" | CREATE TABLE INST, Here is a database schema( table schema); | What is the type of station for ESPN International Sports?It is not neccessary to use all the tables. |
SELECT MIN(heat) FROM table_name_57 WHERE mark = "46.47" | CREATE TABLE INST, Here is a database schema( table schema); | With a Mark of 46.47 What is the lowest Heat?It is not neccessary to use all the tables. |
SELECT race FROM table_name_43 WHERE purse = "$300,000" | CREATE TABLE INST, Here is a database schema( table schema); | What Race has a Purse of $300000?It is not neccessary to use all the tables. |
SELECT second FROM table_25563779_4 WHERE national_trophy_rookie = "Gerrard Barrabeig" | CREATE TABLE INST, Here is a database schema( table schema); | If the national trophy/rookie is Gerrard Barrabeig what is the name of the second?It is not neccessary to use all the tables. |
SELECT score FROM table_name_57 WHERE opponents_in_the_final = "nathan healey igor kunitsyn" | CREATE TABLE INST, Here is a database schema( table schema); | Name the score for opponents of nathan healey igor kunitsynIt is not neccessary to use all the tables. |
SELECT mission FROM table_name_70 WHERE service = "nasa" AND age_on_mission = 38 | CREATE TABLE INST, Here is a database schema( table schema); | What mission did the astronaut who 38 years old on the mission and who served in NASA serve on?It is not neccessary to use all the tables. |
SELECT status FROM table_27021001_1 WHERE district = "Georgia's 10th" | CREATE TABLE INST, Here is a database schema( table schema); | What is the status for district georgia's 10th?It is not neccessary to use all the tables. |
SELECT Designated Home FROM table WHERE Date = october 28 AND Designated Visitors = new england patriots | CREATE TABLE INST, Here is a database schema( table schema); | Who was the home team on October 28 when the new england patriots were the visitors?.It is not neccessary to use all the tables. |
SELECT 2 AS nd_leg FROM table_name_9 WHERE team_2 = "fc 105 libreville" | CREATE TABLE INST, Here is a database schema( table schema); | What is the 2nd leg where Team 2 is fc 105 libreville?It is not neccessary to use all the tables. |
SELECT "School/Club Team" FROM table_35492 WHERE "Player" = 'jim goodman' | CREATE TABLE INST, Here is a database schema( table schema); | what is the school that hosts jim goodmanIt is not neccessary to use all the tables. |
SELECT Hometown FROM table WHERE Player = terry mills | CREATE TABLE INST, Here is a database schema( table schema); | Where is Terry Mills from?.It is not neccessary to use all the tables. |
SELECT team FROM table_name_76 WHERE game > 56 AND score = "l 85–90 (ot)" | CREATE TABLE INST, Here is a database schema( table schema); | What is the Team with a game of more than 56 and the score is l 85–90 (ot)?It is not neccessary to use all the tables. |
SELECT opponent FROM table_name_82 WHERE method = "tko (punches) at 4:26 of round 1" | CREATE TABLE INST, Here is a database schema( table schema); | who is the opponent when the method is tko (punches) at 4:26 of round 1?It is not neccessary to use all the tables. |
SELECT weight FROM table_name_23 WHERE date_of_birth = "1981-11-21" | CREATE TABLE INST, Here is a database schema( table schema); | What is the weight of the entry that has a date of birth of 1981-11-21?It is not neccessary to use all the tables. |
SELECT COUNT Cuts made FROM table WHERE Events > 3 | CREATE TABLE INST, Here is a database schema( table schema); | What is the total number of cuts made when the events are more than 3?.It is not neccessary to use all the tables. |
SELECT General classification FROM table WHERE Mountains classification = david de la fuente AND Points classification = thor hushovd | CREATE TABLE INST, Here is a database schema( table schema); | What general classification has david de la fuente as mountains classification, and thor hushovd as points classification?.It is not neccessary to use all the tables. |
SELECT Attendance FROM table WHERE Loss = yates (3-2) | CREATE TABLE INST, Here is a database schema( table schema); | What's the attendance of the game where there was a Loss of Yates (3-2)?.It is not neccessary to use all the tables. |
SELECT COUNT Floors FROM table WHERE Building [A ] = Chongqing Poly Tower | CREATE TABLE INST, Here is a database schema( table schema); | How many different numbers of floors are there for the Chongqing Poly Tower?.It is not neccessary to use all the tables. |
SELECT COUNT 2nd leg FROM table WHERE Aggregate = 2-4 | CREATE TABLE INST, Here is a database schema( table schema); | How many 2nd legs had an aggregate of 2-4?.It is not neccessary to use all the tables. |
SELECT location FROM table_name_44 WHERE res = "win" AND opponent = "mike large" | CREATE TABLE INST, Here is a database schema( table schema); | Where was the result a win against Mike Large?It is not neccessary to use all the tables. |
SELECT Story by FROM table WHERE U.S. viewers (millions) = 0.53 | CREATE TABLE INST, Here is a database schema( table schema); | Who wrote the story viewed by 0.53 million viewers?.It is not neccessary to use all the tables. |
SELECT opponents FROM table_name_19 WHERE tournament = "sutton" | CREATE TABLE INST, Here is a database schema( table schema); | What is the name of the opponent for the Sutton tournament?It is not neccessary to use all the tables. |
SELECT Opponent FROM table WHERE Round = 3 | CREATE TABLE INST, Here is a database schema( table schema); | Can you tell me the Opponent that has the Round of 3?.It is not neccessary to use all the tables. |
SELECT MIN(wins) FROM table_name_26 WHERE draws < 7 AND played > 30 | CREATE TABLE INST, Here is a database schema( table schema); | What is the fewest number of wins that had fewer than 7 draws and more than 30 played?It is not neccessary to use all the tables. |
SELECT Outcome FROM table WHERE Date = 19-sep-2006 | CREATE TABLE INST, Here is a database schema( table schema); | What was the outcome of the game played on 19-Sep-2006?.It is not neccessary to use all the tables. |
SELECT title FROM table_23793770_2 WHERE total_viewers__in_millions_ = "10.47" | CREATE TABLE INST, Here is a database schema( table schema); | What was the name of the show that had 10.47 million total viewers?It is not neccessary to use all the tables. |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = "Government" AND procedures.short_title = "Part sm bowel resect NEC" | CREATE TABLE INST, Here is a database schema( table schema); | tell me the number of government insurance patients who had other partial resection of small intestine.It is not neccessary to use all the tables. |
SELECT outcome FROM table_name_16 WHERE year = "1985" AND venue = "india open" | CREATE TABLE INST, Here is a database schema( table schema); | What was the Outcome at the 1985 India Open?It is not neccessary to use all the tables. |
SELECT MAX(fastest_time__s_) FROM table_name_76 WHERE location = "enugu" AND rank > 2 | CREATE TABLE INST, Here is a database schema( table schema); | What is the top fastest time larger than 2 in Enugu?It is not neccessary to use all the tables. |
SELECT "Type" FROM table_63350 WHERE "Colour" = 'dark blue' | CREATE TABLE INST, Here is a database schema( table schema); | Which type has a color of Dark Blue?It is not neccessary to use all the tables. |
SELECT school_year FROM table_15315103_1 WHERE class_aAAA = Dayton | CREATE TABLE INST, Here is a database schema( table schema); | What year is dayton in class AAAA?It is not neccessary to use all the tables. |
SELECT AVG(top_10) FROM table_name_48 WHERE cuts_made < 9 AND events > 14 | CREATE TABLE INST, Here is a database schema( table schema); | what is the average top-10 when the cuts made is less than 9 and the events is more than 14?It is not neccessary to use all the tables. |
SELECT Opponent FROM table WHERE Record = 6-2 | CREATE TABLE INST, Here is a database schema( table schema); | Which opponent has a record of 6-2?.It is not neccessary to use all the tables. |
SELECT T1.product_category_description FROM ref_product_categories AS T1 JOIN products AS T2 ON T1.product_category_code = T2.product_category_code WHERE T2.product_description LIKE '%t%' | CREATE TABLE INST, Here is a database schema( table schema); | Find the category descriptions of the products whose descriptions include letter 't'.It is not neccessary to use all the tables. |
SELECT Points FROM table WHERE Wins > 15 AND Losses < 10 | CREATE TABLE INST, Here is a database schema( table schema); | How many points has more than 15 wins and less than 10 losses?.It is not neccessary to use all the tables. |
SELECT opponent FROM table_1341522_38 WHERE district = "Ohio12" | CREATE TABLE INST, Here is a database schema( table schema); | who is the the opponent with district being ohio12It is not neccessary to use all the tables. |
SELECT Year FROM table WHERE # = 10 | CREATE TABLE INST, Here is a database schema( table schema); | What year was player number 10?.It is not neccessary to use all the tables. |
SELECT Event FROM table WHERE Record = 4–2 | CREATE TABLE INST, Here is a database schema( table schema); | What event has a Record of 4–2?.It is not neccessary to use all the tables. |
SELECT tfl_yds FROM table_15128839_22 WHERE no_yds = "1-0" | CREATE TABLE INST, Here is a database schema( table schema); | Name the tfl-yds for no-yds 1-0It is not neccessary to use all the tables. |
SELECT Garfield Episode 2 FROM table WHERE U.S. Acres Episode = Banana Nose | CREATE TABLE INST, Here is a database schema( table schema); | what is the garfield episode where us acres episode is banana nose?.It is not neccessary to use all the tables. |
SELECT MIN High Checkout FROM table WHERE Played = 2 AND 100+ = 36 | CREATE TABLE INST, Here is a database schema( table schema); | What is the high checkout when played is 2 and 36 is 100+?.It is not neccessary to use all the tables. |
SELECT Surface FROM table WHERE Outcome = runner-up AND Score in the final = 4–6, 6–7, 6–2, 2–6 | CREATE TABLE INST, Here is a database schema( table schema); | Which Surface has an Outcome of runner-up, and a Score in the final of 4–6, 6–7, 6–2, 2–6?.It is not neccessary to use all the tables. |
SELECT Best FROM table WHERE Qual 2 = 58.700 | CREATE TABLE INST, Here is a database schema( table schema); | Name the Best which has a Qual 2 of 58.700?.It is not neccessary to use all the tables. |
SELECT Won FROM table WHERE Tries against = 47 | CREATE TABLE INST, Here is a database schema( table schema); | In the 2008/2009 season one team had 47 tries against, how many games did they win that year?.It is not neccessary to use all the tables. |
SELECT SUM("\u20ac0.01") FROM table_204_44 | CREATE TABLE INST, Here is a database schema( table schema); | what is the total number from column 1 for all face values ?It is not neccessary to use all the tables. |
SELECT Team FROM table WHERE School = milford | CREATE TABLE INST, Here is a database schema( table schema); | What is the Team for the Milford School?.It is not neccessary to use all the tables. |
SELECT World record FROM table WHERE 187kg = 392kg | CREATE TABLE INST, Here is a database schema( table schema); | Which world record has a 187kg of 392kg?.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.